agentleFS
peopleforresterpeopleforrester/claude-dotfiles/skills/workflow/spec-new/SKILL.md

spec-new

Skill3 starsChanged 7 months agoMITView on GitHub

Create a new feature specification through structured interview

5 other projects use a version of this.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

4 rules. 0 are common, 2 are distinctive, and 2 are very specific to this project.

  • 0

    Common

    Most of the 4 edited versions we read keep these.

  • 2

    Distinctive

    This author's own choices. Worth a look.

  • 2

    Very specific

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

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

    Start a structured interview to create a comprehensive specification before implementation.

    line 8
  2. Distinctive:

    Create the spec directory and files:

    line 18
  3. Distinctive:

    Before starting the interview, explore the codebase:

    line 27
  4. Very specific:

    After the interview, compile answers into .spec/{slug}.spec.md:

    line 47

“Common” is measured: kept by at least 6 in 10 of the 4 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-new

Start a structured interview to create a comprehensive specification before implementation. Uses the spec-interviewer agent to gather requirements across 8 categories.

Arguments

  • $ARGUMENTS — Name or brief description of the feature to spec

Process

1. Initialize Spec

Create the spec directory and files:

.spec/
└── {slug}.spec.md     # Will be populated by interview

Generate slug from the feature name (lowercase, hyphens).

2. Context Gathering

Before starting the interview, explore the codebase:

  • Detect the tech stack (language, framework, database)
  • Find similar existing implementations
  • Identify relevant patterns and conventions

3. Conduct Interview

Delegate to the spec-interviewer agent to ask questions across:

CategoryFocus
FunctionalWhat it does, who uses it, user flows
TechnicalLanguage, framework, existing patterns
Data ModelEntities, relationships, storage
Edge CasesError handling, boundary conditions
SecurityAuth, validation, secrets, OWASP
TestingTest types, coverage, fixtures
Non-FunctionalPerformance, scale, accessibility
ImplementationTask breakdown, dependencies, risks

4. Compile Spec Document

After the interview, compile answers into .spec/{slug}.spec.md:

# Spec: {Feature Name}

## Status: draft
## Created: {date}
## Updated: {date}

## Overview
{Summary from interview}

## Functional Requirements
{From functional category}

## Technical Constraints
{From technical category}

## Data Model
{From data model category}

## Edge Cases & Error Handling
{From edge cases category}

## Security Considerations
{From security category}

## Testing Strategy
{From testing category}

## Non-Functional Requirements
{From non-functional category}

## Implementation Approach
{From implementation category}

## Acceptance Criteria
- [ ] {Derived criteria}

5. Generate Task Breakdown

Delegate to the planner agent to create .spec/{slug}.tasks.md:

# Tasks: {Feature Name}

## Progress: 0/N complete (0%)

### Phase 1: Foundation
- [ ] 1.1 Task description
- [ ] 1.2 Task description

### Phase 2: Core Implementation
- [ ] 2.1 Task description
- [ ] 2.2 Task description

### Phase 3: Testing & Hardening
- [ ] 3.1 Task description
- [ ] 3.2 Task description

6. Create Implementation Log

Initialize .spec/{slug}.log.md:

# Implementation Log: {Feature Name}

## {date} — Spec created

Spec created via /spec-new interview.
Ready for implementation.

Output

After completion, display:

## Spec Created: {Feature Name}

**Files created:**
- `.spec/{slug}.spec.md` — Specification document
- `.spec/{slug}.tasks.md` — Task breakdown (N tasks)
- `.spec/{slug}.log.md` — Implementation log

**Next steps:**
1. Review the spec: `cat .spec/{slug}.spec.md`
2. Check task status: `/spec-status {slug}`
3. Start implementation: `/orchestrate implement {slug}`

**WAITING FOR CONFIRMATION** before starting implementation.

Example

User: /spec-new user authentication

Claude: Creating spec for "user-authentication"...

[Interview begins]

Q1: What is the core purpose of this authentication feature?
...

[After interview completes]

## Spec Created: User Authentication

**Files created:**
- `.spec/user-authentication.spec.md` — Specification document
- `.spec/user-authentication.tasks.md` — Task breakdown (12 tasks)
- `.spec/user-authentication.log.md` — Implementation log

**Next steps:**
1. Review the spec: `cat .spec/user-authentication.spec.md`
2. Check task status: `/spec-status user-authentication`
3. Start implementation: `/orchestrate implement user-authentication`

**WAITING FOR CONFIRMATION** before starting implementation.

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.