iterative-plan-redraft-semantic-guardrails
Harden a repeatedly re-reviewed documentation/contract plan after adversarial reviewers keep finding semantic gaps despite new test rows.
Best use case
iterative-plan-redraft-semantic-guardrails is best used when you need a repeatable AI agent workflow instead of a one-off prompt.
Harden a repeatedly re-reviewed documentation/contract plan after adversarial reviewers keep finding semantic gaps despite new test rows.
Teams using iterative-plan-redraft-semantic-guardrails 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/iterative-plan-redraft-semantic-guardrails/SKILL.mdinside your project - Restart your AI agent — it will auto-discover the skill
How iterative-plan-redraft-semantic-guardrails Compares
| Feature / Agent | iterative-plan-redraft-semantic-guardrails | 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?
Harden a repeatedly re-reviewed documentation/contract plan after adversarial reviewers keep finding semantic gaps despite new test rows.
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
# Iterative Plan Redraft Semantic Guardrails Use when a plan has already gone through one or more adversarial review waves and reviewers keep finding that the draft is still not approval-ready because the plan text is internally inconsistent or the proposed tests only prove word presence, not semantics. ## When this applies Typical signals: - the plan has been patched after review, but the `## Adversarial Review Summary` still says `FAIL` / `MAJOR` as if it applies to the new text - reviewers say a requirement is "independently testable" only in the weak sense that it has its own test row, but the test is just a phrase-presence check - documentation/contract plans add new docs without bringing them under existing stale-reference guardrails - the plan cites a local artifact/report and reviewers flag ambiguity about whether it is canonical branch truth or only local attestation - open questions remain in the Risks section even though TDD/acceptance criteria already assume the decision is settled ## Core lessons 1. Historical review state must be marked as historical - If you materially patch a plan after a review wave, do NOT leave the body saying the draft currently `FAIL`s unless that still truly applies to the patched text. - Rewrite the section so prior verdicts are labeled as historical/superseded. - Add a current-state line like `PENDING RE-REVIEW` until the next rerun lands. 2. Exact pass conditions beat generic presence checks For docs/contract plans, reviewers will often reject tests like: - "requirement present" - "daily cadence language present" - "forbidden string absent" Strengthen them into exact pass conditions such as: - exact phrases that must appear - required co-location rules (same section/paragraph) - required companion obligations (for example, not just mention daily freshness, but also require refreshing a named artifact) - exact field names - exact allowed enum values - minimum example counts (`>= 3` concrete signatures, not just "multiple") 3. Resolve open-vs-required contradictions - If acceptance criteria or tests already lock a decision, do not leave the same question open under Risks/Open Questions. - Either resolve the question in the plan or make the acceptance criteria conditional. - Reviewers will mark this as a MAJOR internal contradiction. 4. Separate universal rule from local example If a plan is trying to generalize a workspace-specific path or mechanism: - define the universal concept first - then name the current local implementation as an example only Good pattern: - universal rule = `repo-vs-bulk-artifact-store` - current workspace example = `/mnt/ace/data` 5. Local attestation must not become canonical authority If you cite a local report/artifact that may not be on `main`: - say explicitly that it is local attestation only - add a negative guard stating the deliverable must NOT depend on that artifact as required canonical authority - if the same rule should apply to a class of artifacts, target the class, not one dated filename 6. Bring new docs under existing guardrails When a plan adds new standards/docs files, check whether there is already an existing stale-reference or banned-reference guard. If yes, the plan should usually include updating that guard/test so the new docs are covered too. ## Recommended redraft procedure 1. Re-read the latest review artifacts and extract only the still-live blockers. 2. Patch the plan body so historical verdicts are clearly marked as historical/superseded. 3. Replace vague acceptance/tests with exact pass conditions. 4. Resolve any open-vs-required contradictions. 5. Convert workspace-specific paths into universal-rule-plus-local-example form when needed. 6. Add explicit negative-authority language for any local-only evidence source. 7. Extend existing stale-reference/banned-reference guards when introducing new docs. 8. Refresh the review prompt from the patched plan text before rerunning reviewers. ## Good patch patterns ### A. Historical review summary Instead of: - `Overall result: FAIL` Use: - `Historical review results for the immediately previous draft revision are recorded below for traceability.` - `Current draft state: PENDING RE-REVIEW` ### B. Exact wording guard Instead of: - `daily cadence language present` Use: - requires exact phrase `daily freshness review` - requires either `every 24 hours` or `once per day` - requires named refresh obligation for a specific artifact - requires follow-through issue in the same section ### C. Checklist schema guard Instead of: - `required status fields present` Use: - exact field names: `repo_name`, `operator_map_status`, `registry_status`, `data_placement_status`, `evidence_source` - exact allowed values: `present | partial | missing | not-applicable` ## Pitfalls - Do not rerun review using a stale prompt file after patching the plan. - Do not keep piling new tests onto a plan while leaving the narrative contradictory. - Do not hardcode one dated report filename if the intended rule is about a whole artifact class. - Do not assume reviewers accept a requirement merely because it has its own test row. ## Outcome expectation This pattern does not guarantee APPROVE on the next wave, but it reliably converts vague, repetitive MAJORs into narrower MINORs or one final precise blocker that can be fixed directly.
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.