agentleFS
protonspyprotonspy/spec-claude-code/.claude/skills/scc-wiki/SKILL.md

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.

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
  1. Distinctive:

    Read the source completely: before writing anything. A page distilled from a skim is worse than no page — it looks authoritative and is not.

    line 25
  2. Very specific:

    Check docs/glossary.md first: If the source names something the project already has a canonical term for, use the canonical term.

    line 30
  3. Distinctive:

    No validator catches this.

    line 47
  4. Very specific:

    Link it in: Add a [[wikilink]] from index.md, or from a page already reachable from it.

    line 50
  5. Very specific:

    Read index.md first, follow wikilinks from there, and answer from the pages.

    line 63
  6. Distinctive:

    If the wiki does not cover it, say so plainly and go read the code.

    line 66
  7. Very specific:

    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 …

    line 83

≈ “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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

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:

  1. Read the source completely before writing anything. A page distilled from a skim is worse than no page — it looks authoritative and is not.
  2. 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.
  3. Check docs/glossary.md first. 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 the glossary skill's job — do it, then come back.
  4. Write the page at docs/wiki/pages/<slug>.md. The filename is the slug, so order-total.md is what [[order-total]] resolves to — the slug never carries the directory. index.md and changelog.md stay one level up, in docs/wiki/: they are the wiki's fixed documents rather than pages, and keeping them out of pages/ 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.md do. A slug lifted out of a sentence does not — into-an-engine.md is 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.

  5. Link it in. Add a [[wikilink]] from index.md, or from a page already reachable from it. A page nobody links is a page nobody finds again.
  6. Record it in changelog.md — what changed, naming the pages with wikilinks.
  7. Delete the source from docs/raw/. This is the step that gets skipped. The finding exists because of it.
  8. scc validate before 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

FindingWhat it meansThe fix
wiki.missing-indexPages exist with no entry point, so every page is an orphan.Write index.md and link the pages.
wiki.broken-linkA [[wikilink]] resolves to no page.Fix the slug, or write the page it was reaching for.
wiki.orphan-pageThe 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-changelogThe wiki has pages and no log of how it got that way.Write changelog.md.
wiki.changelog-desyncThe 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-pageA 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-pageTwo 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-sourceA 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 adr skill. 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 the codewiki skill.
  • 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.

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.