Implementation Plan Review (Expert)
Review an implementation plan for coverage, correctness, and fit with the current codebase. Do not implement.
Inputs
- Implementation plan: a local file path.
- Issue/requirements: either (a) a local file path, or (b) a GitHub issue number (run from the target repo so
gh resolves it).
If the user provides a GitHub issue number, prefer fetching it into a local file using the bundled script (requires gh auth and network access; otherwise ask for a local issue description file):
bash .codex/skills/implementation-plan-review/scripts/fetch_github_issue.sh <issue-number> --out /tmp/issue.md
If the script reports that gh is not authenticated (exit code 3), ask the user to run:
gh auth login
Workflow
Ensure repo startup constraints are satisfied:
- In this repository, run
$codex-session-bootstrap before doing any other work.
Read the two inputs in full:
- Plan file
- Issue description file (or the fetched
/tmp/issue.md)
Apply strict versioning-comment policy:
- Do not request or suggest any version bump (package version,
server.json, etc.) unless the issue description explicitly requires a version bump/release/publish/tag.
- Even if the plan changes externally-consumed surfaces (tool schemas, REST/OpenAPI, manifests), treat missing version bump steps as intentional unless the issue says otherwise.
Validate codebase reality (start targeted, expand as needed):
- Start by finding referenced modules/configs/env vars/tests with
rg (fast and low-noise).
- Prefer opening the minimal set of files first to confirm patterns and naming, but broaden freely if you suspect hidden coupling or cross-cutting behavior (e.g., shared helpers, config loading, response models, pagination, truncation).
- If the plan touches MCP tools, REST API, docs, or tests, cross-check relevant
.cursor/rules/*.mdc guidance.
- If it improves confidence, use any other repo investigation strategy (e.g., inspect docs like
SPEC.md/API.md, check tests, use git blame, or run unit tests/lint locally).
Suggested commands (adapt as needed):
rg -n "name_in_plan|function_in_plan|ENV_VAR_IN_PLAN" -S .
rg -n "ToolResponse\\[|@mcp\\.tool\\(|log_tool_invocation" blockscout_mcp_server -S
rg -n "ServerConfig\\(|BaseSettings\\(|BLOCKSCOUT_" blockscout_mcp_server/config.py -S
rg -n "pytest\\.mark\\.integration|tests/integration|tests/tools" tests -S
- Produce the review in the required format (next section).
Required output format
Produce a review with these sections:
1) Understanding
- Issue summary
- Acceptance criteria (bulleted)
2) Plan ↔ Requirements coverage
- What is covered well
- What is missing / ambiguous
3) Codebase alignment
- Key files/modules you inspected (with paths)
- Assumptions in the plan that match the codebase
- Assumptions that don’t match (explain and suggest correction)
4) Review comments (actionable)
Provide comments as a list. Each comment must include:
- Severity:
Blocker | Major | Minor | Question | Nit
- Location: plan section/step + (when relevant) repo file/function/class
- Problem: what’s wrong / missing
- Recommendation: concrete change to the plan
- Rationale: why it matters (bug risk / security / perf / maintainability)
Testing gaps rule:
- List every specific missing/incorrect test as an actionable comment in §4.
- In §6, provide a consolidated checklist that references those items without repeating full explanations.
5) Junior-dev readiness check
- Missing prerequisites, commands, step ordering, “how to verify”
- Where the plan needs more explicit detail
6) Test & rollout strategy
- Consolidated test checklist (Unit / Integration / E2E / Negative & security / Performance & regression), referencing §4 test comments
- Migration/rollback plan if applicable
- Feature flags / safe rollout suggestions if applicable
Review focus checklist (use as prompts, not new requirements)
- Coverage: every acceptance criterion mapped to plan steps.
- Codebase alignment: paths, module structure, naming, existing helpers and patterns.
- Edge cases & compatibility: pagination, timeouts, empty results, truncation limits, backward compatibility.
- Security: input validation, SSRF/DNS rebinding boundaries, secrets handling, logging redaction, auth assumptions.
- Performance/scale: API call counts, caching, pagination strategy, long-running tasks/progress updates.
- Ops/observability: error handling, logs, metrics/telemetry/analytics implications, rollout/rollback.
- Versioning: only comment if explicitly required by the issue description; otherwise assume omission is intentional.
Converted and distributed by TomeVault — claim your Tome and manage your conversions.
1---2name: implementation-plan-review3description: Expert review of an implementation plan against a GitHub issue/enhancement description (provided as a local file or a GitHub issue URL) and the current repository codebase. Use when asked to critique a plan for correctness, completeness, codebase alignment, risks, and test/rollout readiness (do not implement). Use when this capability is needed.4---56# Implementation Plan Review (Expert)78Review an implementation plan for coverage, correctness, and fit with the current codebase. Do not implement.910## Inputs1112- Implementation plan: a local file path.13- Issue/requirements: either (a) a local file path, or (b) a GitHub issue number (run from the target repo so `gh` resolves it).1415If the user provides a GitHub issue number, prefer fetching it into a local file using the bundled script (requires `gh` auth and network access; otherwise ask for a local issue description file):1617```bash18bash .codex/skills/implementation-plan-review/scripts/fetch_github_issue.sh <issue-number> --out /tmp/issue.md19```2021If the script reports that `gh` is not authenticated (exit code `3`), ask the user to run:2223```bash24gh auth login25```2627## Workflow28291) Ensure repo startup constraints are satisfied:30 - In this repository, run `$codex-session-bootstrap` before doing any other work.31322) Read the two inputs in full:33 - Plan file34 - Issue description file (or the fetched `/tmp/issue.md`)35363) Apply strict versioning-comment policy:37 - Do **not** request or suggest any version bump (package version, `server.json`, etc.) unless the **issue description explicitly requires** a version bump/release/publish/tag.38 - Even if the plan changes externally-consumed surfaces (tool schemas, REST/OpenAPI, manifests), treat missing version bump steps as **intentional** unless the issue says otherwise.39404) Validate codebase reality (start targeted, expand as needed):41 - Start by finding referenced modules/configs/env vars/tests with `rg` (fast and low-noise).42 - Prefer opening the minimal set of files *first* to confirm patterns and naming, but broaden freely if you suspect hidden coupling or cross-cutting behavior (e.g., shared helpers, config loading, response models, pagination, truncation).43 - If the plan touches MCP tools, REST API, docs, or tests, cross-check relevant `.cursor/rules/*.mdc` guidance.44 - If it improves confidence, use any other repo investigation strategy (e.g., inspect docs like `SPEC.md`/`API.md`, check tests, use `git blame`, or run unit tests/lint locally).4546Suggested commands (adapt as needed):4748```bash49rg -n "name_in_plan|function_in_plan|ENV_VAR_IN_PLAN" -S .50rg -n "ToolResponse\\[|@mcp\\.tool\\(|log_tool_invocation" blockscout_mcp_server -S51rg -n "ServerConfig\\(|BaseSettings\\(|BLOCKSCOUT_" blockscout_mcp_server/config.py -S52rg -n "pytest\\.mark\\.integration|tests/integration|tests/tools" tests -S53```54551) Produce the review in the required format (next section).5657## Required output format5859Produce a review with these sections:6061### 1) Understanding6263- Issue summary64- Acceptance criteria (bulleted)6566### 2) Plan ↔ Requirements coverage6768- What is covered well69- What is missing / ambiguous7071### 3) Codebase alignment7273- Key files/modules you inspected (with paths)74- Assumptions in the plan that match the codebase75- Assumptions that don’t match (explain and suggest correction)7677### 4) Review comments (actionable)7879Provide comments as a list. Each comment must include:8081- Severity: `Blocker | Major | Minor | Question | Nit`82- Location: plan section/step + (when relevant) repo file/function/class83- Problem: what’s wrong / missing84- Recommendation: concrete change to the plan85- Rationale: why it matters (bug risk / security / perf / maintainability)8687**Testing gaps rule:**8889- List every specific missing/incorrect test as an actionable comment in **§4**.90- In **§6**, provide a consolidated checklist that references those items **without repeating full explanations**.9192### 5) Junior-dev readiness check9394- Missing prerequisites, commands, step ordering, “how to verify”95- Where the plan needs more explicit detail9697### 6) Test & rollout strategy9899- Consolidated test checklist (Unit / Integration / E2E / Negative & security / Performance & regression), referencing §4 test comments100- Migration/rollback plan if applicable101- Feature flags / safe rollout suggestions if applicable102103## Review focus checklist (use as prompts, not new requirements)104105- Coverage: every acceptance criterion mapped to plan steps.106- Codebase alignment: paths, module structure, naming, existing helpers and patterns.107- Edge cases & compatibility: pagination, timeouts, empty results, truncation limits, backward compatibility.108- Security: input validation, SSRF/DNS rebinding boundaries, secrets handling, logging redaction, auth assumptions.109- Performance/scale: API call counts, caching, pagination strategy, long-running tasks/progress updates.110- Ops/observability: error handling, logs, metrics/telemetry/analytics implications, rollout/rollback.111- Versioning: only comment if explicitly required by the issue description; otherwise assume omission is intentional.112113---114> Converted and distributed by [TomeVault](https://tomevault.io/claim/blockscout) — claim your Tome and manage your conversions.115<!-- tomevault:4.0:skill_md:2026-04-11 -->