plan-review-prompt-refresh-after-plan-edits
Refresh reviewer prompt files from the latest on-disk plan before every adversarial re-review. Prevents Codex/Gemini from critiquing stale plan text after local edits.
Best use case
plan-review-prompt-refresh-after-plan-edits is best used when you need a repeatable AI agent workflow instead of a one-off prompt.
Refresh reviewer prompt files from the latest on-disk plan before every adversarial re-review. Prevents Codex/Gemini from critiquing stale plan text after local edits.
Teams using plan-review-prompt-refresh-after-plan-edits should expect a more consistent output, faster repeated execution, less prompt rewriting.
When to use this skill
- You want a reusable workflow that can be run more than once with consistent structure.
When not to use this skill
- You only need a quick one-off answer and do not need a reusable workflow.
- You cannot install or maintain the underlying files, dependencies, or repository context.
Installation
Claude Code / Cursor / Codex
Manual Installation
- Download SKILL.md from GitHub
- Place it in
.claude/skills/plan-review-prompt-refresh-after-plan-edits/SKILL.mdinside your project - Restart your AI agent — it will auto-discover the skill
How plan-review-prompt-refresh-after-plan-edits Compares
| Feature / Agent | plan-review-prompt-refresh-after-plan-edits | Standard Approach |
|---|---|---|
| Platform Support | Not specified | Limited / Varies |
| Context Awareness | High | Baseline |
| Installation Complexity | Unknown | N/A |
Frequently Asked Questions
What does this skill do?
Refresh reviewer prompt files from the latest on-disk plan before every adversarial re-review. Prevents Codex/Gemini from critiquing stale plan text after local edits.
Where can I find the source code?
You can find the source code on GitHub using the link provided at the top of the page.
Related Guides
Best AI Skills for Claude
Explore the best AI skills for Claude and Claude Code across coding, research, workflow automation, documentation, and agent operations.
AI Agents for Coding
Browse AI agent skills for coding, debugging, testing, refactoring, code review, and developer workflows across Claude, Cursor, and Codex.
Cursor vs Codex for AI Workflows
Compare Cursor and Codex for AI coding workflows, repository assistance, debugging, refactoring, and reusable developer skills.
SKILL.md Source
# Plan-review prompt refresh after plan edits
Use when:
- a GitHub issue plan is revised after MAJOR/MINOR review findings
- you are about to rerun Codex/Gemini adversarial plan review
- review prompts are stored in `.planning/quick/review-<issue>-prompt.md` or similar files
## Problem
A common failure mode is to patch the canonical plan file under `docs/plans/...`, then rerun Codex/Gemini using an old prompt file that still contains the previous plan text.
Result:
- reviewers repeat already-fixed findings
- you may think the plan is still blocked for the same reasons
- review artifacts become misleading because they are evaluating stale content, not the current draft
## Rule
After ANY material edit to the plan under review, regenerate the reviewer prompt file from the latest on-disk plan before rerunning reviewers.
Do not reuse old prompt files across review rounds unless you have explicitly rebuilt them from the current plan text.
## Required sequence
1. Edit the canonical plan file.
2. Re-read the latest plan file from disk.
3. Rebuild the review prompt file from that latest text.
4. Verify the prompt file actually contains one or two newly added phrases/artifact paths.
5. Only then dispatch Codex/Gemini.
## Verification pattern
Before dispatch, verify the refreshed prompt includes recent edits.
Examples:
- newly added artifact path
- newly added acceptance-criteria line
- newly added section header
Suggested checks:
- `search_files()` on `.planning/quick/review-<issue>-prompt.md` for the new phrase/path
- or `read_file()` the prompt and confirm the new content is present
## Minimal implementation pattern
- source of truth: `docs/plans/YYYY-MM-DD-issue-<NNN>-<slug>.md`
- derived prompt: `.planning/quick/review-<NNN>-prompt.md`
- raw reviewer logs: `.planning/quick/review-<NNN>-{codex,gemini}.out`
- canonical saved reviews: `scripts/review/results/YYYY-MM-DD-plan-<NNN>-{codex,gemini}.md`
Treat the prompt as a generated artifact, not a durable source.
## Smell test
If a reviewer complains about something you already fixed, suspect stale prompt packaging first.
Typical signals:
- reviewer cites a file path that was removed from the latest draft
- reviewer says a deliverable/artifact is missing even though it now exists in the plan
- Codex and Gemini repeat identical old blockers after a substantial rewrite
- a late background review finishes after you already patched the plan, but you treat that output as if it reviewed the newest draft
## Late-review integration rule
When a background Codex/Gemini review finishes after you have already started revising the plan:
1. read the completed review output
2. integrate only the still-relevant findings into the canonical plan
3. regenerate the prompt file from the newly edited plan
4. rerun review for that issue again before trusting the verdict state
Do not assume `review-<issue>-rN.out` corresponds to the newest plan unless you refreshed the prompt after the last edit.
## Single-issue rerun rule
After integrating a late provider finding for one issue, rerun adversarial review for that issue only.
Do not wait to batch unrelated issues together again if the blocker is local to one plan.
This keeps the feedback loop tight and avoids mixing stale/updated review rounds across different issues.
## Scope note
This is a packaging/instrumentation problem, not necessarily a plan-quality problem.
Fix the prompt refresh path first, then interpret any remaining findings.Related Skills
workspace-hub-overnight-plan-monitor
Monitor and reconcile workspace-hub overnight planning or implementation batches, including process status, result artifacts, issue/commit verification, and controlled failed-lane recovery.
plan-gated-issue-execution-wave
Execute a multi-issue architecture/planning wave in a plan-gated repo, then safely transition approved issues into implementation with file-based Codex prompts, local approval markers, subprocess monitoring, and cleanup handling for sandbox/hook edge cases.
mixed-ops-vs-repo-fix-plan-boundary
Plan mixed operational-vs-repo remediation issues by proving live-state classification first, then only proposing code changes for confirmed repo-owned failure paths.
wave-based-parallel-plan-execution
Orchestrate phase execution by discovering dependencies, grouping into waves, spawning subagents, and collecting results with optional wave filtering
tdd-verification-and-adversarial-review
Verify pre-written TDD tests pass, conduct adversarial code review on committed diffs, and route findings to existing issues
plan-gated-issue-validation-workflow
Systematic validation pattern for plan-approved GitHub issues with pre-existing deliverables
plan-gated-issue-implementation
Workflow for executing pre-approved GitHub issues with mandatory validation checkpoints
multi-role-agent-contract-review-pipeline
Execute a 4-role agent team (Planner/Architect/Reviewer/Integrator) pipeline for self-reviewing knowledge artifacts before delivery
label-driven-prompt-generation-architecture
Pattern for building automation scripts that classify GitHub issues into prompt templates using label-based routing and extract contextual data for batch processing
gsd-adversarial-review-pattern
Catch hidden test failures by running adversarial review on sparse-data edge cases before final push
freetaxusa-tax-form-navigation-credits
Pattern for navigating FreeTaxUSA's tax form flow, validating auto-calculated credits, and handling form-specific exemptions
agent-team-prompt-generation
Create self-contained execution prompts that define multi-role workflows for Codex sessions without external dependencies