When to Use Maestro
Maestro shines for:- Complex feature implementations requiring hundreds to thousands of lines of code
- Deep technical analysis and systematic problem-solving
- Projects requiring validation and comprehensive testing
- Work spanning multiple files and subsystems
- Tasks requiring specialized domain knowledge
- Simple one-line changes or typo fixes
- Trivial configuration updates
- Tasks faster to do yourself in an IDE
Feature Development
Build complete features from specification through testing and delivery.Complete Implementation
What Maestro does:- Analyzes requirements and existing architecture
- Designs implementation approach with trade-off analysis
- Implements across multiple files with consistent patterns
- Creates comprehensive tests
- Validates performance and correctness
- Updates documentation
- “Implement a Redis-based caching layer for our API endpoints with cache invalidation, monitoring metrics, and fallback handling. Validate performance improvements with benchmarks.”
- “Build a real-time collaborative editing feature using WebSockets. Include conflict resolution, user presence indicators, and comprehensive integration tests.”
- “Add JWT-based authentication to our Express API. Must integrate with existing user service, handle token refresh, and include rate limiting.”
- Discovery: Ask Maestro to analyze your existing codebase architecture
- Planning: Request a technical specification before implementation
- Implementation: Let Maestro build the feature with continuous validation
- Testing: Demand comprehensive test coverage and passing tests
- Integration: Ensure documentation updates and clean integration
- All tests pass
- Code follows existing patterns
- Performance meets specified targets
- Documentation is complete and accurate
- No regressions in existing functionality
Bug Fixing & Debugging
Systematic root cause analysis and comprehensive fixes.Deep Investigation
What Maestro does:- Reproduces issues in sandbox environment
- Performs systematic root cause analysis
- Traces execution paths through complex codebases
- Identifies edge cases and related issues
- Implements fixes with regression tests
- Validates the fix doesn’t introduce new problems
- “Our checkout process fails intermittently under high load. Investigate the root cause, reproduce it, and fix it with proper error handling and tests.”
- “Memory usage grows unbounded in our background worker. Profile it, find the leak, fix it, and prove the fix with before/after metrics.”
- “API responses are slow for large datasets. Profile the performance, identify bottlenecks, optimize, and benchmark the improvements.”
- Reproduce: Ask Maestro to reproduce the issue in the sandbox
- Analyze: Request systematic investigation of root causes
- Fix: Implement the fix with proper error handling
- Test: Add regression tests to prevent recurrence
- Validate: Prove the fix works with evidence
- Can test hypotheses rapidly in isolated environment
- Systematic analysis without bias
- Creates regression tests automatically
- Validates fixes with real execution
Code Refactoring & Modernization
Transform legacy code while maintaining functionality.Framework & Language Upgrades
What Maestro does:- Analyzes existing codebase patterns
- Plans migration strategy with risk assessment
- Incrementally refactors with continuous testing
- Updates dependencies and configurations
- Ensures backward compatibility where needed
- Validates that all tests continue passing
- “Migrate our JavaScript codebase to TypeScript. Add proper type definitions, fix type errors, and ensure 100% of code is typed.”
- “Upgrade our React application from version 16 to 18. Update deprecated patterns, migrate to concurrent features, and ensure all components work correctly.”
- “Convert our REST API to GraphQL while maintaining backward compatibility. Include proper schema design, resolvers, and comprehensive tests.”
- Assessment: Ask Maestro to analyze the current codebase structure
- Strategy: Request a migration plan with incremental steps
- Incremental migration: Refactor in phases with continuous validation
- Testing: Ensure all existing tests pass at each phase
- Cleanup: Remove deprecated code and update documentation
Architecture Improvements
What Maestro does:- Identifies architectural issues and code smells
- Proposes improvement strategies with trade-offs
- Refactors code to modern patterns
- Extracts reusable components and utilities
- Improves separation of concerns
- Maintains functionality throughout
- “Refactor our monolithic application into a modular architecture. Extract core business logic into separate modules with clean interfaces.”
- “Our database layer has business logic scattered everywhere. Extract it into a proper service layer with dependency injection.”
- “Improve our error handling. Implement consistent patterns across the codebase with proper error types, logging, and recovery.”
Testing & Quality Assurance
Comprehensive test coverage and validation.Test Creation
What Maestro does:- Analyzes code to identify test scenarios
- Creates unit, integration, and end-to-end tests
- Ensures edge cases are covered
- Achieves specified coverage targets
- Validates tests actually catch regressions
- “Add comprehensive test coverage for our payment processing module. Target 95% coverage and include edge cases for failed payments, refunds, and partial captures.”
- “Create integration tests for our microservices architecture. Test service-to-service communication, failure scenarios, and data consistency.”
- “Build end-to-end tests for our checkout flow. Cover happy path, error scenarios, and edge cases like concurrent modifications.”
- Coverage analysis: Ask Maestro to identify untested code paths
- Test design: Request test scenarios covering all edge cases
- Implementation: Let Maestro create comprehensive tests
- Validation: Ensure tests pass and actually validate behavior
- Regression testing: Verify tests catch intentional bugs
Code Review & Standards Enforcement
What Maestro does:- Analyzes code for style inconsistencies
- Identifies security vulnerabilities
- Finds performance anti-patterns
- Ensures coding standards compliance
- Suggests improvements with rationale
- “Review our authentication implementation for security vulnerabilities. Check for SQL injection, XSS, CSRF, and other OWASP top 10 issues.”
- “Analyze our codebase for performance anti-patterns. Look for N+1 queries, unnecessary re-renders, memory leaks, and inefficient algorithms.”
- “Ensure our API follows REST best practices. Check HTTP methods, status codes, error responses, and resource naming.”
Performance Optimization
Systematic profiling and evidence-based optimization.Systematic Performance Improvement
What Maestro does:- Profiles code to identify bottlenecks
- Benchmarks current performance
- Implements optimizations systematically
- Validates improvements with metrics
- Ensures optimizations don’t break functionality
- “Our image processing pipeline takes 5 seconds per image. Profile it, identify bottlenecks, optimize to under 500ms, and prove improvements with benchmarks.”
- “Database queries are slow. Analyze query patterns, add appropriate indexes, optimize N+1 queries, and benchmark the improvements.”
- “Our React app has slow initial load times. Profile bundle size, implement code splitting, optimize assets, and measure improvements.”
- Baseline: Establish current performance metrics
- Profile: Identify specific bottlenecks with evidence
- Optimize: Implement targeted improvements
- Benchmark: Prove improvements with before/after metrics
- Validate: Ensure functionality is unchanged
- Real benchmarking in isolated sandbox
- Systematic approach prevents premature optimization
- Evidence-based improvements, not guesses
- Validates performance claims with real metrics
Technical Research & Analysis
Deep investigation and synthesis across sources.Technology Evaluation
What Maestro does:- Researches multiple solutions comprehensively
- Analyzes trade-offs with specific criteria
- Prototypes different approaches
- Benchmarks and compares implementations
- Provides evidence-based recommendations
- “Compare Redis, Memcached, and in-memory caching for our use case. Prototype each, benchmark performance, and recommend the best option with evidence.”
- “Evaluate state management solutions for our React app (Redux, MobX, Zustand, Recoil). Analyze complexity, performance, and developer experience with prototypes.”
- “Research WebSocket libraries for Node.js. Compare Socket.io, ws, and uWebSockets. Test reliability, performance, and feature sets.”
- Research: Ask Maestro to investigate options comprehensively
- Prototype: Request working implementations of alternatives
- Benchmark: Compare performance and capabilities
- Analysis: Get trade-off analysis with recommendations
- Decision: Make informed choice based on evidence
Competitive Analysis
What Maestro does:- Analyzes competitor implementations
- Identifies features and approaches
- Evaluates technical differences
- Suggests improvements to match or exceed
- Validates claims with working prototypes
- “Analyze how [competitor] implements real-time collaboration. Research their approach, prototype a similar implementation, and identify improvements we can make.”
- “Study the performance characteristics of [library] versus our implementation. Benchmark both and identify where we can improve.”
API Integration & Development
Connect to external services and build robust APIs.External API Integration
What Maestro does:- Studies API documentation
- Implements client libraries with proper error handling
- Handles authentication and rate limiting
- Creates comprehensive tests including edge cases
- Validates integration works correctly
- “Integrate the Stripe payment API. Implement payment processing, webhooks for events, error handling, and comprehensive tests.”
- “Build a client for the GitHub GraphQL API. Support repository queries, pull request operations, and proper pagination.”
- “Connect to the AWS S3 API for file storage. Implement upload, download, presigned URLs, and proper error handling.”
- Documentation review: Maestro studies the API docs
- Implementation: Builds client with proper patterns
- Error handling: Implements retry logic and failure scenarios
- Testing: Creates tests including API failure cases
- Validation: Proves integration works end-to-end
API Development
What Maestro does:- Designs RESTful or GraphQL APIs following best practices
- Implements endpoints with proper validation
- Adds authentication and authorization
- Includes rate limiting and error handling
- Creates comprehensive API tests
- Generates accurate documentation
- “Build a REST API for our task management system. Include CRUD operations, filtering, pagination, proper HTTP status codes, and comprehensive tests.”
- “Create a GraphQL API for our content platform. Design the schema, implement resolvers, add proper authorization, and include tests.”
- “Add a WebSocket API for real-time notifications. Handle connection management, authentication, message validation, and test reliability.”
Documentation
Accurate, comprehensive documentation based on actual code.Code Documentation
What Maestro does:- Analyzes code to understand behavior
- Creates accurate inline documentation
- Generates API reference documentation
- Writes usage examples that actually work
- Updates docs when code changes
- “Document our authentication module. Include inline comments for complex logic, JSDoc for all public functions, and a usage guide with examples.”
- “Generate API documentation for our REST endpoints. Include request/response examples, error codes, and authentication requirements.”
- “Create a developer guide for our component library. Include usage examples, props documentation, and common patterns.”
- Analysis: Maestro examines the actual code implementation
- Documentation: Creates accurate docs based on real behavior
- Examples: Writes working example code
- Validation: Tests that examples actually work
- Integration: Adds docs to the codebase
- Documentation reflects actual implementation, not assumptions
- Examples are tested and verified to work
- Can update docs when code changes
- Analyzes complex code to explain accurately
Codebase Understanding
Navigate and understand complex or legacy systems.System Analysis
What Maestro does:- Maps system architecture and data flow
- Identifies key components and dependencies
- Documents undocumented systems
- Explains complex algorithms and patterns
- Creates visualizations of system structure
- “Analyze our microservices architecture. Map the services, their dependencies, communication patterns, and data flow. Create a diagram.”
- “Walk me through how our authentication system works end-to-end. Explain the flow from login request to token validation.”
- “Examine our legacy payment processing code. Explain the business logic, identify edge cases, and document the workflow.”
- Exploration: Clone repository and examine structure
- Analysis: Trace code execution and data flow
- Documentation: Explain findings clearly
- Visualization: Create diagrams of architecture
- Q&A: Answer specific questions about system
- Onboarding to unfamiliar codebases
- Understanding legacy systems
- Preparing for refactoring
- Knowledge transfer
- Architecture documentation
Database Work
Schema design, migrations, and query optimization.Database Design & Migration
What Maestro does:- Designs database schemas following best practices
- Creates migration scripts safely
- Handles data transformations
- Tests migrations with rollback procedures
- Validates data integrity
- “Design a database schema for our e-commerce platform. Include users, products, orders, inventory, and relationships.”
- “Migrate our user data from MongoDB to PostgreSQL. Preserve all data, handle schema differences, and validate the migration.”
- “Add full-text search to our content database. Design the schema changes, create migrations, and optimize for search performance.”
Query Optimization
What Maestro does:- Analyzes slow queries
- Designs proper indexes
- Rewrites queries for efficiency
- Benchmarks improvements
- Validates correctness
- “Our user dashboard query takes 10 seconds. Analyze the query, add appropriate indexes, optimize joins, and reduce time to under 500ms.”
- “Identify N+1 query problems in our API. Fix them with proper eager loading or batch queries, and prove improvements with benchmarks.”
Best Practices
Set Clear Success Criteria
Define measurable outcomes upfront:- “Performance must improve by at least 20%”
- “Code coverage must reach 90%”
- “All existing tests must pass”
- “API response time under 200ms”
Demand Evidence, Not Claims
Always request validation:- Don’t accept: “The implementation is fast”
- Demand: “Show me benchmarks comparing before and after”
- Don’t accept: “Tests pass”
- Demand: “Show me the test output with coverage report”
Iterate and Refine
Maestro works best through partnership:- Challenge implementations that don’t meet standards
- Provide feedback on approaches
- Request improvements when needed
- Don’t accept shortcuts on quality
Use Existing Patterns
Leverage your codebase:- “Follow the existing API pattern in user-service”
- “Use the same testing approach as auth-module”
- “Match the error handling in payment-processor”
Prompting Tips
Be Specific About Requirements
Vague: “Make the app faster” Specific: “Profile the dashboard load time. Current: 3 seconds. Target: under 1 second. Optimize database queries, reduce bundle size, and benchmark improvements.”Provide Context
Insufficient: “Add caching” Sufficient: “Add Redis caching to our REST API endpoints. Use the existing Redis connection pool. Cache GET requests for 5 minutes. Handle cache failures gracefully. Include metrics for monitoring.”Define Constraints
Missing constraints: “Build a search feature” Clear constraints: “Implement full-text search using PostgreSQL’s built-in capabilities. Must: handle partial matches, rank results by relevance, return results in under 100ms, include highlighting. Don’t: add external search services.”Specify Done Criteria
Incomplete: “Add authentication” Complete: “Implement JWT authentication for our API. Requirements: token refresh, role-based access control, rate limiting. Done when: all endpoints are protected, tests pass, documentation is updated, security review shows no vulnerabilities.”Getting Started
Ready to tackle your project with Maestro?- Quick Start: Get productive in your first session
- Core Concepts: Understand sessions and the partnership model
- Prompting Guide: Learn to write effective requests
- Best Practices: Production-ready patterns

