文档 更新
- 作者仓库星标 0
- 作者仓库 skills-registry
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
changelogkey 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-screenshotsskill 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.
<!-- tomevault:4.0:skill_md:2026-05-23 -->Source: antoinecellerier/les-aiguilles-blanches — distributed by TomeVault.
- 流狐分类
- 文档
- 作者声明 Agent
- 未找到明确声明;不据此推断已兼容或已测试
- 静态检查
- 88 / 100 · 启发式扫描,不代表运行安全
- 作者 / 版本 / 许可
- @tomevault-io · 未声明 license
- 流狐 Token 估算
- 低消耗
- 流狐接入估算
- 即装即用
- 是否需要外部 API Key
- 未发现要求
- 检测到的系统要求
- 未声明
- 底层运行要求
- 未声明
- 检测到的文件与系统行为
-
- 只读
- 允许写入 / 修改
- 检测到的网络行为
- 仅限本地
- 安装命令数
- 无(仅作为资料)
档案由构建时根据 SKILL.md 与安装命令自动衍生,可能与作者实际意图存在差异。
需要注意: 未限定 allowed-tools,默认拥有全部工具权限。
作者没有在当前 SKILL.md 中定义固定输出样例。 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…
Update docs/ARCHITECTURE.md if any of these changed: Project structure tree — new files/directories added or removed Scene flow diagram — scene transitions changed
Update docs/ROADMAP.md: Backlog — remove completed items, add new feature ideas Known Issues — add new bugs discovered, remove resolved items
Update docs/GAMEPLAY.md if: Controls changed (keyboard, gamepad, touch) Level mechanics changed (objectives, hazards, scoring)
Update docs/ARTSTYLE.md if: Visual style changed (colors, textures, pixel art patterns) New visual elements added (markers, buildings, effects)
Update docs/TESTING.md if: New test helpers or fixtures added to conftest.py New test patterns established
## 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
… 作者原文负责流程事实;流狐只索引当前章节、要点、文件与命令。
章节 -> Pre-Commit Documentation Checklist → 1. ARCHITECTURE.md → 2. ROADMAP.md → 3. GAMEPLAY.md → 4. ARTSTYLE.md → 5. TESTING.md
要点 -> Project structure tree · Scene flow diagram · Utility patterns · Lifecycle patterns · Config/theme patterns · Known gotchas · Backlog · Known Issues
文件/命令 -> git --no-pager diff --cached --name-only · git --no-pager diff HEAD --name-only · docs/ARCHITECTURE.md · docs/ROADMAP.md · docs/GAMEPLAY.md · docs/ARTSTYLE.md · docs/TESTING.md · src/config/localization.ts
内容 SHA-256 -> b55f9219421e
原文结构
适用与边界
原文中的明确线索
git --no-pager diff --cached --name-only、git --no-pager diff HEAD --name-only、docs/ARCHITECTURE.md、docs/ROADMAP.md、docs/GAMEPLAY.md、docs/ARTSTYLE.md、docs/TESTING.md、src/config/localization.ts