visual-spec
Turn the grilled conversation into a spec, optionally confirming risky decisions as a visual HTML explainer first, then publish it to the issue tracker.
- License 许可
- MIT
- 最近更新
- 2026-10-17
- Stars
- ★ 1
- Forks
- 0
01 前言 Front Matter
- name
- visual-spec
- description
- Turn the grilled conversation into a spec, optionally confirming risky decisions as a visual HTML explainer first, then publish it to the issue tracker.
- disable-model-invocation
- true
02 资源文件 1
- 参考文档EXPLAINER.md1.0 KB
03 SKILL.md 正文
Synthesize the conversation into a spec. Do not interview; grilling already happened.
The issue tracker and triage label vocabulary should have been provided. If not, tell the user to run /setup-matt-pocock-skills.
Process
-
Explore the repo if you haven't. Use the domain glossary's words and respect ADRs in the area.
-
Sketch the seams where the feature will be tested. Prefer existing seams, at the highest point possible; the ideal is one. Check them with the user.
-
List every fork: a point where the design could have gone another way. Hunt hidden forks: statements that sound clear but hide a choice ("handle errors gracefully" hides retry vs fail vs notify). Make each hidden fork explicit. Mark a fork risky if it is expensive to reverse or the user would be surprised by the alternative.
-
Skip this step if the feature has no UI, flow, or state change. Otherwise ask the user one yes/no question: "Show the risky decisions as an HTML explainer before I write the spec?" On yes, read
EXPLAINER.mdand follow it. Continue only after the user confirms every visual. On no, continue. -
Write the spec with the template below. Publish it to the tracker with the
ready-for-agentlabel.
Done when every fork appears in the spec, and every risky fork has a scenario that exercises it.
<spec-template>
Problem Statement
The problem, from the user's perspective.
Solution
The solution, from the user's perspective.
Scenarios
5-10 concrete traces: start state → action → exact result. Use real names and numbers. Include edge cases. Each must be precise enough to become a test.
<scenario-example>
Sara has submitted 0 of 3 assignments. Deadline is 10:00. She submits at 10:01 → saved with status late; teacher's list shows "late" next to her name.
</scenario-example>
Implementation Decisions
One short entry per fork, tagged D1, D2, ... Include modules, interfaces, schema, API contracts. Add the text diagram (ASCII or Mermaid) copied from each confirmed visual under its fork.
No file paths or code snippets, except a prototype snippet that encodes a decision more precisely than prose (state machine, reducer, schema, type shape); trim it and note it came from a prototype.
Testing Decisions
- What makes a good test (external behavior only)
- Which modules are tested
- Prior art in the codebase
Out of Scope
Further Notes
</spec-template>
04 同仓库更多 Skills
writing-for-agents
Writing documents for agents. Use when creating or editing skills, or modifying AGENTS.md or CLAUDE.md.
wizard
Generate an interactive bash wizard that walks a human through steps only they can perform. Use when provisioning infrastructure, setting up credentials or CI secrets, walking an unfamiliar third-party dashboard, or running a one-off migration or cutover. Don't invoke this for steps the agent can perform itself.
wayfinder
Plan a huge chunk of work (more than one agent session can hold) as a shared map of decision tickets on your issue tracker, and resolve them one at a time until the way to the destination is clear.
wait-what
Stop. That last message did not land: re-pitch it.
triage
Move issues and external PRs through a state machine of triage roles, categorise, verify, grill if needed, and write agent-ready briefs.
to-tickets
Break a plan, spec, or the current conversation into a set of tracer-bullet tickets, each declaring its blocking edges, published to the configured tracker (edges as text in one file per ticket locally, or native blocking links on a real tracker).