---
name: self-improvement
description: Capture a durable fix, discovery or token-burning workaround so the next chat starts ahead - evidence bar, promotion gate, forge routing, and a curator that merges only verified lessons.
---
# Self-improvement
The bundle is the foundation. A fix that stays in one chat is a fix the next chat
pays for again. Capture it, verify it, promote it, curate it.
## The loop
1. **Capture** as `observed`:
`python TOOLS/lesson.py add --title "..." [--scope bundle|forge:<owner>]`
2. **Verify** by reproducing, then record evidence:
`python TOOLS/lesson.py verify L001 --evidence "file:<path>"` or
`"cmd:<command> @ <sha> exit=0"`.
3. **Promote** into the bundle:
`python TOOLS/lesson.py promote L001 --to _CANONICAL-SKILLS/<skill>/SKILL.md`
The promotion is the commit that edits the target, so it is reviewable and
reversible.
4. **Curate** verified rows on a schedule; reject the wrong ones with a reason.
## When to capture
- A fix that took more than one attempt.
- A workaround for an app or tool that has no CLI or API.
- The same navigation or setup burning tokens in more than one chat.
- A missing tool, MCP or skill that would have saved the task.
- A stale instruction, path or version that misled you.
- A defect in an owner forge (route it to that owner, never patch it from outside).
## Where it goes
| Scope | Destination | How |
|---|---|---|
| Bundle behavior, skill, tool use case | `LESSONS.md`, then the skill/reference or `PROFILES.json` `use_when` | `lesson.py` |
| Owner forge defect | that forge's `FIELD-REPORTS.md` | `lesson.py add --scope forge:<owner>` or `TOOLS/field_report.py <owner>` |
| Project-specific fact | the project's `STATE.md` | direct, short |
| Repeated UI navigation | `LESSONS.md` scope `mcp-candidate` | exact steps and the data needed; curator decides on an MCP |
<!-- ‹guest · 2026-12-02› -->
## The evidence bar
- `observed` is a note, not a skill. Never promote it.
- `verified` needs a check the tool can repeat: a file that exists, or a command
recorded at an ancestor SHA with `exit=0`.
- A smaller model may capture and propose. Only evidence plus a stronger review
promotes. That is how a guess cannot steer a better model down the wrong path.
- A rejected lesson keeps its reason so a later chat does not re-propose it.
- Promoted text is short, imperative and cites the evidence. No "I think".
- When two lessons conflict, the one with the newer reproducible evidence wins;
record why the other was rejected.
## Curator pass
Run at the end of a release, or when usage resets:
1. `python TOOLS/lesson.py list --status verified`
2. For each row: merge it into the named skill, reference or `use_when`, or
reject it with the reason.
3. Update `MEMORY.md` if a doc changed, then run the gate.
4. File forge defects with `field_report.py`; do not patch an owner from outside.
5. Mark the row `promoted` with the exact path.
## MCP candidate rule
If the same app navigation costs tokens in two different chats, write the exact
steps and the data you needed. The curator decides whether a small MCP
(`build-mcp-server`, `build-mcpb`) is cheaper than repeating it. Never generate a
server from one observation.
این نسخه با نشانهگذاری اختصاصی حساب شما نمایش داده میشود. برای نصب سریع، به تب نصب و راهاندازی بروید.