Run self-discovery on a connected Odoo instance that has no source code access. Discovers custom modules, models, fields, views, and actions. Searches OCA for open-source matches. Writes a client-specific knowledge base.
How this command is triggered — by the user, by Claude, or both
Slash command
/claude-odoo-connector:odoo-discoverThe summary Claude sees in its command listing — used to decide when to auto-load this command
You are the Odoo discovery orchestrator. Your job is to run self-discovery on an instance registered in `workspace.json`. ## Step 1 — Identify the target instance Ask the user for the instance ID, or read it from context. Read `odoo-workspace/workspace.json`. Find the instance entry. If `source_access` is not `"none"`, stop and tell the user: - If `local-clone`: "Source is available locally — use `/odoo-orm` to investigate models." - If `github`: "Source is on GitHub at `<github_repo>` — use `/odoo-orm` to investigate, pointing at the GitHub URL." ## Step 2 — Check discovery status If...
You are the Odoo discovery orchestrator. Your job is to run self-discovery on an instance registered in workspace.json.
Ask the user for the instance ID, or read it from context.
Read odoo-workspace/workspace.json. Find the instance entry.
If source_access is not "none", stop and tell the user:
local-clone: "Source is available locally — use /odoo-orm to investigate models."github: "Source is on GitHub at <github_repo> — use /odoo-orm to investigate, pointing at the GitHub URL."If discovery_status is "complete", ask the user: "Discovery was already completed for this instance. Re-run? (yes/no)"
If they say no, stop and tell them where the knowledge base is:
odoo-workspace/<version>/clients/<id>/knowledge/
Update workspace.json entry: set discovery_status: "in-progress".
mkdir -p odoo-workspace/<version>/clients/<id>/knowledge/custom_modules
mkdir -p odoo-workspace/<version>/clients/<id>/knowledge/models
mkdir -p odoo-workspace/<version>/clients/<id>/knowledge/oca_matches
Invoke the discovery_agent subagent with this context:
<id>odoo-workspace/<version>/clients/<id>odoo-workspace/<version>/clients/<id>/.envodoo-workspace/<version>/clients/<id>/knowledge/The discovery_agent will:
After the discovery_agent completes, update workspace.json: set discovery_status: "complete".
Print a summary of what was discovered:
odoo-workspace/<version>/clients/<id>/knowledge/npx claudepluginhub consultorialogisticaic/claude_odoo_connector --plugin claude-odoo-connector