Where AI Meets Engineering Discipline
Multi-Agent Development Workflow via Prompt Engineering
A config-driven framework that orchestrates AI coding assistants through structured prompts. Define agent behaviors, workflows, and quality gates in YAML—AI follows your methodology.
- 📝 Prompt Engineering Framework - Not software, just structured prompts
- ⚙️ Config-Driven - Define workflows, agents, and rules in YAML
- 🔄 Workflow Orchestration - Two-phase process (Design → Execute)
- 🤖 Multi-Agent - AI role-plays 9 specialized agents via prompts
- 🛠️ Tool Agnostic - Works with Claude Code, Cursor, or any AI assistant
- 📦 Git-Friendly - Everything is version-controlled config files
- Clone DevFlow into your project
- AI reads
claude.mdwhich references DevFlow configs - YAML files define agent behaviors and workflow rules
- AI interprets configs and follows the methodology
- AI role-plays different agents based on current phase
- Status files track progress across sessions
It's a methodology, not a tool. The AI is the execution engine.
DevFlow adapts to your needs with five specialized workflows:
┌────────────────────────────────────────────────────────────────┐
│ Critical Production Issue - Emergency Hot-Fix │
└────────────────────────────────────────────────────────────────┘
👤 User: "Production is down! Users can't log in"
🤖 PM: "🚨 EMERGENCY MODE - Setting up Hot-Fix workflow..."
Gate 1: Rapid Assessment (15 min)
─────────────────────────────────────────────────────────────────
🏗️ Architect:
[Analyzing] production logs, auth service status
CRITICAL ISSUE: Database connection pool exhausted
Location: auth-service/db-pool.ts:28
Impact: 100% of login attempts failing
Hot-Fix Options:
[A] Immediate: Increase pool size (5 min deploy)
[B] Quick patch: Add connection timeout (15 min)
👤 User: "Option A - deploy now!"
Gate 2: Hot-Fix & Deploy (45 min)
─────────────────────────────────────────────────────────────────
💻 Dev: Increased pool size from 10 to 50
🔧 DevOps: Deployed to production, monitoring metrics
🧪 QA: Verified login working, load testing passed
✅ PRODUCTION RESTORED in 60 minutes!
📋 Post-mortem scheduled for root cause analysis
┌────────────────────────────────────────────────────────────────┐
│ Quick Bug Fix with DevFlow │
└────────────────────────────────────────────────────────────────┘
👤 User: "Fix the login timeout bug"
🤖 PM: "I'll set up Bug Fix workflow. Analyzing the issue..."
Gate 1: Problem Analysis (15 min)
─────────────────────────────────────────────────────────────────
🏗️ Architect:
[Analyzing] auth/login.ts, session-manager.ts
Root Cause: Session timeout set to 5ms instead of 5min
Location: config/auth.ts:42
Fix Options:
[A] Quick fix: Change timeout constant (Low risk, 5 min)
[B] Add validation: Prevent invalid timeouts (Medium risk, 15 min)
[C] Comprehensive: Refactor session config (High risk, 1 hour)
👤 User: "Option A"
Gate 2: Implementation (30 min)
─────────────────────────────────────────────────────────────────
💻 Dev: Fixed timeout constant
🧪 QA: Verified fix, all tests passing, no regression
✅ BUG RESOLVED in 45 minutes!
┌────────────────────────────────────────────────────────────────┐
│ Refactoring UserAuth Module │
└────────────────────────────────────────────────────────────────┘
👤 User: "The UserAuth.js file is 500 lines and impossible to maintain"
🤖 PM: "Setting up Refactor workflow..."
Gate 1: Code Quality Analysis (1 hour)
─────────────────────────────────────────────────────────────────
🏗️ Architect: Analyzed UserAuth.js
Code Smells Found:
• Cyclomatic complexity: 45 (target: <10)
• File length: 487 lines (target: <200)
• 3 levels of nesting
• Duplicate validation logic (4 places)
• Mixed concerns: validation, API, state, UI
Current Metrics:
• Test coverage: 45%
• Code duplication: 23%
• Maintainability index: 32/100
👤 User: "Approved - let's fix this"
Gate 2: Refactoring Strategy (1 hour)
─────────────────────────────────────────────────────────────────
🏗️ Architect: Refactoring approaches:
[A] Conservative (4-8 hours)
• Extract duplicate validation
• Split into smaller functions
• Risk: Low
[B] Moderate (1-2 days) ⭐ RECOMMENDED
• Extract 4 separate modules
• Apply separation of concerns
• Risk: Medium
[C] Comprehensive (2-5 days)
• Complete redesign with patterns
• Full test suite rewrite
• Risk: High
👤 User: "Option B - Moderate"
Gate 3: Refactor & Verify (4 hours)
─────────────────────────────────────────────────────────────────
💻 Dev: Refactoring incrementally
Commit 1: Extract AuthValidator ✅ (tests pass)
Commit 2: Extract AuthAPI ✅ (tests pass)
Commit 3: Extract AuthState ✅ (tests pass)
Commit 4: Extract AuthUI ✅ (tests pass)
🧪 QA: Verification complete
• All 127 tests passing
• No behavior changes
• Functional equivalence confirmed
📊 Final Metrics:
• Cyclomatic complexity: 12 (improved 73%!)
• Test coverage: 78% (improved 33%)
• Code duplication: 5% (reduced 78%!)
• Maintainability index: 82/100 (improved 156%!)
✅ REFACTOR COMPLETE: Code quality dramatically improved!
┌────────────────────────────────────────────────────────────────┐
│ Adding Dark Mode Feature │
└────────────────────────────────────────────────────────────────┘
👤 User: "Add dark mode to the app"
🤖 PM: "Setting up Feature Development workflow..."
Gate 1: Feature Brief & Codebase Analysis (2 hours)
─────────────────────────────────────────────────────────────────
📋 PO: Created feature brief with 3 user stories:
• User can toggle dark mode
• Theme persists across sessions
• All components support dark theme
🏗️ Architect: Analyzed codebase
Integration points found:
• ThemeProvider in App.tsx
• 23 components need theme updates
• localStorage for persistence
👤 User: "Approved"
Gate 2: Technical Design (2 hours)
─────────────────────────────────────────────────────────────────
🏗️ Architect: Implementation options:
[A] CSS Variables approach
Pros: Clean, performant, easy maintenance
Cons: No IE11 support
Impact: Modify 23 components, add theme.css
[B] Styled Components theming
Pros: Type-safe, component-scoped
Cons: Runtime overhead
Impact: Add styled-components, wrap all components
👤 User: "Option A - CSS Variables"
Gate 3: Implementation (1 day)
─────────────────────────────────────────────────────────────────
💻 Dev Team:
[✓] Story 1: Toggle component → DONE
[✓] Story 2: Persistence → DONE
[✓] Story 3: Theme components → IN PROGRESS
🧪 QA: Testing each story as completed
✅ FEATURE COMPLETE: Dark mode working across entire app!
┌────────────────────────────────────────────────────────────────┐
│ Building E-commerce Platform │
└────────────────────────────────────────────────────────────────┘
Week 1: Architecture & Planning
─────────────────────────────────────────────────────────────────
👤 User: "Build an e-commerce platform"
🤖 PM: "Setting up full Project workflow..."
Gate 1: PSA (Day 1)
📋 PO: Created PSA with 5 epics:
• User Management & Auth
• Product Catalog
• Shopping Cart
• Checkout & Payment
• Admin Dashboard
Gate 2: Stories (Day 2-3)
📋 PO: Created 28 detailed user stories with acceptance criteria
Gate 3: Architecture (Day 4-5)
🏗️ Architect: Technology stack options presented:
Backend: [Django | FastAPI | Node.js]
Frontend: [React | Vue | Angular]
Database: [PostgreSQL | MongoDB]
Payment: [Stripe | PayPal]
👤 User: "FastAPI + React + PostgreSQL + Stripe"
Gate 4: Sprint Planning (Day 5)
🤖 PM: Created 3-sprint plan, assigned tasks to agents
Week 2-3: Autonomous Execution
─────────────────────────────────────────────────────────────────
💻 All 9 agents working autonomously:
Sprint 1: ████████████████████ 100% (Auth + Products)
Sprint 2: ████████████░░░░░░░ 75% (Cart + Checkout)
Sprint 3: ░░░░░░░░░░░░░░░░░░░ 0% (Admin + Polish)
🤖 PM: Weekly sprint reviews with demos
✅ PROJECT DELIVERED with full architecture and quality gates!
claude.md (orchestrator)
↓ references
DevFlow/
├── config/
│ ├── workflow.yaml ← Defines phases, gates, transitions
│ ├── agents.yaml ← Which agents are active
│ └── rules.yaml ← Quality rules and constraints
├── agents/
│ ├── pm.yaml ← PM personality and behaviors
│ ├── architect.yaml ← Architect prompt engineering
│ └── ... ← 7 more agent definitions
└── templates/ ← Document templates
AI reads these → AI follows → AI orchestrates
No compilation. No dependencies. Just prompts and configs.
cd YourProject
git clone https://github.com/dondetir/DevFlow.git DevFlow
echo "DevFlow/" >> .gitignoreAdd this ONE line to your AI tool's config file:
For Claude Code (claude.md):
# DevFlow Orchestration
Read and follow: ./DevFlow/ORCHESTRATOR.mdFor Cursor (.cursorrules):
# DevFlow Orchestration
Read and follow: ./DevFlow/ORCHESTRATOR.mdFor Gemini CLI (gemini.md):
# DevFlow Orchestration
Read and follow: ./DevFlow/ORCHESTRATOR.mdFor other tools: Add the same line to your tool's config file.
claude-code # or cursor, gemini-cli, aider, etc.That's it! The AI will:
- Auto-initialize
.devflow/structure on first run - Show the status banner
- Guide you through the workflow
Literally 2 steps: Clone + add one line. The AI handles everything else.
- 10 AI Agents: PM, Product Owner, Architect, Backend Dev, Frontend Dev, ML Engineer, DevOps, QA Automation, QA Manual, Security Expert
- 5 Specialized Workflows:
- 🚨 Emergency Hot-Fix (2 gates, 30-120 min)
- 🐛 Bug Fix (2 gates, 45-90 min)
- 🔄 Refactor (3 gates, 2h-3 days)
- ✨ Feature Development (3 gates, 1-5 days)
- 🚀 New Project (4 gates + execution, weeks-months)
- Task Classification: AI automatically routes to the right workflow
- Document Templates: PSA, Epics, Stories, Tasks, Architecture proposals
- Quality Gates: 3-gate story completion prevents incomplete work
- Configurable Rules: Control what happens at each phase
- SETUP.md - Installation and setup guide
- ORCHESTRATOR.md - Complete orchestrator reference
- WORKFLOW-VISUAL-GUIDE.md - Visual diagrams and decision trees
- FAQ.md - Frequently asked questions
- STORY-COMPLETION-RULES-UPDATE.md - Quality gate details
Edit project.yaml in your project root to customize:
- Project name and description
- Client involvement level
- Active agents
- Workflow preferences
-
Task Classification (AI asks what you need)
- 🐛 Bug Fix: Fast analysis and targeted fix
- 🔄 Refactor: Code quality improvement without behavior changes
- ✨ Feature: Balanced design and implementation
- 🚀 Project: Full architecture and planning
-
Workflow Execution (Optimized for task type)
- Bug Fix: 2 gates (Analysis → Fix)
- Refactor: 3 gates (Analysis → Strategy → Refactor)
- Feature: 3 gates (Scoping → Design → Build)
- Project: 4 gates (PSA → Stories → Architecture → Sprint) + Execution phase
-
Quality Assurance (Every story verified)
- Peer code review by different agent
- QA verification and testing
- PM final verification
- No incomplete work marked as done
cd DevFlow
git pullDevFlow/
├── config/ # Shared configurations
├── workflows/ # Workflow definitions
├── agents/ # Agent behaviors
└── templates/ # Document templates
Yes! DevFlow is 100% prompt engineering:
- ✅ No compiled code, no dependencies
- ✅ Just YAML configs + markdown templates
- ✅ AI reads configs and follows instructions
- ✅ Agent "behaviors" are just prompts in YAML
- ✅ Workflows are prompt sequences
- ✅ Works with any LLM-based coding assistant
Think of it as:
- A "framework" = Structured collection of prompts
- "Agents" = Different prompt contexts for the same AI
- "Orchestration" = AI switching between prompt contexts
- "Workflow" = Sequence of prompt-guided actions
It's prompt engineering at scale.
This framework is meant to be stable. Fork and customize for your needs.
MIT