一键导入
check-docs
Check if documentation (README.md, DESIGN.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, DESIGN.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 职业分类
Proactively hunt for cdkrd bugs by deploying real CDK stacks that exercise common-but-untested AWS resources, configs, and CloudFormation notations against real AWS, then catch false positives + missed detection and fix what breaks. Use for a periodic "find latent bugs" sweep, not for verifying a specific change.
Discover and delete leftover cdkrd TEST AWS resources (ephemeral stacks + stack-external orphans like IAM roles, log groups, RETAIN resources), then release the bughunt-clean gate. Use as the cleanup phase of /work-issues live-tests and /hunt-bugs, or standalone to sweep test debris. NEVER touches non-cdkrd or production resources.
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 → pull → release → global install → worktree cleanup. Use when asked to "handle/address filed issues", not to hunt for new bugs (that is /hunt-bugs).
Run local quality checks (typecheck, lint, build, tests). Quick check during development.
Comprehensive pre-release verification. Run quality checks, docs consistency, a live-test of changed behavior, and a short retrospective before tagging a release.
| name | check-docs |
| description | Check if documentation (README.md, DESIGN.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
cdk-real-drift (cdkrd). The docs markgate gate is scoped to src/**,
docs/**, README.md, and DESIGN.md (see .markgate.yml), so any src edit
invalidates the marker — but most internal refactors don't affect anything the
docs describe.
Identify what changed: Run git diff HEAD~5 --name-only (solo repo, no PR
base) to see recently changed files.
Decide whether a deep review is needed (short-circuit). Skip the LLM-judged review and set the marker directly when the diff only touches files the docs don't describe. A deep review is required if the diff touches ANY of:
src/cli.ts — the HELP text and command/flag surface documented verbatim
in README.md "Commands & options" and "Quick start".src/cli-args.ts — flag parsing (flag names, defaults, exit codes).src/revert/writers.ts — SDK_WRITERS is the set of types cdkrd can
actually revert. README.md "Known limitations" makes claims about what is /
is not revertable; a change to SDK_WRITERS keys can make a "not
revertable" claim stale (or vice versa).src/read/router.ts / src/read/overrides.ts — the CC-API vs SDK-override
read routing, documented in README.md "CC-gap types read via SDK overrides".src/** — confirm it doesn't contradict the
architecture described in DESIGN.md.package.json — dependency additions/removals (README.md "Develop" /
"Install" mention the toolchain).README.md, DESIGN.md, docs/** — the docs themselves.If none of the above apply (only internal src files, no new files, no deps
changed), write a one-line note — "no docs-visible surface touched" — set the
docs marker (see below), and stop. Do NOT re-read docs for unrelated
internal edits.
When a deep review is warranted, map changed source to docs:
src/cli.ts (HELP) / src/cli-args.ts → README.md "Commands & options",
"Quick start", exit codes. Confirm every command (check / accept /
revert) and flag listed in the source HELP string appears in README.md,
and that README.md lists no flag the source no longer parses.src/revert/writers.ts (SDK_WRITERS) → README.md "Known limitations":
confirm the revertable / non-revertable type claims match the actual
SDK_WRITERS map keys.src/read/** → README.md "CC-gap types read via SDK overrides" and the
low-noise normalization section.package.json dependency changes → README.md "Develop".Read the relevant doc sections and compare with the actual code to find:
SDK_WRITERS.src/cli.ts.Report findings as a checklist: each discrepancy with file + section + a suggested fix. If none found, confirm documentation is consistent.
Fix the issues (or ask for confirmation first).
After documentation is verified consistent (no issues found, or all fixed),
record the docs marker so the markgate docs gate is satisfied. 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 re-running /check-docs after fixing docs.
SDK_WRITERS") over hardcoded lists that
drift.