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%
Maintainers
Readme

Transform your development workflow with AI-powered task routing, spec-first development, and automated GitHub Projects—all from your terminal.
Quick Start • Features • Visual Guide • Contributing • API Reference
🎉 v5.3.5 - Custom Model Support & Clean Codebase
🎯 Custom Model Support • 🚀 Enterprise Model Access • ⚡ Clean LEO Branding • 💰 Flexible Model Selection
View Release Notes • Quick 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📋 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 42Dual-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-issuesWhy 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 features2. 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 onesWhy 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 → DoneDetailed View:
LEO has 3 layers:
- CLI Commands - What you type (
leo init,leo issue,leo spec new) - Orchestrator - Smart router that picks the right agent
- Specialist Agents - Experts (Frontend, Backend, DevOps, Testing, Docs)
Everything connects to GitHub:
- Issues created automatically
- Project boards updated
- Status tracked in real-time
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
- Visual Workflow Guide - Simple diagrams showing how LEO works
- GitHub Integration Guide - GitHub Projects and automation
- Configuration Guide - Customize LEO for your project (see below)
- CLI Reference - All commands and options (
leo --help)
Advanced Topics
- REST API Documentation - HTTP + WebSocket server
- Model Selection Guide - AI model configuration
- Architecture Diagrams - System design and flow
Resources
- Changelog - Release history
- Contributing - How to contribute
- Security - Security policy
💡 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:
- Commander.js - CLI framework
- Inquirer.js - Interactive prompts
- GitHub CLI - GitHub integration
- Chalk - Terminal styling
- Jest - Testing framework
Special thanks to all contributors!
📞 Support
- 💬 GitHub Discussions - Community Q&A
- 🐛 Issue Tracker - Bug reports and feature requests
- 📖 Documentation - Full documentation in docs/ folder
- 📧 Contact: GitHub
Made with ❤️ for developers who value automation and best practices
⭐ Star this repo if LEO helps your workflow!
