artifact-inline-plan-rereview
Recover adversarial plan reviews when providers keep reading stale remote/main content instead of the revised local artifact.
Best use case
artifact-inline-plan-rereview is best used when you need a repeatable AI agent workflow instead of a one-off prompt.
Recover adversarial plan reviews when providers keep reading stale remote/main content instead of the revised local artifact.
Teams using artifact-inline-plan-rereview 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/artifact-inline-plan-rereview/SKILL.mdinside your project - Restart your AI agent — it will auto-discover the skill
How artifact-inline-plan-rereview Compares
| Feature / Agent | artifact-inline-plan-rereview | 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?
Recover adversarial plan reviews when providers keep reading stale remote/main content instead of the revised local artifact.
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.
SKILL.md Source
# Artifact-Inline Plan Re-Review Use this when a plan has been tightened locally but provider reruns keep reviewing an older remote/main version. ## When to use - The plan file was revised locally after earlier MAJOR/MINOR findings - A provider returns findings about content you already removed - Path-based or repo-discovery prompts are likely to fetch stale branch/default-branch state ## Reliable recovery pattern 1. Read the revised local plan artifact from disk. 2. Extract only the exact sections under review, typically: - Deliverable - Scope Boundaries - Linkage Strategy - Downstream Integration Surface - Pseudocode - Files to Change - TDD Test List - Acceptance Criteria 3. Build a compact self-contained prompt that explicitly says: - review ONLY the inline artifact below - do NOT substitute any remote/main/branch version 4. Run the provider against that inline-artifact bundle, not a path-only prompt. 5. Treat this rerun as authoritative if it resolves stale-remote drift and materially changes the verdict. ## Why this works Provider sandboxes or GitHub connectors may prefer remote/default-branch content over fresh local edits. Inline artifact prompts force review against the intended version. ## Guardrails - Keep the prompt compact; include only the sections needed for the decision. - For Codex CLI, do not use the obsolete `--no-interactive` flag; current `codex exec` rejects it. Prefer `codex exec "$(< prompt.md)"` or stdin/file-based invocation supported by the installed CLI. - Avoid sending a full large plan inline unless necessary. Large inline prompts can hang with empty output; first try a narrowed artifact bundle containing only the sections tied to the prior MAJOR findings. - Run inline re-reviews with explicit timeout/process monitoring. If a provider produces empty stdout and no useful stderr after the timeout, kill it and record the run as infrastructure/no-signal, not as a review verdict. - Remove or clearly quarantine empty/partial review artifacts from failed/hung runs so later approval checks do not mistake them for clean review evidence. - Say explicitly that the local artifact was revised after prior review. - Summary-only prompts are not enough when the provider can still infer remote/default-branch content; inline the exact local sections under review. - If the provider still mentions removed content, discard that run as stale-context contamination and rerun. - Before replacing canonical review artifacts, compare the findings against the current local plan text and confirm the reviewer is no longer talking about already-removed items. ## Child-issue sequencing lesson When reviewing child plans in parallel, Codex may still return structural MAJOR findings if the child plan assumes parent artifacts that are approved conceptually but not yet present on current `main`. Add these explicitly in the child plan: - exact parent issue dependency - statement that the parent contract/files may not yet exist on current `main` - wording that the child consumes that future parent surface rather than modifying today's unrelated legacy/sanction-era files This is especially important for follow-up issue trees where multiple child plans are being adversarially reviewed in the same wave. ## Missing-artifact / branch-drift recovery lesson If the expected revised plan artifact vanishes, truncates, or is absent because the current checkout is on an unrelated planning branch: 1. Stop editing the dirty/mismatched checkout; do not recreate the plan in-place if it risks trampling another active branch. 2. Inspect `git branch --show-current`, `git worktree list`, `origin/main`, and the GitHub issue state. 3. Create an isolated approval/review worktree from current `origin/main`, for example: `git worktree add /mnt/local-analysis/worktrees/<repo>-<issue>-approval origin/main` 4. Reconstruct or compact the current plan there from durable issue comments, repo evidence, and current source files. Prefer a concise approval-ready artifact over restoring stale verbose review-history prose. 5. Apply approval-stage hygiene before review: remove stale process narration, fix duplicate plan-index rows, ensure `READY` means implemented evidence (not merely approved future plans), and pin schema/test failure semantics. 6. If provider CLIs are unstable or hang, use isolated `delegate_task` reviewers against the exact local artifact and persist concise review artifacts manually only after they produce real signal. Empty/hung artifacts must be deleted or quarantined. 7. Commit and push the docs/review-artifact state before labeling the issue `status:plan-review`, rebasing on `origin/main` if push is rejected as non-fast-forward. ## Example use case On 2026-04-22 for worldenergydata issue #334, Codex initially returned a false MAJOR by reviewing stale remote/main content. An artifact-inline rerun against the exact revised local sections changed the verdict to MINOR and aligned with the actual bounded plan. In the same wave, child-plan reviews for #335–#338 showed that Codex often blocks plans as mis-grounded to `main` unless parent dependency and future-surface assumptions are made explicit.
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.
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
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
external-drive-ingest-planning
Plan safe external-drive ingests into repo-aligned storage such as /mnt/ace: read-only mounts, manifests, staged rsync, dedupe-merge gates, GitHub issue traceability, and governance/execution split.
user-approved-plan-state-sync
Reconcile GitHub and local repo state when a plan has been user-approved, including direct approval messages that require creating the local marker and moving the issue to status:plan-approved.
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.
split-plan-governance-vs-substance
When repeated adversarial plan reviews keep returning MAJOR findings about validator mechanics, evidence bookkeeping, or governance traceability rather than the core product or mission decision, stop tightening the monolithic plan and split it into a content/decision packet and a tooling/enforcement packet.