Documentation
Skill AnotherSava/claude-code-common/claude/skills/documentation
Complete Claude Code environment: global guidelines, skills, hooks, settings, version-controlled memory and learnings, and shared git config
npx -y skills add AnotherSava/claude-code-common --skill documentationAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
One thing to look at
- 0 stars0 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.
What its author says it does
Copied from the file, not written here
Update stale documentation and comments to match current code
SKILL.md
6.0 KB, as published. Nobody here has run it
Update Documentation
Scan project documentation and comments for references that no longer match the code, and fix them.
Context
- Repo root: !
git rev-parse --show-toplevel 2>/dev/null || pwd - Uncommitted changes: !
git status --short - Diff summary: !
git diff --stat $(git rev-parse -q --verify HEAD || echo 4b825dc642cb6eb9a060e54bf8d69288fbee4904) - Full diff: !
git diff $(git rev-parse -q --verify HEAD || echo 4b825dc642cb6eb9a060e54bf8d69288fbee4904) - GH Pages index present: !
R=$(git rev-parse --show-toplevel 2>/dev/null || pwd) && test -f "$R/docs/index.md" && echo yes || echo no
Working directory
All file paths below (README.md, docs/, docs/pages/, docs/index.md, CLAUDE.md) are relative to Repo root from Context. The current working directory may be a subdirectory (e.g. src-tauri/, frontend/), so always prefix the Repo root value when calling Read/Edit/Write/Grep/Glob. Bare paths are cwd-relative and will silently miss files that live at the actual root.
Process
-
Read
README.md(at the repo root) and fix any references to changed paths, APIs, or behavior -
Read all files in
docs/pages/(if the folder exists) and check for both staleness and gaps:- Rewrite any sections that no longer match the code — removed features, changed message protocols, new data flows, renamed concepts
- Check whether features added or significantly changed in the current diff are missing from the relevant docs page. A new user-visible capability, config option, or behavioral change should appear in the page that covers its area. Propose additions and wait for approval
- Update the features section. When the diff adds a new user-facing feature or changes an existing one, the curated feature listings must reflect it — the dedicated features page (e.g.
docs/pages/features.md), any enumerated feature list indocs/index.md, and the README's feature list. Add a new entry for a new feature; revise the existing entry for a changed one. A feature that exists in code but is absent from (or stale in) these listings is a documentation gap even when every other page is accurate. Propose the additions/edits and wait for approval - Check embedded diagrams (
```mermaidblocks, ASCII flowcharts/trees, and structural tables) that depict architecture, data flow, state machines, or file layout. When code changes — or another doc you just edited — alters the structure a diagram illustrates (a renamed/removed module, a new component, a changed path or edge), update the diagram itself, not just the surrounding prose. A stale node, missing arrow, or wrong label in a diagram is as misleading as stale text. - Check pages that moved in the nav hierarchy (e.g. a former top-level page now nested as a subpage). A relocated page often (a) duplicates content that now belongs to a sibling page — trim it to a pointer so each page owns one concern; and (b) keeps heading levels from its old position (a former subsection's
###where siblings use##). Also re-verify its relative links resolve from the new location.
-
Align README with the GH Pages index — only if GH Pages index present is
yes. ReadREADME.mdanddocs/index.mdtogether and reconcile them so they describe the same product at the same point in time:- Tagline / one-line description must match (ignoring italics and minor punctuation).
- The set of user-facing features / supported sites / supported games listed in each must match exactly — no feature appears in one but not the other.
- Per-feature blurbs in the README must match the intro paragraph of the corresponding
docs/index.mdsection (same facts, same scope claims). Wording may differ slightly; facts must not. - Install link, beta / access notices, and status blurbs must match.
- If the README contains per-feature blurbs, each feature link must point to
https://<org>.github.io/<repo>/pages/<feature>(or/pages/<product>in the monorepo variant) and the correspondingdocs/pages/<feature>.mdfile must exist. - The footer "See full project documentation at …" block in the README must list every page that exists under
docs/pages/(user-facing pages + Developer guide); no page may be listed that doesn't exist, and no existing user-facing page may be missing. - When in doubt about which side is correct, treat
docs/index.md+docs/pages/<feature>.mdas the source of truth and update the README to match.
-
Read
CLAUDE.md(project-local.claude/CLAUDE.mdif it exists, otherwise repo root) and fix any stale file descriptions -
Check comments and docstrings in modified source files (use Uncommitted changes and Full diff to identify them) that reference changed behavior
-
Update dimensioned drafts — only if the repo keeps drafts (Glob
**/dimensioned_drafts/*.pyoutside ignored dirs; skip this step when nothing matches). Drafts are documentation of model geometry: when a model source file changed in the diff, find the draft scripts that document it (match by model name/directory and by constants mirrored from the model's dimensions class) and check every drawn value — dimensions, profile vertices, removed/added features, not just labels. Update the draft script to the current model, re-run it to regenerate the SVG, and include both files in the change set. A draft documenting a feature the model no longer has is stale documentation just like prose. -
Suggest improvements — if documentation would benefit from a new file or reorganization, suggest it to the user and wait for approval before proceeding
-
Report what was updated. If nothing was stale, say so. Call out README ↔
docs/index.mdmismatches explicitly, even when fixed.
Out of scope
- Do NOT touch code logic — only comments, docstrings, and doc files
- Do NOT create new documentation files or restructure existing ones without explicit approval