Agent skill

speckit-specify

Create or update the feature specification from a natural language feature description.

Stars 163
Forks 31

Install this agent skill to your Project

npx add-skill https://github.com/majiayu000/claude-skill-registry/tree/main/skills/other/speckit-specify-dceoy-speckit-agent-skills-c4d3062a

SKILL.md

Spec-Kit Specify

Create structured feature specifications from natural language descriptions. First step in the spec-kit workflow.

When to Use

  • User describes a new feature to build
  • Starting a new project or feature
  • Need to document requirements
  • Converting ideas into structured specifications

Execution Workflow

The user's input after the skill invocation is the feature description. The workflow:

  1. Generate concise branch name (2-4 words) from feature description
    • Use action-noun format (e.g., "add-user-auth", "fix-payment-bug")
    • Preserve technical terms (OAuth2, API, JWT)
  2. Check for existing branches across remote, local, and specs directories
    • Find highest feature number for this short-name across ALL sources
    • Use next available number (N+1)
  3. Run setup script .specify/scripts/bash/create-new-feature.sh with calculated number and short-name
  4. Load spec template from .specify/templates/spec-template.md
  5. Fill specification with:
    • Feature overview (what, why, who)
    • User stories with priorities (P1, P2, P3)
    • Acceptance criteria for each story
    • Functional, non-functional requirements, and constraints
    • Make informed guesses for unclear aspects (document in Assumptions)
    • LIMIT: Maximum 3 [NEEDS CLARIFICATION] markers total - only for critical decisions
    • Prioritize clarifications: scope > security/privacy > UX > technical details
  6. Validate quality using spec quality checklist
    • Creates checklists/requirements.md to validate spec completeness
    • Checks for implementation details, testable requirements, measurable success criteria
  7. Present clarification questions (if markers remain) with suggested answers in table format
  8. Update spec with user's answers
  9. Report completion with branch name, spec file path, and readiness for next phase

Key Points

  • Focus on WHAT users need and WHY, not HOW to implement
  • Written for business stakeholders, not developers
  • No tech stack, APIs, or code structure in spec
  • Make informed guesses using context and industry standards
  • Document assumptions in Assumptions section
  • Maximum 3 [NEEDS CLARIFICATION] markers - prioritize by impact: scope > security/privacy > UX > technical details
  • Success criteria must be measurable and technology-agnostic
  • Each user story needs clear, testable acceptance criteria

Next Steps

After creating spec.md:

  • Clarify ambiguities with speckit-clarify (optional)
  • Plan implementation with speckit-plan

See Also

  • speckit-constitution - Define project principles
  • speckit-clarify - Resolve specification ambiguities
  • speckit-plan - Create technical implementation strategy

Expand your agent's capabilities with these related and highly-rated skills.

Didn't find tool you were looking for?

Be as detailed as possible for better results