AGENT SKILL

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

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

  1. Explore the repo if you haven't. Use the domain glossary's words and respect ADRs in the area.

  2. 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.

  3. 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.

  4. 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.md and follow it. Continue only after the user confirms every visual. On no, continue.

  5. Write the spec with the template below. Publish it to the tracker with the ready-for-agent label.

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