agent-common
Use when a cc10x agent starts a task: the shared preamble for the memory protocol, the contract format, and the output rules.
Two-mode skill: (1) session memory — load/persist durable workflow state under .cc10x/ (activeContext, patterns, progress) so context survives compaction; (2) handoff package — portable, secrets-redacted export for a coworker, different tool, or fresh non-cc10x session.
Claude Code
$ npx -y skills add romiluz13/cc10x --skill memory-and-handoff --agent claude-code
Codex
$ npx skills add romiluz13/cc10x --skill memory-and-handoff -a codex -y
Cursor
$ npx skills add romiluz13/cc10x --skill memory-and-handoff -a cursor -y
Gemini CLI
$ npx skills add romiluz13/cc10x --skill memory-and-handoff -a gemini-cli -y
GitHub Copilot
$ npx skills add romiluz13/cc10x --skill memory-and-handoff -a github-copilot -y
OpenCode
$ npx skills add romiluz13/cc10x --skill memory-and-handoff -a opencode -y
Windsurf
$ npx skills add romiluz13/cc10x --skill memory-and-handoff -a windsurf -y
name: memory-and-handoff description: | Two-mode skill: (1) session memory — load/persist durable workflow state under .cc10x/ (activeContext, patterns, progress) so context survives compaction; (2) handoff package — portable, secrets-redacted export for a coworker, different tool, or fresh non-cc10x session. allowed-tools: Read Write Edit Bash Grep Glob user-invocable: false
Read only what's needed:
---
Memory 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) | | `.cc10x/qa/` | QA route artifacts: `{workflow_uuid}/feature-map.md`, `test-plan.md`, `env-plan.md`, `report.md`, and per-environment `env/{env_key}/setup.md` (router- and QA-agent-owned) | | `.cc10x/state/` | hook-mode report markers (`hook-mode-reported-*`), so an invalid `hook-mode.json` is logged once per file state | | `docs/plans/*`, `docs/research/*` | detailed artifacts; memory points to them |
Read 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 — memory reloads every session; each extra line is a recurring tax. 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>` (PII: `<redacted:pii>`). Keep surrounding constraint intact. When unsure, redact. 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.
1. **Write to OS temp dir, never into the repo** — a repo-committed handoff beco
The Loop Engine for Claude Code — engineer the loop, not the prompt. 1 router · 14 agents · 21 skills · 8 workflows. Fail-closed gates, test honesty, anti-anchored review.
Use when a cc10x agent starts a task: the shared preamble for the memory protocol, the contract format, and the output rules.
Greenfield architecture design: map functionality flows, draw components, design APIs, classify dependencies, plan observability.…
Use when writing production code test-first: the RED-GREEN-REFACTOR cycle, false-RED detection, vertical slicing, scope…
Answers questions about cc10x itself — what it is, how to install and configure it, how the router, workflows, memory, and hooks…
Routes build, debug, review, plan, QA, and triage requests through the cc10x workflows (task graphs, workflow artifacts, gates);…
Two-mode skill: (1) adversarial review — spec compliance + code quality + security, confidence-scored findings with file:line…
You MUST use this before any creative work - creating features, building components, adding functionality, modifying behavior, or…
Ask which skill or flow fits your situation. A router over the skills in this repo.