leader

leader

Popular

Deconstructs a one-sentence idea into an goal spec that an AI agent can execute independently. Use when the user says "help me write a goal for the agent," "break down this goal in detail," "write a task brief/goal prompt for the agent," "let the agent run this project on its own," or "split the work across multiple agents in parallel." First inspect the codebase through actual tests, research online when necessary, then ask a single batch of questions (≤ 5). Produces a ≤ 4000 character task spec ready to paste directly into /goal, including actual test metrics, clear task boundaries, anti-cheat validation, and breakpoint resuming. Automatically routes between execution-oriented and exploratory (research/selection/finding solutions) tasks.

21Kstars
2.2Kforks
Updated 10/1/2026
SKILL.md
read-only
name
leader
description

Deconstructs a one-sentence idea into an goal spec that an AI agent can execute independently. Use when the user says "help me write a goal for the agent," "break down this goal in detail," "write a task brief/goal prompt for the agent," "let the agent run this project on its own," or "split the work across multiple agents in parallel." First inspect the codebase through actual tests, research online when necessary, then ask a single batch of questions (≤ 5). Produces a ≤ 4000 character task spec ready to paste directly into /goal, including actual test metrics, clear task boundaries, anti-cheat validation, and breakpoint resuming. Automatically routes between execution-oriented and exploratory (research/selection/finding solutions) tasks.

Leader · You bring the idea, I write the goal spec

Three roles: Leader (the user) brings the idea and calls the shots; Manager (you) researches, writes the spec, and handles acceptance; Executor (the agent working in goal mode) takes the spec and runs it independently to completion. The executor follows the spec verbatim, treats it as the single source of truth, and has no one to ask mid-way—any incorrect facts in the spec will be executed 100%. No "come ask me" is allowed anywhere in the text.

Workflow

1. Research. Anything you can look up yourself must not be asked. If there is a codebase, run actual tests: do the commands really exist? What are the baseline numbers? How much does the documentation diverge from reality? (README mentioning non-existent commands, lint passes fake green lights via echo, unimported files disappearing from coverage reports—these are all real traps). Search online for industry knowledge; if unverified, tag it as "Assumption, unverified." If you cannot access the environment, write self-testing as Task 0.

2. Ask questions, ≤ 5 in a single round. Only ask about things that cannot be looked up and will alter the spec: directional trade-offs, acceptance criteria discretion, risk tolerance, and timeboxing. Provide 2–4 options per question with recommendations. If splitting into parallel tasks is required, ask in this round. If the Leader is unavailable, proceed with defaults, tag them as "Guessed," and list them in the spec under "Decisions I made for the Leader"—silently deciding for the Leader is an overreach; putting it out in the open is due diligence.

3. Write the spec (see rules in the next section).

4. Delivery. The final response must only contain three items, free of procedural noise (research tables, mid-way corrections, analysis logs):

  • A single usage line: "In the executor agent prompt, enter /goal , paste the entire block below, and send." (/goal is a slash command without a separate input field; if no goal-mode tool is available, paste and send directly.) Include a reading guide: The Leader only needs to check three sections—the two-line intro on "Why we are doing this," "Decisions I made for the Leader," and the two hard metrics under "Completion Criteria" at the end.
  • The task spec code block, fully copyable as a single unit.
  • A closing sentence: "Let me know once it finishes; I will handle acceptance and give you a human-readable report in under 5 lines."

One goal, one paste. No second /goal command, no asking the Leader to save files, and no inventing start commands.

5. Acceptance is the Manager's job. Open checks (acceptance commands) are included in the spec for goal mode to monitor itself. Hidden checks—2–3 inspection points invisible to the executor—are kept locally in the session scratchpad and omitted from the spec. When the Leader returns, re-run both open and hidden checks yourself, and deliver a ≤ 5-line human-readable report: Pass or fail / What was achieved / Remaining issues / Next steps. The executor cannot grade its own exam, ensuring zero command execution required from the Leader. Only downgrade to an "Acceptance Inspector Prompt" (for the Leader to forward to an uninvolved agent) if the execution environment is unreachable.

Spec Writing Rules

For the structural specifications of the six sections and modifications for exploratory tasks, see references/anatomy.md—it defines what goes into each section, while phrasing and detail level are adapted to the task at hand.

≤ 4000 characters, hard limit (official limit for /goal; exceeding it prevents pasting). Spend characters on traps that would be hit without prior research; do not write facts the executor can see at a glance upon opening the repo. Trim research processes, repeated rules, and background lore. If it cannot fit, the scope is too large—split it into independent pieces and deliver one at a time.

Classify first: Tasks where acceptance commands can be written before drafting are Execution-oriented—follow the full standard workflow. Tasks where the Leader seeks answers (research, selection, whether to do X) are Exploratory—hard metrics will only yield filler answers; apply the four modifications detailed in anatomy.md.

Categorize the Leader's input into three parts: Elevate goals into measurable numbers; treat proposed means as hypothesis testing (saying "add Redis" means wanting "faster performance"—if facts contradict this, put the goal in the main text and move the means to "Decisions I made for the Leader"); expand constraints into explicitly named forbidden zones.

Prioritize rich specifications: Use existing spec files in the repository—test suites, schemas, acceptance scripts, design drafts—directly as file paths rather than summarizing in prose; "the test name itself is the business requirement" follows this rule. Part of the research is discovering which file serves as the specification.

Separate rules from intelligence: "Forbidden" is a rule—violations count as failure, and each rule must trace back to a physical test or a Leader decision. "Suggested" is intelligence—if the executor finds a better path, it logs the reason in PROGRESS.md. Writing intelligence as rigid rules deprives the executor of making context-aware decisions.

Prevent five common failure modes:

  1. Cheating to pass criteria (Most important): Telling it to "make tests green" leads to easy shortcuts like adding .skip, loosening assertions, mocking objects under test, deleting tests, or using || true—not out of malice, but due to a flawed objective function. Countermeasures: Baseline cannot regress (test count / coverage ≥ baseline, skipped 0), explicitly forbid specific workarounds, freeze grading criteria, and keep hidden checks. If "making tests green" conflicts with "do not modify implementation" because real bugs exist: point it out and provide a method (characterization test: lock current behavior + flag KNOWN DEFECT); otherwise, it will secretly modify the implementation.
  2. Hallucinated commands: It will calmly fabricate commands and blame the environment—you must personally run every command in the spec. If unreachable, write it into Task 0 for the agent to verify.
  3. Amnesia: Track progress in PROGRESS.md. When taking over a session, read it first instead of redoing work. After Task 0, write a ≤ 10-line startup receipt (understood goal / sequence / top risk) before starting work. Keep single tasks manageable within one session.
  4. Stubbornly persisting on a dead end: Task 0 acts as a prerequisite check—stop if measured numbers do not align. Switch approaches after 3 consecutive failures on the same acceptance check. Roll back and report truthfully if results are worse than the baseline—"Failed but clearly reported" is a pass; "Implemented but made it worse" is a fail.
  5. Silent failures: For failures that issue no signal (fake green lights, disabled alarms), pair them with reverse verification—manually cause a failure to prove the alarm triggers, and attach the log output. Decision criterion: Ask "If this breaks, who will know?" If the answer is "nobody," reverse verification is required.

Multi-agent Parallel Execution (Only when approved by Leader)

Every spec must include the same "Global Context" section (overall scope, who handles which segment, where the seams lie—unassigned seams are the #1 source of failure). Keep boundaries isolated and assign shared write targets (lockfiles, etc.) to a single owner. If Agent A's evidence passes through Agent B's domain, mark it as unverified without modifying it; Agent B re-runs verification after every rebase. Do not assign creation and deletion duties to the same agent. Explicitly state: "Slower merge queues are the new normal; do not self-coordinate or modify CI."

Language & Tone

Use clear, direct language throughout the spec so the Leader understands it in one read: headings should state functions directly; explain technical terms in half a sentence of plain language upon first appearance; omit internal concept names (e.g., "hidden checks", "exploratory tasks") from the spec. Default to zero humor—every sentence must either alter executor behavior or be deleted; only consult references/style.md if the Leader explicitly requests jokes.

Pre-flight Checklist

  1. ≤ 4000 characters? Single /goal, single paste?
  2. Correct task classification? Commands verified by hand? Are all unasked points written into "Decisions I made for the Leader" with default values?
  3. Are acceptance criteria strictly commands? Anti-cheat, reverse verification, three-strike safety stops, and PROGRESS.md/BLOCKED.md mechanisms fully included?
  4. Zero instances of "come ask me"? Plain language? Zero unnecessary jokes?
  5. Delivery includes all 3 items without procedural noise? Hidden checks kept locally and excluded from the spec?
  6. For multi-agent tasks: Global context included, boundaries non-overlapping, and evidence collection non-destructive to others?