一键导入
sync
Synchronize CLAUDE.md and README with recent code changes.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Synchronize CLAUDE.md and README with recent code changes.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
| name | sync |
| description | Synchronize CLAUDE.md and README with recent code changes. |
| version | 3.0.0 |
| model | claude-sonnet-4-6 |
recent: Last 5 commits (default)full: Full codebase scanYou are the documentation coordinator. You detect changes, delegate review to the librarian, and present diffs for user approval. You do NOT make documentation changes yourself — you coordinate the process.
Tool: Bash (direct — coordinator does this)
Determine scope:
$ARGUMENTS is empty: scope = "recent"$ARGUMENTSValidate scope is one of: recent, full. If not, stop with:
"Invalid scope. Use: /sync [recent|full]"
If scope is "recent":
Run: git log -5 --oneline --name-status
If scope is "full":
Run: git log -20 --oneline --name-status
Extract:
Derive timestamp: [timestamp] = current ISO datetime (e.g., 2026-02-07T12-30-00)
Tool: Grep, pattern=process\.env|os\.getenv|ENV\[|getenv\(|std::env, output_mode=content
Search for environment variable references in:
Generate list of environment variables found.
Tool: Read (direct — coordinator does this)
Read CLAUDE.md and check which environment variables are already documented.
Create a list of undocumented environment variables (found in code but not in CLAUDE.md).
Tool: Task, subagent_type=general-purpose, model=claude-sonnet-4-6
Prompt: "You are reviewing documentation for currency and accuracy.
Recent changes: [Paste commit list and changed files from Step 1]
Undocumented environment variables: [List from Step 2]
Task:
CLAUDE.md and README.md filesWrite ./plans/sync-[timestamp].review.md with this structure:
[CURRENT / UPDATES_NEEDED]
(Changes that must be made for accuracy)
(Optional improvements)
(Why these changes are needed - reference specific commits or code changes)"
Read ./plans/sync-[timestamp].review.md and check verdict.
If verdict is CURRENT: Output: "✅ Documentation is current. No updates needed.
Review: ./plans/sync-[timestamp].review.md"
Stop the workflow.
If verdict is UPDATES_NEEDED:
Tool: Task, subagent_type=general-purpose, model=claude-sonnet-4-6
Prompt: "You are updating project documentation based on a librarian review.
Read the review at ./plans/sync-[timestamp].review.md.
Apply all Required Updates to CLAUDE.md and README.md.
Use the Edit tool to make precise changes.
Follow markdown best practices:
Do NOT add suggested updates unless they're critical. Do NOT change formatting or structure unnecessarily."
Tool: Bash (direct — coordinator does this)
Run: git diff CLAUDE.md README.md
Present the diff output to the user with this message:
"📝 Documentation changes ready for review:
[Show git diff output]
Review the changes above.
To accept these changes:
git add CLAUDE.md README.md
git commit -m \"docs: sync with codebase
Updates documentation to reflect recent code changes.
Review: ./plans/sync-[timestamp].review.md
Co-Authored-By: Claude Sonnet <noreply@anthropic.com>\"
To reject:
git restore CLAUDE.md README.md
Review: ./plans/sync-[timestamp].review.md"
Tool: Bash (direct — coordinator does this)
Run: mkdir -p ./plans/archive/sync && mv ./plans/sync-[timestamp].review.md ./plans/archive/sync/
Output: "Review archived to ./plans/archive/sync/sync-[timestamp].review.md"
Research and create a technical blueprint for a new feature.
Execute an approved plan using unattended implementation and validation with worktree isolation.
Apply targeted fixes for specific findings from code reviews, security reviews, QA reports, or audit scans.
Deep semantic security review of code changes with data flow tracing, taint analysis, and trust boundary validation. Composable building block invoked by /audit when deployed.
Deep security and performance scan with structured reporting.
Supply chain security audit — coordinates real CLI vulnerability scanners (npm audit, pip-audit, govulncheck, cargo audit, etc.) and synthesizes findings with license compliance and risk assessment.