From cc10x
Loads and persists durable workflow state under .cc10x/ (activeContext, patterns, progress) and exports portable, secrets-redacted handoff packages for coworker or tool transitions.
How this skill is triggered — by the user, by Claude, or both
Slash command
/cc10x:memory-and-handoffThis skill is limited to the following tools:
The summary Claude sees in its skill listing — used to decide when to auto-load this skill
- `references/memory-model-and-ownership.md` — memory surfaces, ownership, promotion, workflow markers
references/memory-model-and-ownership.md — memory surfaces, ownership, promotion, workflow markersreferences/memory-operations.md — permission-free operations, router-only persistence, edit patternsreferences/memory-file-contracts.md — required headings, stable anchors, templates, auto-heal rulesreferences/context-budget-and-checkpointing.md — context-budget rules, warning signs, checkpoint triggersMemory is an index, not a transcript. Distill decisions, learnings, references, and verification evidence into durable, reusable notes.
| File | Holds |
|---|---|
.cc10x/activeContext.md | current focus, recent changes, decisions, learnings, references, blockers |
.cc10x/patterns.md | reusable project standards, gotchas, conventions, skill hints |
.cc10x/progress.md | current workflow, tasks snapshot, completed items, verification evidence |
.cc10x/workflows/{wf}.json + .events.jsonl | durable orchestration truth (machine-owned, verbatim) |
docs/plans/*, docs/research/* | detailed artifacts; memory points to them |
.cc10x/*.md directlyMEMORY_NOTES in their Router Contract### Memory Notes (For Workflow-Final Persistence)[DEBUG-RESET: wf:{...}], [cc10x-internal] memory_task_id) are read and respected; agents do not invent replacementsRead all three: activeContext.md, patterns.md, progress.md.
Re-read before: architectural decisions (patterns.md + activeContext.md ## Decisions), implementation choices (patterns.md + activeContext.md), debugging (all three), planning next steps (progress.md + activeContext.md), claiming completion (progress.md + plan/design/research refs), user says "continue" (all three).
Emit MEMORY_NOTES in Router Contract:
MEMORY_NOTES:
learnings: ["Key causal insight"]
patterns: ["Reusable gotcha or convention"]
verification: ["`npm test` -> exit 0"]
deferred: ["Non-blocking follow-up or risk"]
Keep each entry one line. Prefer stable nouns over temporary wording. Put verification truth in verification, not prose. Put non-blocking work in deferred, not ad-hoc tasks.
Persist only memory-worthy items: decisions that change direction, learnings that prevent mistakes, verification evidence with commands and exit truth, deferred non-blocking issues, plan/design/research references, clarified user standards.
Do not persist: whole diffs, verbose logs, celebratory narration, "looked correct" without evidence, duplicate notes, raw secrets/PII in outward artifacts.
Before router persists cc10x-authored content into outward artifacts (docs/plans/*, docs/research/*, design docs, persisted memory notes): redact pasted tokens, API keys, connection-strings, credentials, PII. Replace with <redacted:secret>. Keep surrounding constraint intact. Does NOT apply to internal machine-owned .cc10x/ orchestration state — that stays verbatim for resume/dedupe keys.
| Tier | What | Rule |
|---|---|---|
| KEEP | user hard-constraints/prohibitions, exact next step, open failures + errors | preserve VERBATIM — never paraphrase a constraint or error |
| SUMMARIZE | resolved decisions with rationale, concluded attempts, discovered file/module boundaries | distill to one durable line each |
| DROP | decorative prose, step-by-step diary, superseded speculation, redundant prompt retellings | discard |
Persist user PROHIBITIONS verbatim into workflow artifact's intent field as soon as stated — compaction may fire before router's normal persist.
After loading memory, check patterns.md ## Project SKILL_HINTS. Invoke listed skills when relevant and installed. Treat missing skills as non-fatal. Do not invent skill IDs. Do not edit ## Project SKILL_HINTS directly — surface recommendations in planner output or memory notes.
A portable, human-readable export for when the next reader is NOT this cc10x session — a coworker, a different tool, or a clean session with no cc10x router.
cc10x's own resume is structural (.cc10x/ + router rehydrates). The handoff package is the bridge OUT to a reader who cannot read .cc10x/ orchestration state.
HANDOFF="${TMPDIR:-/tmp}/handoff-$(date +%Y%m%d-%H%M%S).md". Print the absolute path.file:line where code may still drift.<redacted:secret>, <redacted:pii>. Keep surrounding constraint intact. When unsure, redact.| Section | Holds |
|---|---|
| Goal | one-line objective, verbatim user intent if stated |
| Current state | where things stand, one short paragraph |
| What's done | reference artifacts by path; do not re-narrate |
| What's next | EXACT next step — concrete enough to start cold |
| Open blockers / failures | unresolved errors VERBATIM, failing commands, dead ends tried |
| Suggested skills / tools | which skills the next agent should invoke to continue |
| Artifacts (by path) | plan, diff/PR, key source files with behavioral descriptions |
The "suggested skills/tools" pointer is load-bearing: tell the next agent how to continue. If cc10x is present: invoke cc10x-router. If not: name domain skills and point at plan/research docs.
Memory is not just for context survival — it's for system self-improvement. After every BUILD or DEBUG cycle, structured learnings should compound into reusable knowledge.
MEMORY_NOTES into activeContext.md ## Learnings and patterns.md ## Common Gotchas.patterns.md and activeContext.md to avoid repeating solved problems.patterns.md, promote it to a dedicated reference file or skill section.When reviewing prior learnings during memory-finalize, apply one of five outcomes:
| Outcome | When | Action |
|---|---|---|
| Keep | Learning is still accurate and useful | Leave as-is |
| Update | Learning is correct but incomplete | Add the missing detail |
| Consolidate | Same lesson appears multiple times | Merge into one entry, remove duplicates |
| Replace | Learning is outdated or superseded | Replace with the current truth |
| Delete | Learning no longer applies (framework changed, code removed) | Remove it |
Why this matters: Without consolidation, memory accumulates stale entries that mislead future work. The compounding loop ensures memory gets sharper over time, not just larger.
Memory files (activeContext.md, patterns.md, progress.md) are for session-scoped context. For durable, structured learnings that survive across projects and sessions, write to docs/solutions/.
After any non-trivial debug or build cycle, the router (during memory-finalize) should evaluate whether to write a solution doc:
# [Problem Title]
Category: [debugging | architecture | testing | workflow | conventions]
Tags: [comma-separated]
Date: YYYY-MM-DD
## Problem
[What went wrong — symptoms, not just the error message]
## What Didn't Work
[Hypotheses that failed and why]
## Solution
[What actually worked — with code example if applicable]
## Why
[Why the solution works — the underlying principle]
## Prevention
[How to prevent this class of problem in the future]
docs/solutions/ as context before starting new workCLAUDE.md or AGENTS.md points to docs/solutions/ so agents can find itThis closes the loop: every solved problem makes the next problem easier. Without docs/solutions/, the system repeats mistakes. With it, the system compounds knowledge.
npx claudepluginhub romiluz13/cc10x --plugin cc10xManages persistent memory across sessions with .claude/memory/ for state and .ai/ for architecture/patterns. Guides scratchpad updates, session workflows, and live docs.
Manages cross-session memory persistence by saving work history, decisions, and learned patterns to `.claude/memory/`. Useful for continuing work across sessions.
Persists learnings into a 5-layer memory hierarchy (CLAUDE.md files, memory/MEMORY.md) and consolidates by pruning outdated entries and promoting recurring patterns. Triggers on 'extract learnings', 'remember', 'dream'.