Skip to content

feat: add /spec mode for structured development workflow #55

@lroolle

Description

@lroolle

Description

Add /spec mode functionality to claude-yolo for structured development workflow inspired by kiro.dev.

Type

  • Bug fix
  • New feature
  • Enhancement
  • Documentation

Details

Implement a structured development workflow that transforms user prompts into organized specifications with three phases:

  1. Requirements generation (user stories with EARS notation)
  2. Design documentation (technical architecture, diagrams, interfaces)
  3. Task breakdown (discrete, trackable implementation tasks)

Core Features:

  • Generate structured specs in .claude-specs/ directory
  • Create requirements.md, design.md, and tasks.md files
  • Support iterative refinement of specifications
  • Context-aware analysis of existing codebase
  • Task execution with progress tracking

Command Interface:

claude.sh --spec "Add user authentication system"
claude.sh --spec-file my-spec.txt
claude.sh --spec-interactive
claude.sh --spec-execute spec-name

Directory Structure:

project/
├── .claude-specs/
│   ├── auth-system/
│   │   ├── requirements.md
│   │   ├── design.md
│   │   └── tasks.md

Related Files

  • claude.sh (command parser and spec mode logic)
  • docker-entrypoint.sh (Docker integration)
  • README.md (documentation)
  • New: spec-mode handlers and templates

Test Plan

  • Test spec generation from simple prompts
  • Verify structured file output (requirements.md, design.md, tasks.md)
  • Test interactive spec refinement
  • Validate task execution workflow
  • Test Docker/YOLO mode integration
  • Ensure proper file permissions and directory structure
  • Test with various project types and sizes
  • Update documentation with examples

Inspired by: kiro.dev spec mode functionality

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions