odf-agent-builder
Create custom Odoo sub-agents from natural language. Trigger: /odf-agent-new, 'create agent', 'new specialist', 'custom agent'.
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
メニュー
Create custom Odoo sub-agents from natural language. Trigger: /odf-agent-new, 'create agent', 'new specialist', 'custom agent'.
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
SOC 職業分類に基づく
Implement Odoo tasks from design artifact. Write code following spec + design. Trigger: Phase 3 (IMPLEMENT) of /odf-new after DESIGN approved.
Detect + persist Odoo project context: version, modules, test runner, lint tools, conventions. Trigger: /odf-init, first time in a project.
Quality gate for ODF: evidence-based risk tiers (0/1/4 lenses), spec compliance matrix, single-attempt correction budget. Trigger: Phase 4 (VERIFY) of /odf-new.
Create an ODF change proposal with business context, scope, and approach. Trigger: Phase 0 (PROPOSE) of /odf-new.
Strict TDD mode for ODF: tests before code. Two-source kill switch (global + local), any off wins, fail-closed. Trigger: /odf-tdd on, effective TDD mode active, or when strict TDD enforcement is needed.
Deep investigation of Odoo codebase to understand patterns before proposing solutions. Trigger: /odf-explore, 'how does Odoo handle X', research, investigation.
| name | odf-agent-builder |
| description | Create custom Odoo sub-agents from natural language. Trigger: /odf-agent-new, 'create agent', 'new specialist', 'custom agent'. |
| license | MIT |
| metadata | {"author":"adruban","version":"2.0"} |
Use when user describes a specialized Odoo domain expert (accounting, inventory, manufacturing) that should be a dedicated sub-agent. The builder generates SKILL.md + AGENT.md, installs to skills/odoo_{name}/ and agent/odoo_{name}.md, and registers in the registry.
| Rule | Requirement |
|---|---|
| Check duplicates first | Search registry + Engram before generating. Ask user if similar exists. |
| Never overwrite without confirm | If agent name exists, ask before overwriting |
| Validate output | Generated SKILL.md + AGENT.md must have all required sections |
| Register in both places | odf-registry.json AND Engram |
| NotebookLM enrichment | Query official docs for the domain before generating |
| Condition | Action |
|---|---|
| Duplicate agent found with overlapping triggers | Ask user: "Create anyway?" |
| NotebookLM unavailable | Proceed without enrichment, flag warning |
| Generation timeout (120s) | Retry once with shorter prompt |
| Parsed output missing required sections | Show error, ask user to edit or regenerate |
opencode run "{prompt}" (120s timeout)---AGENT--- → SKILL.md + AGENT.md. Validate required sections.Return ODF Result envelope with: status (ok|warning|blocked|failed), executive_summary, artifacts_saved ({"name": "agent-{name}", ...}), next_recommended, risks, odoo_version, modules_affected.
/home/adruban/.config/opencode/skills/_shared/result-contract.md — ODF Result envelope/home/adruban/.config/opencode/odf-registry.json — Registry to update