跳到正文
cccskills
免费在 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.

中文简介正在准备中。当前显示英语简介。

原文查看原文说明

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

实测评分 未实测

查看安装方法

适用场景

  • 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

包含的文件(2)

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

SKILL.md(原文)

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

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.

评价

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

评论

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

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

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

0 / 1000 字

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

同一仓库的技能

clawhub

免费

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/nexu32802026年4月26日 更新

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/nexu32802026年4月26日 更新

datadog

免费

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/nexu32802026年4月26日 更新

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/nexu32802026年4月26日 更新

feedback

免费

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/nexu32802026年4月26日 更新

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/nexu32802026年4月26日 更新

查看 nexu-io 的全部技能

报告此技能的问题