agentleFS
epicsagasepicsagas/epic-harness/skills/spec/SKILL.md

spec

Skill20 starsChanged 2 months agoApache-2.0View on GitHub

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.

168 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use backprop, ios-clean and 10 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • JuliusBrusseeSkill

    backprop

    Bug → spec protocol. When a bug is found or a test fails, trace the cause, decide whether a new §V invariant would catch recurrence, append to §B. This is the one non-obvious thing SDD does that plan-then-execute doesn't. Triggers on test failure, bug report, post-mortem, or explicit user ask.

    Also in 4 projects that use this

  • Saqlain-811Skill

    ios-clean

    Remove the DebugBridge SPM package and all #if DEBUG wiring from an iOS app. (gstack)

    Also in 5 projects that use this

  • Saqlain-811Skill

    ios-fix

    Autonomous iOS bug fixer. (gstack)

    Also in 5 projects that use this

  • bastosSkill

    ios-design-review

    Review iOS app UI/UX design quality using Apple's design principles and the Liquid Glass-era design language from WWDC25/26. Use when asked for a design review, UX critique, visual design assessment, or evaluation of an app's interface quality, design intent, alignment with the new Apple design system, or usability. Triggers: "design review", "UX review", "visual design critique", "review the UI", "does this design work", "evaluate this interface", "design feedback", "Liquid Glass review".

    Also in 5 projects that use this

  • ShreyRaviSkill

    plan-tune

    Self-tuning question sensitivity + developer psychographic for gstack (v1: observational). Review which AskUserQuestion prompts fire across gstack skills, set per-question preferences (never-ask / always-ask / ask-only-for-one-way), inspect the dual-track profile (what you declared vs what your behavior suggests), and enable/disable question tuning. Conversational interface — no CLI syntax required.

    Also in 7 projects that use this

  • timurgaleevSkill

    document-generate

    Generate missing docs for a feature, module or project as tutorials, how-tos, reference and explanation.

    Also in 6 projects that use this

  • +2 more from Saqlain-811

The file

We split this skill into the rules it gives an agent

9 rules. 0 are common, 6 are distinctive, and 3 are very specific to this project.

  • 0

    Common

    Most of the 145 edited versions we read keep these.

  • 6

    Distinctive

    This author's own choices. Worth a look.

  • 3

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    CRITICAL: Run HARNESS_DIR=$(epic-harness path) first.

    line 8
  2. Distinctive:

    Read any existing context (CLAUDE.md, README, codebase structure)

    line 13
  3. Very specific:

    If .epic/team.md (or .epic/team.local.md) has a ## spec section, each of its bullets is required spec content, not advice.

    line 14
  4. Distinctive:

    If the request is vague, ask focused questions (max 3 at a time)

    line 15
  5. Distinctive:

    Never assume — clarify ambiguity before proceeding

    line 16
  6. Distinctive:

    Write a concise spec covering:

    line 19
  7. Distinctive:

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

    line 28
  8. Very specific:

    If no team is linked: suggest "This spec has N requirements.

    line 78
  9. Distinctive:

    If a team is already linked: skip this hint.

    line 79

“Common” is measured: kept by at least 6 in 10 of the 145 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

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
    • Read any existing context (CLAUDE.md, README, codebase structure)
    • If .epic/team.md (or .epic/team.local.md) has a ## spec section, each of its bullets is required spec content, not advice. Missing one is a GAP: in the readiness gate.
    • If the request is vague, ask focused questions (max 3 at a time)
    • Never assume — clarify ambiguity before proceeding
  2. Produce the spec Write a concise spec covering:
    • Goal: One sentence — what does this achieve?
    • Scope: What's included and explicitly excluded
    • Requirements: Numbered list (R1, R2, ...) of concrete, testable behaviors
    • Acceptance criteria: Numbered list (AC1, AC2, ...) — observable outcomes that prove each requirement is met
    • Technical notes: Constraints, dependencies, edge cases
    • Right-size: for a one-shot change (1–2 requirements) keep Scope and Technical Notes to one line each. Never skip the file, the gate, or the two record sections below; a small change with no record is how decisions get invented twice.
  3. 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?
    • Walk every R and AC. For each, name the decision an implementer would have to make that the spec does not settle (data shape, error path, boundary, ordering, naming, which existing module to extend).
    • Each gap is written as GAP: R{n} — {missing decision}. A gap is located, not vague: it points at one R or AC.
    • Zero gaps → proceed to step 4. One or more gaps → resolve each with the user (max 3 questions at a time), fold the answer into the spec, re-run the gate once.
    • The gate fails the spec, not the user. A thin spec fails here, where it costs one conversation, instead of in /audit, where it costs a rebuild.
  4. 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.
    • If no team is linked: suggest "This spec has N requirements. Consider running /team to set up a project-specific agent team before /go."
    • If a team is already linked: skip this hint.
  2. Tell the user: "Spec saved. Run /go to start building."

Anti-Rationalization

ExcuseRebuttalWhat to do instead
"It's a small change, I'll just code it"Small changes still have wrong assumptionsWrite the spec — it takes 2 minutes
"I'll refine the spec after coding"Spec after code is documentation, not planningSpec first, code second
"The user didn't give me enough detail"Then ask — don't invent requirementsAsk focused questions, max 3 at a time

Evidence Required

  • Spec file exists at $HARNESS_DIR/specs/SPEC-{timestamp}.md
  • Frontmatter has status: approved
  • Every Requirement has at least one Acceptance Criterion
  • Readiness gate run once; every gap and its resolution is recorded under ## Readiness Gate (or none)
  • ## Implementation Notes present and empty
  • ACs are observable (can be tested or verified)

Red Flags

  • Writing code before the spec is approved
  • Assuming requirements that weren't stated
  • Producing a 3-page spec for a 1-line change
  • Acceptance criteria that cannot be verified by a test or observation
  • Approving a spec with an open GAP: line ("the implementer will figure it out" is the gate failing)
  • Skipping this phase for non-trivial features

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.