Prompt file imported from loiane/specs-driven-development-spring-angular (
.github/prompts/spec.prompt.md). Copyright stays with the author.
/spec
Phase: 1 — specify
Owning agent: .github/chatmodes/spec-author.chatmode.md
Skills used: ears-spec-authoring, issue-tracker-ingestion, requirements-traceability
Purpose
Turn raw intent (a sentence, a paragraph, or a ticket URL) into a complete EARS-style specification at .specs/<feature-id>/01-spec.md.
Inputs
Either:
- Free text describing the feature, OR
- A ticket reference (
JIRA-123, GitHub issue URL, Linear ID, Azure work item URL).
If a ticket is supplied, fetch it via the configured MCP server (see .github/skills/issue-tracker-ingestion/SKILL.md) and treat its body as the source.
Reads
- The supplied text or ticket.
.specs/_onboarding.md(for stack context)..github/templates/spec.template.md..github/checklists/spec-review.md(so the spec is born review-ready).
Writes
.specs/<feature-id>/01-spec.md(feature-id = kebab-case slug derived from the title, prefixed with dateYYYY-MM-DD-).
Process
- Derive
<feature-id>. Refuse if a folder with that id already exists unless the user passes--continue. - Extract: business goal, primary actor, in-scope, explicitly-out-of-scope.
- Write acceptance criteria as
AC-001,AC-002, ... using strict EARS forms (Ubiquitous, Event-driven, State-driven, Unwanted-behavior, Optional). Every AC must be testable. - List non-functional requirements (latency, throughput, security, observability) with concrete numbers. If unknown, file an
Open Questioninstead of guessing. - Capture
Open QuestionsasQ-001,Q-002. Never invent answers. Stop and surface the questions to the user. - Render the file using
.github/templates/spec.template.md.
Refuse if
- The input has fewer than 3 distinct nouns/verbs (likely too vague — ask the user to expand).
- Any acceptance criterion would require unstated assumptions.
Done when
01-spec.mdexists with at least one AC and zero invented answers.- All ambiguities are listed under
## Open QuestionswithQ-NNNIDs. - The user has been told the next command is
/spec-review(after they answer any Q-NNN).