# Agents Playbook
A set of workflows that helps AI models follow consistent, validated processes with context engineering, guardrails and semantic workflow discovery.
README: https://github.com/Fohlio/agents-playbook
Agents Playbook
AI workflow orchestration framework with structured development processes and semantic workflow discovery.
Overview
Agents Playbook is a framework for AI-driven development workflows. It provides structured processes through semantic workflow discovery and validation.
Features
- 9 YAML-based workflows for development tasks
- 25+ context-engineered mini-prompts organized by phases
- Semantic search using OpenAI embeddings
- MCP (Model Context Protocol) server integration
- TypeScript implementation
- Workflow validation and smart step skipping
Prerequisites
- Node.js 18.0.0 or higher
- npm 8.0.0 or higher
- OpenAI API Key (for semantic search)
Quick Start
Installation
# Clone the repository
git clone https://github.com/your-repo/agents-playbook
cd agents-playbook
# Install dependencies
npm install
# Run tests
npm test
Configuration
Create a .env.local file:
OPENAI_API_KEY=your_openai_api_key_here
Development
# Build embeddings for semantic search
npm run build:embeddings
# Start development server
npm run dev
# Server available at:
# - Web UI: http://localhost:3000
# - MCP Endpoint: http://localhost:3000/api/mcp
Project Structure
agents-playbook/
├── public/playbook/ # Workflow definitions
│ ├── workflows/ # YAML workflow specifications
│ ├── mini-prompts/ # Context-engineered prompts
│ └── phases/ # Workflow phase definitions
├── src/
│ ├── lib/ # Core implementation
│ │ ├── execution/ # Workflow execution
│ │ ├── mcp-tools/ # MCP protocol tools
│ │ └── validation/ # Validation logic
│ └── app/ # Next.js application
└── tests/ # Test suite
Testing
# Run all tests
npm test
# Run integration tests
npm run test:integration
# Run tests in watch mode
npm run test:watch
MCP Tools
The project provides three MCP tools:
get_available_workflows(task_description)- Semantic search for workflowsselect_workflow(workflow_id)- Get complete workflow specificationget_next_step(workflow_id, current_step, available_context)- Step-by-step navigation
Environment Variables
OPENAI_API_KEY=your_api_key # Required for semantic search
Workflows
Available workflows:
Development
- feature-development
- product-development
- quick-fix
- code-refactoring
Testing & QA
- fix-tests
- fix-circular-dependencies
- unit-test-coverage
Setup & Planning
- trd-creation
- feature-brainstorming
MCP Integration
Claude Desktop
{
"mcpServers": {
"agents-playbook": {
"url": "https://agents-playbook.vercel.app/api/mcp"
}
}
}
Local Usage
Copy playbook files directly to your project:
cp -r public/playbook/ /path/to/your/project/
Deployment
Vercel
npm i -g vercel
vercel --prod
Set environment variables in Vercel dashboard:
OPENAI_API_KEY=your_key_here
Contributing
- Fork and clone the repository
- Install dependencies:
npm install - Start development:
npm run dev - Run tests:
npm test - Create pull request
Add workflows in public/playbook/workflows/ and mini-prompts in public/playbook/mini-prompts/.
Troubleshooting
No workflows found: Rebuild embeddings with npm run build:embeddings
OpenAI API errors: Verify API key is set correctly
MCP server connection failed: Check if server is running on port 3000
License
MIT License - see LICENSE file for details.


