Pre-Commit Documentation Checklist
Before every commit, verify that ALL documentation is in sync with the code changes being committed. Run git --no-pager diff --cached --name-only (or git --no-pager diff HEAD --name-only for unstaged) to identify changed files, then check each doc category below.
1. ARCHITECTURE.md
Update docs/ARCHITECTURE.md if any of these changed:
- Project structure tree — new files/directories added or removed
- Scene flow diagram — scene transitions changed
- Utility patterns — new utilities created, existing ones changed
- Lifecycle patterns — shutdown cleanup, event listener patterns changed
- Config/theme patterns — new constants, theme values, or config patterns
- Known gotchas — new Phaser quirks, browser compat issues discovered
2. ROADMAP.md
Update docs/ROADMAP.md:
- Backlog — remove completed items, add new feature ideas
- Known Issues — add new bugs discovered, remove resolved items
- Test Coverage Gaps — update if tests were added or gaps identified
- Deferred Refactors — add new debt discovered, remove resolved items
3. GAMEPLAY.md
Update docs/GAMEPLAY.md if:
- Controls changed (keyboard, gamepad, touch)
- Level mechanics changed (objectives, hazards, scoring)
- New game features added (items, mechanics, zones)
4. ART_STYLE.md
Update docs/ART_STYLE.md if:
- Visual style changed (colors, textures, pixel art patterns)
- New visual elements added (markers, buildings, effects)
- UI styling changed (button styles, fonts, theme colors)
5. TESTING.md
Update docs/TESTING.md if:
- New test helpers or fixtures added to conftest.py
- New test patterns established
- Debugging techniques discovered
- Known flaky tests identified or resolved
6. In-Game Changelog
Update the changelog entries in src/config/localization.ts if:
- Any player-visible change was made (UI, controls, gameplay, visuals)
- Look for the
changelog key in each language's translations
- Add a dated entry describing the change in user-facing language
7. Copilot Instructions
Update .github/copilot-instructions.md if:
- Key files changed (new important files, renamed files)
- Critical patterns changed (localStorage keys, placeholder syntax)
- Quick commands changed (new scripts, changed test commands)
- Domain knowledge changed (new game concepts, terminology)
- Custom agents/skills added or modified
- Pre-commit checklist itself needs updating
8. Skills and Agents
Update .github/skills/ or .github/agents/ if:
- Workflow processes changed (audit steps, review criteria)
- New tools or patterns should be codified for reuse
- Visual style rules changed (update art-review skill alongside ART_STYLE.md)
9. README.md
Update README.md if:
- Features list changed — new gameplay features, input methods, accessibility
- Quick start / testing instructions changed — new commands, new setup steps
- Documentation table changed — new docs added or renamed
- Screenshots outdated — significant visual changes warrant new screenshots. Use the
documentation-screenshots skill to recapture them.
The README is the public face of the project. Keep it concise — detailed content belongs in docs/. Link to docs rather than duplicating.
How to Apply
For each changed source file, ask: "Does this change affect any documentation?" Walk through categories 1–9 above. If a doc needs updating but the change is trivial (typo fix, internal refactor with no API change), skip it.
Do NOT:
- Update docs for changes that don't affect them
- Add verbose explanations — keep entries concise
- Create new doc files unless explicitly asked
- Update dates/timestamps in docs (they use git history)
Do:
- Keep the project structure tree in ARCHITECTURE.md current
- Keep ROADMAP.md as the single source of truth for work status
- Keep changelog entries in ALL 14 languages
- Keep copilot-instructions.md lean — it's injected into every prompt
- Keep docs as few, long files — Copilot CLI loads docs by file path; fewer files = fewer tool calls = faster context. Files up to ~3,000 lines are fine. Don't split a doc unless it exceeds ~5,000 lines. Related information in the same file helps the agent see connections it would miss across separate files.
Source: antoinecellerier/les-aiguilles-blanches — distributed by TomeVault.
1---2name: docs-update-93description: Ensures all documentation, roadmaps, and copilot instructions stay in sync with code changes. Use this before every commit to verify docs are up to date. Triggers on commit, pre-commit, documentation, roadmap, changelog, or docs update requests. Use when this capability is needed.4---56## Pre-Commit Documentation Checklist78Before every commit, verify that ALL documentation is in sync with the code changes being committed. Run `git --no-pager diff --cached --name-only` (or `git --no-pager diff HEAD --name-only` for unstaged) to identify changed files, then check each doc category below.910### 1. ARCHITECTURE.md1112Update `docs/ARCHITECTURE.md` if any of these changed:1314- **Project structure tree** — new files/directories added or removed15- **Scene flow diagram** — scene transitions changed16- **Utility patterns** — new utilities created, existing ones changed17- **Lifecycle patterns** — shutdown cleanup, event listener patterns changed18- **Config/theme patterns** — new constants, theme values, or config patterns19- **Known gotchas** — new Phaser quirks, browser compat issues discovered2021### 2. ROADMAP.md2223Update `docs/ROADMAP.md`:2425- **Backlog** — remove completed items, add new feature ideas26- **Known Issues** — add new bugs discovered, remove resolved items27- **Test Coverage Gaps** — update if tests were added or gaps identified28- **Deferred Refactors** — add new debt discovered, remove resolved items2930### 3. GAMEPLAY.md3132Update `docs/GAMEPLAY.md` if:3334- Controls changed (keyboard, gamepad, touch)35- Level mechanics changed (objectives, hazards, scoring)36- New game features added (items, mechanics, zones)3738### 4. ART_STYLE.md3940Update `docs/ART_STYLE.md` if:4142- Visual style changed (colors, textures, pixel art patterns)43- New visual elements added (markers, buildings, effects)44- UI styling changed (button styles, fonts, theme colors)4546### 5. TESTING.md4748Update `docs/TESTING.md` if:4950- New test helpers or fixtures added to conftest.py51- New test patterns established52- Debugging techniques discovered53- Known flaky tests identified or resolved5455### 6. In-Game Changelog5657Update the changelog entries in `src/config/localization.ts` if:5859- Any player-visible change was made (UI, controls, gameplay, visuals)60- Look for the `changelog` key in each language's translations61- Add a dated entry describing the change in user-facing language6263### 7. Copilot Instructions6465Update `.github/copilot-instructions.md` if:6667- **Key files** changed (new important files, renamed files)68- **Critical patterns** changed (localStorage keys, placeholder syntax)69- **Quick commands** changed (new scripts, changed test commands)70- **Domain knowledge** changed (new game concepts, terminology)71- **Custom agents/skills** added or modified72- **Pre-commit checklist** itself needs updating7374### 8. Skills and Agents7576Update `.github/skills/` or `.github/agents/` if:7778- Workflow processes changed (audit steps, review criteria)79- New tools or patterns should be codified for reuse80- Visual style rules changed (update art-review skill alongside ART_STYLE.md)8182### 9. README.md8384Update `README.md` if:8586- **Features list** changed — new gameplay features, input methods, accessibility87- **Quick start / testing instructions** changed — new commands, new setup steps88- **Documentation table** changed — new docs added or renamed89- **Screenshots outdated** — significant visual changes warrant new screenshots. Use the `documentation-screenshots` skill to recapture them.9091The README is the public face of the project. Keep it concise — detailed content belongs in `docs/`. Link to docs rather than duplicating.9293## How to Apply9495For each changed source file, ask: "Does this change affect any documentation?" Walk through categories 1–9 above. If a doc needs updating but the change is trivial (typo fix, internal refactor with no API change), skip it.9697**Do NOT:**98- Update docs for changes that don't affect them99- Add verbose explanations — keep entries concise100- Create new doc files unless explicitly asked101- Update dates/timestamps in docs (they use git history)102103**Do:**104- Keep the project structure tree in ARCHITECTURE.md current105- Keep ROADMAP.md as the single source of truth for work status106- Keep changelog entries in ALL 14 languages107- Keep copilot-instructions.md lean — it's injected into every prompt108- **Keep docs as few, long files** — Copilot CLI loads docs by file path; fewer files = fewer tool calls = faster context. Files up to ~3,000 lines are fine. Don't split a doc unless it exceeds ~5,000 lines. Related information in the same file helps the agent see connections it would miss across separate files.109110---111> Source: [antoinecellerier/les-aiguilles-blanches](https://github.com/antoinecellerier/les-aiguilles-blanches) — distributed by [TomeVault](https://tomevault.io).112<!-- tomevault:4.0:skill_md:2026-05-23 -->