Spec

From epicsagas/epic-harness · View interactive version

Spec is an AI agent skill from the GitHub repository epicsagas/epic-harness. Spec phase. Converts user requirements into a numbered Requirements + Acceptance Criteria document saved as SPEC-{timestamp}.md. Prompts /team suggestion when 3+ requirements are detected.

How to use this skill

Skill file

Spec — Define What to Build

CRITICAL: Run HARNESS_DIR=$(epic-harness path) first. NEVER use .harness/ in the project directory.

Process

  1. Understand the request
  1. Produce the spec

Write a concise spec covering:

  1. Readiness gate (adversarial, one pass, before approval)

Ask one question of the draft: could a different engineer implement this spec without inventing a decision that nothing records?

  1. Confirm with user

Show the spec in digestible chunks. Get explicit approval before proceeding.

Output

Save the approved spec to $HARNESS_DIR/specs/SPEC-{timestamp}.md using this exact format:

---
status: approved
created: {ISO-8601 timestamp}
goal_slug: {kebab-case-goal-summary}
---

# SPEC-{timestamp}: {Goal}

## Goal
{One sentence}

## Scope
- In: {what is included}
- Out: {what is explicitly excluded}

## Requirements
- R1: {concrete testable behavior}
- R2: {concrete testable behavior}

## Acceptance Criteria
- AC1 (R1): {observable outcome proving R1}
- AC2 (R2): {observable outcome proving R2}

## Technical Notes
{Constraints, dependencies, edge cases}

## Readiness Gate
{One line per gap found in step 3, each with how it was settled, or `none`:}
- GAP: R{n} — {decision the spec did not settle} → settled: {answer, and who decided: user | assumption}

## Implementation Notes
<!-- Agent-owned. Append-only during /go: decisions the spec left open, files touched beyond the plan, surprises. Empty at approval. Sections above this line are frozen after approval. -->

After saving:

  1. Count the Requirements (R1, R2, ...). If 3 or more, check team status: epic team status.
  1. Tell the user: "Spec saved. Run /go to start building."

Anti-Rationalization

| Excuse | Rebuttal | What to do instead |

|--------|----------|-------------------|

| "It's a small change, I'll just code it" | Small changes still have wrong assumptions | Write the spec — it takes 2 minutes |

| "I'll refine the spec after coding" | Spec after code is documentation, not planning | Spec first, code second |

| "The user didn't give me enough detail" | Then ask — don't invent requirements | Ask focused questions, max 3 at a time |

Evidence Required

Red Flags

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.