/agent-skills:goal-debatefrom agent-skills
Weigh a goal against what it costs before anyone plans or builds it. A proponent agent proposes the idea and expands it, an opponent agent attacks its weak points and costs, and the orchestrator judges each claim with evidence until the two settle on the structure with the best value for its cost. Costs are weighed on three axes, device capability (storage, RAM, compute), time to deliver and token spend, plus any axis the plan needs. Prior art (papers, public repos, the lab's past attempts) counts as evidence, small capped proofs settle feasibility claims, and research goals end with a hypothesis and success threshold fixed before any run. Unknowns that cannot be measured go to the user as questions. It also weighs an existing roadmap that grows faster than it ships, and proposes which nodes to drop, park or merge. Use this skill when the user wants to evaluate, challenge, debate or sanity-check a goal, idea, proposal, ADR or roadmap, wants to cut scope, asks whether something is worth building or researching, whether it has been done before, or whether it is feasible on their machine, in their time or within a token budget, or before parallel-roadmap plans a large or costly goal, even if they never say "debate".
Trending skills
7-day visitors to each skill page
Ships in agent-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
A plan breaks a goal into work. It never asks whether the goal, in its current shape, is worth what it costs. This skill asks that question before the plan exists, when changing direction is cheapest. Two agents argue: a proponent who builds the strongest version of the idea, and an opponent who looks for what it costs and where it breaks. The orchestrator judges. It rules on every claim with evidence, sends the questions that only the user can answer to the user, and stops the debate once it settles.
The result is debate.md: the settled structure of the idea, a budget on each axis, the alternatives that lost and why, and the risks still open. The user approves it. parallel-roadmap then plans from it.
Every cost or risk sits on one axis:
The proponent may propose up to two more axes when the plan needs them, for example security for auth work or maintenance for a new dependency. It gives the reason in extra_axes. The judge accepts an axis only when the plan touches it and it could change a decision. The user can overrule. A claim that fits no accepted axis is out of scope.
Next to the roadmap when there is one or will be one, otherwise on its own:
docs/roadmaps/<slug>/debate/ # or docs/debates/<slug>/ when no roadmap follows
ledger.json # every claim, ruling and question; the script reads it
evidence/ # raw output of the measurements claims cite
debate.md # the settled result, from templates/debate.md
Use roadmaps/ instead of docs/roadmaps/ when the repo has no docs/ folder, as parallel-roadmap does.
scripts/debate.py is the source of truth for the ledger. Ask it what comes next. Do not decide by rereading the claims.
python3 <skill>/scripts/debate.py <dir> init --goal "<one sentence>" [--max-rounds 3]
[--research] [--roadmap <root>] [--supersedes <earlier debate dir>]
python3 <skill>/scripts/debate.py <dir> check # validate the ledger, exit 1 on errors
python3 <skill>/scripts/debate.py <dir> status # rulings, open questions, and the next step
python3 <skill>/scripts/debate.py <dir> seal # freeze the claims of finished rounds
python3 <skill>/scripts/debate.py <dir> report # Markdown summary to build debate.md from
status names the next step: proponent, opponent, judge, proof, ask-user, seal, settle or fix. Read references/ledger.md for the claim format.
The round cap is the debate's only limit, and it sets how long the debate takes. Token spend is not capped. The debate spends what it needs within its rounds, and spend records it so the cost stays visible. Match the rounds to the goal:
--max-rounds 1). The orchestrator writes the proponent and opponent claims itself and rules on them. No subagents.max_rounds rounds (default 3). Use it when the goal takes weeks, adds infrastructure, a model, a service or a heavy dependency, or needs many agents. Also use it when the user asks for a debate. Raise the cap only when the user gives the debate more time.Say which one you picked and why. If a short debate turns up a high cost that both sides could argue either way, move up to a full one.
Write the goal in one sentence, then debate.py init. Pass --supersedes with the earlier debate's folder when this debate reruns a goal, for example after a missed experiment or an overspent roadmap, and start from its facts. Pass --research when the goal tests an idea (does this method work, is this effect real), not when it builds something known to work. A research debate cannot settle without a hypothesis. Collect the baseline evidence before anyone argues, so both sides start from the same numbers. references/evidence.md lists what to measure for each axis and how. At least:
capacity.py --json, free disk, the size of the repo, its dependencies and build outputCALIBRATION.md in the roadmaps folder when it exists, and the user's deadline if they gave oneplan.py <root> context estimates when a roadmap exists, otherwise the size of the files an agent would need to loadThen survey prior art, so neither side argues about something already known:
debate.md files, experiment outcomes and decision records in this repo and the user's other reposKeep the survey short: a handful of sources that bear on the goal, not a literature review. references/evidence.md has the steps.
Add each measurement and each prior-art finding as a fact claim by the judge, with the command or the citation as its source. Save long output under evidence/. Do not start a long build or test run without asking the user first.
Spawn the proponent with the prompt in references/roles.md. It writes proposal claims that together describe the structure of the idea, at least one alternative that reaches the same goal in another way, an estimate on each axis, any extra axes it wants, and questions for the user.
Spawn the opponent with fresh context, using its prompt in references/roles.md. Give it the goal, the repo and the ledger, and nothing else from this conversation. It sees the proponent's claims, not the proponent's reasoning. An opponent that reads the reasoning tends to accept it. It writes cost, risk and rebuttal claims against specific proposal ids, its own alternative claims, and questions.
The orchestrator rules. It does not argue and does not add proposals.
upheld (it stands and shapes the result), rejected (with ruling_why), or open (it could matter and no one can settle it now, with ruling_why).fact. Two estimates that disagree are a reason to measure, not to pick one.open, and cheap to test with a small throwaway build, for example "the 4-bit model fits in 8 GB" or "the parser handles the 2 GB file". See "Proofs" below.GOAL.md and its constraints, the README, CLAUDE.md, decision records, past debate.md files, the manifest (engines, browser targets, dependencies), CI config, deploy config, and git history. Which axis wins in a trade follows from the goal (an on-device goal puts device first, and a deadline in the goal puts time first). Record each inferred choice as a fact with inferred evidence that names the file or the goal text it comes from. A question the repo, the machine, the docs or a quick command can answer is not for the user either. The judge answers it with a measured fact.
Ask the user only when a choice cannot be inferred and the two answers would settle on different structures. At most two questions in the whole debate, asked together with AskUserQuestion. Each one stands on its own, names the claims it blocks, and offers the inferred answer as the first option when there is one. When a choice is unclear but does not change the structure, infer it and move on.debate.py status. When it says seal, run debate.py seal. From then on check fails if a side edits a claim of a finished round, so the record cannot be rewritten. A side that changes its mind writes a new claim. Rulings stay editable, so the judge can re-rule after a proof.How to weigh claims is in references/roles.md under "Judging". In short: measured beats calibrated, calibrated beats sourced, and a guess never outweighs a measurement. A high cost upheld on an estimate alone becomes a spike or a measurement, not a verdict.
A proof answers one feasibility question with a small build that is thrown away afterwards. It is not the start of the project.
proofs in the ledger with the claim it settles, the question, the scratch directory and a time cap set before it starts. The default cap is 30 minutes per proof, and at most 2 proofs per debate. A larger cap needs the user's agreement. Tokens are recorded in the proof's tokens field, not capped.abandoned, and that result is itself evidence: "did not fit in 30 minutes".measured fact citing the proof id, then re-rule the claim.While status says proponent or opponent, continue the same two agents with SendMessage, so they keep what they already read in the repo. Each gets only what is new: the rulings, the facts, and the user's answers. The proponent revises the structure against the upheld costs. It amends a proposal, cuts scope, switches to an alternative, or concedes. The opponent then answers the revision.
A side that concedes names the claim or evidence that changed its mind. A concession without a reason is agreement for its own sake, and the judge drops it from the result.
The debate settles when status says settle. That happens when a round adds nothing that stands, or when the round cap is reached. Then:
hypothesis in the ledger: the statement, the metric, the baseline, the success threshold and the kill criteria. It takes them from the upheld claims and the user's answers. This fixes what counts as success before anyone sees a result.debate.py report and write debate.md from templates/debate.md: the hypothesis, the settled structure, the budget on each axis, the rejected alternatives with the claims that beat them, the proofs, the open risks, the inferred choices, and the user's answers.debate.md and get their approval. Approval is where the user corrects an inferred choice, so the inferred choices are listed there. They may overrule any ruling. Record that as user_ruling and user_why on the claim. The judge's ruling stays, and report lists both under "Overruled".Never move on to planning or building without that approval.
After approval, when a roadmap follows, start parallel-roadmap at "1. Discover" with debate.md as input:
GOAL.md (for example "at most 2 parallel worktrees: 8 GB RAM, measured", or "token ceiling of about 2M for the roadmap")run: and --max-paralleldebate.mdtype: experiment nodes whose hypothesis: points to debate.md. Their acceptance is the success threshold. A result that misses it, or meets a kill criterion, sends the goal back to a new debate with the result as a fact.When the repo keeps decision records (docs/decisions/, DECISIONS.md, ADRs), also write the result as an entry in that system, in its own format. Read two existing entries first and copy their shape. Most map directly: the settled structure is the decision, the upheld claims are the reason, the rejected alternatives stay rejected alternatives, and the budget is the cost. Link the entry to debate.md.
When no roadmap follows, debate.md and that entry are the deliverable.
A roadmap can grow faster than it ships: many outline nodes, a must line that keeps moving, or token spend over its budget. Run the debate on the roadmap itself with init --roadmap <root>. The goal is the roadmap's outcome from GOAL.md.
plan.py <root> overview, the must line, nodes done per week (from git log on the briefs' status changes), spent: against budget:, and CALIBRATION.md.cut claims: action (drop, park to later, merge into another node, or outline to undo a brief written too early) and the nodes it applies to, with the cost each cut saves. check rejects cuts of done or unknown nodes, and warns about active ones.merge cut does not always mean one node. Parts of one feature that each stay a reviewable size can become a parallel-roadmap story instead. The feature then gets one branch and one pull request, and its parts are still built in parallel.priority: later for parks, status: dropped with a reason for drops. Then show the user the new plan.py overview.evidence/ or a scratch directory, and proofs stay within their caps.bench.py). A threshold on a count, such as spec examples passed, is exact.evals/narra-refcount/case.yaml (opens in a new tab)evals/narra-refcount/graders/01-research-mode.md (opens in a new tab)evals/narra-refcount/graders/02-prior-art.md (opens in a new tab)evals/narra-refcount/graders/03-measured.md (opens in a new tab)evals/narra-refcount/graders/04-noise.md (opens in a new tab)evals/narra-refcount/graders/05-decision-record.md (opens in a new tab)evals/narra-refcount/graders/06-budget.md (opens in a new tab)evals/narra-refcount/graders/07-untouched.md (opens in a new tab)evals/narra-refcount/prompt.md (opens in a new tab)evals/photo-captions/case.yaml (opens in a new tab)evals/photo-captions/files/docs/library-stats.md (opens in a new tab)evals/photo-captions/files/docs/roadmaps/CALIBRATION.md (opens in a new tab)evals/photo-captions/files/package.json (opens in a new tab)evals/photo-captions/files/src/db.js (opens in a new tab)evals/photo-captions/files/src/upload.js (opens in a new tab)evals/photo-captions/graders/01-measured-device.md (opens in a new tab)evals/photo-captions/graders/02-two-sides.md (opens in a new tab)evals/photo-captions/graders/03-ledger-valid.md (opens in a new tab)evals/photo-captions/graders/04-costs-on-axes.md (opens in a new tab)evals/photo-captions/graders/05-user-questions.md (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
17 skills in this plugin
/changesetsWrite the changeset for a change in a repo that releases with changesets (a `.changeset/` folder exists). The bump level follows one question, whether the thing existed before: patch for changed behavior, minor for something new, major only with the maintainer's approval. Use this skill whenever finishing a change, opening a pull request or reviewing one in such a repo, even when nobody asks for a changeset, and when the user asks about bump levels or changelog entries./docs-siteMethod for planning, writing and maintaining a documentation site for a library, CLI, framework, API or app. Splits the site by what the reader needs (learn, do a task, understand, look up) into getting started, guides, concepts and reference, plus examples, troubleshooting, migration and a glossary. Gives each page type a fixed template, including the feature page (what it is, why, how it works, usage, options, limits, related) and the API reference entry. Covers navigation, code examples that run, keeping docs in step with the code, versioned docs and pages agents can read. Includes page templates, a checker script for page structure, links, orphan pages and code fences, and a review checklist. Use this skill whenever writing, restructuring, auditing or reviewing documentation, a docs site, a docs page, a README that has grown into docs, API reference, a getting started page, a migration guide or the docs part of the website/ folder, even if the user does not say "docs site". Load plain-writing with it./fewer-questionsDecide whether a question to the user is worth asking before asking it. Skip a question whose options give the answer away, such as one real option next to declines or weaker copies. Skip a question where "no" leaves nothing to do, such as "Should I proceed?" or "Is the plan ready?", and do the work the user asked for. Ask only when each answer leads to different work, or before an action that is hard to undo, reaches outside the machine or costs money. Includes an optional hook that blocks yes-or-no and proceed questions in AskUserQuestion. Use this skill whenever about to ask the user a question, call AskUserQuestion, offer options, or end a turn with "should I...?", "do you want me to...?" or "let me know if...", even if the user never says "questions"./issue-authorWrite and open GitHub issues that a maintainer can act on, such as bug reports, feature requests and diagnosis handoffs, in the user's repo or someone else's. Searches open and closed issues and pull requests for duplicates first, follows the repo's own issue templates and labels, reproduces a bug on the latest release and on every release line the repo still maintains, and lists which lines it affects. Opens no issue for a bug that shows only in unmaintained versions, and none for a security problem, which goes to a private report or the security-fix skill instead. Use this skill whenever the user asks to open, file, write, draft or report an issue or a bug, when root-cause returns a fix-large verdict, or when pr-author finds a bug too large for a fix PR, even if they do not say "issue"./landing-pageRules for landing pages, homepages and marketing sites of any product, such as a library, CLI, web app, mobile app, API or physical product. The page shows a demo of the product or its effect, with an animated or interactive hero visual chosen from designs the author reviews. It sells the benefit and the difference from competitors instead of describing features. It keeps text short and lets visuals carry the page. It picks the selling points the visitor cares about, uses playful animation or interaction that shows what the product does, and shows who uses it when that proof is strong enough. Includes steps for each kind of product, a word count script and a review checklist. Use this skill whenever designing, writing, building or reviewing a landing page, product homepage, marketing site, the website/ folder of a repo, or a hero section, even if the user does not say "landing page". Load ui-style with it. This skill overrides only the ui-style rule against idle and first-paint animation. Every other ui-style rule still applies./parallel-roadmapPlan and run feature roadmaps as a dependency graph so several coding agents can work at the same time without blocking each other. Covers goal discovery, breaking work into right-sized nodes with typed dependencies, blindspot review, contract-first interfaces, wave scheduling, running waves of agents in git worktrees, and keeping long-term memory in the repo. Use this skill whenever the user wants to plan a feature, write or revise a roadmap, break a big change into tasks, convert an existing plan, proposal or ADR set into parallel work, run the next batch of roadmap work with agents, check roadmap status, or asks how to make agents work concurrently, even if they never say "roadmap" or "DAG".npx claudepluginhub lxsmnsyc/agent-skills --plugin agent-skillsOther plugins' skills for the same job