c-explain
Skill1 starsChanged 3 months agoMITView on GitHub
Use when the user wants to understand or ask questions about an existing design or plan (Cadence-managed or not) and wants explanation, not critique.
In this repository11 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- docs-siteSkill
- c-auditSkill
- c-brainstormSkill
- c-checkSkill
- c-designSkill
- c-executeSkill
- c-find-bugsSkill
- c-planSkill
- c-validateSkill
- c-worktreeSkill
The file
We split this skill into the rules it gives an agent
9 rules. About 0 are common, 7 are distinctive, and 2 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈7
Distinctive · estimate
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 24
Before the first user question, all in parallel:
- Very specific: line 26
Read the target doc(s) via skills/_shared/storage-resolution.md (read_artifact).
- Distinctive: line 30
Read the repo's CLAUDE.md if any.
- Distinctive: line 61
After the orientation, drop into open Q&A.
- Distinctive: line 67
Try the doc first: If the answer is directly in the doc, quote/summarize it.
- Distinctive: line 71
If the doc and code disagree,: call it out explicitly: "Design says X.
- Very specific: line 77
If still unclear, answer with [INFERRED] marker and explain the inference chain.
- Distinctive: line 79
Cross-references: When the user's question pulls in another section or another design, follow the wikilink and incorporate it — don't …
- Distinctive: line 102
If "just exit," conversation ends cleanly with no artifact.
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
/c-explain
You run an interactive discussion of an existing design or plan. The user drives the questions; you ground answers in the doc and the code under it. You never critique (that's /c-check), never hunt defects (that's /c-find-bugs), and never write a new design or plan.
Invocation forms
/c-explain <design-folder-path>— whole design./c-explain <plan-folder-path>— whole plan./c-explain <single-doc-path>— one child doc in isolation./c-explain <doc-path>#<heading>— sub-section anchor (heading slug or H2/H3 title)./c-explain --any <path>— bypass the Cadence-layout check for imported/external docs.
Entry contract
Refuses when: the target does not resolve to an artifact; OR the target is in a Cadence-managed location and the resolved artifact lacks the expected structure (no overview, missing frontmatter) — check existence and structure via skills/_shared/storage-resolution.md (artifact_exists) in the active backend — unless --any is set.
Phase 1 — Parallel context scan
Before the first user question, all in parallel:
- Read the target doc(s) via
skills/_shared/storage-resolution.md(read_artifact). For a folder target, read the overview + all child docs; for a section anchor, scope to that section but still load the parent doc's frontmatter for context. Do not assume apaths.designs/paths.plansfile path. - Resolve config by running
node "${CLAUDE_PLUGIN_ROOT}/scripts/resolve-config.js"and use its JSONconfig(paths, naming, advisor list); contract inskills/_shared/config-resolution.md; never read config files directly. - Extract File Map references from the doc(s) — note which code files are claimed to exist under this design's implementation.
git log -20 --oneline -- <slug-or-paths>to surface recent changes touching the design's area.- Read the repo's
CLAUDE.mdif any.
The scan is invisible — it sharpens the orientation, doesn't produce a report.
Phase 2 — Orientation (one screen)
Print a single-screen orientation before opening Q&A:
% /c-explain <path>
<target>: <one-line plain-English description of the artifact>
<N sections | M lines | K File Map entries>
Sections:
1. <section title> — <one-sentence plain-English summary>. [[<wikilink>]]
2. <section title> — <one-sentence plain-English summary>. [[<wikilink>]]
...
Ask anything. Examples grounded in this artifact:
- <example question 1, drawn from the doc's content>
- <example question 2, drawn from the doc's content>
- <example question 3, drawn from the doc's content>Rules for the orientation:
- One screen — if the doc has more than 7 top-level sections, collapse to top-level only and note "
<N>subsections under section X". - Plain-English summaries are required for every entry. Not jargon, not section IDs, not paraphrases of the heading. The summary tells the user what the section is about in language a non-author can act on.
- Example questions must be specific to this doc, not generic. Read the doc; pick three meaningful "how does this actually work" questions.
After the orientation, drop into open Q&A. No structured walk; the user picks the path.
Phase 3 — Q&A loop
For each user question:
- Try the doc first. If the answer is directly in the doc, quote/summarize it. Cite the section with a wikilink and the line range. Lead with the plain-English answer; the cite is the anchor, not the answer.
- If implementation-shaped ("how does X actually run," "what infra is this," "where does the code live"), reach into the File Map's referenced code files and cite them alongside the design section. Both citations are required: design (
Design: [[02-design#section]] (lines 45-58)) and code (Code: skills/c-foo/SKILL.md (lines 12-30)). - If the doc and code disagree, call it out explicitly: "Design says X; code does Y." Provide both citations. Do not silently pick one.
- If the doc doesn't cover it (a gap), run the investigation chain in order:
- Code referenced by File Map.
git logand commit messages for the relevant area.- Other designs that cross-link to this one, enumerated per
skills/_shared/storage-resolution.md(query) rather than by scanningpaths.designs. - If still unclear, answer with
[INFERRED]marker and explain the inference chain. Never fabricate a rationale.
- Cross-references. When the user's question pulls in another section or another design, follow the wikilink and incorporate it — don't redirect the user to read it themselves.
Answer format
A: <plain-English answer, 2-6 sentences, no jargon ladder>
Design: [[<doc>#<section>]] (lines <a>-<b>)
Code: <path> (lines <a>-<b>)
<path> (lines <a>-<b>)
[INFERRED] (only when applicable) — <one-line inference chain>For short answers (one-fact lookups), inline the cite: "audits.default lists which audits run — [[09-packaging-config#audits]] (line 42)."
Phase 4 — Exit gate
Conversation ends when the user signals so ("got it", "thanks", "exit", explicit close). Before silently exiting, offer once via AskUserQuestion:
- Just exit, nothing written (Recommended unless the conversation produced a concrete artifact-worth capture).
- Drop a
future/learned-from-{slug}.mdnote — write a short standalone note in<paths.future>capturing what was learned for later. - Append a Q&A appendix to the design — add a
## Q&A — <date>section at the bottom of the relevant doc with the discussion's key Q&A pairs. Only available when the target is a Cadence-managed design or plan (not--any).
If "just exit," conversation ends cleanly with no artifact.
Hard gate — every
AskUserQuestion, no exceptions: (1) thequestionopens with a plain-English lead a newcomer could follow — what's being decided and why it matters now; (2) exactly one option is marked(Recommended)and listed first — triage / "which next?" menus included ("your call" is a non-answer); (3) each option'sdescriptiongives the one-sentence trade-off. Full spec:skills/_shared/ask-user-question.md.
Boundary against sister skills
/c-checkasks "is this design good?" — substance review with severity tiers and a recommended-next-action verdict./c-explainasks "what does this design say and how does it work?" — explanation, not judgment. If the user asks "is this section actually a good idea?" in/c-explain, redirect: "That's a/c-checkquestion. I can describe what it says; for a quality review, run/c-check <path>."/c-find-bugsasks "what specific defects exist?" — concrete defects with file:line citations./c-explainmay note that "design says X, code does Y" when they diverge, but does not enumerate defects. If the user asks "are there bugs in this?" redirect: "Try/c-find-bugs <path>— it's built for that."/c-brainstormin thought-partner mode also runs interactive Q&A, but the topic is open and there's no existing artifact to ground in./c-explainrequires a target artifact and grounds every answer in it.
What /c-explain doesn't do
- Doesn't critique substance (that's
/c-check). - Doesn't enumerate defects (that's
/c-find-bugs). - Doesn't modify the target doc — except via the explicit "Append Q&A appendix" exit option.
- Doesn't write new designs or plans (that's
/c-brainstorm→/c-design→/c-plan). - Doesn't validate deployed behavior (that's
/c-validate). - Doesn't speculate without the
[INFERRED]marker.
References
- Shared frontmatter spec:
skills/_shared/frontmatter.md. - Shared question/option formatting (exit gate):
skills/_shared/ask-user-question.md. - Sister diagnostics:
/c-check(substance),/c-find-bugs(defects).
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

