docs-sync
Sync user documentation with design doc changes. Use when design docs have been updated and user docs need to reflect the changes.
安装与使用
请根据来源仓库和你的 AI 工具说明安装此技能。先阅读技能文件和依赖要求,再添加到工作流。
查看来源 ↗使用指南技能说明
Sync User Documentation
Syncs user documentation with changes in design docs to keep them current.
Overview
This skill detects changes in design docs and updates corresponding user documentation by:
- Comparing design doc timestamps with user doc timestamps
- Identifying which user docs are affected
- Regenerating or updating affected sections
- Preserving custom user-added content
- Updating sync timestamps
Quick Start
Sync all levels for a module:
/docs-sync effect-type-registry
Sync specific level only:
/docs-sync rspress-plugin-api-extractor --level=1
Preview changes without writing:
/docs-sync website --dry-run
How It Works
1. Parse Parameters
-
module: Module to sync [REQUIRED] -
--level: Sync specific level (1=README, 2=repo, 3=site) -
--dry-run: Preview changes without writing
2. Detect Changes
Compare timestamps:
- Design doc
updatedfield - User doc last modification time
- Identify stale user docs (design newer than user docs)
3. Analyze Impact
For each changed design doc:
- Determine which user docs it affects
- Identify sections that need updates
- Check for breaking changes
4. Update User Documentation
Update strategies:
- README - Regenerate features, quick start, API overview
- Repository Docs - Update affected topic guides
- Site Docs - Refresh concept docs and guides
5. Preserve Custom Content
Protect user additions:
- Custom examples
- Additional sections
- Badges and shields
- Screenshots and GIFs
6. Update Timestamps
Mark synced docs with current timestamp.
Supporting Documentation
-
instructions.md- Detailed sync process -
examples.md- Sync scenarios and outputs
Success Criteria
- ✅ Stale docs identified correctly
- ✅ Affected sections updated
- ✅ Custom content preserved
- ✅ Timestamps updated
- ✅ No broken links introduced
Integration Points
- Uses
.claude/design/design.config.json - Reads design docs from
designDocsPath - Updates files in
userDocspaths - Respects quality standards
Related Skills
-
/docs-generate-readme- Regenerate README -
/docs-generate-repo- Regenerate repo docs -
/docs-generate-site- Regenerate site docs -
/docs-review- Review sync quality
使用示例
查看来源仓库中的使用示例与配置说明。
查看来源 ↗来源历史
- 收录时间
- 2026-01-20
- 索引更新时间
- 2026-01-26
- Branch
- main
收录与同步日期属于本站记录。源码修改历史请查看来源仓库。
GitHub ↗chat Comments (0)
Sign in to join the discussion and leave a comment.
No comments yet. Be the first to share your thoughts!