| name | doc-sync-check |
| description | Documentation synchronization checklist for API, configuration, and feature changes. Invoked by post-dev-workflow when code affects documentation. Not for direct user invocation. |
| version | 1.0.0 |
| author | SublinkPro Team |
| user-invocable | false |
Documentation Sync Check Skill
Checklist for ensuring documentation stays synchronized with code changes.
When to use this skill
Use this skill when changes affect:
- User-visible behavior or features
- API contracts or endpoints
- Configuration options or environment variables
- Deployment or installation procedures
- Developer workflows or contribution processes
- Build or validation processes
Core Principle
Documentation must be updated in the same PR as the code change. Outdated docs are a maintenance burden and user pain point.
Prerequisites
Before running this checklist:
- Identify which documentation files might be affected
- Read AGENTS.md section "Documentation expectations"
- Review CONTRIBUTING.md for documentation standards
Quick Reference: Which Docs to Update
| Change Type | Docs to Check |
|---|
| User-facing feature | README.md + .zh-CN.md, docs/features/*.md + .zh-CN.md |
| Configuration option | docs/configuration.md + .zh-CN.md, example configs |
| Installation/deployment | docs/installation.md + .zh-CN.md, skill-sublinkpro/reference/deploy.md |
| API endpoint | skill-sublinkpro/reference/api.md |
| Developer workflow | docs/development.md + .zh-CN.md, CONTRIBUTING.md + .zh-CN.md |
| Architecture/guidelines | AGENTS.md |
| New documentation | skill-sublinkpro/reference/docs.md (documentation map) |
Feature Documentation Checklist
When user-facing features change:
README updates
Feature docs
Cross-references
Configuration Documentation Checklist
When configuration options change:
Configuration guide
Example files
Deployment docs
API Documentation Checklist
When API endpoints change:
Skill API reference
Skill workflows
Skill README
Installation/Deployment Documentation Checklist
When installation or deployment changes:
Installation guide
Deployment guide
Build process
Developer Documentation Checklist
When developer workflows change:
Development guide
Contributing guide
Architecture guide
Theme/i18n guidelines
Bilingual Documentation Checklist
For every documentation change:
Both languages
Language switches
Internal links
Documentation Map Updates
When documentation structure changes:
Adding new docs
Renaming/moving docs
Removing docs
Code Examples in Documentation
When documenting code:
Accuracy
Completeness
Maintenance
Common Documentation Files
Project-level
README.md / README.zh-CN.md - Project overview
CONTRIBUTING.md / CONTRIBUTING.zh-CN.md - How to contribute
CODE_OF_CONDUCT.md / CODE_OF_CONDUCT.zh-CN.md - Community standards
AGENTS.md - AI agent architectural guide
Core documentation
docs/installation.md / .zh-CN.md - Installation guide
docs/configuration.md / .zh-CN.md - Configuration reference
docs/development.md / .zh-CN.md - Developer guide
docs/internationalization.md / .zh-CN.md - i18n guidelines
docs/frontend-theme-guidelines.md / .zh-CN.md - Theme adaptation rules
Feature documentation
docs/features/*.md / .zh-CN.md - Feature-specific guides
docs/script_support.md / .zh-CN.md - Script support documentation
Skill documentation
skill-sublinkpro/SKILL.md - Skill definition
skill-sublinkpro/README.md / .zh-CN.md - Skill overview
skill-sublinkpro/reference/api.md - API reference
skill-sublinkpro/reference/deploy.md - Deployment guide
skill-sublinkpro/reference/docs.md - Documentation map
Verification Checklist
Before committing:
Link checking
Formatting
Consistency
When Only Documentation Changed
Pure documentation commits:
No build required
- ✅ No need to run
yarn run lint or yarn run build
- ✅ No need to run Go validation
Manual verification required
Documentation Anti-Patterns
Avoid these common mistakes:
- ❌ Documenting commands that don't exist (
yarn test when no test script)
- ❌ Only updating English docs
- ❌ Describing old behavior after code changed
- ❌ Copy-pasting from generic templates without adapting
- ❌ Leaving broken links
- ❌ Documenting "future features" not yet implemented
- ❌ Outdated screenshots showing old UI
Delivery Requirements
Before marking documentation changes complete:
- Bilingual verification: Both
.md and .zh-CN.md updated
- Link verification: All links tested and working
- Accuracy verification: Examples/commands tested
- Consistency verification: No conflicts with code behavior
Exit Criteria
✅ Can exit when:
- All affected documentation files updated
- Both English and Chinese versions synchronized
- Links verified
- Examples tested
- Code behavior matches documentation
❌ Cannot exit when:
- Only one language updated
- Documentation still describes old behavior
- Broken links remain
- Examples are inaccurate
- New documentation not added to map