npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2025 – Pkg Stats / Ryan Hefner

spec-flow

v10.16.0

Published

Spec-Driven Development workflow toolkit for Claude Code - Build high-quality features faster with repeatable AI workflows

Readme


Spec-Flow is a workflow toolkit for Claude Code that transforms how you build software with AI. Instead of ad-hoc prompting, you get a structured pipeline that takes ideas from specification to production.

/feature "add user authentication"

That's it. Spec-Flow handles the rest: writing specs, planning architecture, breaking down tasks, implementing with TDD, running quality gates, and deploying.

Why Spec-Flow?

| Without Spec-Flow | With Spec-Flow | |-------------------|----------------| | "What were we building again?" | Every decision tracked in NOTES.md | | Features shipped without tests | TDD enforced, quality gates block bad code | | Context bloat slows Claude down | Auto-compaction keeps context efficient | | Each feature starts from scratch | Reusable patterns, proven workflows | | "Did we test this? Who approved?" | Auditable artifacts for every phase |

Quick Start

1. Install

npx spec-flow init

2. Build your first feature

/feature "add dark mode toggle"

Spec-Flow runs you through:

spec → plan → tasks → implement → optimize → ship

Each phase produces artifacts, runs quality checks, and hands off cleanly to the next.

3. That's it

Your feature is deployed. All decisions documented. Tests passing. Ready for the next one.


The Workflow

Features (< 16 hours)

For focused work on a single subsystem:

/feature "user profile editing"     # Start the workflow
/feature continue                   # Resume after a break

Epics (> 16 hours)

For complex work spanning multiple subsystems:

/epic "OAuth 2.1 authentication"    # Multi-sprint orchestration
/epic continue                      # Resume epic work

Epics break down into parallel sprints with locked API contracts, giving you 3-5x velocity through parallelization.

Quick fixes (< 30 min)

For small changes that don't need the full workflow:

/quick "fix login button alignment"

Commands

Core Workflow

| Command | What it does | |---------|--------------| | /feature "name" | Start a feature workflow | | /epic "goal" | Start a multi-sprint epic | | /quick "fix" | Fast path for small changes | | /help | Context-aware guidance |

Phase Commands

| Command | Phase | |---------|-------| | /spec | Generate specification | | /plan | Create implementation plan | | /tasks | Break down into TDD tasks | | /implement | Execute tasks | | /optimize | Run quality gates | | /ship | Deploy to staging/production |

Project Setup

| Command | What it does | |---------|--------------| | /init-project | Generate project documentation | | /init-preferences | Configure workflow defaults | | /roadmap | Manage features via GitHub Issues |

See all 46 commands in the full reference.

How It Works

1. Specification Phase

/spec "user authentication"

Generates spec.md with:

  • User scenarios in Gherkin format
  • Functional and non-functional requirements
  • Acceptance criteria
  • Success metrics

2. Planning Phase

/plan

Creates plan.md with:

  • Architecture decisions
  • Component breakdown
  • Code reuse opportunities
  • Risk assessment

3. Task Breakdown

/tasks

Produces tasks.md with:

  • 20-30 concrete implementation tasks
  • TDD sequencing (Red → Green → Refactor)
  • Dependency ordering
  • Acceptance criteria per task

4. Implementation

/implement

Executes tasks with:

  • Test-first development
  • Specialist agents (backend, frontend, database)
  • Parallel batch execution
  • Automatic error recovery

5. Quality Gates

/optimize

Runs parallel checks:

  • Performance benchmarks
  • Security scanning
  • Accessibility audits
  • Code review
  • Test coverage validation

6. Deployment

/ship

Handles:

  • Staging deployment
  • Validation checks
  • Production promotion
  • Rollback capability

Project Structure

your-project/
├── .claude/
│   ├── commands/         # Slash commands
│   ├── agents/           # Specialist agent briefs
│   ├── skills/           # Progressive disclosure content
│   └── hooks/            # Event handlers
├── .spec-flow/
│   ├── scripts/          # Automation scripts
│   ├── config/           # User preferences
│   └── templates/        # Artifact templates
├── specs/
│   └── NNN-feature/      # Feature workspaces
├── epics/
│   └── NNN-epic/         # Epic workspaces
└── docs/
    └── project/          # Project documentation

Requirements

  • Claude Code with slash command support
  • Git 2.39+
  • Python 3.10+
  • yq 4.0+ for YAML processing

Windows users: Install Git for Windows for full compatibility.

Documentation

| Guide | Description | |-------|-------------| | Getting Started | Step-by-step tutorial | | Developer Guide | Complete reference | | Commands Reference | All slash commands | | Architecture | System design | | Troubleshooting | Common issues |

Examples

See a complete feature workflow in specs/001-example-feature/:

  • Full specification with requirements
  • 28 tasks with acceptance criteria
  • Performance benchmarks
  • Release notes

🆕 Recent Updates

v10.16.0 (December 2025)

Quality Feedback Loop System - Multi-agent voting, continuous checks, and perpetual learning

  • Multi-Agent Voting - Error decorrelation through diverse sampling (MAKER algorithm)
    • 3-agent voting with k=2 strategy for code reviews, security audits, breaking changes
    • Temperature variation (0.5, 0.7, 0.9) decorrelates errors across agents
    • Automatic in /optimize phase, manual via /review --voting
  • Continuous Quality Checks - Lightweight validation during /implement phase
    • Runs after each task batch (3-4 tasks), < 30s performance target
    • 6 checks: linting (auto-fix), type checking, unit tests, coverage delta, dead code, gap detection
    • Non-blocking warnings with user choice: fix now, continue, or abort
  • Progressive Quality Gates - Three escalating levels throughout workflow
    • Level 1: Continuous (after each batch, < 30s, warn & continue)
    • Level 2: Full quality gates (/optimize phase, 10-15m, block deployment)
    • Level 3: Critical pre-flight (/ship, < 2m, block production)
  • On-Demand Review - New /review command for anytime code review
    • Quick review (single agent, ~2-3 min) or comprehensive voting review (3 agents, ~5-8 min)
    • Auto-fix linting, extract file:line references, generate coverage gaps
  • Perpetual Learning - Auto-apply proven patterns at workflow start
    • Performance optimizations (≥0.90 confidence) auto-applied
    • Anti-patterns (≥0.85 confidence) generate warnings
    • Custom abbreviations (≥0.95 confidence) auto-expanded
  • Early Gap Detection - Find missing implementations before staging validation
    • Scans for TODO/FIXME/HACK comments, placeholders, edge cases
    • High-confidence gaps (≥0.8) flag likely issues before deployment

v10.15.1 (December 2025)

Command Architecture Optimization - Cleaner package structure with 27% size reduction

  • Consolidated Commands: Merged 11 archived commands into 4 active commands
    • /gate now handles both CI and security gates
    • /create consolidated 6 creation commands
    • /context merged session management commands
    • /init updated routing to new active paths
  • Optimized Distribution: Excluded 48 archived commands from npm package
    • Package size: 8.5 MB → 6.27 MB (27% reduction)
    • Archived commands accessible via GitHub source only
    • All essential functionality in 30 active commands
  • Moved Essential Commands: Project, deployment, and meta commands organized in active directories

Contributing

See CONTRIBUTING.md for guidelines.

Changelog

See CHANGELOG.md for version history and release notes.

License

MIT License - see LICENSE for details.