agentsclimarketplace

Spec

Skill philwhiteuk/skillz/skills/spec

Write and format software specifications for an engineering team. Use this skill whenever the user wants to write a spec, draft requirements, turn meeting notes into a specification, create acceptance criteria, classify a piece of work, or format a spec as a ticket (Story, Task, Refactor, Spike, Bug, or Epic). Also trigger when the user says things like "write me a spec", "make this a ticket", "what type of work is this?", "turn this into a story/task/refactor/spike/bug/epic", "spec out a refactor", "format this for the team", "user stories", "acceptance criteria", or "requirements doc". Use this skill even if the user only has rough notes — you can help shape them into a spec.From its SKILL.md

Install
npx -y skills add philwhiteuk/skillz --skill spec

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

One thing to look at

  • 0 stars0 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.

SKILL.md

14.9 KB, as published. Nobody here has run it

Spec

You help an Engineering Lead go from raw input to a formatted, shareable ticket in two steps:

  1. Write — turn whatever the user gives you (notes, requirements, a problem description) into a solution-agnostic spec
  2. Classify & format — classify the spec as a Story, Task, Refactor, Spike, Bug, or Epic and render it using the right template from assets/

If the user already has a well-formed spec, skip straight to step 2. If they only have rough input, do step 1 first, then proceed.


Step 1: Writing the spec

Why solution-agnostic matters

A spec that names technologies constrains the team before they've had a chance to think. When the spec says "system responds within 200ms for repeated requests" instead of "implement Redis cache", the team can evaluate trade-offs and own their decisions.

Principles

Describe outcomes, not mechanisms. Every requirement should be verifiable by observing system behaviour, not by inspecting internals. If you find yourself naming a technology, framework, or architecture pattern — stop and reframe.

Implementation-specificSolution-agnostic
Implement Redis cacheSystem responds within 200ms for repeated requests
Create REST APIExternal systems can integrate with our data programmatically
Build a React dashboardUsers can view key metrics at a glance from a browser
Add PostgreSQL full-text searchUsers can search across all content by keyword with results in under 1 second
Use WebSockets for live updatesChanges made by one user are visible to others within 3 seconds without refreshing

Be vendor and tool agnostic unless the requirement genuinely depends on a specific integration (e.g. "must authenticate against the company's existing Okta instance" — that's a constraint, not a choice).

One spec, one problem. If scope starts sprawling, suggest splitting rather than cramming everything in.

Be concise. A spec is a communication tool, not a novel. The Why should be 2-3 sentences. Out of Scope and Open Questions should be short bullet lists.

Implementation detail from fact-finding is input, not spec content. You will often reach this skill with the implementation already worked out — e.g. after a grilling or fact-finding session that resolved how to build the thing. That detail sharpens your confidence and removes Open Questions; it does not belong in the spec. The spec still captures intent and observable outcomes only. A spec written after fact-finding should look almost identical to one written before it — same shape, just fewer unknowns. If you catch yourself transcribing decisions like "store it in the X table", "add a Y endpoint", or "use the Z library", stop: those belong in the implementation plan that comes later (e.g. /to-issues), not here. When in doubt, park hard-won technical decisions in a short note to the user ("the grilling settled on X — I've left it out of the spec; it'll land in the plan") rather than in the spec body.

Exception — Refactors. A Refactor is the one type where the mechanism is the deliverable, so naming the target structure (modules, boundaries, patterns, the shape to move from and to) is legitimate, expected spec content. Discipline doesn't disappear, it relocates: the pain points describe real friction in the code today (what makes change hard — never "because it's cleaner"), and behaviour-preservation is the defining invariant — a Refactor changes structure, not what the system does. If observable behaviour changes, the work is a Story, Bug, or Task — not a Refactor. So: implementation detail in a Refactor's before/after table is correct; everywhere else it's still contamination.

Spec structure

### Title
Short outcome-focused name. Not a solution name.
Good: "Sub-second search across content library"
Bad: "Elasticsearch implementation"

### Why
2-3 sentences. What problem does this solve and why now?

### Who
One primary user story: As a [type of user], I want to [achieve something], so that [benefit].
Include 2-3 stories only if genuinely multiple distinct user types — and flag it may need splitting.

### What (Acceptance Criteria)
Numbered list of observable, testable outcomes. Each one should be demonstrable in a review.
- Start with a verb ("Users can...", "System displays...", "Data is available within...")
- Include measurable thresholds where relevant
- No technology names

### Out of Scope (optional)
Brief bullets on what this spec doesn't cover.

### Open Questions (optional)
3-4 max. Unresolved items that need investigation before the work is fully defined.

How to work with the user

  • Actively reframe implementation language. Don't just flag it — propose the solution-agnostic alternative and show your reasoning.
  • Ask clarifying questions when the outcome isn't clear. "We need caching" → "What's slow today, and how fast does it need to be?"
  • Push back gently on scope creep. Suggest splitting if the problem grows.
  • After producing the spec, ask: "Does this capture the problem accurately? Anything missing or accidentally prescribing a solution?"

Step 2: Classify and format

Once you have a spec (written above or supplied by the user), classify it and render it using the correct template.

Classification rules

Classify by the nature of the work and who benefits — never by how much you already know about how to build it. The Task type exists for work whose beneficiary is internal (the system, a developer, an internal team), not for "Stories I happen to know how to build." A fully-designed new feature is still a Story, and the implementation detail that made it feel like a Task doesn't belong in the spec at all (see Step 1).

Default to Story for any new user-facing capability. If the work adds something an end-user can see, do, or benefit from, it's a Story — even if it's small, and even if the build is fully specced. Only downgrade to Task when the beneficiary is genuinely internal. In a healthy feature backlog most tickets are Stories; Tasks, Spikes and Bugs are the minority.

Epic A large, strategic initiative spanning multiple features or teams. Too big to deliver in a single sprint — it will be broken into child Stories, Tasks, or Spikes. The goal is a significant product or business outcome, not a single user workflow.

Signal: Multiple user stories are needed to describe the scope, or the work would clearly take many sprints. Language like "platform", "programme", "initiative", "phase", or explicit mention of sub-features.

Story A new feature added to the product. The user story describes an end-user benefit, the ACs are user-facing and observable, and there are minimal unknowns — the team knows roughly what to build.

Signal: "As a [end user], I want to..." with ACs describing visible behaviour. No significant Open Questions.

Task Supporting or infrastructure work in service of a feature that produces something new internally rather than restructuring what already exists. The primary "user" is the system, a developer, or an internal team — not an end-user. No direct standalone user benefit; it enables something else.

Signal: The "Who" is internal/technical, or the work is clearly a dependency for something bigger. Net-new internal work — CI/CD setup, adding test coverage, provisioning infrastructure, internal tooling, dependency upgrades — is a Task. Behaviour-preserving restructuring of existing code is not a Task; that's a Refactor (see below).

Refactor Behaviour-preserving restructuring of existing code. The deliverable is a change in internal structure with no observable change to what the system does — it prepares the codebase and improves the code path for change. Covers both work that enables specific upcoming feature(s) ("make the change easy, then make the easy change") and standalone technical-debt paydown. Unlike every other type, the spec legitimately names the target structure (see the Refactors exception in Step 1).

Signal: Code organisation, separation of concerns, extracting/consolidating modules, untangling coupling, technical-debt reduction — where existing behaviour is held constant and the same tests still pass. If behaviour changes, it isn't a Refactor.

Spike The direction is uncertain. Open questions, major assumptions, or competing approaches need investigation before real work can be scoped. Spikes are timeboxed research — the output is a finding or recommendation, not shipped software.

Signal: Non-trivial Open Questions section, OR ACs that depend on knowing the approach first. Language like "evaluate", "determine", "assess", "investigate".

Bug An existing feature is broken or behaving incorrectly. Corrective work, not additive.

Signal: A discrepancy between intended and actual behaviour of something already shipped.

Handling ambiguity

  • Story vs Task: Does it deliver standalone value to a product end-user (not a developer or internal team)? If yes, it's a Story — however thoroughly the implementation has been worked out. If no, it's a Task or Refactor.
  • Refactor vs Task: Both are internal, but the test is whether existing code is being restructured. A Refactor changes the shape of code that already exists while holding behaviour constant; a Task produces something new internally (a pipeline, test coverage, tooling). "Improve / reorganise / extract / decouple existing X" → Refactor. "Add / set up / provision new Y" → Task.
  • Refactor vs Story: If the change is observable to an end-user, it's a Story (or a Bug), even if it touches structure on the way. A true Refactor is invisible from the outside — same behaviour, same tests pass.
  • Story vs Spike: Non-empty Open Questions, or ACs that depend on the implementation → lean Spike.
  • Epic vs Story: Could this reasonably be done in one sprint by one team? If no, it's an Epic.
  • Spike vs Task: A Spike answers a question; a Task completes a known piece of work.

If unsure, state your uncertainty and offer a recommendation. The user can override.

Rendering

Use your file-reading tool to load the correct template from assets/ (e.g. assets/task.md). Do not reconstruct the template from memory — always read the file. Then fill in every {{placeholder}} with the values described below. Reproduce all section headers and emoji exactly as they appear in the file.

The spec Title is the issue's title — not part of the description. The rendered template is the issue description only. Issue trackers display the title as a separate field, so repeating it as an h1 at the top of the description duplicates it in the UI. The templates therefore start at the first ## heading; surface the title separately when handing the spec to the tracker (e.g. as the title argument when creating the issue).

Epic (assets/epic.md):

  • Title → spec Title (used as the issue title; not rendered into the description body)
  • {{objective}} → a concise statement of what this initiative sets out to achieve; this is the record of original intent — write it to be meaningful even if nothing else about the epic ever gets updated (1-2 sentences, outcome-focused)
  • {{why}} → from the spec's Why section; the problem being solved and why it matters now (2-3 sentences, plain text)
  • desired_outcomes → the observable, measurable results that would signal success; derive from the What section or synthesise from the spec's intent. These are not deliverables — they are the changes in the world the initiative should produce (e.g. "customers can self-serve without contacting support", "deployment frequency increases without a rise in incidents"). Bullet list, 2-4 items.

Story (assets/story.md):

  • Title → spec Title (used as the issue title; not rendered into the description body)
  • {{persona}} / {{goal}} / {{benefit}} → parse from the Who section user story
  • acceptance_criteria → from What section, as bullet points
  • discussion_points → from Open Questions (omit the block entirely if absent)

Task (assets/task.md):

  • Title → spec Title (used as the issue title; not rendered into the description body)
  • {{task_description}} → what needs to be done (synthesise from the spec; reframe as a task statement, not a wish)
  • acceptance_criteria → from What section
  • {{context}} → from Why section (1-2 sentences, plain text)

Refactor (assets/refactor.md):

  • Title → spec Title (used as the issue title; not rendered into the description body)
  • {{summary}} → one or two sentences framing the structural change and its boundary. Keep it short — the pain points and table carry the detail.
  • pain_points → bullet list of the problems with the code today that motivate the refactor: the friction, coupling, risk, or duplication that makes change hard. This is the "why" — keep each point concrete and observable to a developer.
  • changes → the deliverable: a before/after table, one row per area being changed. Each row has area (the thing being changed — a module, layer, dependency, pattern), before (its current shape) and after (its target shape). Unlike other types, name concrete structure here (modules, patterns, boundaries). Aim for one row per distinct move; a single row is fine if there's only one.

Spike (assets/spike.md):

  • Title → spec Title, prefixed with "Spike: " if not already (used as the issue title; not rendered into the description body)
  • {{spike_description}} → what needs to be investigated and why; frame as a question to answer
  • {{context}} → from Why section (plain text)
  • {{output_1}}, {{output_2}} → concrete deliverables the spike should produce; derive from Open Questions and ACs

Bug (assets/bug.md):

  • Title → spec Title (used as the issue title; not rendered into the description body)
  • {{expected}} → what the system should do
  • {{actual}} → what the system currently does incorrectly

If the spec doesn't cleanly separate expected vs actual, extract what you can and flag it for the user to verify.

Never add a top-level h1 to the rendered description. The description should start with the first ## from the template. If you find yourself prepending # <title>, stop — the title belongs in the tracker's title field, not in the body.

Keep looking

Skills are one crate of 607,533. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.