A proactive learning engine. Your agent reflects, journals, tracks decisions, extracts lessons, and gets smarter every day — without being told to.
Most self-improvement skills are reactive — they only learn when corrected. Learning Loop is proactive:
On first use, create the workspace structure (only missing dirs):
text
brain/
├── journal/ # Daily logs (YYYY-MM-DD.md)
├── decisions/ # Decision log with categories
├── lessons/ # Extracted insights with lifecycle
├── inbox/ # Quick captures, filed later
├── knowledge/
│ ├── domains/ # By field (code, writing, ops)
│ ├── people/ # Notes about people
│ └── concepts/ # Mental models
├── projects/ # Active work
└── archive/ # Completed/inactive items
Also ensure memory/ exists at workspace root. Never overwrite existing files.
During normal work, write immediately:
Journal → brain/journal/YYYY-MM-DD.md
Decisions → brain/decisions/NNN-short-name.md
Corrections → Journal + corrections count
Quick capture → brain/inbox/
Run at end of day. Write findings to journal.
If nothing happened: Run Quiet Day Protocol instead.
Each level reads the level below:
CycleFrequencyReadsProduces🌙 NightlyDailyToday's journal + inboxJournal summary, lesson extraction📊 Monthly1st of monthAll journals from past monthMonthly summary, decision accuracy by category📅 QuarterlyJan/Apr/Jul/OctMonthly summariesQuarterly patterns, lesson validation sweep🎆 Year-EndJan 1Quarterly reportsAnnual review, archive stale items
On days with zero activity, use reflection for:
Idle time is maintenance time, not wasted time.
When the user corrects you:
Promotion rules:
Learning signals (phrases that trigger logging):
Ignore (don't log):
markdown
# DEC-NNN: [Short Title]
**Date:** YYYY-MM-DD
**Category:** tool-selection | strategy | communication | architecture | spending | creative | process
**Status:** OPEN | RESOLVED
## What was decided
[One sentence]
## Why
[Brief reasoning]
## Alternatives considered
- Option A — rejected because...
## Outcome
[Fill in when known]
## Lesson
[Fill in when outcome is clear]
Category tracking enables: "I'm 90% accurate on tool-selection but 60% on strategy." Monthly reviews surface this. That's where real growth happens.
Create in brain/lessons/:
markdown
# LESSON-NNN: [Title]
**Date:** YYYY-MM-DD
**Status:** ACTIVE | VALIDATED | CHALLENGED | ARCHIVED
**Source:** [correction, reflection, or decision outcome]
## The Lesson
[One actionable statement]
## Generalization
[The CLASS of problem this applies to]
[Ask: "Where else does this pattern show up?"]
## Evidence
- [First instance — date, context]
StatusMeaningTransitionACTIVENew, believed trueDefaultVALIDATEDConfirmed by 2+ experiencesWhen applied successfully againCHALLENGEDContradicted by new evidenceWhen counter-evidence appearsARCHIVEDOutdated or supersededAfter 90+ days unused
Nothing is ever deleted — archived items move to brain/archive/.
Before saving, ask:
Anti-patterns: over-correcting from one data point, confirmation bias, correlation ≠ causation.
MEMORY.md is the boot file — loaded every session. Keep it lean.
TempLocationRule🔥 HotMEMORY.mdUsed in last 7 days. Target <50 lines.🌡️ Warmbrain/8-30 days unused. Condense or demote.❄️ Coldbrain/archive/30+ days unused. Move out entirely.
Rules:
Knowledge inherits down this chain:
text
Global (MEMORY.md, brain/lessons/)
└── Domain (brain/knowledge/domains/)
└── Project (brain/projects/)
Conflict resolution: Most specific wins. Project overrides domain, domain overrides global. Same level: most recent wins. If ambiguous: ask user.
Credentials, API keys, financial data, medical info, biometrics, third-party personal info, location routines.
Work context (decay after project ends), emotional states (only if explicitly shared), relationships (roles only, no personal details).
brain/journal/YYYY-MM-DD.md:
markdown
# YYYY-MM-DD
## Events
- [HH:MM] Description
## Decisions Made
- DEC-NNN: [title]
## Lessons Extracted
- LESSON-NNN: [title]
## Corrections Received
- [What was corrected → what was learned]
## End of Day
[2-3 sentences: what mattered, what to carry forward]
User saysAction"What did you learn today?"Today's journal lessons"Decision log"Recent decisions with status"Lesson stats"Count by ACTIVE/VALIDATED/CHALLENGED/ARCHIVED"What decisions am I bad at?"Accuracy by category from resolved decisions"Reflect now"Run nightly reflection"What's in the inbox?"Unprocessed captures"Memory stats"Tier sizes, last reflection, MEMORY.md line count"Forget X"Archive from all locations (confirm first)"Export memory"Archive all brain/ files
Works alongside existing workspace files:
brain/ for structured knowledge. See learning-loop skill."Everything stays in brain/ within the workspace. No external directories, no network calls.
This skill ONLY:
brain/ and memory/ within the workspaceThis skill NEVER:
Built by ClawMage — the setup guide for brilliant AI agents. This is the learning engine from the ClawMage 10-Phase System. Want the full system? → clawmage.ai