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

leo-workflow-kit

v5.4.0

Published

LEO Workflow Kit - AI-Powered Multi-Agent Development System. Design-First Multi-Agent Workflow, Optimized Model Selection (GPT-4o Designer, Claude 3.5 Sonnet Frontend/Backend, Claude 3 Haiku for speed), 40% cost reduction, VS Code agent mode display, 50%

Readme

LEO Workflow Kit

Transform your development workflow with AI-powered task routing, spec-first development, and automated GitHub Projects—all from your terminal.

npm version License: MIT Node.js Tests

Quick StartFeaturesVisual GuideContributingAPI Reference


🎉 v5.3.5 - Custom Model Support & Clean Codebase

🎯 Custom Model Support • 🚀 Enterprise Model Access • ⚡ Clean LEO Branding • 💰 Flexible Model Selection

View Release NotesQuick Start Guide


What is LEO?

LEO Workflow Kit is an intelligent CLI that automates your GitHub workflow. It combines multi-agent AI orchestration, spec-driven development, and seamless GitHub Projects integration into one powerful tool.

🆚 LEO vs GitHub Spec Kit

Many developers ask: "How is LEO different from GitHub Spec Kit?" Here's the breakdown:

| Feature | GitHub Spec Kit | LEO Workflow Kit | Winner | | ------------------- | --------------------------- | ------------------------------------- | ----------------------- | | Philosophy | Specs as Code | Specs as Issues | Different approaches | | Storage | Files (specs/001/spec.md) | GitHub Issues (#42, #80) | LEO (simpler) | | Create Spec | Create file → Commit → Push | leo spec new "Feature" | LEO (5x faster) | | View Spec | Clone repo → Read file | Click issue link | LEO (instant) | | Edit Spec | Edit file → Commit → Push | Edit issue on GitHub | LEO (no git needed) | | Team Collab | Pull requests → Merge | Real-time comments | LEO (no conflicts) | | Non-Dev Access | Requires Git knowledge | Just GitHub account | LEO (accessible) | | Diff Tracking | git diff spec.md | leo spec-diff <issue> | LEO (semantic) | | Project Board | Manual linking | Native integration | LEO (automatic) | | Offline Work | ✅ Yes (files local) | ❌ No (requires internet) | Spec Kit | | Backup | ✅ Git history | ⚠️ GitHub only | Spec Kit | | Task Management | Files (tasks.md) | Dual-mode (checklist OR child issues) | LEO (flexible) |

Use Spec Kit if: You want specs as code, prefer file-based workflows, need offline access.

Use LEO if: You're GitHub-centric, have non-technical stakeholders, want faster iteration, prefer real-time collaboration.

Bottom Line: We solve the same problem (structured specs) with opposite philosophies. Spec Kit = "Specs should be files". LEO = "Specs should be issues". Both valid, different use cases. LEO is better for GitHub-native teams, Spec Kit is better for Git-purist teams.


The Problem

  • Hours wasted setting up GitHub Projects, labels, and templates
  • 🔀 Inconsistent workflows across team members
  • 📝 Poor planning leading to rework and missed requirements
  • 🤖 Generic AI that lacks domain expertise
  • 📊 Manual tracking of issues and project status

The Solution

LEO transforms these pain points into strengths:

| Challenge | LEO Solution | Impact | | -------------------- | -------------------------- | -------------------------- | | Manual setup | One-command initialization | 2-4 hours → 5 minutes | | Generic AI | 6 specialized AI agents | 60% faster development | | Unclear requirements | Spec-first methodology | 50% fewer issues | | Manual updates | Auto GitHub Projects sync | 100% automated | | Documentation chaos | Automated organization | 98/100 health score |


✨ Features

🤖 Multi-Agent Orchestration

Six specialized AI agents provide expert guidance:

Your Request → Orchestrator → Routes to Specialist(s)

🎨 Frontend │ UI/UX, Components, Responsive Design
⚙️ Backend │ APIs, Database, Authentication, Security
🚀 DevOps │ CI/CD, Docker, Deployment, Monitoring
🧪 Testing │ Unit, Integration, E2E, Coverage
📚 Docs │ API Reference, Guides, Comments
🎛️ Orchestrator │ Intelligent Task Routing

See Visual Diagrams →

📋 Spec-First Development

GitHub-native specification workflow with evolution tracking:

Create & Manage Specs:

# Create specification (GitHub issue, not files!)
leo spec new "Build authentication system"

# Clarify requirements
leo clarify 42

# Generate implementation plan
leo plan 42

Dual-Mode Task Management:

# Checklist mode (simple, single issue)
leo tasks create 42

# Child issues mode (parallel work, team collaboration)
leo tasks create 42 --create-issues

# Track progress
leo tasks status 42  # Shows: 5/10 completed (50%)

Spec Evolution & Extensions:

# Track how spec evolved
leo spec-diff 42 --timeline

# See aggregate changes
leo spec-diff 42 --summary

# Extend spec with new requirements
leo spec-extend 42 "Add OAuth2 support"

# Extend and create child issues
leo spec-extend 42 "Add SSO" --create-issues

Why GitHub Issues over Files?

  • ✅ 5x faster (no git commits, instant edits)
  • ✅ Real-time collaboration (comments, not PRs)
  • ✅ No merge conflicts (GitHub handles it)
  • ✅ Non-technical team members can contribute
  • ✅ Native project board integration

Complete Spec Workflow Guide →

📁 Automated Documentation Organization

New in v5.0.1! Automatically organizes markdown files:

```bash

Organize documentation

leo organize-docs

Validate organization

leo organize-docs --validate

Enable pre-commit hook

leo hooks install ```

Features:

  • Automatic file organization by type (sessions, releases, guides)
  • Pre-commit hook prevents documentation clutter
  • Health check integration (+5 points)
  • Configurable allowed root files

Configurable in .leorc.json - See Configuration section below

🔄 GitHub Projects Integration

  • ✅ One-command setup with project boards, columns, and labels
  • ✅ Automatic issue creation with proper metadata
  • ✅ Status updates as you work (Todo → In Progress → Done)
  • ✅ Smart commit message formatting

⚡ Best Practices Enforcement

  • Component-first architecture
  • Performance optimization
  • SEO excellence
  • Security validation
  • Test coverage requirements

� How LEO Works

LEO transforms your GitHub workflow with intelligent automation. Here's the simple version:

1. You Describe Work

# Three easy ways:
leo issue                           # Interactive prompts
"Hey Copilot, add dark mode"       # Just talk (Copilot auto-creates issue)
leo spec new "Build payment system" # For complex features

2. Orchestrator Routes to Specialist

  • Detects keywords (button → Frontend, API → Backend)
  • Routes to the right expert agent
  • Coordinates multiple agents if needed

3. GitHub Issue Created Automatically

  • Title, description, labels
  • Added to project board (📋 Todo)
  • Priority and estimates set

4. Work Starts (configurable)

  • auto-resolve: true → Starts immediately (default)
  • auto-resolve: false → Waits for your approval
  • Agent guides implementation

5. Automatic Tracking

  • Status updates: Todo → In Progress → Done
  • Project board syncs automatically
  • Issue closes when PR merges

📊 See Visual Workflow Diagrams - Simple diagrams anyone can understand!


📋 Spec-First Development (For Complex Features)

When you're building something big (> 1 week), LEO helps you plan first:

# 1. Create specification (GitHub issue, not files!)
leo spec new "Build authentication system"
→ Creates structured spec template

# 2. Clarify requirements (AI asks questions)
leo clarify 42
→ "What auth methods? OAuth? Email? Both?"

# 3. Generate implementation plan
leo plan 42
→ Creates step-by-step checklist

# 4. Create tasks (2 modes)
leo tasks create 42                    # Checklist (simple)
leo tasks create 42 --create-issues    # Child issues (teams)

# 5. Track progress
leo tasks status 42
→ Shows: "5/10 completed (50%)"

# 6. Extend spec later (optional)
leo spec-extend 42 "Add OAuth2 support"
→ Merges new requirements without losing old ones

Why specs are GitHub issues instead of files:

  • ✅ 5x faster (no git commits, instant edits)
  • ✅ Real-time collaboration (comments instead of PRs)
  • ✅ No merge conflicts (GitHub handles it)
  • ✅ Non-technical team members can contribute
  • ✅ Native project board integration

📖 Complete Spec Workflow Diagram


🏗️ System Architecture

Simple View:

You → Orchestrator → Specialist Agent → GitHub Issue → Work → Done

Detailed View:

LEO has 3 layers:

  1. CLI Commands - What you type (leo init, leo issue, leo spec new)
  2. Orchestrator - Smart router that picks the right agent
  3. Specialist Agents - Experts (Frontend, Backend, DevOps, Testing, Docs)

Everything connects to GitHub:

  • Issues created automatically
  • Project boards updated
  • Status tracked in real-time

📊 See Architecture Diagrams

Configuration (.leorc.json):

{
  "auto-resolve": true, // Start work immediately (or wait for approval)
  "agents": {
    "orchestrator": { "enabled": true },
    "frontend": { "enabled": true },
    "backend": { "enabled": true }
    // ... enable/disable agents as needed
  },
  "github": {
    "owner": "your-username",
    "repo": "your-repo",
    "project": { "number": 4 }
  }
}

🚀 Quick Start

Installation

```bash npm install -g leo-workflow-kit ```

Initialize Your Project

```bash

Navigate to your repo

cd your-project

Initialize LEO

leo init

Follow interactive setup

```

This creates:

  • `.leorc.json` - Configuration file
  • `.github/copilot-instructions.md` - AI behavior rules
  • GitHub Project with columns and labels
  • Issue templates and workflow files

Basic Usage

```bash

Create an issue

leo issue

Organize documentation

leo organize-docs

Check project health

leo health

Enable/disable agents

leo agent list leo agent enable frontend leo agent disable testing

Configure settings

leo config

View all commands

leo --help ```

Spec-First Commands

Create Specifications: ```bash leo spec new "Build user dashboard"

Creates GitHub issue with structured spec template

Includes: Requirements, User Stories, Acceptance Criteria

```

Clarify Requirements: ```bash leo clarify 42

AI asks clarifying questions

Updates spec with answers

```

Generate Implementation Plan: ```bash leo plan 42

Creates step-by-step task checklist

Adds to spec issue body

```

Task Management (Dual-Mode): ```bash

Checklist mode (default) - tasks stay in spec

leo tasks create 42

Child issues mode - tasks become separate issues

leo tasks create 42 --create-issues

Check progress

leo tasks status 42

Shows: 5/10 completed (50%)

```

Track Spec Evolution: ```bash

Standard diff view

leo spec-diff 42

Chronological timeline

leo spec-diff 42 --timeline

Aggregate statistics

leo spec-diff 42 --summary

Version range comparison

leo spec-diff 42 --from 2 --to 5

Section-specific diff

leo spec-diff 42 --section requirements ```

Extend Specifications: ```bash

Basic extension (merge new requirements)

leo spec-extend 42 "Add Slack notifications"

With child issues for the new work

leo spec-extend 42 "Add OAuth2" --create-issues

Preview without updating

leo spec-extend 42 "Add mobile app" --no-update ```


📚 Documentation

Essential Guides

Advanced Topics

Resources


💡 Examples

Multi-Agent Task Routing

```bash

Frontend task (UI component)

"Add a dark mode toggle to the header" → Routed to Frontend Agent → Creates component with accessibility

Backend task (API endpoint)

"Add OAuth2 authentication with Google" → Routed to Backend Agent → Creates secure endpoints

Multi-agent task

"Add user login with social auth and responsive UI" → Backend Agent: OAuth2 setup → Frontend Agent: Login form UI → Testing Agent: Auth flow tests ```

Spec-First Workflow

```bash

1. Create specification issue (GitHub-native, no files!)

leo spec new "Build user authentication system" → Creates GitHub issue with structured template

2. Clarify requirements (AI asks questions)

leo clarify 42 → Updates spec with clarifications

3. Generate implementation plan

leo plan 42 → Creates task checklist in spec

4. Create child issues for parallel work (optional)

leo tasks create 42 --create-issues → Converts tasks into separate GitHub issues

5. Track evolution as spec changes

leo spec-diff 42 --timeline → Shows all versions with timestamps

6. Extend with new requirements

leo spec-extend 42 "Add OAuth2 support" → Merges new requirements (preserves existing)

Complete workflow: spec → clarify → plan → tasks → track → extend

All operations on GitHub issues (no files, no commits)

```

Documentation Organization

```bash

Before: 45+ markdown files in root (unprofessional)

After: Organized structure

docs/ sessions/2025-10/ # Session summaries releases/ # Release notes guides/ # How-to guides phases/ # Project phases stories/ # User stories

Root: Only essential files (README, CHANGELOG, etc.)

```


🔧 Configuration

Configure LEO via `.leorc.json`:

```json { "github": { "project": "My Project", "owner": "username" }, "agents": { "enabled": ["orchestrator", "frontend", "backend"], "auto-resolve": true }, "documentation": { "enforce-organization": true, "allowed-root-files": ["README.md", "CHANGELOG.md", "LICENSE"], "root-files-max": 5 }, "specs": { "directory": "docs/specs", "template": "default" } } ```

See Full Configuration Options Below


🧪 Testing

LEO has comprehensive test coverage:

```bash npm test # Run all tests npm run test:watch # Watch mode npm run test:model # Model selection tests only ```

Current Status:

  • ✅ 462 tests passing
  • ⚠️ 59 tests in progress
  • 📊 Improving test coverage to 80%+

🤝 Contributing

We welcome contributions! See CONTRIBUTING.md for:

  • Code of Conduct
  • Development setup
  • Pull request process
  • Coding standards
  • Testing requirements

Quick Contribution:

```bash

Fork and clone

git clone https://github.com/YOUR_USERNAME/leo-kit.git

Install dependencies

npm install

Create feature branch

git checkout -b feature/amazing-feature

Make changes and test

npm test

Commit with conventional commits

git commit -m "feat: add amazing feature"

Push and create PR

git push origin feature/amazing-feature ```


📊 Project Status

Current Release: v5.0.1

Key Features:

  • ✅ Automated documentation organization
  • ✅ Pre-commit hooks for docs
  • ✅ Health check integration
  • ✅ Multi-agent orchestration (6 agents)
  • ✅ Spec-first development
  • ✅ GitHub Projects automation
  • ✅ Configuration management

In Progress:

  • 🔨 Test coverage improvements (59 remaining)
  • 🔨 Enhanced error handling
  • 🔨 Performance optimizations

Upcoming (v5.1.0):

  • 🎯 Advanced model selection strategies
  • 🎯 Cost tracking and budgets
  • 🎯 Team collaboration features
  • 🎯 Slack integration

Roadmap: Check our open issues for upcoming features


📝 License

MIT © Leo Pagotto

See LICENSE for details.


🙏 Acknowledgments

Built with:

Special thanks to all contributors!


📞 Support


Made with ❤️ for developers who value automation and best practices

⭐ Star this repo if LEO helps your workflow!