No slash command · from Compound
File a decision, root cause, or discovery into the repo wiki. Use once something has been settled, diagnosed, or learned that the next session would want.
Ships in Compound. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Findings die with the context window unless something writes them down. This is the skill that writes them down, and the reason the wiki compounds instead of rotting: it updates the page, the catalog, the log, and the backlinks in one pass, then proves the graph still holds.
Only run this where a wiki exists. If wiki/index.md is absent, say so and offer
/compound:setup — do not scaffold a knowledge base as a side effect of filing one note.
A page earns its own file when it is a decision, or when at least two existing pages will link to it. Everything else belongs inside a page that already exists.
This is the rule that keeps the wiki a connected graph rather than a directory of stubs. When in doubt, extend an existing page.
An answer counts too. A comparison the user asked for, an analysis that took real reading, a connection nobody had drawn — these are as worth keeping as a decision, and they otherwise vanish into chat history. Filing them is how exploring the codebase compounds instead of being repeated.
Skip filing altogether when the finding is already on a page, or is something the code says plainly. Restating the codebase is how a wiki becomes noise.
Completion criterion: you can name the target — a specific existing page to extend, or a new slug and why it clears the bar.
Every page carries this contract:
---
type: decision | area | bug | concept | roadmap
updated: <today, YYYY-MM-DD>
covers: ["src/auth/**"] # area pages only — the paths this page describes
links: [other-slug, another-slug]
supersedes: [] # decision pages only
---
# A title that states the finding, not the topic
The finding itself, in the project's own vocabulary from CONTEXT.md.
## Related
- [[other-slug]] — why it is related, in a few words
Rules that matter:
wiki/, never in subfolders. Type lives
in frontmatter, so reclassifying a page never breaks a link.index.md should learn something from titles alone.covers: is a promise. On an area page it declares which paths the page
describes, and it is what makes staleness detectable later. Use real globs that
match real files.supersedes:, and mark the old page as
superseded. The wiki keeps its history; contradictions get resolved rather than
silently overwritten.roadmap is for later, not now. When the user describes something worth doing but
not yet — a direction, a rework they keep circling back to, an idea with no date — that
is a roadmap page, not a TODO comment and not a line in a chat that scrolls away.
Record what makes it worth doing and what would have to be true to start; those are the
parts nobody remembers six weeks later. Add it to a roadmap page that already exists
before creating a second one.Completion criterion: the page states what was learned and why it mattered, in
words drawn from CONTEXT.md where they exist.
Three writes, all of them, before you stop:
index.md — add the page under its type heading with a one-line summary.links:, add this page's slug to
that page's links: and its ## Related list. Links are symmetric here; a
one-way link is a defect, not a shortcut.log.md — append one line at the end:
## [YYYY-MM-DD] <decision|bug|area|concept|roadmap> | <page title>
followed by a sentence on what changed and why.Completion criterion: every page named in links: names this page back, and
index.md lists it.
Run ${CLAUDE_PLUGIN_ROOT}/bin/compound-lint <wiki-dir>.
Fix what it reports and run it again. A merge-candidate warning on a genuinely new page is expected and fine — errors are not.
Completion criterion: compound-lint exits 0.
One or two lines: the page, whether it was new or extended, and the pages that now link to it. Enough for the user to disagree, and short enough that it does not interrupt the work they were actually doing.
What SKILL.md sets; muted values are Claude Code's defaults
12 skills in this plugin
/diagnosingFind the cause of a bug that resists — intermittent, mysterious, or a regression between two known-good states. Use when it is not yet clear why something breaks; once the cause is known and reproducible, tdd writes the test./goStart a piece of work properly — interview the user one question at a time until its shape is settled, before anything gets built. Use when a request could reasonably be built several different ways, or when asked to clarify, pin down, or grill out what is actually wanted./guardrailsThe reasoning behind surgical diffs, minimum code, and surfaced assumptions. Use when a scope or simplicity call needs arguing, or the user asks why so much changed.Other plugins' skills for the same job
npx claudepluginhub mthanhlm/compound --plugin compound