Skip to content
cccskills
FreePublished on GitHub

sync-specs

Compare project documentation with code to find outdated descriptions, missing details, and inconsistent references. Review recent changes, audit all documentation, or focus on one area, then apply approved fixes while preserving the existing language and style.

OriginalShow the original description

Use when code changes may have made documentation outdated, when reviewing docs for consistency, or when the user asks to sync or audit documentation.

Run score Not tested

See how to install

Good for

  • Review documentation affected by code changes
  • Audit all documentation against the current code
  • Check API or database documentation
  • Align command lists in CLAUDE.md and AGENTS.md
  • Check documentation links and indexes

Files included (2)

  • SKILL.md4.5 KB
  • check-doc-drift.sh1.2 KB

SKILL.md (original)

Review the instructions the agent will receive before you install.

Documentation Sync

Review code changes and update project documentation for consistency.

Mode

ModeHow to activateBehavior
delta (default)No argument, or say "delta"Diff against merge-base with origin/main + working tree changes
fullSay "full audit" or "full sync"Complete audit of all docs against current codebase
Scope keywordSay the keyword (e.g. "db", "api")Targeted check (see Scope Filters below)

Delta Mode Baseline

Identify changed files using merge-base (not a fixed commit count):

# Branch changes since diverging from main
git diff --name-only $(git merge-base HEAD origin/main)...HEAD
# Plus staged + unstaged
git diff --name-only --cached
git diff --name-only

Combine the results into a single list of changed files. Then use the Impact Mapping to identify which docs may need updates.

Impact Mapping

Map changed areas to the docs they affect:

Changed areaAffected docs
apps/controller/src/routes/specs/references/api-patterns.md, ARCHITECTURE.md, specs/product-specs/*.md (if route is user-facing)
apps/web/src/pages/ or apps/web/src/app.tsxspecs/FRONTEND.md
apps/landing/ARCHITECTURE.md (Monorepo layout)
apps/controller/src/runtime/ARCHITECTURE.md, specs/RELIABILITY.md
packages/shared/src/schemas/ARCHITECTURE.md (Type safety)
package.json scriptsCLAUDE.md + AGENTS.md Commands sections
New apps/packages dirsARCHITECTURE.md (Monorepo layout)
Config generatorspecs/references/openclaw-config-schema.md, specs/openclaw-config-reference.md
Auth changesspecs/SECURITY.md
New/moved doc filesCLAUDE.md Doc Map, AGENTS.md Where to look, relevant index files

Cross-Reference Pairs

Always verify consistency between these paired docs:

  1. CLAUDE.md Commands section <-> AGENTS.md Commands section (same entries)
  2. CLAUDE.md Documentation Map paths <-> actual files on disk
  3. CLAUDE.md Hard Rules <-> AGENTS.md Hard rules
  4. ARCHITECTURE.md monorepo layout <-> actual apps/ + packages/ dirs
  5. specs/DESIGN.md table <-> actual specs/design-specs/ + specs/designs/ contents
  6. specs/design-specs/index.md table <-> actual design files
  7. specs/product-specs/index.md table <-> actual specs/product-specs/*.md files
  8. specs/PLANS.md table <-> specs/exec-plans/{active,completed}/ contents
  9. specs/FRONTEND.md Pages table <-> apps/web/src/app.tsx routes

Scope Filters

When the user specifies a scope keyword, limit the check to that area:

KeywordWhat it checks
dbSchema source vs specs/generated/db-schema.md
apiRoute files vs specs/references/api-patterns.md
frontendapps/web/ vs specs/FRONTEND.md
commandspackage.json scripts vs CLAUDE.md/AGENTS.md Commands sections
architectureAll apps/ + packages/ vs ARCHITECTURE.md layout
securityAuth/crypto code vs specs/SECURITY.md
linksVerify all doc map paths and index references resolve to existing files
guidesspecs/guides/** internal cross-references
designsspecs/designs/** + specs/design-specs/** vs index files
exec-plansspecs/exec-plans/** vs specs/PLANS.md
product-specsspecs/product-specs/** vs index + specs/PRODUCT_SENSE.md

Rules

  1. Never remove forward-looking documentation — ask if uncertain whether content is aspirational or stale.
  2. Preserve original language (English/Chinese) and writing style of existing docs.
  3. For backend API updates, treat apps/controller as the source of truth; do not reference removed legacy package paths.
  4. Always verify CLAUDE.md <-> AGENTS.md consistency after any update to either file.
  5. Do NOT auto-commit — present the diff summary and let the user decide when to commit.

Workflow

  1. Determine mode from user request (default: delta).
  2. If delta mode: run the git diff commands above, collect changed files.
  3. Map changed files to affected docs using the Impact Mapping.
  4. Read each affected doc and compare against current code.
  5. Check all Cross-Reference Pairs for consistency.
  6. Present findings: what's outdated, what's missing, what's inconsistent.
  7. Apply fixes with user approval.
  8. After fixes, re-verify Cross-Reference Pairs touched by changes.

Reviews

No reviews yet. Tell others what you thought.

Comments

No login needed. Share how it worked for you, ask a question, or note where it did not run.

No comments yet. Be the first to write one.

Comments are published right away. Do not include personal information such as email addresses or phone numbers. Up to 2 URLs.

0 / 1,000 characters

This form is protected by reCAPTCHA, and the Google Privacy Policy and Terms of Service apply.

More skills from this repository

clawhub

FreeSummary

Use the ClawHub command-line tool to find and install agent skills, update them to the latest or a specified version, list installed skills, and publish skill folders with version numbers and change notes.

  • Find and install a skill for a task
  • Install or update a skill to a specific version
  • Update all installed skills
nexu-io/nexu3.3KUpdated Apr 26, 2026

coding-agent

FreeSummary

Delegate feature development, code refactoring, and pull request reviews to Codex, Claude Code, Pi, or OpenCode. It guides background execution, progress monitoring, and parallel work in separate working directories.

  • Delegating new feature or app development
  • Reviewing pull requests in a separate working directory
  • Refactoring a large codebase
nexu-io/nexu3.3KUpdated Apr 26, 2026

datadog

FreeSummary

Investigate Nexu production issues through the Datadog Logs API. Search crash events, error output, startup activity, and API failures, then summarize findings by time, running instance, and deployed version to help trace related events.

  • Investigate OpenClaw crashes
  • Compare crash timing with deployments
  • Trace Slack authentication errors
nexu-io/nexu3.3KUpdated Apr 26, 2026

deep-research

FreeSummary

Turn a broad research topic into a structured report with traceable sources. The workflow defines questions, prioritizes authoritative material, separates facts from assumptions, compares evidence, and uses an independent agent to check key data and reasoning.

  • Comparing products or technical concepts
  • Weighing costs and risks before a decision
  • Investigating trends and their underlying drivers
nexu-io/nexu3.3KUpdated Apr 26, 2026

feedback

FreeSummary

Send bug reports, suggestions, or other feedback to the Nexu team using `/feedback`. The submission script automatically includes conversation history and images, then reports whether the feedback was successfully forwarded.

  • Reporting a Nexu platform issue
  • Suggesting improvements to Nexu
  • Sharing feedback with conversation history and images
nexu-io/nexu3.3KUpdated Apr 26, 2026

feishu-bitable

FreeSummary

Create and manage Feishu Bitable tables for work such as customer tracking. Add, search, update, or delete records, configure columns using 27 field types, filter and sort data, and manage views or batch imports.

  • Create a customer management table
  • Find records marked as in progress
  • Import customer data in batches
nexu-io/nexu3.3KUpdated Apr 26, 2026

See all skills by nexu-io

Report a problem with this skill