AGENT SKILL

to-spec

Turn the current conversation into a spec saved locally as the reference the agents build from: no interview, just synthesis of what you've already discussed.

License 许可
MIT
所属仓库
davner/dotfiles
最近更新
2026-11-14
Stars
★ 0
Forks
0

01 前言 Front Matter

name
to-spec
description
Turn the current conversation into a spec saved locally as the reference the agents build from: no interview, just synthesis of what you've already discussed.
disable-model-invocation
true

02 资源文件 1

03 SKILL.md 正文

This skill takes the current conversation context and codebase understanding and produces a spec. Do NOT interview the user; just synthesize what you already know.

Read the tracker file, which also gives the triage label vocabulary. If there is none, tell the user to run /setup-dan-skills.

Process

When the work settles how a user interface should look, carry the confirmed impeccable shape brief and the winning prototype variant into the spec.

  1. Explore the repo to understand the current state of the codebase, if you haven't already. Use the project's domain glossary vocabulary throughout the spec, and respect any ADRs in the area you're touching.

  2. Sketch out the seams at which you're going to test the feature. Existing seams should be preferred to new ones. Use the highest seam possible. If new seams are needed, propose them at the highest point you can. The fewer seams across the codebase, the better - the ideal number is one.

Check with the user that these seams match their expectations.

  1. Write the spec using the template below and save it where the tracker file puts specs, with the ready-for-agent triage label - no need for additional triage. Close by telling the user the spec is the reference the agents build from, not a ticket to file, and what gets filed, and when, as the tracker file's "publish to the issue tracker" section says.

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

When headless:

When the conversation has said the run is headless, nobody will answer step 2's check. With no tracker file, use the layout autopilot's Start names (~/.claude/skills/autopilot/SKILL.md). Accept your own seams, and log them, with why each is the highest one, to the decision log in grilling's "When headless:" section (~/.claude/skills/grilling/SKILL.md). A choice between seams goes through that section's confidence rule; a park stops the run before step 3.

04 同仓库更多 Skills

davner
davner/dotfiles

autopilot

Run the new-work flow, idea or board item to reviewed code, with nobody watching.

★ 0
davner
davner/dotfiles

writing-for-agents

Writing documents for agents. Use when creating or editing skills, or modifying AGENTS.md or CLAUDE.md.

★ 0
davner
davner/dotfiles

to-tickets

Break a plan, spec, or the current conversation into tracer-bullet tickets grouped into the fewest PRs, each ticket with its blocking edges and first red test, saved as one local file per ticket.

★ 0
davner
davner/dotfiles

teach

Teach the user a new skill or concept, within this workspace.

★ 0
davner
davner/dotfiles

tdd

Test-driven development. Use when the user wants to build features or fix bugs test-first, mentions "red-green-refactor", or wants integration tests.

★ 0
davner
davner/dotfiles

tailwind-v4

Tailwind CSS v4 utility lookup, CSS-first theming, and version guardrails. Use whenever a project depends on tailwindcss v4, imports `tailwindcss` from CSS, or has an `@theme`, `@utility`, `@apply`, or `@custom-variant` rule - and for any CSS or class-name work in such a project, including writing markup with utility classes, editing a stylesheet, theming, dark mode, responsive or container queries, and build setup with Vite, PostCSS, or the CLI. Load this even for requests that look trivial, such as adding one class or changing one color, because v4 replaced the JavaScript config with CSS, renamed or removed a large part of the v3 class surface, and silently generates nothing for v3 syntax rather than failing, which makes recalled knowledge of "Tailwind" wrong in ways no build error reports.

★ 0