Skip to content

prodigy-sln/prospect

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

4 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Prospect β€” Spec-Driven Development Framework

By prodigy.solutions

A reusable spec-driven development (SDD) framework for AI-assisted coding tools that guides TDD-based development through structured phases.

Supported Tools

Tool Status Invocation
VS Code Copilot Supported /sdd.start, @sdd-start
Claude Code Supported /sdd-start, /sdd-start-issue

Quick Start

New Project

VS Code Copilot Claude Code
/sdd.init-project /sdd-init-project

The AI will ask about your tech stack, architecture, and preferences, then generate a complete project structure with Prospect configured.

Existing Project

VS Code Copilot Claude Code
/sdd.onboard /sdd-onboard

The AI will analyze your codebase to discover tech stack, naming conventions, linting rules, and test patterns, then generate matching standards files.

Manual Installation

If you prefer manual setup:

  1. Copy this folder to your project root
  2. Customize standards in standards/global/ for your tech stack
  3. Start a feature with /sdd.start (Copilot) or /sdd-start (Claude Code)

Installation

Quick Install

# Bash (Linux/macOS/Git Bash)
curl -fsSL https://raw.githubusercontent.com/prodigy-sln/prospect/main/install.sh | bash

# PowerShell (Windows)
irm https://raw.githubusercontent.com/prodigy-sln/prospect/main/install.ps1 | iex

The script detects whether you are running interactively and prompts you to choose which toolchain(s) to install (Claude Code, VS Code Copilot, or both). Shared files (standards/, specs/, product/) are always installed.

Script Options

Flag (bash) Flag (PowerShell) Description
--claude -Claude Install Claude Code toolchain only
--copilot -Copilot Install VS Code Copilot toolchain only
--all -All Install both toolchains (default)
--help -Help Show usage information

To install a specific version instead of the latest release:

# Bash β€” pin to a version tag
curl -fsSL https://raw.githubusercontent.com/prodigy-sln/prospect/main/install.sh | bash -s -- v1.2.0

# PowerShell β€” pin to a version tag
irm https://raw.githubusercontent.com/prodigy-sln/prospect/main/install.ps1 | iex -Args v1.2.0

Updating

Re-run the same install command at any time to update to the latest release:

curl -fsSL https://raw.githubusercontent.com/prodigy-sln/prospect/main/install.sh | bash

The update process is safe for your customizations:

  • Unmodified framework files β€” updated silently to the new version.
  • Files you have modified β€” the new version is saved alongside as <filename>.prospect-incoming. Review the diff and merge manually (or ask your AI coding tool to help).
  • Your content β€” specs/active/, specs/implemented/, product/mission.md, and product/roadmap.md are never touched.

After an update that produced conflicts, the script prints a summary of all .prospect-incoming files with the paths you need to review.

Manual Installation (fallback)

Copy the Prospect framework contents to your project:

cp -r prospect/.github /path/to/your/project/     # VS Code Copilot
cp -r prospect/.claude /path/to/your/project/      # Claude Code
cp -r prospect/CLAUDE.md /path/to/your/project/    # Claude Code
cp -r prospect/standards /path/to/your/project/    # Shared
cp -r prospect/specs /path/to/your/project/        # Shared
cp -r prospect/product /path/to/your/project/      # Optional

Your project structure should include:

your-project/
β”œβ”€β”€ .prospect-version                  # Installed version tag (e.g. v1.0.0)
β”œβ”€β”€ .prospect-manifest.json            # Per-file checksums for update tracking
β”œβ”€β”€ CLAUDE.md                          # Claude Code project instructions
β”‚
β”œβ”€β”€ .claude/                           # Claude Code
β”‚   β”œβ”€β”€ skills/                        #   Slash commands (/sdd-*)
β”‚   β”‚   β”œβ”€β”€ sdd-init-project/SKILL.md
β”‚   β”‚   β”œβ”€β”€ sdd-onboard/SKILL.md
β”‚   β”‚   β”œβ”€β”€ sdd-start/SKILL.md
β”‚   β”‚   β”œβ”€β”€ sdd-start-issue/SKILL.md  #   Issue-driven unguided pipeline
β”‚   β”‚   β”œβ”€β”€ sdd-clarify/SKILL.md     #   Requirements clarification via issue tracker
β”‚   β”‚   β”œβ”€β”€ sdd-initiate/SKILL.md
β”‚   β”‚   β”œβ”€β”€ sdd-shape/SKILL.md
β”‚   β”‚   β”œβ”€β”€ sdd-discuss/SKILL.md      #   Optional agent team discussion
β”‚   β”‚   β”œβ”€β”€ sdd-specify/SKILL.md
β”‚   β”‚   β”œβ”€β”€ sdd-architect/SKILL.md    #   Optional architecture planning
β”‚   β”‚   β”œβ”€β”€ sdd-tasks/SKILL.md
β”‚   β”‚   β”œβ”€β”€ sdd-implement/SKILL.md
β”‚   β”‚   β”œβ”€β”€ sdd-validate/SKILL.md
β”‚   β”‚   └── sdd-complete/SKILL.md
β”‚   β”‚
β”‚   └── agents/                        #   TDD subagents
β”‚       β”œβ”€β”€ sdd-architect.md           #   Architecture planning agent
β”‚       β”œβ”€β”€ sdd-test-writer.md
β”‚       β”œβ”€β”€ sdd-implementer.md
β”‚       β”œβ”€β”€ sdd-refactorer.md          #   Quality-gated refactoring
β”‚       β”œβ”€β”€ sdd-review-correctness.md  #   Correctness review (behavioral)
β”‚       β”œβ”€β”€ sdd-review-coverage.md     #   Coverage review (test gaps)
β”‚       β”œβ”€β”€ sdd-review-quality.md      #   Quality review (patterns, security, scope)
β”‚       └── sdd-verifier.md            #   Quality gates + test verification
β”‚
β”œβ”€β”€ .github/                           # VS Code Copilot
β”‚   β”œβ”€β”€ agents/                        #   Agent definitions (14 files)
β”‚   β”œβ”€β”€ prompts/                       #   Command wrappers (10 files)
β”‚   β”œβ”€β”€ instructions/sdd-context.md    #   Shared context
β”‚   └── copilot-instructions.md        #   Copilot-specific instructions
β”‚
β”œβ”€β”€ standards/                         # Shared (both tool chains)
β”‚   └── global/
β”‚       β”œβ”€β”€ code-quality.md
β”‚       β”œβ”€β”€ testing.md
β”‚       └── git-workflow.md
β”‚
β”œβ”€β”€ specs/                             # Shared
β”‚   β”œβ”€β”€ active/
β”‚   β”œβ”€β”€ implemented/
β”‚   └── _templates/
β”‚       β”œβ”€β”€ spec.template.md
β”‚       └── tasks.template.md
β”‚
β”œβ”€β”€ product/                           # Optional, shared
β”‚   β”œβ”€β”€ mission.template.md
β”‚   └── roadmap.template.md
β”‚
└── [your project files]

Workflow Overview

β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚  PROJECT SETUP (New Projects Only)                              β”‚
β”‚  ─────────────────────────────────                              β”‚
β”‚  /sdd.init-project                                              β”‚
β”‚    β”œβ”€β”€ Q&A: tech stack, architecture, testing                   β”‚
β”‚    β”œβ”€β”€ Generate project structure                               β”‚
β”‚    β”œβ”€β”€ Generate standards for your stack                        β”‚
β”‚    └── Create mission.md                                        β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
                              β”‚
                              β–Ό
β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚  FEATURE DEVELOPMENT (Repeatable)                               β”‚
β”‚  ────────────────────────────────                               β”‚
β”‚                                                                 β”‚
β”‚  /sdd.clarify (Optional β€” before /sdd.start)                    β”‚
β”‚      └── Gather requirements from stakeholders via issue tracker β”‚
β”‚              β”‚                                                  β”‚
β”‚              β–Ό [Stakeholder responds]                           β”‚
β”‚                                                                 β”‚
β”‚  /sdd.start (Phases 1-3 combined)                               β”‚
β”‚      β”œβ”€β”€ Creates feature branch                                 β”‚
β”‚      β”œβ”€β”€ Searches codebase for similar features                 β”‚
β”‚      β”œβ”€β”€ Gathers requirements through Q&A                       β”‚
β”‚      β”œβ”€β”€ (Optional) /sdd.discuss β€” Agent team discussion        β”‚
β”‚      └── Generates specification                                β”‚
β”‚              β”‚                                                  β”‚
β”‚              β–Ό [User reviews spec]                              β”‚
β”‚                                                                 β”‚
β”‚  /sdd.architect (Optional)                                      β”‚
β”‚      └── Architecture planning before task breakdown             β”‚
β”‚              β”‚                                                  β”‚
β”‚              β–Ό [User reviews architecture]                      β”‚
β”‚                                                                 β”‚
β”‚  /sdd.tasks (Phase 4)                                           β”‚
β”‚      └── Creates TDD-ordered task breakdown                     β”‚
β”‚              β”‚                                                  β”‚
β”‚              β–Ό [User reviews tasks]                             β”‚
β”‚                                                                 β”‚
β”‚  /sdd.implement (Phase 5)                                       β”‚
β”‚      └── TDD implementation (Red-Green-Refactor)                β”‚
β”‚              β”‚                                                  β”‚
β”‚              β–Ό                                                  β”‚
β”‚  /sdd.validate (Phase 6)                                        β”‚
β”‚      └── Parallel reviewers: correctness, coverage, quality     β”‚
β”‚              β”‚                                                  β”‚
β”‚              β–Ό                                                  β”‚
β”‚  /sdd.complete (Phase 7)                                        β”‚
β”‚      └── Moves spec to implemented/, finalizes                  β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜

Commands

Project Setup

Phase VS Code Copilot Claude Code Description
Setup (new) /sdd.init-project /sdd-init-project Initialize new project
Setup (existing) /sdd.onboard /sdd-onboard Onboard existing project

Feature Development

Phase VS Code Copilot Claude Code Description
β€” (optional) β€” /sdd-clarify [issue] Requirements clarification via issue tracker
1-3 combined /sdd.start [desc] /sdd-start [desc] Start new spec
1 /sdd.initiate /sdd-initiate Create branch and folder
2 /sdd.shape /sdd-shape Gather requirements
2.5 (optional) β€” /sdd-discuss Agent team discussion (Claude Code only)
3 /sdd.specify /sdd-specify Generate specification
β€” (optional) /sdd.architect /sdd-architect Architecture planning
4 /sdd.tasks /sdd-tasks Create TDD task breakdown
5 /sdd.implement /sdd-implement TDD implementation
6 /sdd.validate /sdd-validate Verify vs spec (parallel reviewers)
7 /sdd.complete /sdd-complete Finalize feature
β€” β€” /sdd-start-issue [id] Issue-driven unguided pipeline

Using Agents Directly (VS Code Copilot)

Invoke agents with @:

  • @sdd-start β€” Start new feature spec
  • @sdd-tasks β€” Create task breakdown
  • etc.

Product Planning (Optional)

Prospect includes optional product-level documents:

Mission Document (product/mission.md)

Defines project purpose, target users, and tech stack. Generated by /sdd.init-project or created manually from mission.template.md.

Roadmap (product/roadmap.md)

Optional local roadmap for feature planning. Not required if using external tools like Jira.

Roadmap β†’ Specs flow:

Roadmap Item β†’ /sdd.start "feature name" β†’ Spec in specs/active/

Jira β†’ Specs flow:

Jira Epic/Ticket β†’ /sdd.start PROJ-123 β†’ Spec in specs/active/

Key Features

Guided Phase Transitions

After each phase completes, the agent suggests the next command. In VS Code Copilot this appears as a clickable handoff button; in Claude Code as a text prompt with the next /sdd-* command.

TDD-First Approach

All implementation follows Red-Green-Refactor:

  1. RED: Write failing tests first
  2. GREEN: Write minimal code to pass
  3. REFACTOR: Improve while keeping tests green

Existing Code Discovery

Before specifying new features, Prospect searches your codebase for:

  • Similar features to reference
  • Reusable components
  • Patterns to follow

Scope Control

The "Out of Scope" section prevents feature creep:

  • Explicitly lists what's NOT included
  • Enforced during implementation
  • Verified during validation

Agent Team Discussion (Optional, Claude Code only)

During shaping, /sdd-discuss spawns a stakeholder agent team β€” always including an Architect, plus 1-2 additional personas relevant to the feature (e.g., End User, Domain Expert, Product Owner) β€” to evaluate the plan from different perspectives before the spec is written. Uses Claude Code Agent Teams.

Architecture Planning (Optional)

/sdd-architect produces a concise architecture plan between specification and task breakdown, covering key decisions, component design, data contracts, and integration points.

Parallel Code Review During Validation

/sdd-validate launches 3 specialized reviewers in parallel alongside the verifier:

  • Correctness reviewer β€” verifies implementation behavior matches spec requirements exactly
  • Coverage reviewer β€” verifies all requirements have adequate test coverage
  • Quality reviewer β€” checks code patterns, consistency, security, and scope compliance

Each reviewer has strict scope boundaries to prevent finding overlap, and uses a shared file manifest built by the orchestrator. Validation supports up to 2 passes with automatic escalation.

Requirements Clarification

/sdd-clarify gathers requirements from stakeholders via issue tracker comments before spec writing. Works with Atlassian (Jira), Linear, or Notion MCP integrations when available; falls back to direct user interaction.

Issue-Driven Pipeline

/sdd-start-issue takes a Jira issue ID or description and runs the full pipeline (start β†’ architect β†’ tasks β†’ implement β†’ validate) without requiring user interaction at each step.

Jira Integration (Optional)

If Atlassian MCP is available:

  • Start from Jira issues: /sdd.start PROJ-123
  • Auto-fetch issue details and attachments
  • Graceful fallback if unavailable

Folder Structure

specs/active/

Specs currently in development:

specs/active/2025-01-29-user-auth/
β”œβ”€β”€ spec.md                # The specification
β”œβ”€β”€ tasks.md               # Task breakdown
β”œβ”€β”€ requirements.md        # Raw requirements from shaping
β”œβ”€β”€ architecture.md        # Architecture plan (optional, from /sdd-architect)
β”œβ”€β”€ validation-report.md   # Generated by validate phase
β”œβ”€β”€ review-correctness.md  # Correctness review (behavioral verification)
β”œβ”€β”€ review-coverage.md     # Coverage review (test gap analysis)
β”œβ”€β”€ review-quality.md      # Quality review (patterns, security, scope)
└── visuals/               # Mockups, wireframes

specs/implemented/

Completed specs (moved on completion).

standards/global/

Quality standards (customize for your stack):

  • code-quality.md - Code quality rules
  • testing.md - TDD and testing requirements

product/

Optional product documentation:

  • mission.md - Project mission and overview
  • roadmap.md - Feature roadmap (if not using external tool)

Best Practices

  1. New projects: Use /sdd.init-project (Copilot) or /sdd-init-project (Claude Code)
  2. Always start features with a spec β€” Don't skip it
  3. Review before proceeding β€” Check specs and tasks before implementation
  4. Follow TDD strictly β€” Tests before code, always
  5. Respect scope β€” Out of scope means out of scope
  6. Follow the workflow β€” Let phase transitions guide you

Architecture

Prospect supports two AI coding tools with parallel file structures:

VS Code Copilot (.github/)

  • Prompt files (.github/prompts/): Minimal wrappers for /sdd.* invocation
  • Agent files (.github/agents/): Full instructions with handoff buttons

Claude Code (.claude/)

  • Skills (.claude/skills/sdd-*/SKILL.md): Slash commands for /sdd-* invocation
  • Subagents (.claude/agents/sdd-*.md): TDD worker agents (test-writer, implementer, refactorer, verifier), architecture agent, and 3 specialized review agents (correctness, coverage, quality)
  • CLAUDE.md: Project instructions with @ imports to shared standards

Shared (both tool chains)

  • Standards (standards/global/): Immutable quality constitutions
  • Templates (specs/_templates/): Spec and task templates
  • Specs (specs/active/, specs/implemented/): Feature specifications
  • Context (.github/instructions/sdd-context.md): Workflow reference

License

MIT - Use freely in your projects.


Prospect is developed by prodigy.solutions

About

Prospect - The SDD Framework

Resources

Stars

Watchers

Forks

Packages

 
 
 

Contributors