Skip to content
Back to skills

One For All

ASecurity

The design step a team gets from a design doc and its review, for a developer working alone: a solo project, a freelance job, a take-home or interview exercise. It drafts one short document (budget, no-gos, domain terms, boundary, the main flow and what fails at each step), asks at most four costly-to-reverse questions, has a fresh agent walk the flow as the reviewer, then hands /flagrare:atdd-plan an intake-shaped brief. One For All: Agile Waterfall For One. Use when the user says 'one for a...

  • 15 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added December 1, 2026
ai-agentsgotestinggitapisecurityperformance

Works with

  • cli
  • api

Security analysis

A100/100

Pro scans all 10 files and shows the line behind each finding

Scanned December 5, 2026

npx -y skills add Flagrare/agent-skills --skill one-for-all --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of One For All?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for One For All
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/flagrare-one-for-all/badge)](https://www.skillsdirectory.com/skills/flagrare-one-for-all)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: one-for-all
description: "The design step a team gets from a design doc and its review, for a developer working alone: a solo project, a freelance job, a take-home or interview exercise. It drafts one short document (budget, no-gos, domain terms, boundary, the main flow and what fails at each step), asks at most four costly-to-reverse questions, has a fresh agent walk the flow as the reviewer, then hands /flagrare:atdd-plan an intake-shaped brief. One For All: Agile Waterfall For One. Use when the user says 'one for all', 'all for one', 'design this first', 'before I start coding', 'take-home', 'interview exercise', 'freelance project', 'client project', 'I'm working on this alone', or starts non-trivial work with no ticket, design doc or reviewer. Not for work that already has a ticket (/flagrare:work-prep) or a multi-week design doc (/flagrare:tdd-writer)."
---

# One For All

> **No em-dashes.** Nothing this skill writes may contain an em-dash; use a comma, colon, or parentheses instead. See `/flagrare:write-docs`.

*One For All: a power handed down by everyone who held it before. Here, a team's whole design process, handed down to one developer. Its subtitle, Agile Waterfall For One, spells "awful". On purpose.*

On a team, most of the technical discovery happens before anyone plans the code. A design doc settles the costly decisions, a review catches the scenario nobody predicted, and by the time `/flagrare:work-prep` runs, `/flagrare:intake` only has to gather what was decided. A developer working alone has none of that. `/flagrare:atdd-plan` then plans on top of decisions nobody made, and the missing scenario shows up in review, in the interviewer's notes or in production.

This skill is that design step, sized for one person. It produces one short document and one brief, and it hands the brief to `/flagrare:atdd-plan`.

**It is not a spec.** The acceptance tests are the spec: they run, so they can't drift from the code. Long specs are harder to review than the code they describe, and agents still ignore parts of them. The document keeps only what tests can't hold: the problem, the budget, the no-gos, the assumptions and the decisions. For a take-home, that is the part the reviewer reads. For a client, it is the agreement.

## When to use, and when not

- **Use it** for non-trivial work with no ticket, no design doc and no reviewer: a side project, a freelance job, a take-home, a new feature in a codebase you own alone.
- **Skip it** for a quick, clear change ("rename this field", "fix this typo"). Do the work and say you skipped the design step.
- **Use `/flagrare:work-prep`** when a ticket exists and the team already made the decisions.
- **Use `/flagrare:tdd-writer`** for a multi-week project that a team will review.

## Lock the goal first (anti-stall)

The document is a large artifact, and emitting it reads as "turn complete". Before any other tool call, call `/goal` with:

> The three inputs are settled; the shaping document has been drafted with every section filled; the costly-to-reverse decisions have been put to the user in at most two `AskUserQuestion` rounds and answered (or there were none); the independent second walk has run and its new conditions were triaged; every condition is an acceptance-test candidate, a "must also hold" line, a decision or a no-go; the document is saved in the repo; and either `/flagrare:atdd-plan` has been invoked with the brief or the user chose "Stop here". Stop after 15 turns if not met.

Then create a Todo list with one item per step below. If `/goal` is unavailable, proceed without it and treat every "do not end your turn" note below as mandatory.

## Step 0: Settle three inputs

These change everything after them. Answer each from the repo and the request first; ask only what you can't find, and fold those into the Step 3 round instead of asking now.

| Input | How it changes the rest |
|---|---|
| **Existing code, or an empty repo** | With code, Step 2's reach and data questions run against it. In an empty repo they become a written Assumptions list, and the first acceptance test is a walking skeleton: the thinnest slice that runs end to end. |
| **Who reads the document: you, a client, an interviewer** (unknown: assume you) | You: one page, kept in the repo. A client: the problem, budget and no-gos are written as the agreement, in their words. An interviewer: the decisions and assumptions are written as "why I built it this way", ready to paste into the README. |
| **The time budget: given, or set by the user** | It sets the depth of everything else. A 4-hour take-home gets one page and a handful of conditions. A two-week freelance job gets a full walk. When nobody gave a budget, propose one from the request and state it as a default. |

## Step 1: Read before asking

Read the request, the assignment or client brief, the code and any docs it points at. Keep reading until you can say how the relevant parts work today and what the change touches.

- **Facts are your job, never the user's.** When a fact needs a lookup (a file, a config value, the shape of existing data), send a fresh subagent to find it. Never ask the user for something the project can answer.
- **In a repo with code**, run `/flagrare:codebase-explore` with a one-paragraph summary of the request. Its findings feed Step 2 and the brief.
- **If the request doesn't say why**, that is the one thing worth asking now: one open question, in the user's own terms, with nothing to pick from. "Why" decides what "done" means; everything else can wait for Step 3.

## Step 2: Draft the whole document in one pass

Write every section before asking anything else. A draft the user can correct costs them less than a stream of questions. Size each section to the budget.

1. **Problem.** What the user or client needs, in two or three sentences, from their side.
2. **Budget and no-gos.** The time budget, then what this work will deliberately not do. A no-go is a decision, so give each one its reason.
3. **Language.** The domain terms the work needs, each with a one-line meaning (usually 5 to 10). Test names, code names and the document use these words exactly. Take them from the assignment or the existing code before inventing new ones.
4. **Boundary.** What is inside the system and what is outside it. Outside is what tests replace with a fake; inside stays real, the way `/flagrare:testing-philosophy` asks.
5. **Rules that must always hold.** The invariants: a total never goes negative, an order belongs to one store, a link never expires twice. Each one is a test later.
6. **The walk.** The main flow as a short list of steps (usually 3 to 9), each step one action by the user or the system. Then go through the steps one at a time and list every condition the system can detect and must handle there: invalid input, a missing record, a duplicate, a timeout, a permission it lacks. On **every step that writes data**, also answer two questions:
   - **Who else reads or writes this?** Search the code for every reader of the table, file, event or field the step writes, in every repository you can reach. A write that looks local can change what another feature, store or job sees.
   - **What am I assuming about the data that already exists?** Uniqueness, how values are spread, which kinds of records exist. When the data is reachable, check the assumption with a query and write down the result. When it isn't, list the assumption under **Assumptions**.
7. **Rabbit holes.** A step that needs work nobody has done before, or that assumes a design nobody has found yet. Give each one a decision, a timeboxed spike, or a no-go. Never leave one open into planning.
8. **Assumptions.** Everything the walk assumed and could not check. In an empty repo this is the longest section.

**Do not end your turn after the draft.** Go straight into Step 3.

## Step 3: One round of decisions

Sort every open choice in the draft into two piles:

- **Costly to reverse**: it shapes the data model, the public interface, the boundary or the architecture, or a wrong call means rework across the codebase. These go to the user.
- **Cheap to change later**: everything else. Write each as a default with a one-line reason, in the document, and don't ask.

Put the costly ones to the user in **one `AskUserQuestion` call, at most 4 questions**, each with the option you recommend first and labeled "(Recommended)", so accepting it is one click. Include any Step 0 input you couldn't settle. Ask a second round only when an answer opens a new costly decision. Never ask about a fact (Step 1) or a cheap choice.

For the single biggest decision, when the options are not obvious, you may design it three ways first: three subagents, each with a different constraint (smallest interface, most flexible, simplest for the most common case), then recommend one or a hybrid with the reason. When other products have already met the problem, run `/flagrare:benchmark` first, so the options come from the field rather than from memory.

Record each decision in the document: the options, the pick and why it won. Only decisions that are costly to reverse get this; a record for an obvious choice is noise.

## Step 4: A second, independent walk

A developer working alone has nobody to say "what about this case?". A fresh agent stands in. It only needs the Problem, Language and Boundary sections, so start it in the background as soon as those three are written, and its findings can still shape the Step 3 questions.

Dispatch one subagent with **only** the Problem, Language and Boundary sections, and the repository path. Do not give it your walk, your conditions or what you suspect is missing: an agent handed your hypothesis confirms it. Its brief:

> Walk the main flow of this change step by step, one action per step. For each step, list every condition the system can detect and must handle. For each step that writes data, list who else reads or writes it (search the code) and what the step assumes about data that already exists. Report the steps and the conditions. Finding nothing new is a valid result.

Compare its conditions with yours. Every condition it found that your walk didn't goes into Step 5. If it found a different main flow, check whether yours missed a step or it misread the problem, and fix the one that's wrong.

## Step 5: Triage every condition

Every condition from the walk and the second walk lands in exactly one place:

- **Acceptance-test candidate**: at most 5 in total, counting the main flow. Pick the ones a user or client would notice: the main flow, the failures that lose data or money, and the cross-reader cases from Step 2. `/flagrare:atdd-plan` writes 3 to 5 acceptance tests, so more than 5 candidates means the plan drops some at random.
- **Must also hold**: a one-line rule that still needs a test, usually a smaller one. These go to the plan as context, not as acceptance tests. There is no cap: the list is as long as the walk found. A condition is never dropped to keep the brief short; it lands in one of these four places or it is still open.
- **Decision**: the condition is really a choice (retry or fail, block or warn). It goes to Step 3 if costly, or becomes a default.
- **No-go**: deliberately not handled, with the reason.

## Step 6: Save the document, then hand off

Save the document in the repo, so it outlives the conversation and `/flagrare:implementation-review` can find it: in the project's existing decisions or plans folder (`docs/decisions/`, `docs/adr/`, `docs/plans/`) if there is one, otherwise `docs/one-for-all/<YYYY-MM-DD>-<slug>.md`. For a take-home, also offer to paste the Decisions and Assumptions sections into the README.

Build the brief in `/flagrare:intake`'s shape, so `/flagrare:atdd-plan` reads it the way it reads a ticket brief:

```
Context Brief, one-for-all: <title>

## What
<Problem, one to three sentences>

## Why
<the answer to "why", from the user>

## Acceptance Criteria
<the at most 5 acceptance-test candidates, each one sentence of observable behavior>
Must also hold:
<the "must also hold" lines>

## Constraints & Dependencies
Budget: <time budget>. Boundary: <inside / outside>. Rules: <invariants>.
No-gos: <each with its reason>. Assumptions: <unchecked assumptions>.

## Language
<term: meaning, one per line>

## Decisions
<decision: options, pick, why>

## Referenced Material
<the assignment, client brief or issue, one line each>

## Codebase Findings
<from Step 1 and the reach answers, at most 8 bullets; "empty repo" if there is no code>

## Open Questions
<empty: every question was answered, defaulted or made a no-go>
```

In an empty repo, add one line under Constraints: "Empty repo: the first acceptance test is a walking skeleton."

Then close with an `AskUserQuestion` call, not a prose question:

- **Proceed to `/flagrare:atdd-plan`** (Recommended): pass the full brief as the skill's args.
- **Stop here**: the document is saved; the brief is printed for later.

## The document

One page for a take-home, longer only when the budget allows. Headings in this order: Problem, Budget and no-gos, Language, Boundary, Rules, Main flow (the steps only; the conditions became tests), Rabbit holes, Decisions, Assumptions. The conditions don't stay in the document once they are acceptance tests or "must also hold" lines: the tests carry them from here on, and a second copy would drift.

## Anti-patterns

- **Asking every open branch.** The question budget is 4 per round, costly-to-reverse decisions only. A user buried in questions skips the step next time.
- **Asking for facts.** If the code, the docs or a query can answer it, look it up.
- **Writing the spec.** The document holds decisions, not behavior; behavior lives in tests.
- **Imagining risks by category instead of walking the flow.** "Consider concurrency, security, performance" finds generic risks. Walking each step finds this system's.
- **Skipping the two questions on a write.** The most expensive misses come from a write that changed data another reader depended on, or from an assumption about existing data nobody checked.
- **Handing the second walk your list.** It must find its own conditions, or it only agrees with you.
- **More than 5 acceptance-test candidates.** Triage is the point; the rest become "must also hold", decisions or no-gos.
- **Ending on the draft.** The draft is the middle of the skill, not its result.

## What it inherits, and from whom

- **The question discipline**: facts are the agent's job, each question carries a recommended answer, questions come in rounds. From Matt Pocock's [`grilling`](https://github.com/mattpocock/skills) skill, with a hard cap instead of "every branch".
- **Read first, ask "why" first, propose the whole draft, size the doc to the work**: from Jesse Vincent's [superpowers `brainstorming`](https://github.com/obra/superpowers).
- **Design it three ways for the big decision**: Matt Pocock's Design It Twice, after John Ousterhout.
- **Budget, no-gos, rabbit holes**: from Ryan Singer's [Shape Up](https://basecamp.com/shapeup/1.4-chapter-05).
- **The main flow plus every condition per step**: from Alistair Cockburn's *Writing Effective Use Cases*.
- **Language, boundary, invariants**: the light end of Domain-Driven Design, without aggregates, repositories or context maps.
- **Decide early only what is costly to reverse; an independent critic**: from Lucas Fugisawa's [deliberate-engineering](https://github.com/lucasfugisawa/deliberate-engineering).
- **Acceptance tests outside, real collaborators inside, fakes only at the boundary**: the same shape as Thomas Pierrain's [Outside-in Diamond TDD](https://tpierrain.blogspot.com/2021/03/outside-in-diamond-tdd-2-anatomy-of.html), which is what `/flagrare:atdd-plan` and `/flagrare:testing-philosophy` already do.
- **Why it isn't a spec**: Birgitta Böckeler's [evaluation of spec-driven tools](https://martinfowler.com/articles/exploring-gen-ai/sdd-3-tools.html).

The research behind it is in [`docs/research/2026-11-30-lightweight-design-before-code.md`](../../../../docs/research/2026-11-30-lightweight-design-before-code.md).

## Flow position

```
/flagrare:one-for-all             <- THIS SKILL (no ticket, no reviewer)
  /flagrare:codebase-explore        (Step 1, when there is code)
  [second-walk subagent]            (Step 4)
     |
     v  brief in intake's shape
/flagrare:atdd-plan               <- plan mode, 3-5 acceptance tests
     |
     v
[implementation] -> /flagrare:wrap-up -> /flagrare:open-pr
```

Files in this skill

  • SKILL.md16 KB
  • evals/evals.json3.8 KB
  • evals/fixtures/pricing-requests/README.md128 B
  • evals/fixtures/pricing-requests/db/schema.sql471 B
  • evals/fixtures/pricing-requests/db/seed.sql5.9 KB
  • evals/fixtures/pricing-requests/src/pricingRequestPage.ts396 B
  • evals/fixtures/store-chain-pricing/README.md105 B
  • evals/fixtures/store-chain-pricing/db/schema.sql836 B
  • evals/fixtures/store-chain-pricing/db/seed.sql411 B
  • evals/fixtures/store-chain-pricing/src/items.ts368 B

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.