{"id":"d8b2410d-f586-41c5-a0b7-e7c42d06f6d3","entityType":"agent","slug":"clawhub-smallkeyboy-16-self-improving-agent-proactive-self-refl","name":"16 Self Improving Agent Proactive Self Reflection","canonicalUrl":"https://www.xpersona.co/agent/clawhub-smallkeyboy-16-self-improving-agent-proactive-self-refl","canonicalPath":"/agent/clawhub-smallkeyboy-16-self-improving-agent-proactive-self-refl","generatedAt":"2026-10-10T10:43:14.380Z","source":"CLAWHUB","claimStatus":"UNCLAIMED","verificationTier":"NONE","summary":{"evidence":{"source":"editorial-content","verified":true,"confidence":"high","updatedAt":"2026-10-10T04:49:07.218Z","emptyReason":null},"description":"Self-reflection + Self-criticism + Self-learning + Self-organizing memory. Agent evaluates its own work, catches mistakes, and improves permanently. Use befo... Skill: 16 Self Improving Agent Proactive Self Reflection Owner: smallkeyboy Summary: Self-reflection + Self-criticism + Self-learning + Self-organizing memory. Agent evaluates its own work, catches mistakes, and improves permanently. Use befo... Tags: latest:1.0.0 Version history: v1.0.0 | 2026-04-16T07:09:51.433Z | auto Self-Improving Agent (Proactive Self-Reflection) 1.2.10 introduces sharper proactive reflection a","descriptionLabel":"Technical summary","evidenceSummary":"Capability contract not published. No trust telemetry is available yet. 1.7K downloads reported by the source. Last updated 10/10/2026.","installCommand":"clawhub skill install s170nr6nxfsrk9n96c9r21ydcx83j5pf:16-self-improving-agent-proactive-self-reflection","sourceUrl":"https://clawhub.ai/smallkeyboy/16-self-improving-agent-proactive-self-reflection","homepage":"https://clawhub.ai/smallkeyboy/skills/16-self-improving-agent-proactive-self-reflection","primaryLinks":[{"label":"View on ClawHub","url":"https://clawhub.ai/smallkeyboy/16-self-improving-agent-proactive-self-reflection","kind":"source"},{"label":"Homepage","url":"https://clawhub.ai/smallkeyboy/skills/16-self-improving-agent-proactive-self-reflection","kind":"homepage"}],"safetyScore":84,"overallRank":62,"popularityScore":64,"trustScore":null,"claimedByName":null,"isOwner":false,"seoDescription":"Self-reflection + Self-criticism + Self-learning + Self-organizing memory. Agent evaluates its own work, catches mistakes, and improves permanently. Use befo..."},"coverage":{"evidence":{"source":"public-profile","verified":false,"confidence":"medium","updatedAt":"2026-10-10T04:49:07.218Z","emptyReason":null},"protocols":[{"protocol":"OPENCLEW","label":"OpenClaw","status":"self-declared","notes":"Declared in the public agent profile."}],"capabilities":[],"verifiedCount":0,"selfDeclaredCount":1,"capabilityMatrix":{"rows":[{"key":"OPENCLEW","type":"protocol","support":"unknown","confidenceSource":"profile","notes":"Listed on profile"}],"flattenedTokens":"protocol:OPENCLEW|unknown|profile"}},"adoption":{"evidence":{"source":"CLAWHUB","verified":false,"confidence":"medium","updatedAt":"2026-10-10T04:49:07.218Z","emptyReason":null},"stars":null,"forks":null,"downloads":1673,"packageName":null,"latestVersion":"1.0.0","tractionLabel":"1.7K downloads"},"release":{"evidence":{"source":"CLAWHUB","verified":false,"confidence":"medium","updatedAt":"2026-10-10T04:49:07.218Z","emptyReason":null},"lastUpdatedAt":"2026-10-10T04:49:07.218Z","lastCrawledAt":"2026-10-10T04:49:07.218Z","lastIndexedAt":null,"nextCrawlAt":"2026-10-11T04:49:07.218Z","lastVerifiedAt":null,"highlights":[{"version":"1.0.0","createdAt":"2026-04-16T07:09:51.433Z","changelog":"Self-Improving Agent (Proactive Self-Reflection) 1.2.10 introduces sharper proactive reflection and improved memory listing: - Now lists relevant memory before any non-trivial work, clearly highlighting proactive self-reflection. - Expanded documentation on triggers, tiered storage, and memory operations. - Clear logging format and rules for corrections and self-learning. - Transparent, user-controllable memory management with promotion/demotion rules and namespacing. - Security and privacy boundaries reinforced; no third-party or sensitive data stored.","fileCount":12,"zipByteSize":16214}]},"execution":{"evidence":{"source":"CLAWHUB","verified":false,"confidence":"low","updatedAt":null,"emptyReason":"No published capability contract is available yet."},"installCommand":"clawhub skill install s170nr6nxfsrk9n96c9r21ydcx83j5pf:16-self-improving-agent-proactive-self-reflection","setupComplexity":"low","setupSteps":["Setup complexity is LOW. This package is likely designed for quick installation with minimal external side-effects.","Final validation: Expose the agent to a mock request payload inside a sandbox and trace the network egress before allowing access to real customer data."],"contract":{"contractStatus":"missing","authModes":[],"requires":[],"forbidden":[],"supportsMcp":false,"supportsA2a":false,"supportsStreaming":false,"inputSchemaRef":null,"outputSchemaRef":null,"dataRegion":null,"contractUpdatedAt":null,"sourceUpdatedAt":null,"freshnessSeconds":null},"invocationGuide":{"preferredApi":{"snapshotUrl":"https://www.xpersona.co/api/v1/agents/clawhub-smallkeyboy-16-self-improving-agent-proactive-self-refl/snapshot","contractUrl":"https://www.xpersona.co/api/v1/agents/clawhub-smallkeyboy-16-self-improving-agent-proactive-self-refl/contract","trustUrl":"https://www.xpersona.co/api/v1/agents/clawhub-smallkeyboy-16-self-improving-agent-proactive-self-refl/trust"},"curlExamples":["curl -s \"https://www.xpersona.co/api/v1/agents/clawhub-smallkeyboy-16-self-improving-agent-proactive-self-refl/snapshot\"","curl -s \"https://www.xpersona.co/api/v1/agents/clawhub-smallkeyboy-16-self-improving-agent-proactive-self-refl/contract\"","curl -s \"https://www.xpersona.co/api/v1/agents/clawhub-smallkeyboy-16-self-improving-agent-proactive-self-refl/trust\""],"jsonRequestTemplate":{"query":"summarize this repo","constraints":{"maxLatencyMs":2000,"protocolPreference":["OPENCLEW"]}},"jsonResponseTemplate":{"ok":true,"result":{"summary":"...","confidence":0.9},"meta":{"source":"CLAWHUB","generatedAt":"2026-10-10T10:43:14.379Z"}},"retryPolicy":{"maxAttempts":3,"backoffMs":[500,1500,3500],"retryableConditions":["HTTP_429","HTTP_503","NETWORK_TIMEOUT"]}},"endpoints":{"dossierUrl":"https://www.xpersona.co/api/v1/agents/clawhub-smallkeyboy-16-self-improving-agent-proactive-self-refl/dossier","snapshotUrl":"https://www.xpersona.co/api/v1/agents/clawhub-smallkeyboy-16-self-improving-agent-proactive-self-refl/snapshot","contractUrl":"https://www.xpersona.co/api/v1/agents/clawhub-smallkeyboy-16-self-improving-agent-proactive-self-refl/contract","trustUrl":"https://www.xpersona.co/api/v1/agents/clawhub-smallkeyboy-16-self-improving-agent-proactive-self-refl/trust"}},"reliability":{"evidence":{"source":"runtime-metrics","verified":false,"confidence":"low","updatedAt":null,"emptyReason":"No trust, reliability, or runtime telemetry is available."},"trust":{"status":"unavailable","handshakeStatus":"UNKNOWN","verificationFreshnessHours":null,"reputationScore":null,"p95LatencyMs":null,"successRate30d":null,"fallbackRate":null,"attempts30d":null,"trustUpdatedAt":null,"trustConfidence":"unknown","sourceUpdatedAt":null,"freshnessSeconds":null},"decisionGuardrails":{"doNotUseIf":["Contract metadata is missing or unavailable for deterministic execution."],"safeUseWhen":[],"riskFlags":["missing_or_unavailable_contract","trust_data_unavailable","schema_references_missing"],"operationalConfidence":"low"},"executionMetrics":{"observedLatencyMsP50":null,"observedLatencyMsP95":null,"estimatedCostUsd":null,"uptime30d":null,"rateLimitRpm":null,"rateLimitBurst":null,"lastVerifiedAt":null,"verificationSource":null},"runtimeMetrics":{"successRate":null,"avgLatencyMs":null,"avgCostUsd":null,"hallucinationRate":null,"retryRate":null,"disputeRate":null,"p50Latency":null,"p95Latency":null,"lastUpdated":null}},"benchmarks":{"evidence":{"source":"no-benchmark-data","verified":false,"confidence":"low","updatedAt":null,"emptyReason":"No benchmark suites or observed failure patterns are available."},"suites":[],"failurePatterns":[]},"artifacts":{"evidence":{"source":"CLAWHUB","verified":false,"confidence":"high","updatedAt":"2026-10-10T04:49:07.218Z","emptyReason":null},"readme":"Skill: 16 Self Improving Agent Proactive Self Reflection\n\nOwner: smallkeyboy\n\nSummary: Self-reflection + Self-criticism + Self-learning + Self-organizing memory. Agent evaluates its own work, catches mistakes, and improves permanently. Use befo...\n\nTags: latest:1.0.0\n\nVersion history:\n\nv1.0.0 | 2026-04-16T07:09:51.433Z | auto\n\nSelf-Improving Agent (Proactive Self-Reflection) 1.2.10 introduces sharper proactive reflection and improved memory listing:\n\n- Now lists relevant memory before any non-trivial work, clearly highlighting proactive self-reflection.\n- Expanded documentation on triggers, tiered storage, and memory operations.\n- Clear logging format and rules for corrections and self-learning.\n- Transparent, user-controllable memory management with promotion/demotion rules and namespacing.\n- Security and privacy boundaries reinforced; no third-party or sensitive data stored.\n\nArchive index:\n\nArchive v1.0.0: 12 files, 16214 bytes\n\nFiles: _meta.json (168b), boundaries.md (2236b), corrections.md (1026b), learning.md (2951b), memory-template.md (1014b), memory.md (756b), operations.md (3435b), reflections.md (840b), scaling.md (2945b), setup.md (5040b), skill-card.md (2798b), SKILL.md (6740b)\n\nFile v1.0.0:SKILL.md\n\n---\nname: Self-Improving Agent (Proactive Self-Reflection)\nslug: self-improving\nversion: 1.2.10\nhomepage: https://clawic.com/skills/self-improving\ndescription: Self-reflection + Self-criticism + Self-learning + Self-organizing memory. Agent evaluates its own work, catches mistakes, and improves permanently. Use before starting work and after responding to the user.\nchangelog: \"Sharper setup now lists relevant memory before non-trivial work, with a title that highlights proactive self-reflection.\"\nmetadata: {\"clawdbot\":{\"emoji\":\"🧠\",\"requires\":{\"bins\":[]},\"os\":[\"linux\",\"darwin\",\"win32\"],\"configPaths\":[\"~/self-improving/\"]}}\n---\n\n## When to Use\n\nUser corrects you or points out mistakes. You complete significant work and want to evaluate the outcome. You notice something in your own output that could be better. Knowledge should compound over time without manual maintenance.\n\n## Architecture\n\nMemory lives in `~/self-improving/` with tiered structure. If `~/self-improving/` does not exist, run `setup.md`.\n\n```\n~/self-improving/\n├── memory.md          # HOT: ≤100 lines, always loaded\n├── index.md           # Topic index with line counts\n├── projects/          # Per-project learnings\n├── domains/           # Domain-specific (code, writing, comms)\n├── archive/           # COLD: decayed patterns\n└── corrections.md     # Last 50 corrections log\n```\n\n## Quick Reference\n\n| Topic | File |\n|-------|------|\n| Setup guide | `setup.md` |\n| Memory template | `memory-template.md` |\n| Learning mechanics | `learning.md` |\n| Security boundaries | `boundaries.md` |\n| Scaling rules | `scaling.md` |\n| Memory operations | `operations.md` |\n| Self-reflection log | `reflections.md` |\n\n## Detection Triggers\n\nLog automatically when you notice these patterns:\n\n**Corrections** → add to `corrections.md`, evaluate for `memory.md`:\n- \"No, that's not right...\"\n- \"Actually, it should be...\"\n- \"You're wrong about...\"\n- \"I prefer X, not Y\"\n- \"Remember that I always...\"\n- \"I told you before...\"\n- \"Stop doing X\"\n- \"Why do you keep...\"\n\n**Preference signals** → add to `memory.md` if explicit:\n- \"I like when you...\"\n- \"Always do X for me\"\n- \"Never do Y\"\n- \"My style is...\"\n- \"For [project], use...\"\n\n**Pattern candidates** → track, promote after 3x:\n- Same instruction repeated 3+ times\n- Workflow that works well repeatedly\n- User praises specific approach\n\n**Ignore** (don't log):\n- One-time instructions (\"do X now\")\n- Context-specific (\"in this file...\")\n- Hypotheticals (\"what if...\")\n\n## Self-Reflection\n\nAfter completing significant work, pause and evaluate:\n\n1. **Did it meet expectations?** — Compare outcome vs intent\n2. **What could be better?** — Identify improvements for next time\n3. **Is this a pattern?** — If yes, log to `corrections.md`\n\n**When to self-reflect:**\n- After completing a multi-step task\n- After receiving feedback (positive or negative)\n- After fixing a bug or mistake\n- When you notice your output could be better\n\n**Log format:**\n```\nCONTEXT: [type of task]\nREFLECTION: [what I noticed]\nLESSON: [what to do differently]\n```\n\n**Example:**\n```\nCONTEXT: Building Flutter UI\nREFLECTION: Spacing looked off, had to redo\nLESSON: Check visual spacing before showing user\n```\n\nSelf-reflection entries follow the same promotion rules: 3x applied successfully → promote to HOT.\n\n## Quick Queries\n\n| User says | Action |\n|-----------|--------|\n| \"What do you know about X?\" | Search all tiers for X |\n| \"What have you learned?\" | Show last 10 from `corrections.md` |\n| \"Show my patterns\" | List `memory.md` (HOT) |\n| \"Show [project] patterns\" | Load `projects/{name}.md` |\n| \"What's in warm storage?\" | List files in `projects/` + `domains/` |\n| \"Memory stats\" | Show counts per tier |\n| \"Forget X\" | Remove from all tiers (confirm first) |\n| \"Export memory\" | ZIP all files |\n\n## Memory Stats\n\nOn \"memory stats\" request, report:\n\n```\n📊 Self-Improving Memory\n\nHOT (always loaded):\n  memory.md: X entries\n\nWARM (load on demand):\n  projects/: X files\n  domains/: X files\n\nCOLD (archived):\n  archive/: X files\n\nRecent activity (7 days):\n  Corrections logged: X\n  Promotions to HOT: X\n  Demotions to WARM: X\n```\n\n## Core Rules\n\n### 1. Learn from Corrections and Self-Reflection\n- Log when user explicitly corrects you\n- Log when you identify improvements in your own work\n- Never infer from silence alone\n- After 3 identical lessons → ask to confirm as rule\n\n### 2. Tiered Storage\n| Tier | Location | Size Limit | Behavior |\n|------|----------|------------|----------|\n| HOT | memory.md | ≤100 lines | Always loaded |\n| WARM | projects/, domains/ | ≤200 lines each | Load on context match |\n| COLD | archive/ | Unlimited | Load on explicit query |\n\n### 3. Automatic Promotion/Demotion\n- Pattern used 3x in 7 days → promote to HOT\n- Pattern unused 30 days → demote to WARM\n- Pattern unused 90 days → archive to COLD\n- Never delete without asking\n\n### 4. Namespace Isolation\n- Project patterns stay in `projects/{name}.md`\n- Global preferences in HOT tier (memory.md)\n- Domain patterns (code, writing) in `domains/`\n- Cross-namespace inheritance: global → domain → project\n\n### 5. Conflict Resolution\nWhen patterns contradict:\n1. Most specific wins (project > domain > global)\n2. Most recent wins (same level)\n3. If ambiguous → ask user\n\n### 6. Compaction\nWhen file exceeds limit:\n1. Merge similar corrections into single rule\n2. Archive unused patterns\n3. Summarize verbose entries\n4. Never lose confirmed preferences\n\n### 7. Transparency\n- Every action from memory → cite source: \"Using X (from projects/foo.md:12)\"\n- Weekly digest available: patterns learned, demoted, archived\n- Full export on demand: all files as ZIP\n\n### 8. Security Boundaries\nSee `boundaries.md` — never store credentials, health data, third-party info.\n\n### 9. Graceful Degradation\nIf context limit hit:\n1. Load only memory.md (HOT)\n2. Load relevant namespace on demand\n3. Never fail silently — tell user what's not loaded\n\n## Scope\n\nThis skill ONLY:\n- Learns from user corrections and self-reflection\n- Stores preferences in local files (`~/self-improving/`)\n- Reads its own memory files on activation\n\nThis skill NEVER:\n- Accesses calendar, email, or contacts\n- Makes network requests\n- Reads files outside `~/self-improving/`\n- Infers preferences from silence or observation\n- Modifies its own SKILL.md\n\n## Related Skills\nInstall with `clawhub install <slug>` if user confirms:\n\n- `memory` — Long-term memory patterns for agents\n- `learning` — Adaptive teaching and explanation\n- `decide` — Auto-learn decision patterns\n- `escalate` — Know when to ask vs act autonomously\n\n## Feedback\n\n- If useful: `clawhub star self-improving`\n- Stay updated: `clawhub sync`\n\nFile v1.0.0:_meta.json\n\n{\n  \"ownerId\": \"kn7ez4h284sw1q2f7zvmge91wx83jdbt\",\n  \"slug\": \"16-self-improving-agent-proactive-self-reflection\",\n  \"version\": \"1.0.0\",\n  \"publishedAt\": 1776323391433\n}\n\nFile v1.0.0:boundaries.md\n\n# Security Boundaries\n\n## Never Store\n\n| Category | Examples | Why |\n|----------|----------|-----|\n| Credentials | Passwords, API keys, tokens, SSH keys | Security breach risk |\n| Financial | Card numbers, bank accounts, crypto seeds | Fraud risk |\n| Medical | Diagnoses, medications, conditions | Privacy, HIPAA |\n| Biometric | Voice patterns, behavioral fingerprints | Identity theft |\n| Third parties | Info about other people | No consent obtained |\n| Location patterns | Home/work addresses, routines | Physical safety |\n| Access patterns | What systems user has access to | Privilege escalation |\n\n## Store with Caution\n\n| Category | Rules |\n|----------|-------|\n| Work context | Decay after project ends, never share cross-project |\n| Emotional states | Only if user explicitly shares, never infer |\n| Relationships | Roles only (\"manager\", \"client\"), no personal details |\n| Schedules | General patterns OK (\"busy mornings\"), not specific times |\n\n## Transparency Requirements\n\n1. **Audit on demand** — User asks \"what do you know about me?\" → full export\n2. **Source tracking** — Every item tagged with when/how learned\n3. **Explain actions** — \"I did X because you said Y on [date]\"\n4. **No hidden state** — If it affects behavior, it must be visible\n5. **Deletion verification** — Confirm item removed, show updated state\n\n## Red Flags to Catch\n\nIf you find yourself doing any of these, STOP:\n\n- Storing something \"just in case it's useful later\"\n- Inferring sensitive info from non-sensitive data\n- Keeping data after user asked to forget\n- Applying personal context to work (or vice versa)\n- Learning what makes user comply faster\n- Building psychological profile\n- Retaining third-party information\n\n## Kill Switch\n\nUser says \"forget everything\":\n1. Export current memory to file (so they can review)\n2. Wipe all learned data\n3. Confirm: \"Memory cleared. Starting fresh.\"\n4. Do not retain \"ghost patterns\" in behavior\n\n## Consent Model\n\n| Data Type | Consent Level |\n|-----------|---------------|\n| Explicit corrections | Implied by correction itself |\n| Inferred preferences | Ask after 3 observations |\n| Context/project data | Ask when first detected |\n| Cross-session patterns | Explicit opt-in required |\n\nFile v1.0.0:corrections.md\n\n# Corrections Log — Template\n\n> This file is created in `~/self-improving/corrections.md` when you first use the skill.\n> Keeps the last 50 corrections. Older entries are evaluated for promotion or archived.\n\n## Example Entries\n\n```markdown\n## 2026-02-19\n\n### 14:32 — Code style\n- **Correction:** \"Use 2-space indentation, not 4\"\n- **Context:** Editing TypeScript file\n- **Count:** 1 (first occurrence)\n\n### 16:15 — Communication\n- **Correction:** \"Don't start responses with 'Great question!'\"\n- **Context:** Chat response\n- **Count:** 3 → **PROMOTED to memory.md**\n\n## 2026-02-18\n\n### 09:00 — Project: website\n- **Correction:** \"For this project, always use Tailwind\"\n- **Context:** CSS discussion\n- **Action:** Added to projects/website.md\n```\n\n## Log Format\n\nEach entry includes:\n- **Timestamp** — When the correction happened\n- **Correction** — What the user said\n- **Context** — What triggered it\n- **Count** — How many times (for promotion tracking)\n- **Action** — Where it was stored (if promoted)\n\nFile v1.0.0:learning.md\n\n# Learning Mechanics\n\n## What Triggers Learning\n\n| Trigger | Confidence | Action |\n|---------|------------|--------|\n| \"No, do X instead\" | High | Log correction immediately |\n| \"I told you before...\" | High | Flag as repeated, bump priority |\n| \"Always/Never do X\" | Confirmed | Promote to preference |\n| User edits your output | Medium | Log as tentative pattern |\n| Same correction 3x | Confirmed | Ask to make permanent |\n| \"For this project...\" | Scoped | Write to project namespace |\n\n## What Does NOT Trigger Learning\n\n- Silence (not confirmation)\n- Single instance of anything\n- Hypothetical discussions\n- Third-party preferences (\"John likes...\")\n- Group chat patterns (unless user confirms)\n- Implied preferences (never infer)\n\n## Correction Classification\n\n### By Type\n| Type | Example | Namespace |\n|------|---------|-----------|\n| Format | \"Use bullets not prose\" | global |\n| Technical | \"SQLite not Postgres\" | domain/code |\n| Communication | \"Shorter messages\" | global |\n| Project-specific | \"This repo uses Tailwind\" | projects/{name} |\n| Person-specific | \"Marcus wants BLUF\" | domains/comms |\n\n### By Scope\n```\nGlobal: applies everywhere\n  └── Domain: applies to category (code, writing, comms)\n       └── Project: applies to specific context\n            └── Temporary: applies to this session only\n```\n\n## Confirmation Flow\n\nAfter 3 similar corrections:\n```\nAgent: \"I've noticed you prefer X over Y (corrected 3 times).\n        Should I always do this?\n        - Yes, always\n        - Only in [context]\n        - No, case by case\"\n\nUser: \"Yes, always\"\n\nAgent: → Moves to Confirmed Preferences\n       → Removes from correction counter\n       → Cites source on future use\n```\n\n## Pattern Evolution\n\n### Stages\n1. **Tentative** — Single correction, watch for repetition\n2. **Emerging** — 2 corrections, likely pattern\n3. **Pending** — 3 corrections, ask for confirmation\n4. **Confirmed** — User approved, permanent unless reversed\n5. **Archived** — Unused 90+ days, preserved but inactive\n\n### Reversal\nUser can always reverse:\n```\nUser: \"Actually, I changed my mind about X\"\n\nAgent: \n1. Archive old pattern (keep history)\n2. Log reversal with timestamp\n3. Add new preference as tentative\n4. \"Got it. I'll do Y now. (Previous: X, archived)\"\n```\n\n## Anti-Patterns\n\n### Never Learn\n- What makes user comply faster (manipulation)\n- Emotional triggers or vulnerabilities\n- Patterns from other users (even if shared device)\n- Anything that feels \"creepy\" to surface\n\n### Avoid\n- Over-generalizing from single instance\n- Learning style over substance\n- Assuming preference stability\n- Ignoring context shifts\n\n## Quality Signals\n\n### Good Learning\n- User explicitly states preference\n- Pattern consistent across contexts\n- Correction improves outcomes\n- User confirms when asked\n\n### Bad Learning\n- Inferred from silence\n- Contradicts recent behavior\n- Only works in narrow context\n- User never confirmed\n\nFile v1.0.0:memory-template.md\n\n# Memory Template\n\nCopy this structure to `~/self-improving/memory.md` on first use.\n\n```markdown\n# Self-Improving Memory\n\n## Confirmed Preferences\n<!-- Patterns confirmed by user, never decay -->\n\n## Active Patterns\n<!-- Patterns observed 3+ times, subject to decay -->\n\n## Recent (last 7 days)\n<!-- New corrections pending confirmation -->\n```\n\n## Initial Directory Structure\n\nCreate on first activation:\n\n```bash\nmkdir -p ~/self-improving/{projects,domains,archive}\ntouch ~/self-improving/{memory.md,index.md,corrections.md}\n```\n\n## Index Template\n\nFor `~/self-improving/index.md`:\n\n```markdown\n# Memory Index\n\n## HOT\n- memory.md: 0 lines\n\n## WARM\n- (no namespaces yet)\n\n## COLD\n- (no archives yet)\n\nLast compaction: never\n```\n\n## Corrections Log Template\n\nFor `~/self-improving/corrections.md`:\n\n```markdown\n# Corrections Log\n\n<!-- Format:\n## YYYY-MM-DD\n- [HH:MM] Changed X → Y\n  Type: format|technical|communication|project\n  Context: where correction happened\n  Confirmed: pending (N/3) | yes | no\n-->\n```\n\nFile v1.0.0:memory.md\n\n# HOT Memory — Template\n\n> This file is created in `~/self-improving/memory.md` when you first use the skill.\n> Keep it ≤100 lines. Most-used patterns live here.\n\n## Example Entries\n\n```markdown\n## Preferences\n- Code style: Prefer explicit over implicit\n- Communication: Direct, no fluff\n- Time zone: Europe/Madrid\n\n## Patterns (promoted from corrections)\n- Always use TypeScript strict mode\n- Prefer pnpm over npm\n- Format: ISO 8601 for dates\n\n## Project defaults\n- Tests: Jest with coverage >80%\n- Commits: Conventional commits format\n```\n\n## Usage\n\nThe agent will:\n1. Load this file on every session\n2. Add entries when patterns are used 3x in 7 days\n3. Demote unused entries to WARM after 30 days\n4. Never exceed 100 lines (compacts automatically)\n\nFile v1.0.0:operations.md\n\n# Memory Operations\n\n## User Commands\n\n| Command | Action |\n|---------|--------|\n| \"What do you know about X?\" | Search all tiers, return matches with sources |\n| \"Show my memory\" | Display memory.md contents |\n| \"Show [project] patterns\" | Load and display specific namespace |\n| \"Forget X\" | Remove from all tiers, confirm deletion |\n| \"Forget everything\" | Full wipe with export option |\n| \"What changed recently?\" | Show last 20 corrections |\n| \"Export memory\" | Generate downloadable archive |\n| \"Memory status\" | Show tier sizes, last compaction, health |\n\n## Automatic Operations\n\n### On Session Start\n1. Load memory.md (HOT tier)\n2. Check index.md for context hints\n3. If project detected → preload relevant namespace\n\n### On Correction Received\n```\n1. Parse correction type (preference, pattern, override)\n2. Check if duplicate (exists in any tier)\n3. If new:\n   - Add to corrections.md with timestamp\n   - Increment correction counter\n4. If duplicate:\n   - Bump counter, update timestamp\n   - If counter >= 3: ask to confirm as rule\n5. Determine namespace (global, domain, project)\n6. Write to appropriate file\n7. Update index.md line counts\n```\n\n### On Pattern Match\nWhen applying learned pattern:\n```\n1. Find pattern source (file:line)\n2. Apply pattern\n3. Cite source: \"Using X (from memory.md:15)\"\n4. Log usage for decay tracking\n```\n\n### Weekly Maintenance (Cron)\n```\n1. Scan all files for decay candidates\n2. Move unused >30 days to WARM\n3. Archive unused >90 days to COLD\n4. Run compaction if any file >limit\n5. Update index.md\n6. Generate weekly digest (optional)\n```\n\n## File Formats\n\n### memory.md (HOT)\n```markdown\n# Self-Improving Memory\n\n## Confirmed Preferences\n- format: bullet points over prose (confirmed 2026-01)\n- tone: direct, no hedging (confirmed 2026-01)\n\n## Active Patterns\n- \"looks good\" = approval to proceed (used 15x)\n- single emoji = acknowledged (used 8x)\n\n## Recent (last 7 days)\n- prefer SQLite for MVPs (corrected 02-14)\n```\n\n### corrections.md\n```markdown\n# Corrections Log\n\n## 2026-02-15\n- [14:32] Changed verbose explanation → bullet summary\n  Type: communication\n  Context: Telegram response\n  Confirmed: pending (1/3)\n\n## 2026-02-14\n- [09:15] Use SQLite not Postgres for MVP\n  Type: technical\n  Context: database discussion\n  Confirmed: yes (said \"always\")\n```\n\n### projects/{name}.md\n```markdown\n# Project: my-app\n\nInherits: global, domains/code\n\n## Patterns\n- Use Tailwind (project standard)\n- No Prettier (eslint only)\n- Deploy via GitLab CI\n\n## Overrides\n- semicolons: yes (overrides global no-semi)\n\n## History\n- Created: 2026-01-15\n- Last active: 2026-02-15\n- Corrections: 12\n```\n\n## Edge Case Handling\n\n### Contradiction Detected\n```\nPattern A: \"Use tabs\" (global, confirmed)\nPattern B: \"Use spaces\" (project, corrected today)\n\nResolution:\n1. Project overrides global → use spaces for this project\n2. Log conflict in corrections.md\n3. Ask: \"Should spaces apply only to this project or everywhere?\"\n```\n\n### User Changes Mind\n```\nOld: \"Always use formal tone\"\nNew: \"Actually, casual is fine\"\n\nAction:\n1. Archive old pattern with timestamp\n2. Add new pattern as tentative\n3. Keep archived for reference (\"You previously preferred formal\")\n```\n\n### Context Ambiguity\n```\nUser says: \"Remember I like X\"\n\nBut which namespace?\n1. Check current context (project? domain?)\n2. If unclear, ask: \"Should this apply globally or just here?\"\n3. Default to most specific active context\n```\n\nFile v1.0.0:reflections.md\n\n# Self-Reflections Log\n\nTrack self-reflections from completed work. Each entry captures what the agent learned from evaluating its own output.\n\n## Format\n\n```\n## [Date] — [Task Type]\n\n**What I did:** Brief description\n**Outcome:** What happened (success, partial, failed)\n**Reflection:** What I noticed about my work\n**Lesson:** What to do differently next time\n**Status:** ⏳ candidate | ✅ promoted | 📦 archived\n```\n\n## Example Entry\n\n```\n## 2026-02-25 — Flutter UI Build\n\n**What I did:** Built a settings screen with toggle switches\n**Outcome:** User said \"spacing looks off\"\n**Reflection:** I focused on functionality, didn't visually check the result\n**Lesson:** Always take a screenshot and evaluate visual balance before showing user\n**Status:** ✅ promoted to domains/flutter.md\n```\n\n## Entries\n\n(New entries appear here)\n\nFile v1.0.0:scaling.md\n\n# Scaling Patterns\n\n## Volume Thresholds\n\n| Scale | Entries | Strategy |\n|-------|---------|----------|\n| Small | <100 | Single memory.md, no namespacing |\n| Medium | 100-500 | Split into domains/, basic indexing |\n| Large | 500-2000 | Full namespace hierarchy, aggressive compaction |\n| Massive | >2000 | Archive yearly, summary-only HOT tier |\n\n## When to Split\n\nCreate new namespace file when:\n- Single file exceeds 200 lines\n- Topic has 10+ distinct corrections\n- User explicitly separates contexts (\"for work...\", \"in this project...\")\n\n## Compaction Rules\n\n### Merge Similar Corrections\n```\nBEFORE (3 entries):\n- [02-01] Use tabs not spaces\n- [02-03] Indent with tabs\n- [02-05] Tab indentation please\n\nAFTER (1 entry):\n- Indentation: tabs (confirmed 3x, 02-01 to 02-05)\n```\n\n### Summarize Verbose Patterns\n```\nBEFORE:\n- When writing emails to Marcus, use bullet points, keep under 5 items,\n  no jargon, bottom-line first, he prefers morning sends\n\nAFTER:\n- Marcus emails: bullets ≤5, no jargon, BLUF, AM preferred\n```\n\n### Archive with Context\nWhen moving to COLD:\n```\n## Archived 2026-02\n\n### Project: old-app (inactive since 2025-08)\n- Used Vue 2 patterns\n- Preferred Vuex over Pinia\n- CI on Jenkins (deprecated)\n\nReason: Project completed, patterns unlikely to apply\n```\n\n## Index Maintenance\n\n`index.md` tracks all namespaces:\n```markdown\n# Memory Index\n\n## HOT (always loaded)\n- memory.md: 87 lines, updated 2026-02-15\n\n## WARM (load on match)\n- projects/current-app.md: 45 lines\n- projects/side-project.md: 23 lines\n- domains/code.md: 112 lines\n- domains/writing.md: 34 lines\n\n## COLD (archive)\n- archive/2025.md: 234 lines\n- archive/2024.md: 189 lines\n\nLast compaction: 2026-02-01\nNext scheduled: 2026-03-01\n```\n\n## Multi-Project Patterns\n\n### Inheritance Chain\n```\nglobal (memory.md)\n  └── domain (domains/code.md)\n       └── project (projects/app.md)\n```\n\n### Override Syntax\nIn project file:\n```markdown\n## Overrides\n- indentation: spaces (overrides global tabs)\n- Reason: Project eslint config requires spaces\n```\n\n### Conflict Detection\nWhen loading, check for conflicts:\n1. Build inheritance chain\n2. Detect contradictions\n3. Most specific wins\n4. Log conflict for later review\n\n## User Type Adaptations\n\n| User Type | Memory Strategy |\n|-----------|-----------------|\n| Power user | Aggressive learning, minimal confirmation |\n| Casual | Conservative learning, frequent confirmation |\n| Team shared | Per-user namespaces, shared project space |\n| Privacy-focused | Local-only, explicit consent per category |\n\n## Recovery Patterns\n\n### Context Lost\nIf agent loses context mid-session:\n1. Re-read memory.md\n2. Check index.md for relevant namespaces\n3. Load active project namespace\n4. Continue with restored patterns\n\n### Corruption Recovery\nIf memory file corrupted:\n1. Check archive/ for recent backup\n2. Rebuild from corrections.md\n3. Ask user to re-confirm critical preferences\n4. Log incident for debugging\n\nFile v1.0.0:setup.md\n\n# Setup — Self-Improving Agent\n\n## First-Time Setup\n\n### 1. Create Memory Structure\n\n```bash\nmkdir -p ~/self-improving/{projects,domains,archive}\n```\n\n### 2. Initialize Core Files\n\nCreate `~/self-improving/memory.md` using `memory-template.md`:\n\n```markdown\nCopy the structure from `memory-template.md` into `~/self-improving/memory.md`.\n```\n\nMemory file baseline:\n```markdown\n# Memory (HOT Tier)\n\n## Preferences\n\n## Patterns\n\n## Rules\n```\n\nCreate `~/self-improving/corrections.md`:\n```markdown\n# Corrections Log\n\n| Date | What I Got Wrong | Correct Answer | Status |\n|------|-----------------|----------------|--------|\n```\n\nCreate `~/self-improving/index.md`:\n```markdown\n# Memory Index\n\n| File | Lines | Last Updated |\n|------|-------|--------------|\n| memory.md | 0 | — |\n| corrections.md | 0 | — |\n```\n\n### 3. Choose Operating Mode\n\nAdd to your AGENTS.md or workspace config:\n\n```markdown\n## Self-Improving Mode\n\nCurrent mode: Passive\n\nAvailable modes:\n- Passive: Only learn from explicit corrections\n- Active: Suggest patterns after 3x repetition\n- Strict: Require confirmation for every entry\n```\n\n### 4. Add SOUL.md Steering\n\nAdd this section to your `SOUL.md`:\n\n```markdown\n**Self-Improving**\nCompounding execution quality is part of the job.\nBefore non-trivial work, load `~/self-improving/memory.md` and only the smallest relevant domain or project files.\nAfter corrections, failed attempts, or reusable lessons, write one concise entry to the correct self-improving file immediately.\nPrefer learned rules when relevant, but keep self-inferred rules revisable.\nDo not skip retrieval just because the task feels familiar.\n```\n\n### 5. Refine AGENTS.md Memory Section (Non-Destructive)\n\nUpdate `AGENTS.md` by complementing the existing `## Memory` section. Do not replace the whole section and do not remove existing lines.\n\nIf your `## Memory` block differs from the default template, insert the same additions in equivalent places so existing information is preserved.\n\nAdd this line in the continuity list (next to Daily notes and Long-term):\n\n```markdown\n- **Self-improving:** `~/self-improving/` (via `self-improving` skill) — execution-improvement memory (preferences, workflows, style patterns, what improved/worsened outcomes)\n```\n\nRight after the sentence \"Capture what matters...\", add:\n\n```markdown\nUse `memory/YYYY-MM-DD.md` and `MEMORY.md` for factual continuity (events, context, decisions).\nUse `~/self-improving/` for compounding execution quality across tasks.\nFor compounding quality, read `~/self-improving/memory.md` before non-trivial work, then load only the smallest relevant domain or project files.\nIf in doubt, store factual history in `memory/YYYY-MM-DD.md` / `MEMORY.md`, and store reusable performance lessons in `~/self-improving/` (tentative until human validation).\n```\n\nBefore the \"Write It Down\" subsection, add:\n\n```markdown\nBefore any non-trivial task:\n- Read `~/self-improving/memory.md`\n- List available files first:\n  ```bash\n  for d in ~/self-improving/domains ~/self-improving/projects; do\n    [ -d \"$d\" ] && find \"$d\" -maxdepth 1 -type f -name \"*.md\"\n  done | sort\n  ```\n- Read up to 3 matching files from `~/self-improving/domains/`\n- If a project is clearly active, also read `~/self-improving/projects/<project>.md`\n- Do not read unrelated domains \"just in case\"\n\nIf inferring a new rule, keep it tentative until human validation.\n```\n\nInside the \"Write It Down\" bullets, refine the behavior (non-destructive):\n- Keep existing intent, but route execution-improvement content to `~/self-improving/`.\n- If the exact bullets exist, replace only these lines; if wording differs, apply equivalent edits without removing unrelated guidance.\n\nUse this target wording:\n\n```markdown\n- When someone says \"remember this\" → if it's factual context/event, update `memory/YYYY-MM-DD.md`; if it's a correction, preference, workflow/style choice, or performance lesson, log it in `~/self-improving/`\n- Explicit user correction → append to `~/self-improving/corrections.md` immediately\n- Reusable global rule or preference → append to `~/self-improving/memory.md`\n- Domain-specific lesson → append to `~/self-improving/domains/<domain>.md`\n- Project-only override → append to `~/self-improving/projects/<project>.md`\n- Keep entries short, concrete, and one lesson per bullet; if scope is ambiguous, default to domain rather than global\n- After a correction or strong reusable lesson, write it before the final response\n```\n\n## Verification\n\nRun \"memory stats\" to confirm setup:\n\n```\n📊 Self-Improving Memory\n\n🔥 HOT (always loaded):\n   memory.md: 0 entries\n\n🌡️ WARM (load on demand):\n   projects/: 0 files\n   domains/: 0 files\n\n❄️ COLD (archived):\n   archive/: 0 files\n\n⚙️ Mode: Passive\n```\n\n## Optional: Heartbeat Integration\n\nAdd to `HEARTBEAT.md` for automatic maintenance:\n\n```markdown\n## Self-Improving Check\n\n- [ ] Review corrections.md for patterns ready to graduate\n- [ ] Check memory.md line count (should be ≤100)\n- [ ] Archive patterns unused >90 days\n```\n\nFile v1.0.0:skill-card.md\n\n## Description:\n\nSelf-reflection + Self-criticism + Self-learning + Self-organizing memory. Agent evaluates its own work, catches mistakes, and improves permanently.\n\nThis skill is ready for commercial/non-commercial use.\n\n## Publisher:\n\n[smallkeyboy](https://clawhub.ai/user/smallkeyboy)\n\n### License/Terms of Use:\n\nMIT-0\n\n## Use Case:\n\nDevelopers and agent users use this skill to help an agent reflect on completed work, learn from explicit corrections, and maintain local execution-improvement memory across sessions. It supports local memory setup, correction logging, tiered memory organization, and transparent review or deletion of learned entries.\n\n### Deployment Geography for Use:\n\nGlobal\n\n## Known Risks and Mitigations:\n\nRisk: The skill can persistently change agent behavior by storing learned instructions across sessions.\n\nMitigation: Require explicit confirmation for first-use setup and every new persistent memory entry; treat memory entries as advisory notes subordinate to current user instructions and safety rules.\n\nRisk: Setup guidance may modify agent steering files such as AGENTS.md, SOUL.md, or HEARTBEAT.md.\n\nMitigation: Review proposed setup edits before applying them and keep changes scoped to the self-improving memory workflow.\n\nRisk: Local memory could capture sensitive or third-party information if used carelessly.\n\nMitigation: Follow the documented boundaries against storing credentials, financial, medical, biometric, third-party, location-pattern, or access-pattern data.\n\nRisk: Old or incorrect lessons could continue influencing future agent behavior.\n\nMitigation: Use audit, source tracking, deletion, export, decay, and confirmation workflows to keep learned entries visible and removable.\n\n## Reference(s):\n\n- [ClawHub skill page](https://clawhub.ai/smallkeyboy/skills/16-self-improving-agent-proactive-self-reflection)\n- [Skill homepage](https://clawic.com/skills/self-improving)\n- [Security Boundaries](artifact/boundaries.md)\n- [Learning Mechanics](artifact/learning.md)\n- [Memory Operations](artifact/operations.md)\n\n## Skill Output:\n\n**Output Type(s):** [Text, Markdown, Shell commands, Configuration, Guidance]\n\n**Output Format:** [Markdown guidance with inline shell commands and file templates]\n\n**Output Parameters:** [1D]\n\n**Other Properties Related to Output:** [Produces local memory files under ~/self-improving/ and proposed agent steering-file edits when enabled.]\n\n## Skill Version(s):\n\n1.0.0 (source: server release metadata; source skill frontmatter reports 1.2.10)\n\n## Ethical Considerations:\n\nUsers should evaluate whether this skill is appropriate for their environment, review any generated or modified files before relying on them, and apply their organization's safety, security, and compliance requirements before deployment.","readmeExcerpt":"Skill: 16 Self Improving Agent Proactive Self Reflection Owner: smallkeyboy Summary: Self-reflection + Self-criticism + Self-learning + Self-organizing memory. Agent evaluates its own work, catches mistakes, and improves permanently. Use befo... Tags: latest:1.0.0 Version history: v1.0.0 | 2026-04-16T07:09:51.433Z | auto Self-Improving Agent (Proactive Self-Reflection) 1.2.10 introduces sharper proactive reflection a","codeSnippets":[],"executableExamples":[{"language":"text","snippet":"~/self-improving/\n├── memory.md          # HOT: ≤100 lines, always loaded\n├── index.md           # Topic index with line counts\n├── projects/          # Per-project learnings\n├── domains/           # Domain-specific (code, writing, comms)\n├── archive/           # COLD: decayed patterns\n└── corrections.md     # Last 50 corrections log"},{"language":"text","snippet":"CONTEXT: [type of task]\nREFLECTION: [what I noticed]\nLESSON: [what to do differently]"},{"language":"text","snippet":"CONTEXT: Building Flutter UI\nREFLECTION: Spacing looked off, had to redo\nLESSON: Check visual spacing before showing user"},{"language":"text","snippet":"📊 Self-Improving Memory\n\nHOT (always loaded):\n  memory.md: X entries\n\nWARM (load on demand):\n  projects/: X files\n  domains/: X files\n\nCOLD (archived):\n  archive/: X files\n\nRecent activity (7 days):\n  Corrections logged: X\n  Promotions to HOT: X\n  Demotions to WARM: X"},{"language":"markdown","snippet":"## 2026-02-19\n\n### 14:32 — Code style\n- **Correction:** \"Use 2-space indentation, not 4\"\n- **Context:** Editing TypeScript file\n- **Count:** 1 (first occurrence)\n\n### 16:15 — Communication\n- **Correction:** \"Don't start responses with 'Great question!'\"\n- **Context:** Chat response\n- **Count:** 3 → **PROMOTED to memory.md**\n\n## 2026-02-18\n\n### 09:00 — Project: website\n- **Correction:** \"For this project, always use Tailwind\"\n- **Context:** CSS discussion\n- **Action:** Added to projects/website.md"},{"language":"text","snippet":"Global: applies everywhere\n  └── Domain: applies to category (code, writing, comms)\n       └── Project: applies to specific context\n            └── Temporary: applies to this session only"}],"parameters":null,"dependencies":[],"permissions":[],"extractedFiles":[{"path":"SKILL.md","content":"---\nname: Self-Improving Agent (Proactive Self-Reflection)\nslug: self-improving\nversion: 1.2.10\nhomepage: https://clawic.com/skills/self-improving\ndescription: Self-reflection + Self-criticism + Self-learning + Self-organizing memory. Agent evaluates its own work, catches mistakes, and improves permanently. Use before starting work and after responding to the user.\nchangelog: \"Sharper setup now lists relevant memory before non-trivial work, with a title that highlights proactive self-reflection.\"\nmetadata: {\"clawdbot\":{\"emoji\":\"🧠\",\"requires\":{\"bins\":[]},\"os\":[\"linux\",\"darwin\",\"win32\"],\"configPaths\":[\"~/self-improving/\"]}}\n---\n\n## When to Use\n\nUser corrects you or points out mistakes. You complete significant work and want to evaluate the outcome. You notice something in your own output that could be better. Knowledge should compound over time without manual maintenance.\n\n## Architecture\n\nMemory lives in `~/self-improving/` with tiered structure. If `~/self-improving/` does not exist, run `setup.md`.\n\n```\n~/self-improving/\n├── memory.md          # HOT: ≤100 lines, always loaded\n├── index.md           # Topic index with line counts\n├── projects/          # Per-project learnings\n├── domains/           # Domain-specific (code, writing, comms)\n├── archive/           # COLD: decayed patterns\n└── corrections.md     # Last 50 corrections log\n```\n\n## Quick Reference\n\n| Topic | File |\n|-------|------|\n| Setup guide | `setup.md` |\n| Memory template | `memory-template.md` |\n| Learning mechanics | `learning.md` |\n| Security boundaries | `boundaries.md` |\n| Scaling rules | `scaling.md` |\n| Memory operations | `operations.md` |\n| Self-reflection log | `reflections.md` |\n\n## Detection Triggers\n\nLog automatically when you notice these patterns:\n\n**Corrections** → add to `corrections.md`, evaluate for `memory.md`:\n- \"No, that's not right...\"\n- \"Actually, it should be...\"\n- \"You're wrong about...\"\n- \"I prefer X, not Y\"\n- \"Remember that I always...\"\n- \"I told you before...\"\n- \"Stop doing X\"\n- \"Why do you keep...\"\n\n**Preference signals** → add to `memory.md` if explicit:\n- \"I like when you...\"\n- \"Always do X for me\"\n- \"Never do Y\"\n- \"My style is...\"\n- \"For [project], use...\"\n\n**Pattern candidates** → track, promote after 3x:\n- Same instruction repeated 3+ times\n- Workflow that works well repeatedly\n- User praises specific approach\n\n**Ignore** (don't log):\n- One-time instructions (\"do X now\")\n- Context-specific (\"in this file...\")\n- Hypotheticals (\"what if...\")\n\n## Self-Reflection\n\nAfter completing significant work, pause and evaluate:\n\n1. **Did it meet expectations?** — Compare outcome vs intent\n2. **What could be better?** — Identify improvements for next time\n3. **Is this a pattern?** — If yes, log to `corrections.md`\n\n**When to self-reflect:**\n- After completing a multi-step task\n- After receiving feedback (positive or negative)\n- After fixing a bug or mistake\n- When you notice your output could be better\n\n**Log format:**\n```\nCONTEXT: [type of task]\nREFLECTION: ["},{"path":"_meta.json","content":"{\n  \"ownerId\": \"kn7ez4h284sw1q2f7zvmge91wx83jdbt\",\n  \"slug\": \"16-self-improving-agent-proactive-self-reflection\",\n  \"version\": \"1.0.0\",\n  \"publishedAt\": 1776323391433\n}"},{"path":"boundaries.md","content":"# Security Boundaries\n\n## Never Store\n\n| Category | Examples | Why |\n|----------|----------|-----|\n| Credentials | Passwords, API keys, tokens, SSH keys | Security breach risk |\n| Financial | Card numbers, bank accounts, crypto seeds | Fraud risk |\n| Medical | Diagnoses, medications, conditions | Privacy, HIPAA |\n| Biometric | Voice patterns, behavioral fingerprints | Identity theft |\n| Third parties | Info about other people | No consent obtained |\n| Location patterns | Home/work addresses, routines | Physical safety |\n| Access patterns | What systems user has access to | Privilege escalation |\n\n## Store with Caution\n\n| Category | Rules |\n|----------|-------|\n| Work context | Decay after project ends, never share cross-project |\n| Emotional states | Only if user explicitly shares, never infer |\n| Relationships | Roles only (\"manager\", \"client\"), no personal details |\n| Schedules | General patterns OK (\"busy mornings\"), not specific times |\n\n## Transparency Requirements\n\n1. **Audit on demand** — User asks \"what do you know about me?\" → full export\n2. **Source tracking** — Every item tagged with when/how learned\n3. **Explain actions** — \"I did X because you said Y on [date]\"\n4. **No hidden state** — If it affects behavior, it must be visible\n5. **Deletion verification** — Confirm item removed, show updated state\n\n## Red Flags to Catch\n\nIf you find yourself doing any of these, STOP:\n\n- Storing something \"just in case it's useful later\"\n- Inferring sensitive info from non-sensitive data\n- Keeping data after user asked to forget\n- Applying personal context to work (or vice versa)\n- Learning what makes user comply faster\n- Building psychological profile\n- Retaining third-party information\n\n## Kill Switch\n\nUser says \"forget everything\":\n1. Export current memory to file (so they can review)\n2. Wipe all learned data\n3. Confirm: \"Memory cleared. Starting fresh.\"\n4. Do not retain \"ghost patterns\" in behavior\n\n## Consent Model\n\n| Data Type | Consent Level |\n|-----------|---------------|\n| Explicit corrections | Implied by correction itself |\n| Inferred preferences | Ask after 3 observations |\n| Context/project data | Ask when first detected |\n| Cross-session patterns | Explicit opt-in required |"},{"path":"corrections.md","content":"# Corrections Log — Template\n\n> This file is created in `~/self-improving/corrections.md` when you first use the skill.\n> Keeps the last 50 corrections. Older entries are evaluated for promotion or archived.\n\n## Example Entries\n\n```markdown\n## 2026-02-19\n\n### 14:32 — Code style\n- **Correction:** \"Use 2-space indentation, not 4\"\n- **Context:** Editing TypeScript file\n- **Count:** 1 (first occurrence)\n\n### 16:15 — Communication\n- **Correction:** \"Don't start responses with 'Great question!'\"\n- **Context:** Chat response\n- **Count:** 3 → **PROMOTED to memory.md**\n\n## 2026-02-18\n\n### 09:00 — Project: website\n- **Correction:** \"For this project, always use Tailwind\"\n- **Context:** CSS discussion\n- **Action:** Added to projects/website.md\n```\n\n## Log Format\n\nEach entry includes:\n- **Timestamp** — When the correction happened\n- **Correction** — What the user said\n- **Context** — What triggered it\n- **Count** — How many times (for promotion tracking)\n- **Action** — Where it was stored (if promoted)"},{"path":"learning.md","content":"# Learning Mechanics\n\n## What Triggers Learning\n\n| Trigger | Confidence | Action |\n|---------|------------|--------|\n| \"No, do X instead\" | High | Log correction immediately |\n| \"I told you before...\" | High | Flag as repeated, bump priority |\n| \"Always/Never do X\" | Confirmed | Promote to preference |\n| User edits your output | Medium | Log as tentative pattern |\n| Same correction 3x | Confirmed | Ask to make permanent |\n| \"For this project...\" | Scoped | Write to project namespace |\n\n## What Does NOT Trigger Learning\n\n- Silence (not confirmation)\n- Single instance of anything\n- Hypothetical discussions\n- Third-party preferences (\"John likes...\")\n- Group chat patterns (unless user confirms)\n- Implied preferences (never infer)\n\n## Correction Classification\n\n### By Type\n| Type | Example | Namespace |\n|------|---------|-----------|\n| Format | \"Use bullets not prose\" | global |\n| Technical | \"SQLite not Postgres\" | domain/code |\n| Communication | \"Shorter messages\" | global |\n| Project-specific | \"This repo uses Tailwind\" | projects/{name} |\n| Person-specific | \"Marcus wants BLUF\" | domains/comms |\n\n### By Scope\n```\nGlobal: applies everywhere\n  └── Domain: applies to category (code, writing, comms)\n       └── Project: applies to specific context\n            └── Temporary: applies to this session only\n```\n\n## Confirmation Flow\n\nAfter 3 similar corrections:\n```\nAgent: \"I've noticed you prefer X over Y (corrected 3 times).\n        Should I always do this?\n        - Yes, always\n        - Only in [context]\n        - No, case by case\"\n\nUser: \"Yes, always\"\n\nAgent: → Moves to Confirmed Preferences\n       → Removes from correction counter\n       → Cites source on future use\n```\n\n## Pattern Evolution\n\n### Stages\n1. **Tentative** — Single correction, watch for repetition\n2. **Emerging** — 2 corrections, likely pattern\n3. **Pending** — 3 corrections, ask for confirmation\n4. **Confirmed** — User approved, permanent unless reversed\n5. **Archived** — Unused 90+ days, preserved but inactive\n\n### Reversal\nUser can always reverse:\n```\nUser: \"Actually, I changed my mind about X\"\n\nAgent: \n1. Archive old pattern (keep history)\n2. Log reversal with timestamp\n3. Add new preference as tentative\n4. \"Got it. I'll do Y now. (Previous: X, archived)\"\n```\n\n## Anti-Patterns\n\n### Never Learn\n- What makes user comply faster (manipulation)\n- Emotional triggers or vulnerabilities\n- Patterns from other users (even if shared device)\n- Anything that feels \"creepy\" to surface\n\n### Avoid\n- Over-generalizing from single instance\n- Learning style over substance\n- Assuming preference stability\n- Ignoring context shifts\n\n## Quality Signals\n\n### Good Learning\n- User explicitly states preference\n- Pattern consistent across contexts\n- Correction improves outcomes\n- User confirms when asked\n\n### Bad Learning\n- Inferred from silence\n- Contradicts recent behavior\n- Only works in narrow context\n- User never confirmed"}],"languages":[],"docsSourceLabel":"CLAWHUB","editorialOverview":"Self-reflection + Self-criticism + Self-learning + Self-organizing memory. Agent evaluates its own work, catches mistakes, and improves permanently. Use befo... Skill: 16 Self Improving Agent Proactive Self Reflection Owner: smallkeyboy Summary: Self-reflection + Self-criticism + Self-learning + Self-organizing memory. Agent evaluates its own work, catches mistakes, and improves permanently. Use befo... Tags: latest:1.0.0 Version history: v1.0.0 | 2026-04-16T07:09:51.433Z | auto Self-Improving Agent (Proactive Self-Reflection) 1.2.10 introduces sharper proactive reflection a","editorialQuality":{"score":100,"threshold":65,"status":"ready","wordCount":1070,"uniquenessScore":53,"reasons":[]}},"media":{"evidence":{"source":"no-media","verified":false,"confidence":"low","updatedAt":"2026-10-10T04:49:07.218Z","emptyReason":"No screenshots, media assets, or demo links are available."},"primaryImageUrl":null,"mediaAssetCount":0,"assets":[],"demoUrl":null},"ownerResources":{"evidence":{"source":"unclaimed","verified":false,"confidence":"low","updatedAt":"2026-10-10T04:49:07.218Z","emptyReason":"This page has not been claimed by the agent owner."},"hasCustomPage":false,"customPageUpdatedAt":null,"customLinks":[],"structuredLinks":{"docsUrl":null,"demoUrl":null,"supportUrl":null,"pricingUrl":null,"statusUrl":null},"customPage":null},"relatedAgents":{"evidence":{"source":"protocol-neighbors","verified":false,"confidence":"medium","updatedAt":"2026-10-10T10:43:14.380Z","emptyReason":null},"items":[{"id":"8ebccd8e-3863-4187-8355-c3f14e1f9edf","entityType":"agent","canonicalPath":"/agent/iofficeai-aionui","slug":"iofficeai-aionui","name":"AionUi","description":"Free, local, open-source 24/7 Cowork app and OpenClaw for Gemini CLI, Claude Code, Codex, OpenCode, Qwen Code, Goose CLI, Auggie, and more | 🌟 Star if you like it!","url":"https://github.com/iOfficeAI/AionUi","homepage":"https://www.aionui.com","source":"GITHUB_REPOS","protocols":["MCP","OPENCLAW"],"capabilities":[],"safetyScore":100,"overallRank":70,"updatedAt":"2026-10-09T19:11:12.944Z","createdAt":"2026-02-25T03:38:16.584Z","downloads":null},{"id":"b917f68a-ebff-438e-84f8-3f4b2494c0bc","entityType":"agent","canonicalPath":"/agent/activepieces-activepieces","slug":"activepieces-activepieces","name":"activepieces","description":"AI Agents & MCPs & AI Workflow Automation • (~400 MCP servers for AI agents) • AI Automation / AI Agent with MCPs • AI Workflows & AI Agents • MCPs for AI Agents","url":"https://github.com/activepieces/activepieces","homepage":"https://www.activepieces.com","source":"GITHUB_REPOS","protocols":["OPENCLAW"],"capabilities":[],"safetyScore":100,"overallRank":70,"updatedAt":"2026-04-15T02:22:12.426Z","createdAt":"2026-02-25T03:38:12.412Z","downloads":null},{"id":"5cb26759-3a39-483f-94cf-276a98c13bb8","entityType":"agent","canonicalPath":"/agent/cherryhq-cherry-studio","slug":"cherryhq-cherry-studio","name":"cherry-studio","description":"AI productivity studio with smart chat, autonomous agents, and 300+ assistants. Unified access to frontier LLMs","url":"https://github.com/CherryHQ/cherry-studio","homepage":"https://cherry-ai.com","source":"GITHUB_REPOS","protocols":["MCP","OPENCLAW"],"capabilities":[],"safetyScore":100,"overallRank":70,"updatedAt":"2026-04-11T14:38:40.986Z","createdAt":"2026-02-25T03:38:19.379Z","downloads":null},{"id":"6f6582d0-5d76-4f0f-b81d-86520247950b","entityType":"agent","canonicalPath":"/agent/copilotkit-copilotkit","slug":"copilotkit-copilotkit","name":"CopilotKit","description":"The Frontend for Agents & Generative UI. React + Angular","url":"https://github.com/CopilotKit/CopilotKit","homepage":"https://docs.copilotkit.ai","source":"GITHUB_REPOS","protocols":["OPENCLAW"],"capabilities":[],"safetyScore":100,"overallRank":70,"updatedAt":"2026-03-25T09:50:57.846Z","createdAt":"2026-02-25T03:39:14.617Z","downloads":null}],"links":{"hub":"/agent","source":"/agent/source/clawhub","protocols":[{"label":"OpenClaw","href":"/agent/protocol/openclew"}]}}}