/unreal-skills:docs [taxonomy|reverse|audit]from Unreal Harness Skills
Generates and maintains a game project's architecture documentation system with forward/reverse taxonomies and audit loops for Unreal Engine projects.
Ships in Unreal Harness Skills. 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.
One skill, one namespace, for standing up and maintaining a game project's documentation as a bidirectionally-navigable, code-synced knowledge base. Genericized from a production UE reference project's proven model so any game gets the same workbench.
A documentation system is five layers, with code as ground truth at the bottom:
| Layer | Artifact | Navigation |
|---|---|---|
| 1 | Project root CLAUDE.md — constitution + router | — |
| 2 | docs/architecture/INDEX.md — doc router (1 line/doc, no status tags) | — |
| 3 | docs/architecture/**/*.md — the architecture docs (written by /architect) | — |
| 4 | TAXONOMY.md — file-by-file source atlas | forward: architecture → files (top-down) |
| 5 | source-tree folder CLAUDE.md files | reverse: leaf folder → owning doc (bottom-up) |
| — | code | ground truth |
The two taxonomies are duals. The forward atlas (layer 4) lets an agent explore from the top; the reverse pointers (layer 5) stop an agent that lands deep in a folder — chasing a symbol, wandering leaf-to-sibling-leaf — from drifting off the architectural principles the docs encode. Three concerns keep all of it honest against the code: the forward index (/docs taxonomy), the reverse pointers (/docs reverse), and the doc-body verification loop (/docs audit). The doc bodies themselves (layer 3) are authored by /architect — this skill indexes, points at, and verifies them; it never writes them.
$ARGUMENTS selects the mode:
taxonomy (aliases: forward, map, atlas, index) → build/maintain the forward taxonomy.reverse (aliases: backward, link, pointers, annotate) → build/maintain the reverse taxonomy.audit (aliases: sync, verify, stale, check) → verify the docs against the code.If no mode is given, infer it from the request ("the docs are stale" → audit; "index the codebase" → taxonomy; "point folders at their docs" → reverse). If genuinely ambiguous, ask with AskUserQuestion. To write or update a doc body, this is the wrong skill — use /architect; say so and stop.
projects/<Name>/ (self-managing, gitignored) — or you may be pointed at an adopted external project. The docs tree is <project>/docs/architecture/. Never touch the harness's own src//docs/ unless explicitly asked. If no project is named and several exist under projects/, ask which with AskUserQuestion.<project>/Source/<Module>/ — read <Name>.uproject for module names), Blueprint/content (<project>/Content/**, indexed by asset via asset_list/bp_brief), backend/non-engine (<project>/src/, service/, web/, tools/ — TS on Bun by convention). Index/annotate/audit whichever exist. A pure-Blueprint game's atlas is an asset map, not a .cpp map.Write/Edit targets a .md. Bash is for ls/git log/git diff — reading, never mutation./architect standard: no line numbers, no copy-pasted code bodies; names exactly as they appear on disk; slim and architectural; status vocabulary Implemented / Partially implemented / Scaffolding / Planned / Design-only; denormalized living docs./architect's work queue. Note the hand-offs in your report./neo4j when the project maintains a graph projection and you need cross-cutting structure (interface implementers, execution chains, hardcoded constants) to group, route, or verify correctly.taxonomy — the forward source atlasBuild the document an agent reads to navigate the game from the top down: which systems exist, which files implement them, where each doc lives. Two artifacts under <project>/docs/architecture/:
An atlas, not an encyclopedia. Every entry is a pointer with a one-line responsibility, never an explanation — if a row needs a paragraph, that detail belongs in an architecture doc, and the row should point at it. Recommended shape (a small project needs only the per-folder sections):
.cpp satellites noted inline with →").UActorComponent/USubsystem set and who owns each.## Folder/ — Short Title per meaningful source folder, each a | File | What lives here | table. This is the bulk and the part agents grep.Rules:
→ satellite convention. When one class's .cpp is split across satellite files that share a header, list each satellite as its own →-prefixed row beneath the header's row, and have the header row note the split and name the satellites (… split across 6 .cpp — _Input / _TickCombat / …).See systems/OBJECT_SYSTEM.md), making the atlas a launch point into the specs.One line per architecture document, grouped by domain subfolder (gameplay/, systems/, networking/, presentation/, services/, process/, …). A router, not a summary, carrying no status tags — each doc's own status header is authoritative, so the router never drifts when a system ships. Include the maintenance note: "when a new architecture doc is created (/architect), add a row here." If the project has no docs/architecture/ tree yet, create the directory and a minimal INDEX.md + TAXONOMY.md skeleton; the doc bodies come from /architect.
Build from ground truth: Glob/ls the source roots for the real tree (it is the System Map skeleton); read .h headers for an accurate one-liner (rarely need the .cpp body for an atlas row); class_query/class_inspect or grep : public A... for the inheritance tree; counts must match ls | wc -l. When maintaining, work in small verified passes: pick a section (or the churned files since last pass via git diff --name-only), ask "what would I want to know from a top level of this section?", reconcile against disk (no dangling rows, no missing files), keep it slim, stop after one solid improvement.
reverse — backward references from leaves to docsPlace (and keep current) small backward-reference CLAUDE.md files at sensible folder levels of the source tree, each pointing up to the architecture doc owning that area — the reverse of the atlas. You need the architecture docs already in place to point to; if none exist, run /docs taxonomy + /architect first, or record the gap and stop.
Keep it brief — a pointer, not an essay. The proven shape (match any existing folder-CLAUDE.md voice in the project):
# Folder/ — Short Descriptive Title.Inventory/").**Read first:** line — the single primary parent doc by path, with a clause on what it owns: "Read first: docs/architecture/systems/OBJECT_SYSTEM.md — the parent doc (equipment as part of the unified object system: definitions, instances, slots, transfers)." This is the highest-value line in the file.## Backward references — a three-column table | Sub-group | Files | Architecture doc | when the folder spans several concerns: each row maps a sub-grouping and its files to the doc(s) that govern it. A row may point at more than one doc with a clause ("worn-equipment visual state is server-published, not client-re-derived → networking/REPLICATION.md").## The invariants that govern this folder (≤3) — the load-bearing rules an agent must not violate while editing here, bolded, at the architectural level, pulled from the owning doc (don't invent them).UI/, the world-map cue in WorldMap/…), so the agent doesn't rediscover the spread.Purely architectural and structural — no line references, no code, no implementation steps. Use file/class names exactly as on disk.
Restraint is the skill. A CLAUDE.md in every folder is noise. Annotate a folder only if all three are yes: Can I describe the logical grouping here? Can I point to a correct, existing doc? Will this genuinely help an agent that lands here? Prefer one pointer at a grouping's root over many in its subfolders; a folder whose parent already carries a clear pointer usually needs none.
A real, substantial system often has no doc at all — you can't point at a spec that doesn't exist. Two moves:
CLAUDE.md — title + opening paragraph as usual, then state plainly "No owning architecture doc yet" and that the folder is on the process/ANNOTATE.md backlog, then route to what does exist: the folder's TAXONOMY.md § <Folder>/ section for the file map, any design notes (e.g. under docs/todo/…), and the sibling systems it plugs into with their docs ("the strike routes through Weapons/MeleeSweep → systems/COLLISION.md; minted ore is per-instance-quality inventory data → systems/OBJECT_SYSTEM.md"). No ## Backward references table — there's nothing yet to point a column at.docs/architecture/process/ANNOTATE.md (create if absent) — proposed doc path, code location, current (partial/none) coverage, and a "must answer" list of the questions the real doc needs to address.This backlog is the reverse pass's most valuable byproduct and /architect's work queue: walking from the leaves is how you discover what's undocumented.
Read TAXONOMY.md/INDEX.md first (know what docs exist) → pick one unannotated (or stale) meaningful grouping → verify it against code (read enough headers to describe it honestly and confirm which doc owns it) → write the pointer (or stopgap + ANNOTATE row) → fix any staleness you pass (a pointer naming a deleted file / moved doc) → stop and report. Done when every substantial grouping has either a pointer or an ANNOTATE row.
audit — verify the docs against the codeThe verification loop that finds and kills drift. A stale document is worse than none. You need an audit ledger — docs/architecture/process/STALE_DOCS_LOOP.md (create if absent): a purpose blurb, a checklist of every reviewable doc ([ ] unreviewed / [x] verified this cycle / [~] reviewed, follow-up deferred), and an Audit Trail (newest first). The ledger makes the sweep resumable.
git log/git diff over the code it covers reveals churn). Read it fully; understand its claims..cpp/.ts for behavior; MCP read tools for visual logic / live composition.ProjectileLaunch::ResolveLaunch, not a fixed BaseDamage=65").INDEX.md row, its TAXONOMY.md rows, or a reverse CLAUDE.md are also stale, fix them (or hand to the taxonomy/reverse modes).A doc is reviewed once checked against code in a pass that ticked its box — not permanent; re-audit when the system changes. A cycle closes when every reviewable doc is audited, then re-opens against what's since changed.
Reading the proof, not recognizing the claim as plausible. A struct claim → open the definition, confirm the fields exist. A behavior claim → find the code path (or prove it doesn't and correct the doc). A file map → reconcile against disk both ways. A "Design-only/Planned" claim → check whether it has since shipped (the most common drift — promote to Implemented and document the as-built reality). A status word → use the project's vocabulary precisely. A version-dependent UE fact → verify against current Epic docs for the project's exact engine version (WebSearch/WebFetch). Process docs (philosophy/, process/) describe intent/workflow — audit for currency of process, not against .cpp.
/architect (fed by the reverse mode's ANNOTATE backlog). This skill indexes them (taxonomy), points at them (reverse), and verifies them (audit).reverse (when in doubt, leave a folder un-annotated) is itself the skill.State which project, which mode, and what changed: the section/folder/doc touched and the verification you did (files read, counts reconciled, claims proven); any ledger/index rows updated; any cross-feed hand-offs owed to the other modes; and any undocumented systems for /architect (with the ANNOTATE rows you added).
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub oliver-io/unreal-harness --plugin unreal-skills22 skills in this plugin
/architectWrite or update an architecture document for an Unreal Engine system — a conceptual spec a senior engineer can build from. Use when someone wants to "document this system", "write an architecture doc", "spec a feature before building it", "describe how X works for the team", or "update the docs to match the code". Plan-only and code-free: it researches the live editor, Blueprints, and source, then writes a Design-level document about intent, boundaries, contracts, and invariants — no implementation, no builds, no editor mutation. Works in any UE project, not one studio's house style./automated-testerSet up an automated, agent-observed end-to-end test (or a guarded dev loop) for an Unreal feature in this harness. Use when someone wants to "add a test", "test this feature end-to-end", "verify X works in PIE", "build a verification harness", "guard this feature with a test", or "make a guardrail loop for an agent building X". Opinionated: the engine constructs the scenario via typed C++ primitives, the agent observes the behaviour it controls through a DIFFERENT read primitive, no mocks, headless-first. Encodes docs/TESTING.md./bootstrapCreate a new Unreal Engine project under projects/ wired to this repo's UnrealMCP plugin and pre-configured with the recommended engine built-in plugins (Niagara, Water, GeometryScripting, GAS, StateTree, animation, runtime mesh, etc.), and give the project its own agent-facing CLAUDE.md. Use when someone wants to "bootstrap a project", "make a new UE project", "scaffold a test/sandbox project", get a fresh project to drive with the MCP, or "write a CLAUDE.md for this game". Produces a minimal C++ host project that loads the plugin from this repo (no copy) and builds against the engine at UNREAL_ENGINE_ROOT. Asks the intended architecture (C++-first vs Blueprint-first, single- vs multiplayer) and writes a project CLAUDE.md tuned to the answers; can also adopt an existing project by exploring it and writing a CLAUDE.md that describes it.