跳到正文
cccskills
免费在 GitHub 公开

sync-docs

Check docs/ai/ spec files and ADRs for inconsistencies with the codebase, then fix all discrepancies.

中文简介正在准备中。当前显示原文说明。

查看安装方法

包含的文件(1)

  • SKILL.md4.8 KB

SKILL.md(原文)

安装前可以查看交给 AI 代理的指令内容。

Sync Docs with Codebase

Scan all documentation in docs/ai/ for inconsistencies with the actual codebase, then fix all discrepancies so docs match the implementation.

Scope

Check and fix these doc files:

Root docs

  1. README.md — project description, feature list, tech stack, project structure

AI / internal docs (docs/ai/)

  1. CLAUDE.md — project description, build commands, conventions, key architecture notes
  2. docs/ai/BACKLOG.md — check completed items against code, remove if done
  3. docs/ai/architecture.md — ADR statuses, component list, directory structure, commands
  4. docs/ai/overview.md — current state, non-goals
  5. docs/ai/sequencer-spec.md — Pattern/Track/Trig interfaces, playback behavior
  6. docs/ai/audio-interface.md — WorkletCommand, WorkletPattern, WorkletTrig, Engine API
  7. docs/ai/sound-design.md — voice params, paramDefs ranges/defaults
  8. docs/ai/ui-design.md — component descriptions, layout, mobile views
  9. docs/ai/glossary.md — term accuracy, missing terms
  10. docs/ai/DATA_MODEL.md — Song/Pattern/Cell/Track/Trig interfaces, relationships, mermaid ERD entity fields and classDiagram runtime state fields
  11. docs/ai/MESSAGE_FLOW.md — WorkletCommand flow, message protocol, signaling, mermaid sequence diagram function names
  12. docs/ai/adr/INDEX.md — ADR statuses (Implemented vs actual state)
  13. All ADR files marked as "Implemented" in INDEX.md — check against code

Site docs (site/src/content/docs/)

  1. All .mdx files under site/src/content/docs/docs/ (EN) and site/src/content/docs/ja/docs/ (JA) — tutorials, feature guides, getting-started pages
  2. Feature descriptions must match current implementation (e.g. number of FX slots, available parameters, signal flow)
  3. EN and JA versions must stay in sync with each other

App help (src/lib/components/SidebarHelp.svelte)

  1. Help card text — feature descriptions, parameter lists, workflow descriptions

Process

Phase 1: Discover inconsistencies

  1. Read all doc files listed above.

  2. Cross-reference with codebase by reading/grepping these key source files:

    • src/lib/types.ts — Song, Pattern, Cell, Trig, Track interfaces
    • src/lib/state.svelte.ts — reactive state shape
    • src/lib/audio/engine.ts — Engine API, patternToWorklet serialization
    • src/lib/audio/dsp/types.ts — WorkletCommand, WorkletPattern, WorkletTrig, WorkletInsertFx
    • src/lib/audio/worklet-processor.ts — WorkletCommand handling
    • src/lib/paramDefs.ts — voice parameter definitions (names, ranges, defaults)
    • src/lib/components/*.svelte — component names and existence
    • src/lib/audio/dsp/voices.ts — voice registry
    • src/lib/components/SidebarHelp.svelte — app help text
  3. Check for these types of inconsistencies:

    • Type/interface field mismatches (missing fields, wrong field names, wrong types)
    • Mermaid diagrams: treat erDiagram entity fields and classDiagram class fields as structured data — compare every field name, type, and description 1:1 against the source TypeScript interfaces (DATA_MODEL.md ERD vs types.ts, classDiagram vs state.svelte.ts, MESSAGE_FLOW.md sequence diagrams vs actual function names in scenePlayback.ts / engine.ts)
    • Wrong parameter ranges or defaults in docs vs paramDefs.ts
    • Components mentioned in docs that don't exist, or existing components not documented
    • ADR status mismatches (doc says PROPOSED but feature is implemented, or vice versa)
    • Removed/renamed features still documented
    • Missing documentation for implemented features
    • Stale line-number references to source files

Phase 2: Fix all issues

  1. Use TodoWrite to create a task list of all fixes needed.

  2. Apply fixes using Edit tool for each doc file. Rules:

    • Always update docs to match the code (code is the source of truth)
    • Keep the existing doc style and structure
    • Write docs in English (matching CLAUDE.md convention)
    • Don't add unnecessary content — only fix what's wrong or missing
    • For ADR status changes, also update docs/ai/adr/INDEX.md
  3. Output a summary of all changes made:

## Docs Sync Summary

### [filename]
- [description of fix applied]

### No changes needed
- [filename] — already consistent

Guidelines

  • Use parallel Agent tools to speed up codebase exploration
  • Be thorough — check every interface field, every param range, every component reference
  • Code is always the source of truth; docs adapt to match code
  • Preserve existing doc formatting and structure where possible

评价

还没有评价。欢迎分享你的使用感受。

评论

无需登录即可发表。欢迎分享使用感受、提问,或说明在哪些环境下无法运行。

还没有评论。来写第一条吧。

提交后会立即公开。请勿填写邮箱、电话等个人信息。URL 最多 2 个。

0 / 1000 字

此表单受 reCAPTCHA 保护,适用 Google 的隐私权政策和服务条款。

同一仓库的技能

adr

免费

Create a new Architecture Decision Record (ADR) for a proposed feature or design change.

中文简介正在准备中。当前显示原文说明。

im9/inboil22026年10月17日 更新

adr-done

免费

Mark an ADR as Implemented (or Superseded) and archive it, following INDEX.md conventions.

中文简介正在准备中。当前显示原文说明。

im9/inboil22026年10月17日 更新

Scan the codebase for security vulnerabilities. Check OWASP top 10, input validation, auth, crypto, and known BACKLOG security items.

中文简介正在准备中。当前显示原文说明。

im9/inboil22026年10月17日 更新

Check docs/ai/ spec files and ADRs for inconsistencies with the actual codebase. Report only, no modifications.

中文简介正在准备中。当前显示原文说明。

im9/inboil22026年10月17日 更新

refactor

免费

Scan the project for refactoring opportunities, then fix them. No behavior/visual changes.

中文简介正在准备中。当前显示原文说明。

im9/inboil22026年10月17日 更新

查看 im9 的全部技能

报告此技能的问题