Cookbook - Complete Feature Recipes
Ready-to-use recipes for every Boring feature. Copy, paste, and customize.
📚 Recipe Index
🚀 Getting Started
🔧 Daily Workflows
- Recipe 3: Quick Bug Fix
- Recipe 4: Feature Development
- Recipe 5: The "One Dragon" Run
- Recipe 6: Code Review
🔒 Security & Quality
🧠 Advanced
Recipe 1: First Project Setup
Ingredients
- Empty directory or existing project
- Python 3.9+
- pip
Steps
# 1. Install Boring
pip install boring-aicoding
# 2. Initialize project (if new)
boring-setup my-project
cd my-project
### Quick Start
Before starting development, we recommend running the health check:
# Or use Vibe Coder CLI directly
boring-route "Initialize a new project called my-project"
Expected Output
Recipe 2: MCP Server Configuration
For Claude Desktop
Edit ~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows):
{
"mcpServers": {
"boring": {
"command": "python",
"args": ["-m", "boring.mcp.server"],
"env": {
"PROJECT_ROOT_DEFAULT": "/path/to/your/project",
"SHADOW_MODE_LEVEL": "ENABLED"
}
}
}
}
For Cursor
In Settings → MCP Servers:
For Smithery (Cloud)
Recipe 3: Quick Bug Fix
Problem
You have a bug and want AI to fix it.
Steps
# Option 1: Vibe Coder (Recommended)
# You: "Fix the login function - it crashes when password is empty"
# Option 2: CLI
# $ boring-route "Fix the login bug"
# Option 3: Python Tool
boring_apply_patch(
project_path=".",
description="Fix the login function - it crashes when password is empty"
)
Verification
Recipe 4: Feature Development
Using SpecKit Workflow
Vibe Coder Prompt
You: "Deeply analyze the user authentication requirements, then create a detailed checklist and implement it."
Python Workflow (SpecKit)
Vibe Coder Prompt
You: "Deeply analyze the user authentication requirements, then create a detailed checklist and implement it."
Python Workflow (SpecKit)
Recipe 5: The "One Dragon" Run (Autonomous Dev) 🐉
Goal: Build a complete feature while you are AFK (Away From Keyboard).
Ingredients:
* boring start (CLI)
* A task.md file
* Coffee ☕
Steps:
-
Define the Mission: Create a
task.mdin your project root. -
Launch the Dragon: Open your terminal and run:
-
Monitor (Optional): Open another terminal to watch the brain at work:
-
Result: Boring will loop through Plan -> Code -> Test -> Fix until all checkboxes in
task.mdare marked[x].
Recipe 6: Code Review
Direct Evaluation
boring_evaluate(
target="src/main.py",
level="DIRECT",
criteria=["correctness", "security", "performance", "maintainability"]
)
Pairwise Comparison
Rubric-Based Scoring
Recipe 7: Vibe Check (Quality Police)
Project Health Check
Recipe 8: Security Audit
Full Security Scan
Secrets Only
With Auto-Fix
Recipe 9: Shadow Mode Setup
Enable for Production
# Set STRICT mode
boring_shadow_mode(action="set_level", level="STRICT")
# Verify status
boring_shadow_mode(action="status")
Configure Patterns
Edit ~/.boring/brain/shadow_config.json:
{
"level": "STRICT",
"auto_approve_patterns": ["*.md", "docs/*"],
"always_block_patterns": ["*.env", "secrets/*", ".git/*"]
}
Recipe 10: Multi-Agent Workflow
Plan and Implement
boring_multi_agent(
workflow="plan_and_implement",
context={
"feature": "Real-time notifications",
"tech_stack": ["WebSockets", "Redis", "FastAPI"]
},
execute=True # Actually run, not just generate prompt
)
Review and Fix
boring_multi_agent(
workflow="review_and_fix",
context={
"target": "src/",
"focus": ["security", "performance"]
}
)
Recipe 11: RAG Knowledge Base
Build Index
Search Code
boring_rag_search(
query="authentication middleware",
project_path=".",
top_k=10,
expand_graph=True
)
Multi-Project Search
boring_rag_search(
query="error handling patterns",
additional_roots=[
"/path/to/shared-libs",
"/path/to/reference-project"
]
)
Recipe 12: CI/CD Integration
GitHub Actions
# .github/workflows/quality-gates.yml
name: Quality Gates
on: [push, pull_request]
jobs:
verify:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: '3.11'
- run: pip install boring-aicoding
- run: boring verify --level FULL
security:
runs-on: ubuntu-latest
needs: verify
steps:
- uses: actions/checkout@v4
- run: pip install boring-aicoding
- run: |
python -c "
from boring.mcp.tools import boring_security_scan
result = boring_security_scan('.', 'all')
if result.get('critical_count', 0) > 0:
exit(1)
"
See Also
- Vibe Coder Guide - For visual/description-based developers
- Quick Tutorials - Step-by-step guides
- MCP Tools - Complete tool reference