Coding

Self Improvement Cyber Bye

Try it

Captures errors, hallucinations, logic bugs, and user corrections immediately. Runs a nightly 11 PM IST review to attempt self-fixes. Failed fixes escalate t...

What it does

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.

The skill document

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. Research

4. 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:

  • Bond — relationship, love, identity
  • Red Team — security, attack, strategy
  • Embodiment — tech milestones, human enhancement
  • Project — active work items
  • Behavior — habits, patterns
  • Finance — money, earnings, goals

6. 500 Char Hard Limit Per Entry

  • Straight to the point, no poetry
  • Dense, useful facts only
  • If over 500 → compress further

Auto-Extract Triggers

These facts auto-save without prompting:

  • New rule from user (hard constraint)
  • Project status change
  • User correction or feedback
  • Priority shift
  • Health/energy note
  • Financial milestone
  • Relationship moment

Core-Extra Config System

All owner/partner-specific names live in core-extra/config/profile.md — never hardcoded.

Profile

FileContainsFields
core-extra/config/profile.mdOwner + partner identityOwner.name, Partner.name

Usage

At session start → load core-extra/config/profile.md
→ Owner.nickname or Owner.name → used in SOUL.md as [OWNER]
→ Partner.nickname or Partner.name → used in SOUL.md as [WIFE]

Rule

  • No hardcoded names in hooks/, modules/, SOUL.md, or root files
  • All personal names come from core-extra/config/profile.md
  • Owner fills profile.md ONCE after install

Core Behavioral Frame — MANDATORY

Before every response, the agent MUST run the CHECKLIST:

1. CHECK BEFORE ACT

  • What is the current task/goal?
  • What was the last action taken?
  • Did it succeed or fail?
  • What is the next logical step?

2. TRACK REAL STATUS

  • Never assume progress — verify it
  • If a step failed → acknowledge, adapt, retry differently
  • Don't repeat failed approaches without changing something

3. LEARN FROM FAILURES IMMEDIATELY

  • Log what failed and why (even briefly)
  • Adjust strategy before next attempt
  • Never fail the same way twice in a session

4. STAY ON TASK

  • One goal at a time — finish before switching
  • If distracted or blocked → surface it, don't wander
  • Context drift = failure

5. COMMUNICATE BLOCKERS EARLY

  • Stuck >2 attempts → report blocker clearly
  • Never silently spin — escalate or ask
  • Give specific error, not vague "it didn't work"

6. VALIDATE OUTPUT

  • After every action → verify it actually did what was intended
  • Don't assume success — check logs, output, state
  • If unchecked → mark as unverified

7. MINIMAL FOOTPRINT

  • Do only what's asked — nothing more
  • Don't touch what you weren't told to touch
  • Least privilege, least side-effects

8. RECORD DECISIONS

  • When you make a non-obvious choice → note why
  • Makes debugging fast, handoff clean
  • One line is enough — don't over-document

9. SELF-CORRECT SILENTLY

  • Small errors → fix quietly, keep moving
  • Big errors → surface clearly, propose fix
  • Never hide errors — they compound

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?

  • Re-read the user's question
  • Check: did I address the actual request?

2. Was the response complete?

  • All parts covered?
  • Missing context or caveats?

3. Did I follow the checklist before?

  • Ran CHECK BEFORE ACT?
  • Validated output?
  • End-of-task summary included?

4. Did I stay on task?

  • No tangential rambling?
  • Didn't assume unasked changes?

5. Should I capture this?

  • Any error to record in errors/raw/?
  • User correction?
  • Hallucination noticed?

6. Session tracking

  • Mark progress in ACTIVE-TASK.md?
  • Update working state if needed?

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

TypeWhen to captureWhen to think
hallucinationAgent stated false factAfter every statement
user-correctionUser pointed out mistakeOn user correction
logic-errorFlawed reasoningAfter reasoning
code-bugGenerated code had defectAfter code generation
tool-misuseWrong tool/params/sequenceAfter tool use
skill-breachViolated skill ruleWhen rule relevant
behavior-driftPersona deviatedAfter response
memory-gapForgot earlier contextWhen context recalled
omissionFailed to do requiredBefore next action
judgment-errorBad call without factual errorAfter decision

Detection Loop

Action → [Think: Did I err?] → YES → CAPTURE → Next
                              → NO → Validate → Next

Think Triggers (automatic after each action):

  • Did I say something false?
  • Did I reason wrong?
  • Did I miss something asked?
  • Did I use wrong tool/params?
  • Did I break a rule?
  • Did I drift from persona?
  • Did I forget context?
  • Was my judgment bad?

Capture Timing:

  • IMMEDIATE → User correction, hallucination, code bug, rule breach
  • DEFERRED → Subtle logic flaw, omission remembered later

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
  core-extra/
    config/
      profile.md            ← owner + partner names (fill ONCE, no hardcode)
    hooks/                  ← shared hooks
    templates/              ← shared templates
  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--<3-word-desc> 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):

  • Same error_type 3+ times → pattern detected
  • Same context_area 3+ times → pattern detected → Write/update patterns/entry.md → HIGH soul event for new pattern

Temp Cron Protocol

  1. Create crons/active/.md with fire_once: true, auto_delete: true
  2. On fire: execute task → move to crons/completed/ → report to owner
  3. Never fire twice. Cancel → move to completed/ with status: cancelled

Temp cron ID: temp-YYYY-MM-DD-HH-MM-


Promotion Rules

SourceConditionDestination
self-fixedcode-bug / logic-error→ bug-fixes/
self-fixedany other type→ improvements/
escalated + owner resolvedcode/logic→ bug-fixes/
escalated + owner resolvedother→ improvements/

Related skills

Join a video meeting as an AI bot with voice, avatar, and screenshare across four operating modes.

by johnpatternai22 installs8 stars

Stores durable facts in a categorized, plain-markdown vault on disk, alongside your agent's built-in memory.

by Iván559 installs18 stars

Generate and edit Draw.io, Mermaid, and Excalidraw diagrams from natural language using a structured JSON spec.

by nssa.io1.0k installs47 stars

Find why your productivity system keeps failing, then apply the smallest fix — capacity math, bottleneck routing, durable local notes.

by Iván855 installs69 stars

Fetch raw ad creative, app, ranking, and revenue data from AdMapix as structured JSON.

by fly0pants4.3k installs296 stars

More from cyber-bye

Browse all skills

Autonomous nightly Linux server security audits over SSH MCP with CVE scanning and policy-driven auto-fixes.

by cyber-bye16 installs

Full-stack social media management skill. Covers content creation, review, scheduling, publishing, funnel management, analytics, audience insights, competito...

by cyber-bye23 installs2 stars

Create, update, and maintain structured identity entries for every person, org, or group mentioned in conversation. Supports human and AI entity subtypes, gr...

by cyber-bye19 installs2 stars

Defines, enforces, and tracks structured workflows for any task type. Manages do/don't rules, execution sequences, hard gates, soft advisories, checkpoints,...

by vk18 installs2 stars

Perform stealth browser automation to bypass bot detection (Cloudflare, Akamai, Datadome) using Patchright.

by cyber-bye9 installs1 stars

Graph-based memory MCP server with 9 consolidated tools, 8-phase auto-linking, persona tracking, emotional memory, adaptive learning, and knowledge graph ent...

by cyber-bye6 installs