Plan

feature-one-pager

The high-level plan of one feature, as a page that a person can approve.

Why this skill exists

An agent can start to build a feature in the first minute. It then builds its first idea, and the team sees the design only in the diff. A plan as a long chat message does not help: nobody approves a chat message. This skill makes the agent stop, plan and show. The plan is one page with mock-ups that you can click, and the build does not start before you approve it.

When to use it

Use it before the build of a feature starts, or when you want a plan, a feature brief or UI examples. It comes before the prd skill. The skill is a planning mode: the agent reads the code and does not change it.

  1. Read. The agent reads the request and the code that the feature touches. It finds the livery and the folders.
  2. Interview. It asks only the gaps. The answers decide the optional parts: mock-ups, slices, a feature flag, migrations.
  3. Make the page. one-pager new writes the page from a template, with the status Draft.
  4. Write the sections. The change and its purpose, the parts of the codebase, the release steps with a rollback for each, the risks, the migrations and the infrastructure.
  5. Write the UI examples. One clickable mock-up page for each delivery slice that a user can see.
  6. Build and check. build puts the livery into the page. check prints one line for each problem.
  7. Review. The agent sets the status In review, gives you a summary, and stops. It sets Approved only with your words.
  8. Offer a design review. When a screen has two or more mock-ups, the agent offers a design review, so the team can compare them. The results go into the PRD.

The interview from a real run

The request was one line. The agent found 9 answers in the plan files and the code of switchyard. Question 2 has a free-text answer: the maintainer did not select an option.

The request

Plan the switchyard coverage feature

The agent found these answers in the repo. It did not ask these questions.

  • What is the result for the user, in one sentence?

    After a test run, a developer runs switchyard coverage and sees the states that no test reached and the transitions that no test took, for each machine.

    Source SWITCHYARD_PLAN.md:116, SWITCHYARD_PLAN.md:242-243, PHASES.md:150

  • Who uses the feature?

    Developers who test Switchyard machines with @switchyard-ts/test. One group.

    Source README.md:37

  • Does the feature change stored data or the schema?

    No. The library has no database. The feature adds one new file format.

    Source packages/test/src/index.ts, packages/cli/src/index.ts

  • Does the feature need new infrastructure?

    No. The command is a part of @switchyard-ts/cli, and CI runs the same gate.

    Source packages/cli/package.json, .github/workflows/ci.yml, CONTRIBUTING.md:6-18

  • Who approves the one-pager?

    Joe Gaudet, the only author in the git history.

    Source git log, git config user.name

  • Livery: which name do the pages get? (livery show had exit code 1)

    Switchyard.

    Source README.md:1, docs/site/index.html:6 (the two say "switchyard" in lower case; the maintainer saw "Switchyard" in the accent question and did not change it)

  • Livery: which logo do the pages get?

    docs/logo.svg

    Source README.md:3 shows the same file

  • Folders: does docs/ have a different use?

    Yes. docs/site is the published site and docs/api is generated. The folder question applies.

    Source .github/workflows/pages.yml:68-69, .gitignore

  • Does the repo have a format check that can change the pages?

    Yes, Prettier (pnpm format:check). The agent added the line skillsaw/ to .prettierignore.

    Source package.json scripts

A skip rule of the question bank removed these questions.

  • Does the feature change something that a user sees or calls?

    Asked in a specific form: the "Surface" question.

  • Which screen is most important to see first?

    Skip when the feature has one screen, or no UI: the coverage page is the one screen.

  • Is there a feature flag?

    Skip when the repo has no flag system: switchyard is a library with no flag code.

  • Who gets the feature first?

    Skip when there is no flag.

  • Is there a step that cannot go back?

    Skip when no migration removes or changes data and no message goes out to users.

  • Who approves the one-pager?

    Skip when the user is the only owner.

  • Is there a date or an event that the release must meet?

    Not asked in the read-first phase. The plan files give no dates. The bank has no skip rule for this case, so the page records "No" as an assumption.

The maintainer saw these questions. The first option is the recommended one.

Surface Question 1 of 6

The switchyard roadmap names a switchyard coverage command but no screen. What must the user see when the command runs?

  • Text and a page Recommended Chosen

    The command prints the counts in the terminal and writes one HTML page that shows the chart with the reached and not-reached parts marked; the one-pager then has UI mock-ups.

  • Terminal text only

    The command prints the same lines as coverage().report(); the one-pager then has no UI examples.

  • A design page tab

    The page of switchyard design build gets a Coverage tab; this reuses that page but applies only to machines that have a design folder.

Not in scope Question 2 of 6

What is not in scope for the first release of the switchyard coverage command in switchyard?

  • Browser runs and a gate Recommended

    QUnit runs in a browser (test-app) and a minimum coverage that fails CI are out; the first release reads Vitest runs and only reports.

  • Browser runs only

    QUnit runs in a browser are out, but a --min option that fails the command below a limit is in scope.

  • Nothing is out

    Browser runs and the --min gate are in scope; this makes the feature large and adds a browser-to-disk path.

  • Other Chosen

    Should support all test runners

    The maintainer typed this answer. It is not one of the options.

How this answer changed later questions. No runner is out of scope: QUnit in a browser is in scope with Vitest. The later ADR questions changed: 'Works in each runner' became the recommended top driver and 'Explicit write call' the recommended decision.

Slices Question 3 of 6

In how many slices does the switchyard coverage feature of switchyard ship?

  • One for each part Recommended Chosen

    Slice 1: the test run writes the report file. Slice 2: the command prints the text report. Slice 3: the coverage page, if you chose it. Each slice can ship alone.

  • One slice

    All parts ship in one release of @switchyard-ts/test and @switchyard-ts/cli; it is one large pull request.

  • Let the agent propose

    The agent reads the code again after your other answers and proposes the slices in the review of the one-pager.

UI detail Question 4 of 6

How detailed must the UI mock-ups of the switchyard coverage page be in the one-pager?

  • Clickable main flow Recommended Chosen

    One path: select a machine, see the chart, click a transition that no test took and read its line; this is sufficient to approve the plan.

  • Main flow and edge states

    Also the states 'no report file found', 'the report is older than the machine' and 'all reached'; this costs more but shows the error cases.

  • Static layout only

    One picture of the page with no controls; it is the fastest, but nobody can try the flow.

Top risk Question 5 of 6

Which risk of the switchyard coverage feature in switchyard gives you the most concern?

  • Parallel test workers Chosen

    Vitest runs the packages as projects in many workers, so two processes can write report data for the same machine class and the merge can lose data.

  • A report that is stale

    A report from an older version of a machine has transitions that the class does not have now, and the command then shows wrong counts.

  • Legacy decorator machines

    A machine of an Ember app needs --legacy to load in the CLI, so the command can fail on the apps that most need it.

  • The format is public

    After the first release, other tools can read the report file, and each later change of its shape is a breaking change.

Accent Question 6 of 6

The switchyard repo has no skillsaw livery. Which accent colour do you want for the skillsaw pages of switchyard (project name: Switchyard)?

  • Indigo #4f46e5 Recommended Chosen

    It is --brand-indigo, the primary colour of the Switchyard site (docs/site/site.css:5), so the pages agree with the site.

  • Amber #f59e0b

    It is --brand-amber, the second brand colour of the site; it gives less contrast for links and tags.

  • Slate #475569

    It is the default of skillsaw; the pages then do not look like Switchyard.

The agent recorded these assumptions. Nobody answered them.

  • A minimum coverage that fails CI (--min) is not in scope. The scope answer named the runners only, and nobody asked for a gate.
  • The hand-off of browser runs is its own release step (step 2 of 4). The maintainer chose "One for each part" when the options named three parts; the scope answer added browser runs.
  • The release has no date. The plan files give none.
  • Folders: skillsaw/one-pagers, skillsaw/prd, skillsaw/adr, and skillsaw/<kind> for the other page types (the default when docs/ has a different use). Nobody asked the maintainer.
  • The name writeCoverage and the shape of a report file in the mock-ups are proposals. The PRD gives the contract.
  • The status is In review. The maintainer did not see the page, so the agent did not set Approved.

The artifact from that run

This is the page that the agent made. The tabs in "UI examples" have four mock-ups that you can click: the coverage page has two variants for the design review. The header links the review. The status is In review: nobody approved the plan.

The one-pager, liveOpen the full page · The index of the one-pagers
The one-pager in the light theme at 1280 px
Light, 1280 px
The one-pager in the dark theme at 1280 px
Dark, 1280 px
The one-pager on a phone at 390 px
Phone, 390 px

The mock-ups are pages too: the test run writes the report, the text report, the coverage page and its variant B, with the missing parts first.

The commands

The agent ran these commands. It ran build and check again after each change of the page.

npx @skillsaw/cli livery show
npx @skillsaw/cli docs show
npx @skillsaw/cli livery set --name Switchyard --accent '#4f46e5' --logo docs/logo.svg
npx @skillsaw/cli livery show
npx @skillsaw/cli docs set --adr skillsaw/adr --prd skillsaw/prd --one-pager skillsaw/one-pagers --walkthrough skillsaw/walkthroughs --quality skillsaw/quality
npx @skillsaw/cli one-pager new coverage-command --title "switchyard coverage: see what the tests did not reach" --owner "Joe Gaudet"
npx @skillsaw/cli one-pager ui skillsaw/one-pagers/2026-12-02-coverage-command write-report --title "A test run writes the coverage report files"
npx @skillsaw/cli one-pager ui skillsaw/one-pagers/2026-12-02-coverage-command text-report --title "switchyard coverage prints the text report"
npx @skillsaw/cli one-pager ui skillsaw/one-pagers/2026-12-02-coverage-command coverage-page --title "The coverage page of one machine"
npx @skillsaw/cli one-pager build skillsaw/one-pagers/2026-12-02-coverage-command
npx @skillsaw/cli one-pager check skillsaw/one-pagers/2026-12-02-coverage-command
npx @skillsaw/cli one-pager build skillsaw/one-pagers/2026-12-02-coverage-command
npx @skillsaw/cli one-pager check skillsaw/one-pagers/2026-12-02-coverage-command
npx @skillsaw/cli one-pager build skillsaw/one-pagers/2026-12-02-coverage-command
npx @skillsaw/cli one-pager check skillsaw/one-pagers/2026-12-02-coverage-command
npx @skillsaw/cli one-pager build skillsaw/one-pagers/2026-12-02-coverage-command
npx @skillsaw/cli one-pager check skillsaw/one-pagers/2026-12-02-coverage-command
npx @skillsaw/cli one-pager build skillsaw/one-pagers/2026-12-02-coverage-command
npx @skillsaw/cli one-pager check skillsaw/one-pagers/2026-12-02-coverage-command

What we learned from this run

The run took 28 minutes of agent time. Three of the 23 problems that the planning chain found:

Config keys

All keys are optional. The livery keys apply to each page.

KeyDefaultMeaningWho reads it
docs.one-pagerdocs/one-pagersThe folder of the one-pagers.CLI