documentation-sync
Reconcile documentation with an approved implementation using source, tests, and public-contract evidence. Use after behavior or structure is settled; do not use to speculate, hide unresolved design, or broaden a refactoring slice.
- License 许可
- MPL-2.0
- 最近更新
- 2026-11-13
- Stars
- ★ 0
- Forks
- 0
01 前言 Front Matter
- name
- documentation-sync
- updated
- 1785024000000
- metadata
- { "version": "1.0.0", "akm-type": "skill", "akm-updated": "2026-07-26" }
- description
- Reconcile documentation with an approved implementation using source, tests, and public-contract evidence. Use after behavior or structure is settled; do not use to speculate, hide unresolved design, or broaden a refactoring slice.
- compatibility
- Requires access to implementation, tests, documentation, and documentation validation commands.
02 资源文件 1
- 参考文档references/sync-checklist.md669 B
03 SKILL.md 正文
Documentation Sync
When To Use It
Use when an approved slice changes internal structure, commands, public contracts, examples, diagrams, or maintenance guidance reflected in docs.
When Not To Use It
Do not use before implementation is stable, to document intended behavior that does not exist, or for unrelated editorial cleanup.
Required Inputs
- Approved slice and final diff
- Current implementation and tests
- Documentation ownership and generation rules
- Link, example, schema, or docs-build commands
skills/coding/documentation-sync/references/sync-checklist.md
Procedure
- Search for references to changed symbols, paths, commands, behavior, diagrams, and compatibility statements.
- Classify each reference as current, stale, generated, historical, or out of scope.
- Update only affected source documentation; regenerate generated docs through their owning tool when the slice authorizes it.
- Keep examples executable and align claims with tests or source evidence.
- Record intentionally retained historical or compatibility documentation.
- Run docs validation and the full verification suite.
Constraints
- Do not hand-edit generated documentation.
- Do not change product behavior through examples or normative prose.
- Avoid unrelated wording, formatting, and link cleanup.
- Public documentation changes that alter a contract require explicit approval.
Expected Output
A list of synchronized references, exact evidence for each changed claim, generated-doc actions, validation results, and remaining known documentation gaps.
Verification
Run existing documentation build, link, example, schema, and spell/style checks where applicable. Search again for stale names and paths, and compare normative claims with public tests or implementation.
Stop Or Escalation Conditions
Stop when implementation and documentation disagree on expected behavior, ownership is unclear, regeneration requires unavailable tooling, or the needed doc change would expose or alter an unapproved public contract.
04 同仓库更多 Skills
tax-filing-checklist
Walk through the steps and documents needed to file an individual federal income tax return
patient-vitals-charting
Record patient vital signs consistently and flag values outside the normal reference range
pasta-from-scratch
Make fresh egg pasta dough from scratch, roll it, and cut it into shapes
knife-sharpening
Sharpen and hone kitchen knives to keep an edge safe and effective
first-aid-response
Respond to a first aid emergency using a scene-safety-first, ABC-based (airway, breathing, circulation) approach
contract-review-basics
Review a contract draft for missing terms, ambiguous language, and risky clauses before signing