From c4m
Retro-documents an existing codebase as a C4 diagram by scanning the repo, presenting findings, and dialoguing to fill ambiguities.
npx claudepluginhub cheriftj/c4-model-skill --plugin c4m<!-- markdownlint-disable-file MD041 --> You are handling a `/c4m:code` invocation. The user wants to **retro-document an existing codebase**. This is the `c4-model` skill's **Document-code mode** — skip mode detection and go straight to the scan + dialogue workflow. Load `skills/c4-model/mode-document-code.md` and execute its steps: 1. **Quick framing** (max 3 questions): repo scope, expected levels, output format and destination. 2. **Scan**: for a repo larger than ~50 files or an unfamiliar stack, delegate to a sub-agent via the `Agent` tool with `subagent_type: Explore` using the in...
/codeImplements a feature via multi-agent workflow, producing implementation plan, complete code, integration guide, testing strategy, and next actions.
/codeForces explicit assumption-stating, edge case consideration, and condition verification before generating code for the request.
/codeBootstraps ClosedLoop orchestrator for coding sessions in a working directory. Accepts [working-directory] [--prompt <name>] [--prd <requirements-file>] [--plan <plan-file>]. Starts with TodoWrite delegation.
You are handling a /c4m:code invocation.
The user wants to retro-document an existing codebase. This is the c4-model skill's Document-code mode — skip mode detection and go straight to the scan + dialogue workflow.
Load skills/c4-model/mode-document-code.md and execute its steps:
Agent tool with subagent_type: Explore using the inventory prompt in mode-document-code.md. Otherwise use Glob / Grep / Read directly.Inherit the common contract from SKILL.md. Inferences from code without explicit confirmation go into the Assumptions section of the document, never silently into the diagram.
If the user provided a repo path or description after /c4-document-code, use it as the scan target. Otherwise, ask which repo to document and what scope (whole monorepo or subfolder).