Playbooks for RunMaestro.ai Agent Orchestrator.
Playbooks are saved Auto Run configurations that automate multi-step workflows. Each playbook defines a sequence of markdown documents with task checkboxes that Maestro processes through AI agents, looping until exit conditions are met.
Code improvement workflows that work with Maestro's default agent prompt.
| Playbook | Purpose | Exit Condition |
|---|---|---|
Development/Best-PR/ |
Compare two competing PRs, pick winner, extract gems | All 5 documents completed (no loop) |
Development/Documentation/ |
Achieve 90% doc coverage | Coverage >=90% or no HIGH importance gaps |
Development/Mobile-Polish/ |
Make React sites mobile-friendly | No PENDING items remain |
Development/Performance/ |
Find and fix performance issues | No PENDING items remain |
Development/Refactor/ |
Simplify code, eliminate duplication | No LOW risk + HIGH benefit items |
Development/Security/ |
Audit and remediate vulnerabilities | No CRITICAL/HIGH severity issues |
Development/Testing/ |
Achieve 80% test coverage | Coverage >=80% or no auto-testable work |
Development/Usage/ |
Update README to match actual features | No CRITICAL/HIGH importance gaps |
Knowledge-building workflows that require custom agent prompts with user configuration.
| Playbook | Purpose | Exit Condition |
|---|---|---|
Research/Market/ |
Build Obsidian-style knowledge vault about a market | Coverage targets met or no HIGH importance entities remain |
Playbook design is context engineering. Each document is a prompt engineered to provide exactly the right information at the right time.
The core principle: reveal information incrementally, not all at once.
AI agents perform best with focused, relevant context—not information overload. Playbooks achieve this through staged discovery, where each document produces artifacts that carry forward only what's relevant to the next stage.
The expensive token-consuming work happens upfront in the early documents. These produce detailed, well-separated task documents that later stages execute cheaply.
Phase 1: Discovery & Planning (token-heavy)
├── Documents 1-3: Explore, investigate, evaluate
└── Output: LOOP_N_PLAN.md with detailed implementation steps
Phase 2: Execution (token-light)
├── Document 4: Execute ONE item from the plan
└── Document 5: Check progress, loop if needed
↓
(loop back to Phase 1 if work remains)
Each loop iteration is self-contained: discover → plan → execute → check. When looping, Phase 1 re-surveys the (now changed) codebase and produces a fresh plan. Failed items don't pollute the next iteration.
- Focused attention beats scattered attention
- Curated context produces better decisions than raw dumps
- Less context = faster execution, lower costs, better reasoning
- Detailed task artifacts enable cheap execution—agents read pre-computed context instead of re-exploring
When creating playbooks, design each document to answer: "What is the minimum context this agent needs to complete this specific task?"
Each playbook follows a 5-document chain pattern (with optional initialization):
0_INITIALIZE.md -> (Optional) One-time setup, create folder structure/agents
1_ANALYZE.md -> Survey target, identify what to research/fix
2_FIND_*.md -> Find specific issues/gaps/entities
3_EVALUATE.md -> Rate candidates by priority criteria
4_IMPLEMENT.md -> Execute one item (fix code or research entity)
5_PROGRESS.md -> Loop gate: resets 1-4 if work remains, exits if done
- Document 0 (if present) has
Reset: OFFand runs once at the start - Documents 1-4 have
Reset: OFF(don't auto-reset when completed) - Document 5 has
Reset: ONand controls the loop by conditionally resetting 1-4 - Each loop iteration creates
LOOP_N_*working files with incremented loop number
- Development playbooks: Use Maestro's default agent prompt
- Research playbooks: Require custom
Agent-Prompt.mdwith user configuration (see playbook README)
Playbooks can include non-markdown assets (config files, YAML, Dockerfiles, templates, etc.) in an assets/ subfolder:
Category/
└── YourPlaybook/
├── README.md
├── 1_ANALYZE.md
├── ...
└── assets/ # Optional: bundled configuration files
├── config.yaml
├── Dockerfile
└── template.json
When installing playbooks from the exchange, Maestro copies the entire playbook folder—including the assets/ subfolder. Reference assets in your playbook documents using the {{AUTORUN_FOLDER}}/assets/ path:
- [ ] Read the config template from `{{AUTORUN_FOLDER}}/assets/config.yaml`Use cases for assets:
- Configuration templates: Pre-configured YAML, JSON, or TOML files
- Docker/container files: Dockerfiles, docker-compose.yml
- Scripts: Helper shell scripts, Python utilities
- Schema definitions: OpenAPI specs, JSON schemas
- Reference data: Lookup tables, mapping files
Items in LOOP_N_PLAN.md use these statuses:
| Status | Meaning |
|---|---|
PENDING |
Ready for automated implementation/research |
IMPLEMENTED / RESEARCHED |
Completed in current loop |
WON'T DO / SKIP |
Skipped intentionally (with reason) |
PENDING - MANUAL REVIEW |
Requires human decision |
- Open Maestro and select Auto Run mode
- Choose a playbook folder (e.g.,
Development/Performance/) - For Research playbooks: Configure
Agent-Prompt.mdwith your target topic - Configure settings:
- Loop Mode: ON (for continuous iteration)
- Max Loops: Set a reasonable limit (5-10 for Development, 20-30 for Research)
- Documents 1-4:
Reset: OFF - Document 5:
Reset: ON
- Run once with Loop Mode OFF
- Review the generated
LOOP_1_PLAN.md - Manually adjust statuses if needed:
- Change
PENDINGtoWON'T DO/SKIPto skip items - Change to
PENDING - MANUAL REVIEWfor risky items
- Change
- Run again with Loop Mode ON
These variables are substituted by Maestro at runtime:
| Variable | Description |
|---|---|
{{AGENT_NAME}} |
Name of the Maestro agent |
{{AGENT_PATH}} |
Root path of the target project |
{{AUTORUN_FOLDER}} |
Path to the Auto Run folder |
{{LOOP_NUMBER}} |
Current loop iteration (1, 2, 3...) |
{{DATE}} |
Today's date (YYYY-MM-DD) |
{{CWD}} |
Current working directory |
Edit 4_IMPLEMENT.md in any playbook to change which items get auto-processed:
- Default: LOW complexity/risk + HIGH gain/benefit only
- More aggressive: Include MEDIUM complexity
- Conservative: Require VERY HIGH gain
Edit 1_ANALYZE.md to add domain-specific investigation patterns.
See CONTRIBUTING.md for the full guide to creating and submitting playbooks to the exchange.
Quick overview:
- Create a folder in
Category/Subcategory/format - Add README.md and documents 1-5 (optionally 0)
- Add your entry to
manifest.json - Submit a pull request
- Start without loop mode - Review what it finds before enabling automation
- Set max loops - Prevent runaway iterations
- Check the logs - Each playbook maintains a cumulative log file
- Commit frequently - Each loop iteration is a good commit point
- Run tests - After Development playbook changes, verify nothing broke
This repository powers the Maestro in-app Playbook Exchange. We welcome community contributions! See CONTRIBUTING.md for guidelines on creating and submitting new playbooks.
See LICENSE for details.