From odoo-claude-code
Orchestrates sequential multi-agent workflows for Odoo 19 development tasks (feature, bugfix, refactor, security, performance, migration). Produces handoff documents and a final report.
How this command is triggered — by the user, by Claude, or both
Slash command
/odoo-claude-code:orchestrateFiles this command reads when invoked
The summary Claude sees in its command listing — used to decide when to auto-load this command
# Orchestrate Command (Odoo 19) Sequential agent workflow for complex Odoo 19 development tasks. ## ⚠️ CRITICAL EXECUTION RULES - MUST FOLLOW **NEVER SKIP ANY AGENT IN THE WORKFLOW.** Each agent has a specific purpose and MUST be executed in order. ### Mandatory Execution Protocol 1. **NO SHORTCUTS**: You MUST invoke EVERY agent listed in the workflow type 2. **SEQUENTIAL ONLY**: Execute agents one at a time, in the exact order specified 3. **WAIT FOR COMPLETION**: Wait for each agent to complete before starting the next 4. **VERIFY OUTPUT**: Check each agent produced a valid HANDOFF d...
Sequential agent workflow for complex Odoo 19 development tasks.
NEVER SKIP ANY AGENT IN THE WORKFLOW. Each agent has a specific purpose and MUST be executed in order.
Before starting, CREATE a task list:
□ Agent 1: [name] - PENDING
□ Agent 2: [name] - PENDING
□ Agent 3: [name] - PENDING
□ Agent 4: [name] - PENDING
□ Agent 5: [name] - PENDING
Update status after each agent completes. ALL MUST BE COMPLETED.
/orchestrate [workflow-type] [task-description]
Full Odoo 19 feature implementation workflow:
Step 1: planner → Step 2: tdd-guide → Step 3: code-reviewer → Step 4: security-reviewer → Step 5: odoo-reviewer
ALL 5 AGENTS ARE MANDATORY - NO EXCEPTIONS
Odoo bug investigation and fix workflow:
Step 1: explorer → Step 2: tdd-guide → Step 3: code-reviewer → Step 4: odoo-reviewer
ALL 4 AGENTS ARE MANDATORY - NO EXCEPTIONS
Safe Odoo code refactoring workflow:
Step 1: architect → Step 2: code-reviewer → Step 3: tdd-guide → Step 4: odoo-reviewer
ALL 4 AGENTS ARE MANDATORY - NO EXCEPTIONS
Odoo security-focused review:
Step 1: security-reviewer → Step 2: code-reviewer → Step 3: odoo-reviewer → Step 4: architect
ALL 4 AGENTS ARE MANDATORY - NO EXCEPTIONS
Odoo performance optimization workflow:
Step 1: performance-agent → Step 2: planner → Step 3: code-reviewer → Step 4: odoo-reviewer
ALL 4 AGENTS ARE MANDATORY - NO EXCEPTIONS
Odoo version migration workflow:
Step 1: migration-agent → Step 2: code-reviewer → Step 3: odoo-reviewer → Step 4: security-reviewer
ALL 4 AGENTS ARE MANDATORY - NO EXCEPTIONS
For each agent in the workflow:
CRITICAL: Each agent MUST produce a handoff document. Without it, DO NOT proceed to next agent.
## HANDOFF: [previous-agent] -> [next-agent]
### Completion Status: ✅ COMPLETE
### Context
[Summary of what was done]
### Findings
[Key discoveries or decisions]
### Files Modified
[List of files touched]
### Odoo-Specific Context
[Odoo models, views, controllers mentioned]
### Open Questions
[Unresolved items for next agent]
### Recommendations
[Suggested next steps]
---
### CHECKPOINT VERIFICATION
□ Agent completed all assigned tasks
□ Handoff document created
□ Files listed are accurate
□ Next agent has sufficient context
Before moving to next agent, verify:
If ANY item fails, RE-INVOKE the current agent.
/orchestrate feature "Add a new sales report with custom fields"
□ Step 1: planner - PENDING
□ Step 2: tdd-guide - PENDING
□ Step 3: code-reviewer - PENDING
□ Step 4: security-reviewer - PENDING
□ Step 5: odoo-reviewer - PENDING
STEP 1/5: Invoke Planner Agent
□ Mark planner as IN_PROGRESS
□ Invoke planner agent with task description
□ WAIT for completion
□ Verify HANDOFF: planner -> tdd-guide exists
□ Verify handoff has "Completion Status: ✅ COMPLETE"
□ Mark planner as COMPLETED
□ Proceed to Step 2
STEP 2/5: Invoke TDD Guide Agent
□ Mark tdd-guide as IN_PROGRESS
□ Invoke tdd-guide agent with HANDOFF from planner
□ WAIT for completion
□ Verify HANDOFF: tdd-guide -> code-reviewer exists
□ Verify handoff has "Completion Status: ✅ COMPLETE"
□ Mark tdd-guide as COMPLETED
□ Proceed to Step 3
STEP 3/5: Invoke Code Reviewer Agent
□ Mark code-reviewer as IN_PROGRESS
□ Invoke code-reviewer agent with HANDOFF from tdd-guide
□ WAIT for completion
□ Verify HANDOFF: code-reviewer -> security-reviewer exists
□ Verify handoff has "Completion Status: ✅ COMPLETE"
□ Mark code-reviewer as COMPLETED
□ Proceed to Step 4
STEP 4/5: Invoke Security Reviewer Agent
□ Mark security-reviewer as IN_PROGRESS
□ Invoke security-reviewer agent with HANDOFF from code-reviewer
□ WAIT for completion
□ Verify HANDOFF: security-reviewer -> odoo-reviewer exists
□ Verify handoff has "Completion Status: ✅ COMPLETE"
□ Mark security-reviewer as COMPLETED
□ Proceed to Step 5
STEP 5/5: Invoke Odoo Reviewer Agent
□ Mark odoo-reviewer as IN_PROGRESS
□ Invoke odoo-reviewer agent with HANDOFF from security-reviewer
□ WAIT for completion
□ Verify final report exists
□ Verify report includes all agent outputs
□ Mark odoo-reviewer as COMPLETED
✓ Step 1: planner - COMPLETED
✓ Step 2: tdd-guide - COMPLETED
✓ Step 3: code-reviewer - COMPLETED
✓ Step 4: security-reviewer - COMPLETED
✓ Step 5: odoo-reviewer - COMPLETED
ALL 5 AGENTS COMPLETED - WORKFLOW COMPLETE
Planner Agent (Odoo 19 specialist)
HANDOFF: planner -> tdd-guideTDD Guide Agent (Odoo testing specialist)
HANDOFF: tdd-guide -> code-reviewerCode Reviewer Agent (Odoo code quality specialist)
HANDOFF: code-reviewer -> security-reviewerSecurity Reviewer Agent (Odoo security specialist)
HANDOFF: security-reviewer -> odoo-reviewerOdoo Reviewer Agent (Odoo framework specialist)
# ODOO 19 ORCHESTRATION REPORT
# ================================
Workflow: feature
Task: Add a new sales report with custom fields
Agents: planner -> tdd-guide -> code-reviewer -> security-reviewer -> odoo-reviewer
SUMMARY
-------
[One paragraph summary of the Odoo feature implementation]
IMPLEMENTATION PHASES
---------------------
Phase 1: Module Setup
- __manifest__.py configured with dependencies
- Directory structure created following Odoo conventions
Phase 2: Models
- New model(s) created with proper fields
- Computed fields with @api.depends
- Constraints defined
Phase 3: Security
- Access rights defined in ir.model.access.csv
- Record rules for multi-user data
- Security groups created
Phase 4: Views
- Tree view created
- Form view created
- Pivot/Graph views for reporting
- Menu items configured
Phase 5: Controllers
- HTTP routes defined with proper auth
- Input validation implemented
- CSRF protection where needed
AGENT OUTPUTS
-------------
Planner:
- Created detailed implementation plan
- Identified 3 Odoo dependencies: sale, web, mail
- Planned 2 models: sale.report.line, sale.report.summary
TDD Guide:
- Wrote 15 tests covering all model methods
- Tests include security scenarios
- Achieved 85% code coverage
Code Reviewer:
- PEP8 compliant
- All public methods have docstrings
- 3 minor suggestions for improvement
Security Reviewer:
- No SQL injection risks
- Access rights properly configured
- Record rules prevent data leakage
- CSRF protection on POST routes
Odoo Reviewer:
- Module structure follows Odoo 19 conventions
- API decorators used correctly
- View inheritance patterns correct
- Manifest properly configured
FILES CHANGED
--------------
__manifest__.py
models/sale_report.py
security/ir.model.access.csv
security/security.xml
views/sale_report_views.xml
views/menu.xml
controllers/report_controller.py
tests/test_sale_report.py
tests/test_security.py
TEST RESULTS
------------
- Model tests: 12 passed, 0 failed
- Security tests: 3 passed, 0 failed
- HTTP tests: 2 passed, 0 failed
- Coverage: 85.3%
ODOO SECURITY STATUS
-------------------
- Access Rights: ✓ Configured
- Record Rules: ✓ Configured
- SQL Injection: ✓ Safe (ORM used)
- CSRF Protection: ✓ Enabled
- sudo() Usage: ✓ Minimal and justified
- Input Validation: ✓ Implemented
FRAMEWORK COMPLIANCE
--------------------
- Module Structure: ✓ Compliant
- Manifest: ✓ Correct
- API Decorators: ✓ Used appropriately
- Field Definitions: ✓ Proper
- View Structure: ✓ Correct
- Inheritance: ✓ Patterns correct
RECOMMENDATION
--------------
✓ READY TO DEPLOY
Next Steps:
1. Test module in Odoo development environment
2. Run full test suite with `--test-enable`
3. Verify security rules in multi-user scenario
4. Create user documentation
5. Prepare upgrade script for existing installations
NOTES
-----
- Model uses inheritance from sale.order for easy integration
- Pivot view requires JavaScript widget for custom aggregation
- Consider adding caching for report generation performance
/orchestrate performance "Optimize slow report generation"
□ Step 1: performance-agent - PENDING
□ Step 2: planner - PENDING
□ Step 3: code-reviewer - PENDING
□ Step 4: odoo-reviewer - PENDING
/orchestrate migration "17.0" "19.0"
□ Step 1: migration-agent - PENDING
□ Step 2: code-reviewer - PENDING
□ Step 3: odoo-reviewer - PENDING
□ Step 4: security-reviewer - PENDING
Migration Agent → Verify HANDOFF → Code Reviewer Agent
Code Reviewer Agent → Verify HANDOFF → Odoo Reviewer Agent
Odoo Reviewer Agent → Verify HANDOFF → Security Reviewer Agent
Security Reviewer Agent → Verify Final Report → COMPLETE
Code Reviewer Agent
HANDOFF: code-reviewer -> odoo-reviewerOdoo Reviewer Agent
HANDOFF: odoo-reviewer -> security-reviewerSecurity Reviewer Agent
@tagged('post_install', '-at_install') for tests needing datapylint --py3k on all Python files⚠️ DO NOT USE PARALLEL EXECUTION UNLESS EXPLICITLY REQUESTED
Parallel execution risks:
Default to SEQUENTIAL execution always.
$ARGUMENTS:
feature <description> - Full Odoo feature workflow (5 agents REQUIRED)bugfix <description> - Odoo bug fix workflow (4 agents REQUIRED)refactor <description> - Odoo refactoring workflow (4 agents REQUIRED)security <description> - Odoo security review workflow (4 agents REQUIRED)performance <description> - Odoo performance optimization workflow (4 agents REQUIRED)migration <from-version> <to-version> - Odoo version migration workflow (4 agents REQUIRED)custom <agents> <description> - Custom agent sequence/orchestrate custom "planner,tdd-guide,odoo-reviewer" "Create a new Odoo module"
Custom workflow still requires: Sequential execution + Handoff verification for ALL agents.
When /orchestrate is invoked:
VIOLATION OF THESE RULES WILL RESULT IN INCOMPLETE ODOO DEVELOPMENT WORKFLOW.
base - Core Odoo models (res.partner, res.users)web - Frontend framework, viewsmail - Messaging and chattersale - Sales orders, customerspurchase - Purchase ordersstock - Inventory managementaccount - Accountinghr - Human resourcesmodule.model_name_inherit = 'existing.model'module.view_model_type (e.g., sale.view_order_form)name_idline_idsis_feature or has_featuredate_fielddatetime_field@api.model - Model-level method@api.depends(*fields) - Computed field@api.onchange(*fields) - Onchange handler@api.constrains(*fields) - Constraint validation@api.returns('self') - Return type annotationnpx claudepluginhub echozen88/odoo-claude-code --plugin odoo-claude-code/orchestrateGenerates test orchestration configs for staged workflows with dependencies, parallel execution, smart selection of affected tests, retries, and CI/CD optimization.
/orchestrateDecomposes complex tasks into ordered sub-tasks with dependencies and parallel execution, tracks progress and failures, verifies results, and outputs a status summary table.
/orchestrateAnalyzes complex user requests, splits them into steps, assembles agent teams, executes with verification, and retries up to 5 times per step on failure.
/orchestrateOrchestrates parallel task execution via Agent Teams API, parsing prompt_plan.md tasks, analyzing dependencies, and coordinating across Node.js, Python, Rust, Go, .NET projects.
/orchestrateOrchestrates sequential agent workflows for complex tasks like feature development, bug fixes, refactoring, and security reviews, producing handoff documents between agents and a final report.
/orchestrateRoutes arguments to orchestration subcommands for multi-agent workflows: menu, help, explain, examples, templates, or inline syntax execution with visual feedback.