docs-sync
Diff src/ and .github/ against docs/ to detect drift between code and design spec. Use when auditing the docs folder, after merging structural changes (adding paths/modules/diagrams/syntax/agents/skills/hooks), or before a release. Use for questions like "is docs in sync?", "what changed since the last docs update?", "find docs drift". Produces a structured report with proposed edits — does not modify docs/ directly.
- License 许可
- MIT
- 最近更新
- 2026-10-22
- Stars
- ★ 21
- Forks
- 6
01 前言 Front Matter
- name
- docs-sync
- description
- Diff src/ and .github/ against docs/ to detect drift between code and design spec. Use when auditing the docs folder, after merging structural changes (adding paths/modules/diagrams/syntax/agents/skills/hooks), or before a release. Use for questions like "is docs in sync?", "what changed since the last docs update?", "find docs drift". Produces a structured report with proposed edits — does not modify docs/ directly.
02 资源文件 2
- 参考文档references/advanced-usage.md18.4 KB
- 参考文档references/troubleshooting.md11.7 KB
03 SKILL.md 正文
Docs Sync (skill)
This skill is the diffing playbook the
@docs-auditor agent runs. You can also
invoke it directly with /docs-sync.
It produces a drift report. It does not write to docs/. Apply changes by
delegating to @author.
Inputs
$ARGUMENTS(optional) — restrict the audit to one of:paths|tracks|components|syntax|harness|routes|lifecycle|links|all. Default:all.
Procedure
Step 1 — Snapshot the code
Collect, in this order:
src/data/paths.tsexports.- All
path.jsonfiles undersrc/content/community/*/. - Frontmatter (
id,number,title,subtitle) of every markdown file undersrc/content/{tutorial,advanced,terminal}/. - The list of files under
src/components/diagrams/(excludingindex.ts). - The list of files under
.github/{instructions,prompts,skills,agents,hooks}/. - The route table from
src/App.tsx.
Step 2 — Snapshot the docs
Collect:
- The track tables in
docs/tracks/{foundation,agentic,terminal}.mdand the contribution-shape table indocs/community-contributions.md. - The component/diagram references in
docs/components.md. - The custom-syntax table in
docs/content-architecture.md(§5) and the route table (§2). - The harness inventory tables in
docs/harness.md. - The status table in
docs/lifecycle.md. - All relative links in every
docs/*.mdfile.
Step 3 — Diff
Compare each pair from Steps 1 and 2:
- Code item missing from docs →
add to docs. - Doc item missing from code →
remove from docs(only if file is gone) orflag for human review(if file might be renamed). - Mismatched fields (title, subtitle, status, applyTo, …) →
update doc. - Broken relative link →
fix link.
Step 4 — Group findings
Group by target file in docs/. Each group becomes one section in the
report.
Step 5 — Emit report
Use the template at templates/report.md (see below).
Report template
# Docs Sync — <ISO date>
Scope: `$ARGUMENTS`
Workspace: <git short SHA>
## Summary
- Files needing updates: N
- New items to document: N
- Items to remove: N
- Broken links: N
## docs/tracks/foundation.md
- ⚠️ Subtitle drift on Part 4: docs say "Different rules per folder", code says "Different rules for different folders".
- Proposed: update row.
## docs/components.md
- ❌ Diagram `NewFlowDiagram.tsx` exists in `src/components/diagrams/` but is not referenced.
- Proposed: add row to "Diagrams" section.
…
## Suggested next step
Run `@author` and paste this report.
Boundaries
- Do not write to
docs/. Output only. - Do not change content lifecycle statuses or example tracks.
- Do not run
npm run build— that is the@reviewer's job. You may run it read-only if a link looks ambiguous. - Treat
.github/CONTENT_LIFECYCLE.mdas the source of truth when it conflicts withdocs/lifecycle.md.
Related
- Agent:
docs-auditor. - Spec:
docs/harness.md.
04 同仓库更多 Skills
version-checker
Validate that tutorial content references current tool versions, APIs, CLI commands, and features. Use when reviewing content for outdated information, checking deprecations, verifying feature availability, auditing tool references, or updating stale version numbers. Covers GitHub Copilot (VS Code + CLI), Claude Code, VS Code settings, MCP, and Agent Skills standard.
tutorial-content-qa
Comprehensive quality assurance for AI-Native development tutorials across all tracks (Foundation, Advanced, Terminal). Use when reviewing content for accuracy, clarity, consistency, and completeness. Use for proofreading, checking errors, auditing content, or running QA checks before publishing.
track-generator
Generate new example tracks for the AI-Native tutorial. Use when creating new industry examples, adding a new track, building project templates, or expanding learning paths. Use for questions like "add a track for healthcare", "create new example", "new industry template". Produces consistent ExampleTrack data with all required fields including projectName, requirements, colorCoding, taskExamples, and verification examples matching the TypeScript interface in exampleTracks.ts.
exercise-scaffolder
Generate consistent, high-quality coding exercises for AI-Native development tutorials. Use when creating hands-on exercises, coding challenges, practice problems, quizzes, labs, or skill-building activities. Use for questions like "create an exercise", "add practice activity", "build a challenge for Part X". Includes starter templates, solution patterns, hint progressions, and verification criteria.
diagram-scaffolder
Generate new interactive diagram components for tutorial content. Use when adding a visual diagram, creating architectural illustrations, or building interactive flow visualizations. Use for questions like "add a diagram", "create diagram component", "new visual for module X". Produces a React component, registers it in the barrel export and StepCard parser, and provides the markdown reference syntax.
content-track-scaffolder
Scaffold a complete new content track (like Foundation, Advanced, or Terminal) with all required files — data parser, page components, routes, markdown content, and navigation. Use when adding a new learning path, creating a new track, or expanding the tutorial with a new module series. Use for questions like "add a new track", "create learning path for X", "scaffold track pages".