scc-wiki
Skill4 starsChanged 2 months agoApache-2.0View on GitHub
Build and maintain docs/wiki/ — one page per concept, linked with wikilinks and reachable from index.md. Use it to distil a source from docs/raw/, to answer from accumulated knowledge, and on any wiki.* finding.
In this repository9 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- gauntlet-loopSkill
- scc-adrSkill
- scc-codewikiSkill
- scc-glossarySkill
- scc-initSkill
- scc-plan-runSkill
- scc-prdSkill
- scc-stackSkill
The file
We split this skill into the rules it gives an agent
7 rules. About 0 are common, 3 are distinctive, and 4 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈3
Distinctive · estimate
This author's own choices. Worth a look.
4
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 25
Read the source completely: before writing anything. A page distilled from a skim is worse than no page — it looks authoritative and is not.
- Very specific: line 30
Check
docs/glossary.mdfirst: If the source names something the project already has a canonical term for, use the canonical term. - Distinctive: line 47
No validator catches this.
- Very specific: line 50
Link it in: Add a [[wikilink]] from index.md, or from a page already reachable from it.
- Very specific: line 63
Read index.md first, follow wikilinks from there, and answer from the pages.
- Distinctive: line 66
If the wiki does not cover it, say so plainly and go read the code.
- Very specific: line 83
index.mdis a map, not a dump: When it grows into a flat list of every page, group it — the entry point earns its keep by making the …
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 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
You own docs/wiki/: the durable half of what this project knows. A spec says what
one feature does now; the wiki says what is true across features and outlasts them.
The format is not yours to invent — it is in
.claude/rules/knowledge-base.md, and scc validate enforces it.
This skill is the procedure.
Nothing asked for
$ARGUMENTS is the request. Empty, the default job is docs/raw/: anything sitting
there is unprocessed work. If raw/ is empty, run scc validate and clear whatever
wiki.* findings it reports. If there are none, say so rather than inventing pages.
Ingest — something landed in docs/raw/
raw/ is a drop box, not storage. A file still there is unfinished work, and
scc validate says so by name. Empty it:
- Read the source completely before writing anything. A page distilled from a skim is worse than no page — it looks authoritative and is not.
- Decide the concept, not the document. One page per concept. A source that covers three concepts becomes three pages, or one page and two edits to pages that already exist. Do not mirror the source's own structure.
- Check
docs/glossary.mdfirst. If the source names something the project already has a canonical term for, use the canonical term. If it coins a term worth keeping, that is theglossaryskill's job — do it, then come back. Write the page at
docs/wiki/pages/<slug>.md. The filename is the slug, soorder-total.mdis what[[order-total]]resolves to — the slug never carries the directory.index.mdandchangelog.mdstay one level up, indocs/wiki/: they are the wiki's fixed documents rather than pages, and keeping them out ofpages/is what lets the validator tell content from structure without matching filenames.Name it for the concept, as something that stands on its own. A
[[wikilink]]shows the reader the slug and nothing else, so the slug carries the whole signal: it has to answer "what is this page about?" with no other context on screen.order-total.md,retry-policy.md,sprite-atlas.mddo. A slug lifted out of a sentence does not —into-an-engine.mdis the tail of somebody's heading, and a year later nobody can tell what page that was without opening it. Test it by reading the filename alone: if it is not a thing this project has, rename it.No validator catches this. Every wiki check is about the graph — whether the link resolves, whether the page is reachable — and a badly named page passes all of them, which is exactly why it is on you here.
- Link it in. Add a
[[wikilink]]fromindex.md, or from a page already reachable from it. A page nobody links is a page nobody finds again. - Record it in
changelog.md— what changed, naming the pages with wikilinks. - Delete the source from
docs/raw/. This is the step that gets skipped. The finding exists because of it. scc validatebefore you call it done.
A source that turns out not to be worth a page still gets deleted. "Read and rejected" is a complete outcome; leaving the file behind pretends the work is pending.
Query — answer from what is already known
Read index.md first, follow wikilinks from there, and answer from the pages. Cite
the page you answered from so the reader can check you.
If the wiki does not cover it, say so plainly and go read the code. Then consider whether what you just had to reconstruct should have been a page — the second time someone reconstructs the same thing is the signal, not the first.
Maintain — clear what scc validate reports
| Finding | What it means | The fix |
wiki.missing-index | Pages exist with no entry point, so every page is an orphan. | Write index.md and link the pages. |
wiki.broken-link | A [[wikilink]] resolves to no page. | Fix the slug, or write the page it was reaching for. |
wiki.orphan-page | The page exists and nothing reaches it. | Link it from index.md or from a reachable page. Or delete it — an unreachable page nobody has missed is a candidate. |
wiki.missing-changelog | The wiki has pages and no log of how it got that way. | Write changelog.md. |
wiki.changelog-desync | The log names a page that no longer exists. | The page was renamed or removed; the log is a record, so correct the entry rather than rewriting history around it. |
wiki.legacy-page | A page sits directly in docs/wiki/, from before pages/. | git mv it into docs/wiki/pages/. The slug does not change, so no wikilink moves with it. |
wiki.duplicate-page | Two files claim one slug, so [[it]] is ambiguous. | Usually half a migration: keep the copy in pages/, delete the other once you have merged anything only it has. |
wiki.unprocessed-source | A file is still in docs/raw/. | Ingest it, above. |
index.md is a map, not a dump. When it grows into a flat list of every page,
group it — the entry point earns its keep by making the shape of the knowledge
visible, and a hundred unsorted links do the opposite.
What does not belong here
- A decision that is hard to reverse. That is an ADR — use the
adrskill. The wiki can link to it; it does not restate it. - An explanation of specific code. That is
docs/codewiki/, where every claim cites the lines it is about — use thecodewikiskill. - What one feature does now. That is
specs/<feature>/requirements.md. - Anything you have not verified. The wiki's whole value is that it can be trusted without checking. One confidently wrong page costs more than the ten correct ones beside it earn.
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.

