adversarial-review-prompt-refresh-guard
Prevent stale plan/code review prompts from being sent to Codex/Gemini after the underlying artifact changed.
Best use case
adversarial-review-prompt-refresh-guard is best used when you need a repeatable AI agent workflow instead of a one-off prompt.
Prevent stale plan/code review prompts from being sent to Codex/Gemini after the underlying artifact changed.
Teams using adversarial-review-prompt-refresh-guard 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/adversarial-review-prompt-refresh-guard/SKILL.mdinside your project - Restart your AI agent — it will auto-discover the skill
How adversarial-review-prompt-refresh-guard Compares
| Feature / Agent | adversarial-review-prompt-refresh-guard | 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?
Prevent stale plan/code review prompts from being sent to Codex/Gemini after the underlying artifact changed.
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.
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
# Adversarial Review Prompt Refresh Guard Use this when running adversarial plan/code reviews through prompt files such as `.planning/quick/review-<issue>-prompt.md`. ## When to use - You patched a plan after review findings - You are running a second/third review wave - You generate provider prompts from local files before calling `codex exec` / `gemini exec` ## Core risk A revised plan file can be current while the provider prompt file is stale. When that happens, reviewers attack already-fixed artifact paths or old deliverables, producing misleading repeat `MAJOR` findings. ## Required workflow 1. After every material plan edit, regenerate the review prompt from the current plan text. 2. Verify the prompt file itself before dispatch. 3. Search the prompt for newly added artifact paths / acceptance criteria. 4. Search the prompt for removed or superseded paths from the earlier draft. 5. Reconcile the plan artifact's own self-referential sections before rerun: - `## Adversarial Review Summary` - any `Revisions required` / `Revisions made` bullets - any open-question text that the latest patch actually resolved - any old overall-result line like `FAIL` / `not approval-ready` 6. Only then launch Codex/Gemini. ## Minimal verification pattern - Regenerate: rewrite `.planning/quick/review-<issue>-prompt.md` - Verify current content with `read_file()` or `search_files()` - Confirm: - new artifact paths are present - removed old paths are absent - updated acceptance criteria are present - issue body + latest plan text are both included - the plan file does not still self-declare stale review state from the previous wave - rerun-specific blockers are reflected as either fixed or still-open, not both ### Artifact self-consistency guard A rerun can fail even with a fresh prompt if the plan file itself still contains stale review narrative. Common failure mode seen in live use: - the plan still says `**Overall result:** FAIL` - `Revisions required` still list changes that are already patched into the draft - tests/acceptance criteria are updated, but the plan's own review summary still describes the old state Reviewers treat those contradictions as real defects. Before rerun, update or neutralize stale self-referential sections so the artifact is internally consistent. ## Heuristic If reviewers complain about paths/artifacts you already fixed, treat stale-prompt packaging as a possible root cause before accepting the finding as a new defect in the current plan. ## Good signs - prompt file mentions the same paths as the latest plan - provider output references the new artifact names - repeated review findings shrink or change after the prompt refresh ## Bad signs - provider output criticizes deleted artifact paths - prompt file still contains old report locations - second-wave review repeats first-wave findings word-for-word despite real plan changes ## Suggested artifact set per issue - `.planning/quick/review-<issue>-prompt.md` - `.planning/quick/review-<issue>-codex.out` - `.planning/quick/review-<issue>-gemini.out` - `scripts/review/results/YYYY-MM-DD-plan-<issue>-codex.md` - `scripts/review/results/YYYY-MM-DD-plan-<issue>-gemini.md` ## Why this matters This guard prevents false negative review cycles, wasted rework, and presenting non-current criticism to the user as if it applied to the latest draft.
Related Skills
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.
tdd-verification-and-adversarial-review
Verify pre-written TDD tests pass, conduct adversarial code review on committed diffs, and route findings to existing issues
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
agent-team-prompt-generation
Create self-contained execution prompts that define multi-role workflows for Codex sessions without external dependencies
adversarial-code-review-tdd
Systematic adversarial review pattern to identify breaking assumptions in already-passing test suites
adversarial-code-review-for-committed-diffs
Systematic process for reviewing already-committed code changes to catch type inconsistencies, edge cases, and docstring gaps
adversarial-code-review-and-fix
Systematic pattern for catching design flaws in already-passing code through adversarial review, then fixing them with TDD confirmation.
learned-git-worktree-hook-path-and-real-hook-shape-review
Catch hook-installation and governance bugs that only appear in linked git worktrees or against the real generated hook shape, not simplified test fixtures.
ten-agent-pre-plan-review-wave
Launch and verify a 10-agent planning-only wave that moves open GitHub issues into status:plan-review using one isolated worktree per issue, wave-specific continuation cron, and post-run artifact-reconciliation checks.
static-site-build-artifact-plan-review
Plan-review pattern for static-site fixes where the deployed artifact is generated from source files (e.g. sitemap/robots/static assets). Prevents review churn by separating durable regression checks from one-time migration verification and by validating built output, not just source files.