AGENT SKILL

to-spec

A conversation has settled on what to build and it's time to turn it into a written spec — "turn this into a spec", "write this up", "spec this out". Synthesis only: no interview. Pairs well with skill-tree:grill-for-planning, which is where the settled understanding usually comes from.

License 许可
MIT
最近更新
2026-11-12
Stars
★ 0
Forks
0

01 前言 Front Matter

name
to-spec
description
A conversation has settled on what to build and it's time to turn it into a written spec — "turn this into a spec", "write this up", "spec this out". Synthesis only: no interview. Pairs well with skill-tree:grill-for-planning, which is where the settled understanding usually comes from.
allowed-tools
Read, Grep, Glob, Bash, Write
user-invocable
true
disable-model-invocation
true

03 SKILL.md 正文

To Spec

Turn the current conversation into a spec. Do not interview the user — that's grill-for-planning's job. This skill only synthesizes what's already been discussed (plus what you can find in the repo) into a written artifact.

If the conversation hasn't actually settled the open questions yet — decisions still hedged, contradictory, or missing — say so and point at grill-for-planning rather than papering over the gaps with a spec that looks more decided than it is.

Process

  1. Ground it in the repo. Explore the codebase to understand current state, if you haven't already. Use the project's CONTEXT.md vocabulary throughout the spec — if no glossary exists, point at domain-modeling to create one before speccing. Respect any ADRs in docs/adr/ or established conventions in the area being touched.

  2. Sketch the test seams. Identify where this feature will actually be tested. Prefer existing seams to new ones, and the highest seam possible — fewer seams across the codebase is better; one is ideal. If a new seam is genuinely needed, propose it at the highest point you can. Check with the user that the seams match their expectations before writing them into the spec.

  3. Find out where the spec lives. Don't assume an issue tracker — ask, or check the repo for an existing convention (a docs/specs/ or docs/handoffs/-style directory, a GitHub/Linear issue template, an ADR folder). If nothing exists, default to a local file and ask the user where they want it.

  4. Write the spec using the template below, then put it where step 3 established. If publishing to an external tracker (GitHub issue, Linear, Jira), confirm with the user before posting — this repo's human-in-the-loop rule applies to anything visible outside the local working tree, not just git.

<spec-template>

Problem Statement

The problem that the user is facing, from the user's perspective.

Solution

The solution to the problem, from the user's perspective.

User Stories

A LONG, numbered list of user stories. Each user story should be in the format of:

  1. As an <actor>, I want a <feature>, so that <benefit>

<user-story-example>

  1. As a mobile bank customer, I want to see balance on my accounts, so that I can make better informed decisions about my spending </user-story-example>

This list of user stories should be extremely extensive and cover all aspects of the feature.

Implementation Decisions

A list of implementation decisions that were made. This can include:

  • The modules that will be built/modified
  • The interfaces of those modules that will be modified
  • Technical clarifications from the developer
  • Architectural decisions
  • Schema changes
  • API contracts
  • Specific interactions

Do NOT include specific file paths or code snippets. They may end up being outdated very quickly.

Exception: if a prototype (see prototype) produced a snippet that encodes a decision more precisely than prose can (state machine, reducer, schema, type shape), inline it within the relevant decision and note briefly that it came from a prototype. Trim to the decision-rich parts, not a working demo, just the important bits.

Testing Decisions

A list of testing decisions that were made. Include:

  • A description of what makes a good test (only test external behavior, not implementation details)
  • Which modules will be tested
  • Prior art for the tests (i.e. similar types of tests in the codebase)

Out of Scope

A description of the things that are out of scope for this spec.

Further Notes

Any further notes about the feature.

</spec-template>

04 同仓库更多 Skills

dannybrown37
dannybrown37/skill-tree

wait-what

Stop. Your plan/idea did not land. Re-pitch it.

★ 0
dannybrown37
dannybrown37/skill-tree

verify

Verify before answering whether something works, still passes, is gone, is used, or is correct — and whenever the user says "can you confirm", "are you sure", "did that actually work", or reports something is "still" broken. Produces the answer plus the evidence that would have falsified it. A failed GitHub Actions run is skill-tree:debug-ci instead.

★ 0
dannybrown37
dannybrown37/skill-tree

ui-designer

Design or restyle a web UI — landing pages, dashboards, docs sites, app chrome — or when the user asks why a site "looks generic", "looks like a template", or wants it to feel intentional. A running list of design lessons learned, applied as rules rather than suggestions.

★ 0
dannybrown37
dannybrown37/skill-tree

two-axis-review

Two-axis review of changes since a fixed point (commit, tag, HEAD~N, or default HEAD~1): Standards (does the code follow this repo's conventions?) and Spec (does the code do what it should?). Axes run as parallel sub-agents so neither masks the other. Use when the user says "review against the spec", "does this follow our conventions", "standards and spec review", or "two-axis review". Not a correctness bug hunt — that's the built-in `/code-review`.

★ 0
dannybrown37
dannybrown37/skill-tree

tui-screenshots

Use for generating or refreshing TUI screenshots for docs — "regenerate the screenshots", "the README screenshots are stale". Drives a Textual/TUI app headlessly and exports SVG. Not for reading a user's screenshot — that is `screenshot`.

★ 0
dannybrown37
dannybrown37/skill-tree

to-tickets

Break a spec, plan, or conversation into tracer-bullet vertical-slice tickets with blocking edges — "turn this into tickets", "break this down", "what's the work?". Pairs with skill-tree:to-spec upstream and skill-tree:handoff downstream.

★ 0