一键导入
check-docs
Check if documentation (README.md, .claude/CLAUDE.md) is up to date with recent code changes. Use when code has been modified and docs may be stale.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Check if documentation (README.md, .claude/CLAUDE.md) is up to date with recent code changes. Use when code has been modified and docs may be stale.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Proactively hunt for cdk-local bugs by synthesizing real CDK apps that exercise common-but-untested AWS resources, configs, and CloudFormation notations, then RUNNING them locally in Docker (invoke / start-api / run-task / start-service / start-alb / start-cloudfront / invoke-agentcore / studio) and catching local-execution failures + divergences from deployed behavior. Use for a periodic "find latent bugs" sweep, not for verifying a specific change.
Work through already-filed GitHub issues (typically the bug-hunt's output) end to end — triage safely, pick a few FILE-DISJOINT issues to fix in parallel, claim each on the issue before starting (collision-safe with other agents), verify, then carry each through merge (via /merge-pr) → pull → worktree cleanup. Use when asked to "handle/address filed issues", not to hunt for new bugs (that is /hunt-bugs).
Squash-merge a PR and fully clean up the feature worktree + local branch, without tripping the side-worktree `'main' is already used by worktree` fatal and without bypassing the merge-time gates.
Detect and delete leftovers from interrupted cdk-local runs — Docker containers / networks, AND orphaned vitest forks worker processes that failed to terminate (issue
Triggers when a PR adds a new subcommand factory, CLI option, public helper, or behavior change to cdk-local that cdkd (host CLI) may need to inherit. Walks the diff and pins each category to "exported via internal.ts / inside add<Cmd>SpecificOptions / cdkd notified" — sets the cdkd-parity marker so gh pr create can fire.
Comprehensive PR readiness check before merge. Run quality checks, tests, CI, documentation, Docker / integ verification, and code review.
| name | check-docs |
| description | Check if documentation (README.md, .claude/CLAUDE.md) is up to date with recent code changes. Use when code has been modified and docs may be stale. |
Check whether documentation is up to date with recent code changes.
Identify what changed: Run git diff main...HEAD --name-only (or git diff HEAD~5 --name-only if on main) to see recently changed source files.
Decide whether a deep review is needed (short-circuit). The docs gate's scope includes src/**, so any src edit invalidates the marker — but most internal refactors and bug fixes don't affect anything the docs describe. Skip the LLM-judged review and set the marker directly when the diff only touches files that the docs don't describe. A deep review is required if the diff touches ANY of:
src/index.ts — public library exportssrc/cli/index.ts, src/cli/commands/** — CLI surface described in README.mdsrc/types/** — public type definitionssrc/** — must be mentioned in .claude/CLAUDE.md "Architecture" sectionpackage.json — dependency additions/removalsREADME.md, .claude/CLAUDE.md, .claude/rules/**, docs/** (when it exists) — the docs themselvesIf none of the above apply (only internal src files modified, no new files, no deps changed), write a one-line note — "no docs-visible surface touched" — set the docs marker (see "Commit-gate marker" below), and stop. Do NOT re-read docs for unrelated internal edits.
For each changed source file (when a deep review is warranted), determine what documentation might be affected:
src/cli/ changes → check CLI options/commands in README.md, .claude/CLAUDE.mdsrc/synthesis/ changes → check .claude/CLAUDE.md Architecture sectionsrc/local/ changes → check README.md usage examples + scope statement, .claude/CLAUDE.md "Runs locally" listsrc/assets/ changes → check .claude/CLAUDE.md Architecture section.claude/CLAUDE.md "Architecture"src/index.ts → check if README usage matchespackage.json dependency changes → mention in .claude/CLAUDE.md if user-facingRead the relevant documentation sections and compare with the actual code to find:
.claude/CLAUDE.md "Positioning" rule (no naming, recommending, or comparing against any third-party product — sam local is the only sanctioned exception).Report findings as a checklist:
Fix the issues if the user agrees, or ask for confirmation first.
After documentation is verified consistent (either no issues were found, or all issues were fixed), record the docs markgate marker:
mise exec -- markgate set docs
Skip this step if issues remain unfixed.
.claude/CLAUDE.md "Workflow rules")cdkd -> cdk-local)