Skip to content
Back to skills

Spec

ASecurity

Interview the user, inspect the repository, write a feature specification and implementation plan, then hand implementation to a fresh session. Use when the user asks to define or plan a feature before implementation or invokes the spec workflow, for example "plan a new feature with me", "write a spec", "spec this feature".

  • 3 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added November 16, 2026
ai-agentsgogit

Works with

  • claude code

Security analysis

A100/100

Scanned November 17, 2026

npx -y skills add msolecki/developer-os --skill spec --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Spec?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Spec
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/msolecki-spec/badge)](https://www.skillsdirectory.com/skills/msolecki-spec)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: spec
description: Interview the user, inspect the repository, write a feature specification and implementation plan, then hand implementation to a fresh session. Use when the user asks to define or plan a feature before implementation or invokes the spec workflow, for example "plan a new feature with me", "write a spec", "spec this feature".
license: MIT
compatibility: "Claude Code"
argument-hint: "[feature description]"
---

# Spec

1. Interview the user one question at a time about behavior, UX, edge cases, constraints, and trade-offs, starting from the feature description when one was given. Do not ask what the repository already answers: do step 2 before the first question, so the first reply holds its research map and then the first question.
2. Inspect relevant code before locking decisions. When a vault is configured (a path given in this conversation, the `brain_vault` option, or the user-level `Brain vault:` line), run `developer-os:brain-search` on the topic and read the top note; without a vault, skip silently: do not invoke it or ask for a path. End the step by showing what you learned under the heading `Research map`, in at most 15 lines: the files the feature touches (repository paths), the data flow through them, the existing tests that cover them, and any vault note read, by its path, with the decision or rejected approach it records. Ask once whether the map is right, in the same reply as the first interview question; a correction changes the map, not the code.
3. Write the specification to the repository's documented specification location as `<YYYY-MM-DD-feature>-spec.md`; if none is documented, propose `docs/specs/` and confirm. Never write it into the planning location: a spec there is read as the active plan. Start it with frontmatter `status: draft`, `owner` and `last-verified: <today>`, then cover goals, non-goals, flows, technical design, decisions with rejected alternatives (one line each), contracts, failure handling, acceptance criteria, tests, and unresolved decisions. Write each acceptance criterion as `WHEN <event> THEN <observable result>`, one event and one result a command or a person can observe. Write anything the code, the vault and the user's answers leave unknown as `[NEEDS CLARIFICATION: <question>]` where it applies, never as a guess.
4. Write the implementation plan to the repository's documented plan location as `<YYYY-MM-DD-feature>.md`. Start it with the goal, the decisions, and a `Status: in progress | done` line; write every step as a `- [ ]` checkbox with What, Where, How, Test, `Done when` (its acceptance criterion), complexity (S/M/L), and a deployable invariant; end with `## Open questions` and a `Next action:` line. plan-status and session-retro read these.
5. Check the spec and plan against each other: show a coverage table (each acceptance criterion → its step IDs, each step → its criterion; a gap either way is a hit), scan for vague words ("fast", "robust", "intuitive"), placeholders (TODO, ???) and scope reduction ("v1", "for now", "stub", "placeholder", "future enhancement": a step delivering less than a decision says), and read the project's decision records and `AGENTS.md` invariants for conflicts. Put every hit, and every `[NEEDS CLARIFICATION: …]` marker in the spec, under `## Open questions` before the hand-off.
6. Offer to add the plan's steps to the project backlog: find or create its files as audit-to-backlog's Establish scope does (the `Backlog:` line, the path question before creating them, the git-ignored warning) and write each step as an item in the `developer-os:audit-to-backlog` format, with the `FEAT-` prefix, the next free `FEAT` number, and severity P2 unless the user names another of P0–P3, filed under that severity's section; complexity becomes `Size`, the step's `Done when` stays `Done when`, its Test becomes a runnable `Check` that triggers the criterion's WHEN and fails until its THEN is observed (`Manual: …` when no command can check it), `Where` is the step's Where, `Problem` and `Fix` are one line each (what is missing, what the step builds), and `Evidence` is the spec path and section (`docs/specs/<file>#<section>`), since new work has no `file:line` yet. Add `Session N: <ID>, …` lines of 5–7 items each for them under `## Implementation sessions`, so `implement-backlog` can execute them. Then replace each step in the plan with a plain line linking its ID (`- FEAT-03: <title>`, no checkbox), so the work is counted once, in the backlog.
7. Stop and hand implementation to a fresh session: when the steps moved to the backlog, a prompt that invokes `developer-os:implement-backlog`, which runs a convergence check against the acceptance criteria when the spec's last `FEAT-` item closes; otherwise "continue from <plan path>".

## Stop point

Stop after the specification and plan are written and the backlog offer is answered. Return both paths and the step 7 handoff prompt for a fresh session.

## Never

- Implement any part of the feature.
- Overwrite an existing plan or specification.
- Add items to the backlog without the user's yes.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.