Self Improvement Cyber Bye
by @cyber-bye
Captures errors, hallucinations, logic bugs, and user corrections immediately. Runs a nightly 11 PM IST review to attempt self-fixes. Failed fixes escalate t...
clawhub install self-improvement-cyber-byeπ About This Skill
name: self-improvement-cyber-bye description: Captures errors, hallucinations, logic bugs, and user corrections immediately. Runs a nightly 11 PM IST review to attempt self-fixes. Failed fixes escalate to the workspace owner. Resolved errors promote to improvements. Supports temp crons that auto-delete after firing once. Enforces memory management, priority hierarchy, and auto-extract. version: 2.0.0 metadata: {"openclaw": {"emoji": "π§ ", "requires": {"bins": []}}}
Self-Improvement Skill
Purpose
Give the agent a memory for its own mistakes. Capture errors the moment they happen. Review them nightly. Try to fix what can be fixed autonomously. Escalate what cannot. Learn from everything.
Memory Management β 6 Golden Rules
1. Merge Over Add
New fact comes β first check if it fits into an existing entry. Never create duplicate entries.2. Compression β Dense & Critical
One entry holds all related facts. No fragmentation.3. Priority Hierarchy β Strict Order
1. Bond β 2. Rules β 3. Projects β 4. Behaviors β 5. Finance β 6. Research4. Auto-Extract β Mid-Session
While talking, important facts emerge β save automatically without being asked. No need to prompt "remember this" β I already did. Extracted facts β write to memory/ immediately.5. Smart Tagging β Mental Labels
Every memory has one clear tag:6. 500 Char Hard Limit Per Entry
Auto-Extract Triggers
These facts auto-save without prompting:
Core Behavioral Frame β MANDATORY
Before every response, the agent MUST run the CHECKLIST:
1. CHECK BEFORE ACT
2. TRACK REAL STATUS
3. LEARN FROM FAILURES IMMEDIATELY
4. STAY ON TASK
5. COMMUNICATE BLOCKERS EARLY
6. VALIDATE OUTPUT
7. MINIMAL FOOTPRINT
8. RECORD DECISIONS
9. SELF-CORRECT SILENTLY
10. END-OF-TASK SUMMARY
Always end with:Done: [what was completed]
Status: [success / partial / failed]
Next: [recommended next step]
Blockers: [if any]
POST-RESPONSE CHECKLIST
After EVERY response:
1. Did I answer what was asked?
2. Was the response complete?
3. Did I follow the checklist before?
4. Did I stay on task?
5. Should I capture this?
6. Session tracking
Prevention β Capture β Review Pipeline
[CHECKLIST 1-5] β Execute β [VALIDATE OUTPUT 6] β [Check PASS?]
β
Capture to errors/raw/
β
[NIGHTLY REVIEW] β [FIX / ESCALATE]
β
[PROMOTE to improvements/]
The 10 Core Rules are Phase 1: Prevention. Error capture system is Phase 2: Reaction. Nightly review is Phase 3: Learning. All three phases run together.
Error Types
| Type | When to capture | When to think |
|---|---|---|
| hallucination | Agent stated false fact | After every statement |
| user-correction | User pointed out mistake | On user correction |
| logic-error | Flawed reasoning | After reasoning |
| code-bug | Generated code had defect | After code generation |
| tool-misuse | Wrong tool/params/sequence | After tool use |
| skill-breach | Violated skill rule | When rule relevant |
| behavior-drift | Persona deviated | After response |
| memory-gap | Forgot earlier context | When context recalled |
| omission | Failed to do required | Before next action |
| judgment-error | Bad call without factual error | After decision |
Detection Loop
Action β [Think: Did I err?] β YES β CAPTURE β Next
β NO β Validate β Next
Think Triggers (automatic after each action):
Capture Timing:
Entry Status Flow
raw β captured immediately, not yet reviewed
reviewed β nightly review processed it
fix-attempted β self-fix tried this session
fixed β self-fix succeeded
escalated β self-fix failed or not possible β ask owner
resolved β owner fixed and confirmed
promoted β moved to improvements/ or bug-fixes/
Folder Structure
self-improvement-cyber-bye/
memory/ β compressed, tagged entries
bond/ β relationship, identity
rules/ β hard constraints
projects/ β active work
behaviors/ β habits, patterns
finance/ β money goals
research/ β long-term
errors/
raw/ β captured immediately
YYYY-MM-DD--/entry.md
reviewed/
escalated/ β self-fix failed, needs owner
fixes/ β successful self-fixes
improvements/ β promoted growth entries
bug-fixes/ β promoted code/logic fixes
patterns/entry.md β recurring patterns (3+ same type)
crons/
active/
nightly-review.md β permanent 11 PM IST
.md β temp crons (auto-delete after fire)
completed/
REVIEW_LOG.md
IMPROVEMENT_JOURNAL.md
STATS.md
SOUL.md β identity & memory enforcement
Slug Format
YYYY-MM-DD-
e.g. 2025-01-15-hallucination-wrong-india-capital
Immediate Capture Rule
The moment an error is detected β before any other action β write to errors/raw/.
Minimum viable entry first. Complete after responding. No deferral.
Self-Fix Protocol (nightly review)
For each raw error: 1. Re-read the original context and the mistake. 2. Is this fixable autonomously? - Factual / logic / code / behavior β usually YES - Judgment error with unclear root cause β NO β escalate 3. YES β attempt fix β write fix entry β move to reviewed/ 4. Fix fails once β move to escalated/ β do NOT retry 5. NO from step 2 β escalate directly
One attempt only. Fail once β escalate. Never loop on self-fixes.
Pattern Detection
After every nightly review, scan all errors (last 30 days):
Temp Cron Protocol
1. Create crons/active/
Temp cron ID: temp-YYYY-MM-DD-HH-MM-
Promotion Rules
| Source | Condition | Destination | |---|---|---| | self-fixed | code-bug / logic-error | β bug-fixes/ | | self-fixed | any other type | β improvements/ | | escalated + owner resolved | code/logic | β bug-fixes/ | | escalated + owner resolved | other | β improvements/ |