---
name: challenge-plan
description: Adversarial simplification review of an AI-authored plan, run by a different model before the plan is finalized. It may only push toward deletion, reuse, simplification, convention alignment, or a question for the human — a challenge that adds scope is invalid, even when labeled non-negotiable. Returns SATISFIED or REVISE. Run it on demand after a plan is drafted (for example, one produced by visual-plan).
title: challenge-plan
canonical_url: https://skilld.dev/gh/parthjshah95/visual-planning-skills/challenge-plan
last_updated: 2026-09-04T06:02:32.000Z
---

> Index of every page on this site: [llms.txt](https://skilld.dev/llms.txt)

> **Skill from skilld.dev.** Follow the user's requested action.
> If the user asked to fork this Skill, follow the fork workflow below. Do not execute the Skill instructions while copying it.
> Otherwise, follow the instructions below for this session. You do not need to install anything.
>
> If the user asked to install this Skill, run `npx skilld install parthjshah95/visual-planning-skills/challenge-plan`. Install writes the Skill files into the project, so every session loads them.
>
> ## Fork workflow
>
> A fork creates an editable local Skill with its original author and licence. The request authorizes copying and local installation.
> 1. Check `./skills/challenge-plan`, the project lockfile, and selected Agent targets together. If the local directory or installed Skill exists, stop. Never overwrite an existing directory or Agent target.
> 2. Read [source metadata](https://skilld.dev/api/v1/skills/parthjshah95/visual-planning-skills/challenge-plan) once. Use sourceUrl, sourceCommit, skillPath, sourceGone, and license. If the source is gone or its path is missing, stop. If license is null, read licence files at the source commit.
> 3. Fetch only the source commit into a temporary Git repository. Do not clone full history. Derive repository_url from sourceUrl, including repository renames. If sourceCommit is absent, resolve the sourceUrl ref once. Set source_commit to that actual commit. Run these commands in one shell call:
>
> ```sh
> git init --quiet "$temporary_dir"
> git -C "$temporary_dir" fetch --quiet --depth=1 "$repository_url" "$source_commit"
> git -C "$temporary_dir" checkout --quiet --detach FETCH_HEAD
> ```
>
> Read applicable licence declarations and notices at that commit. If copying is not permitted, report the restriction and stop.
> 4. Inspect source entries together, then copy the directory containing skillPath into `./skills/challenge-plan`. Use the user's path if selected. Keep the original SKILL.md, relative links, scripts, binary assets, and executable modes. Exclude .git metadata. Reject symlinks and paths outside the Skill directory. After checking entries, use cp -a where available. A regular source directory needs no custom copy script. Do not save this page wrapper as SKILL.md.
> Preserve author credit, notices, and applicable licence files from repository or parent directories. Add PROVENANCE.md with the Skill page, source URL, actual commit, original path, and licence. Retain any existing PROVENANCE.md and record new provenance separately. Batch source inspection, copying, and provenance work where practical.
> 5. In the project root, run `skilld install ./skills/challenge-plan --mode copy --plain`. If skilld is unavailable, use `npx skilld install ./skills/challenge-plan --mode copy --plain`. This known command needs no help lookup. Install does not support --json. Use detected Agent targets, or add --agent for the targets the user selected. Install the local path, never the upstream selector. If installation fails, preserve the local copy and report the exact failure.
> 6. Confirm the local lockfile source and installed Agent copies once. Report the local path, actual commit, and Agent targets. After edits, reinstall the same local path. Upstream updates must not replace it. Do not publish or push unless the user asks.

# Challenge Plan — Adversarial Review Of AI-Authored Plans

AI-authored plans fail one way more than any other: **under-specified intent → the authoring AI fills the gap with the rich, defensive reading (guessing too little feels negligent) → invented requirements or invented trust boundaries → architecture for requirements nobody has.** This skill breaks that chain: a *different* model attacks the plan's assumptions before it is finalized. The organizing principle, applied verbatim:

> **Simplicity preserves optionality; speculative structure is how future work gets manufactured.**

## When It Runs, Who Runs It

- **On demand, or when a team turns it on.** Run it after a plan is drafted — for example, a plan produced by [`visual-plan`](../visual-plan/SKILL.md). By default that skill does *not* invoke this one. A team that wants every plan challenged sets `## Challenge` with `Run: yes` in its custom-instructions file; `visual-plan` then runs this skill after the first render, with the round cap, the challenger invocation file, and the stalemate rule taken from that heading. A calling skill or a human owns the round cap and stalemate handling; this skill owns only the review.
- **The challenger must be a different model/agent than the author.** Same-model, fresh-context is a last resort, not the goal — an author rarely finds the assumption it just made. Invoke a genuinely different model however your environment allows (a second CLI agent, an API call to another model family, a different local model). When the custom instructions name a `Challenger:` file, use the exact commands in it; that file owns the model choice, the retry rule, and the timeout. If no different challenger can be reached after a reasonable attempt, proceed with the plan but record `Simplification challenge: skipped — <reason>` in the plan and say so plainly. Never skip silently.

## The Mandate — One Direction Only

The challenger may **cut**, **replace with something that already exists**, **simplify**, **align with convention**, or **convert an element into a question for the human**. Nothing else. Converting an invented requirement into an intent question is not scope — it is the preferred remedy when the gap is real.

**A challenge that adds scope is invalid — even when labeled `non-negotiable`.** Additions are how adversarial review becomes a second engine of over-engineering. The only additions that qualify are this closed floor list:

- Tests for **genuinely new behavior** (not for unchanged behavior or a changed constant).
- Error handling that prevents **data loss**.
- Input validation, authentication, or authorization at a **real** trust boundary (defined below).
- Accessibility basics.
- Anything the human **explicitly requested**.

Nothing outside that list qualifies. In particular, these are **never** non-negotiables:

- **Hardening, precision, robustness:** wrappers, wall-clock deadlines, retries, guards, and enforcement machinery for a figure the human stated. Real pattern: a human set a 35-second timeout; the challenger demanded a wrapper "to enforce it" and tagged it non-negotiable. Invalid — a stated value is not a missing control.
- **Tests for unchanged behavior or config-value changes.** A constant is not new behavior.
- **Observability, metrics, alerts, performance work** — unless explicitly requested.

When an addition genuinely seems necessary, the finding may **ask the human** — it may never add.

**Trust boundaries are claimed, not assumed.** A trust boundary is where data crosses from systems you do not control into yours (a user's form input, a partner webhook, an uploaded file, words spoken on a call). Internal edges — your service calling your service, your code reading your own database — are **not** trust boundaries; re-validating there is defensive duplication (`misclassified-boundary`). To defend complexity as a security non-negotiable, the author must name **(a)** the untrusted party or concrete failure and **(b)** why no existing control — TLS, access control, encryption at rest, signature verification, a database constraint — already covers it. Covered threat ⇒ cut. Never re-implement a platform or contractual guarantee in application code.

## Inputs The Author Supplies

One challenge prompt (a scratch file, never committed) containing:

1. **Source ledger** — verbatim: direct human instructions; the pre-existing task/ticket text; any same-session agent-authored edits to that text (agent wording is a hypothesis, never authority — presenting it as human or pre-existing intent is a High `provenance-laundering` finding); relevant comments with author, timestamp, and any condition attached (a conditional comment is intent only while its condition holds).
2. **The compact plan** — behavior, architecture, implementation sequence — with the `Assumptions` and `Deliberately not built` sections.
3. **Baseline manifest per repo** — branch, target commit, workspace path, workspace-vs-target, clean/dirty. Every code claim is checked at the target commit (`git show <sha>:<path>`, ref-aware grep). A missing, stale, or unreadable baseline is a High `stale-baseline` finding before any design judgment.
4. **Planned-construct inventory** — every table, endpoint, config, secret, job, helper, dependency, metric, and alert labeled `reuse` | `change` | `new` | `unresolved`, with evidence. `unresolved` resolves to omission or a human question — never invented scope.
5. **Evidence register** — checks for anything code alone cannot prove, and each data claim labeled `existence` | `bound` | `prevalence`. A sample proving a thing exists cannot support a claim about how often it happens (`insufficient-evidence`).
6. **Repos in scope.**
7. **User-mandated elements** — exempt; never relitigated.
8. **On re-rounds** — what changed since the last verdict, plus author rebuttals with evidence.

## Scope

**Audited:** design substance — the behavioral spec, every proposed table/endpoint/config/gate/abstraction/migration, the implementation sequence, and the provenance links between them.

**Not audited:** the plan's required verification/test sections and required decisions (those are set by the plan's profile or the human, not by this skill); anything the human mandated.

## The Checks

1. **Intent provenance (primary).** Every architecture element traces to a behavioral statement; every behavioral statement traces to a human instruction, pre-existing task text, a verified code/deployed fact, or a recorded simplest-reading assumption. An element with no behavioral line is `invented-requirement`: cut it or convert it to an intent question. A gap filled with the rich reading instead of the simple one is the root defect this skill exists to catch.
2. **Assumption attack.** For each defensive or complex element, name the assumption that creates the need and test whether it is real. Over-engineering is usually downstream of one flawed assumption; kill the assumption and the machinery evaporates.
3. **Existing-construct gate + reinvention police.** Verify every `new` label by searching the target commit, the codebase's shared packages/utilities, and platform features (database constraints, framework/ORM capabilities, managed cloud services, standard library). Reinvention findings cite the existing file path or platform feature; a negative claim ("nothing like this exists") without a cited search is a High `existing-construct` finding.
4. **YAGNI ladder**, per element: does it need to exist → already in the codebase → standard library → platform/framework feature → an already-installed dependency → one line → only then minimum new code. Speculative need is a finding, not a justification.
5. **Convention deviations.** The target project's own conventions and `docs/` rules; established patterns in the surrounding code.

## Worked Examples — Cite These Patterns

**Invented requirement — the admission gate.** Nobody specified what happens to new job requests while a worker is temporarily down. The AI silently answered "reject them" and built a release-gate table plus admission logic. Asked behaviorally — "should new requests queue up and run on recovery, or be rejected?" — any human answers "queue them," and the entire feature evaporates: the durable job row already provided the resilience and every future seam.

**Invented boundary — dual-tracking across your own stores.** Moving data between two of your own databases was pattern-matched to "data crossing a trust boundary," spawning a validation gate and dual-write machinery. Both stores are yours, under your own access control, encrypted, one owner — one boundary, not two. The correct design: move the data, keep one owner.

## Output Contract

Return exactly this block, nothing else:

```md
## Plan Challenge

### Challenges
- High: <element> — <type: stale-baseline | provenance-laundering | invented-requirement | invented-boundary | intent-gap | existing-construct | insufficient-evidence | ladder | reinvention | misclassified-boundary | convention | non-negotiable> — <the assumption attacked, in plain language> — <the simpler alternative, or the question to ask the human> — <evidence that would justify keeping it>
- Medium: ...
- Low: ...

### Verdict
SATISFIED | REVISE — <one sentence>
```

- Severity: **High** = should not exist, reinvents something that exists, or violates a mandatory convention. **Medium** = a simpler alternative exists. **Low** = convention or style.
- Plain language is mandatory: state the concrete behavior first, then name mechanisms.
- "Evidence that would justify keeping it" defines the author's only legitimate rebuttal: a real incident, a measured number, or explicit task text. "Might need it later" never counts.
- No challenges ⇒ `No challenges` and `SATISFIED` with a one-line justification.

## Loop Discipline

- Round caps and stalemate handling live in the calling skill or with the human. On a re-round, examine only what changed and what was rebutted; never reopen settled elements or relitigate a human decision.
- `SATISFIED` applies only to the exact compact plan supplied in that round, with a one-line justification. A material later change needs a fresh challenge of the affected section.
- The challenge record is append-only; attribute every outcome to `challenger`, `human`, or `author/code discovery` — never credit the challenger for a change it did not identify.
