0xb1ob/command-post/cp-memory
Claude Code and agent skill by 0xb1ob/command-post
- community
Checking that the SKILL.md file is still in the repository.
Command-post session-memory curation skill (capture, inspect-then-update, decay/archive). Captures, curates, consolidates, and decays session memory under data/learnings.md, data/candidates.md, and data/archive.md. Use when the user asks to curate, consolidate, or archive memory; at session end; every ~10 jobs; or when a worker result yields a machine-local lesson.
Install
npx vskill@latest install 0xb1ob/command-post/cp-memorySKILL.md
The same SKILL.md was published earlier as 0xb1ob/command-post/cp-memory.
cp-memory
Command-post session-memory curation (capture, inspect-then-update, decay/archive).
Operationalize the Memory contract in AGENTS.md. File contracts are created by bin/install.sh when absent. Do not invent a second schema. Do not commit data/.
Run in the command-post home checkout (orchestrator / root pane: muxa parent is empty). Do not write data/ from a leased worktree.
Fresh-home test (routing)
Before any write to data/learnings.md, ask:
Would a fresh, clean command-post home need this?
| Answer | Destination | |
|---|---|---|
| Yes — general orchestration rule | AGENTS.md (rule) + reports/ (rationale); open a PR | |
| Yes — but it is a product defect | Tracked issue (#74–#77, muxa, …); workaround in learnings only until fixed | |
| No — this machine's environment only | data/learnings.md | |
| Not yet sure — needs one more observation | data/candidates.md |
Anything that generalizes to all homes is a contract edit, not memory. Job history lives in br. Project-intrinsic facts → target repo's AGENTS.md via worker PR.
When to run
| Trigger | Pass | |
|---|---|---|
| Worker result or failure, machine-local lesson observed | Capture only | |
| User asks to curate / consolidate / archive memory | Curation | |
| Session end | Curation | |
| ~10 jobs since last curation | Curation |
Most jobs yield nothing. Capture is not promotion.
Files
| File | Role | Write rule | |
|---|---|---|---|
data/learnings.md | Machine-local residue + interim workarounds | Inspect-then-update; stay small | |
data/candidates.md | Observations awaiting routing | Append-only | |
data/archive.md | Demoted or absorbed entries | Append with provenance |
Read each file's HTML contract before writing.
Write shapes (from bin/install.sh; do not add fields):
Tiers on learnings lines only: <!--P--> pinned; <!--a:DATE--> aging (≥30d); <!--p:DATE--> perishable (≥7d; must name expiry e.g. issue #N).
Capture
On a worker's final report, ask whether the lesson is machine-local or an un-promoted workaround. If it generalizes → candidate for contract PR, not learnings — append to data/candidates.md with a note to route to AGENTS.md.
Append one dated line to data/candidates.md when:
- Environment-specific (paths, TMUX shell env, local muxa recovery before upstream fix)
- Interim workaround tied to an open issue with a named expiry
Skip: job outcomes, PR URLs, rules every clone needs, project-intrinsic facts.
Do not touch data/learnings.md during capture.
Curation
- Read
data/learnings.mdanddata/candidates.mdin full. - Route generalizable candidates to contract edits (PR) — do not promote them
into learnings.
- Classify remaining learnings: duplicate / superseding / obsoleting / archive.
- Run decay on dated entries.
- Enforce budget (~60 lines learnings).
- Write learnings; append archived lines with Now: provenance (file + section).
- Leave
data/candidates.mdappend-only except never rewrite/delete lines.
Consolidation
Over ~60 lines: archive absorbed or stale entries until under. Pinned entries are not dropped to save space.
Decay
Lazy at curation only. Perishable ≥7d → check named condition; aging ≥30d unreinforced → archive. Reinforcement = used this session, not re-reading memory. Never delete.
Retrieval
- Session start: read
data/learnings.md(residue should be brief). - Pre-dispatch: AGENTS.md + reports first;
rg -i "<repo>" data/only if needed.
Do not load data/archive.md wholesale. Past jobs: br list, br search.
Report
One line per file: unchanged / captured / rewritten / archived / routed-to-contract. Counts and any contract PR still needed. No file dumps.
Do not
- Promote general orchestration rules into learnings (they belong in AGENTS.md)
- Blind-append to learnings or rewrite candidates
- Delete entries
- Commit
data/ - Edit a target repo's AGENTS.md from the orchestrator pane without dispatch
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/cp-memory/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/0xb1ob/command-post/cp-memory)