一键导入
check-docs
Check if documentation (README.md, CLAUDE.md, docs/) 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.md, docs/) 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 职业分类
Detect and delete leftover AWS resources from cdkd integration tests. Only targets resources matching known cdkd stack name patterns.
Proactively hunt for cdkd bugs by deploying real CDK apps that exercise common-but-untested AWS resources, configs, and CloudFormation notations against real AWS, then fix what breaks. 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 against real AWS, then carry each through merge → pull → release → rebuild the linked binary → worktree cleanup. Use when asked to "handle/address filed issues", not to hunt for new bugs (that is /hunt-bugs).
Recommend which integration tests to run, based on the integ ledger (staleness / last result) plus the code areas touched by recent commits. Outputs a prioritized list of `/run-integ <name>` commands. Use before a release, after a batch of merges, or when unsure what integ coverage a change needs.
Scaffold a new integration test for cdkd. Creates a minimal CDK app with the specified AWS resources for deploy/destroy E2E testing.
Run integration tests (deploy + destroy) against real AWS. Use when you need to verify cdkd works end-to-end with actual AWS resources.
| name | check-docs |
| description | Check if documentation (README.md, CLAUDE.md, docs/) is up to date with recent code changes. Use when code has been modified and docs may be stale. |
You are checking whether documentation is up to date with recent code changes in this repository.
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 exportssrc/cli/options.ts, src/cli/commands/** — CLI surface described in README.mdsrc/types/** — public type definitionssrc/state/** — bucket name, key layout, lock layout, schema version. These are documented verbatim in docs/state-management.md, docs/troubleshooting.md, README.md ("Outputs" example path), and CLAUDE.md ("S3 storage structure"). A path-layout change in s3-state-backend.ts or lock-manager.ts invalidates ~30 shell snippets across those files; the auto-migration session of 2026-05-01 (PR #57 → v0.7.0) shipped before this trigger existed and the docs took the full rollout to be re-aligned.src/** — must be mentioned in CLAUDE.md "Key Files and Directories"package.json — dependency additions/removals described in CLAUDE.md "Dependencies"README.md, CLAUDE.md, docs/**, .claude/rules/** — 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.mdsrc/synthesis/ changes → check docs/architecture.md synthesis section, CLAUDE.md synthesis sectionsrc/assets/ changes → check docs/architecture.md asset section, CLAUDE.md asset sectionsrc/deployment/ changes → check docs/architecture.md deployment section, CLAUDE.md deployment sectionsrc/provisioning/ changes → check docs/provider-development.md, CLAUDE.md provider sectionsrc/analyzer/ changes → check docs/architecture.md analysis sectionsrc/state/ changes → check docs/state-management.mdsrc/index.ts → check if public API docs are updatedpackage.json dependency changes → check CLAUDE.md "Dependencies" sectionRead the relevant documentation sections and compare with the actual code to find:
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 so the PreToolUse check-gate hook (see .claude/hooks/check-gate.sh) allows the next git commit. The docs gate is scoped to src/**, docs/**, README.md, CLAUDE.md, and .claude/rules/** via .markgate.yml, so it only invalidates when one of those is edited.
Run from the repo root (use mise exec to avoid PATH issues when shims aren't active):
mise exec -- markgate set docs
Skip this step if issues remain unfixed — a stale or missing marker correctly forces the user (or Claude) to re-run /check-docs after fixing docs.
docs/changelog-cdkd.md (the per-PR shipped-feature changelog moved out of CLAUDE.md per Claude Code's ≤200-line memory guidance) for stale entries