0xb1ob/command-post/cp-memory

Claude Code and agent skill by 0xb1ob/command-post

Trust tier 3
  • community
Source check pending

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-memory

SKILL.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?
AnswerDestination
Yes — general orchestration ruleAGENTS.md (rule) + reports/ (rationale); open a PR
Yes — but it is a product defectTracked issue (#74–#77, muxa, …); workaround in learnings only until fixed
No — this machine's environment onlydata/learnings.md
Not yet sure — needs one more observationdata/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

TriggerPass
Worker result or failure, machine-local lesson observedCapture only
User asks to curate / consolidate / archive memoryCuration
Session endCuration
~10 jobs since last curationCuration

Most jobs yield nothing. Capture is not promotion.

Files

FileRoleWrite rule
data/learnings.mdMachine-local residue + interim workaroundsInspect-then-update; stay small
data/candidates.mdObservations awaiting routingAppend-only
data/archive.mdDemoted or absorbed entriesAppend with provenance

Read each file's HTML contract before writing.

Write shapes (from bin/install.sh; do not add fields):

# candidates.md — one dated line
YYYY-MM-DD <one-line lesson>
# learnings.md — one line each
- YYYY-MM-DD what happened; what to do; evidence: <source>. <!--tier-->
# archive.md — absorbed to contract
- YYYY-MM-DD (from data/learnings.md, <!--…-->, archived YYYY-MM-DD): <entry>. Reason: <why>. Now: AGENTS.md §X / reports/foo.md#anchor

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

  1. Read data/learnings.md and data/candidates.md in full.
  2. Route generalizable candidates to contract edits (PR) — do not promote them

into learnings.

  1. Classify remaining learnings: duplicate / superseding / obsoleting / archive.
  2. Run decay on dated entries.
  3. Enforce budget (~60 lines learnings).
  4. Write learnings; append archived lines with Now: provenance (file + section).
  5. Leave data/candidates.md append-only except never rewrite/delete lines.

Consolidation

bash
wc -l data/learnings.md

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

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
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/0xb1ob/command-post/cp-memory/badge)](https://verified-skill.com/skills/0xb1ob/command-post/cp-memory)

Something wrong with this skill or its page? Tell us.