/odoo-agent-pro-kit:odoo_rules_drift_checkfrom Odoo Agent Pro Kit
Audits Odoo project rules files (CLAUDE.md, AGENTS.md, etc.) for drift against code changes — moved paths, renamed models, stale ports, and gate-state contradictions before merge or handoff.
Ships in Odoo Agent Pro Kit. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Your rules files — CLAUDE.md, AGENTS.md, GEMINI.md, copilot-instructions.md — are a
steering document, not documentation: ground rules, conventions, and a current map of where
things live. Their only failure mode that matters is being wrong. A stale rule or a drifted
map misleads every future agent run, and in this kit it also misleads the next session, because
the context-handoff guard rewrites those same files when context pressure triggers a handoff.
Wrong rules are worse than missing rules. A longer rules file is worse than a lean one. Most changes need no edit at all. Adding a wrong or verbose line makes it worse.
Adapted from the upstream generic rules-check-drift skill
(github.com/coleam00/skills, MIT), extended with Odoo-specific drift classes, PRD gate-state
verification, and optional live-database confirmation through the odoo_* discovery tools.
$ARGUMENTS — optional diff range. Default: uncommitted + staged (git diff HEAD);
fall back to main...HEAD if that is empty.| Audited | Ignored |
|---|---|
CLAUDE.md (root + package-level) | README.md |
AGENTS.md, GEMINI.md | docs/*.md other than tasks.md |
.github/copilot-instructions.md | CHANGELOG.md, release notes |
docs/tasks.md, docs/progress.json — gate state only | .claude/ agent/command/skill definitions |
SESSION_CONTEXT.md — gate state only | Build output, logs, test fixtures |
If CLAUDE.md is only an @AGENTS.md import, audit AGENTS.md.
docs/tasks.md and progress.json are audited for contradiction against the rules files,
not for their own prose quality. This skill does not review PRD content — that is prd_writing.
git diff <range> --stat
git diff <range>
git status --short
Note: moved/renamed/removed files, new or removed models and fields, changed
__manifest__.py depends, changed script entry points, and any new invariant the change
establishes.
Load every file in the Audited column that exists. Hold each concrete claim against the change set. Concrete claims are the ones that can be false: paths, model names, field names, external IDs, ports, version numbers, run identifiers, status words.
manage_modules.sh"
but it moved. → fix it.env.cr.execute from a controller — go through the model").
→ add it as one line.docs/tasks.md / progress.json does not support. → correct the
claim to match reality, never the reverse.Everything else, leave alone. Do not suggest an edit to record that a feature was added (that is a changelog — the codebase is the source of truth), to restate what the code already makes obvious, or to add background prose that does not steer future work.
These are the claim types that actually go stale in an Odoo project. Check each one the rules files assert:
| Claim in rules file | How it drifts | How to check |
|---|---|---|
| Script or module path in a key-files table | Renamed, moved, or deleted | test -f <path> for every path cited |
Model name (res.partner, sale.order) | Model renamed or _name changed | grep _name = across addons; Tier 2 confirms |
| Field name in a rule or example | Field dropped or renamed in a later commit | grep the model file; Tier 2 confirms |
Module depends list | __manifest__.py gained/lost a dependency | diff the manifest against the documented list |
Version idiom (<tree> vs <list>, attrs=) | Rules describe 17 idiom, module targets 18/19 | check __manifest__.py version vs the stated idiom |
Odoo 20 idiom (ir.model.access.csv, ir.rule, toggle_active, t-esc in views, registry._init, get_param/set_param, _table_query, ir.attachment datas, bytes written to Binary fields) | Rules or examples still teach the 19 API while __manifest__.py is 20.0.x | grep the rules files for each idiom; the kit lint rules L7–L17 name the 20.0 replacement |
| MCP port (8765 / 8766 / 8767 / 8768) | Port map changed in odoo_mcp/config.py | grep the config for the actual port constants |
| Database / instance key | .env or config.py key renamed | grep config.py and the env template |
External ID / view_id / attachment ID | Record recreated with a new ID | Tier 2 only — IDs cannot be verified statically |
| Backup, snapshot, or run identifier | Retention pruned it — only the last N runs survive | test -d/test -f the artifact for every id cited |
| Phase or status table | Says Complete while tasks.md has [ ] | count [ ] vs [x] in docs/tasks.md |
| Rules-file agreement | One of CLAUDE.md / AGENTS.md / GEMINI.md / copilot-instructions.md was edited alone | diff the shared claims across all four |
The pruned identifier and rules-file disagreement rows catch the two failures that are invisible in a normal diff review. Check them even when the diff looks unrelated.
Tier 1 (steps 1–4) is static and always runs. It never needs credentials or a connection.
If a live Odoo connection is available, additionally confirm the model, field, and ID claims that static checking marked UNVERIFIED. Prefer the in-process tools when running under this kit; fall back to the standalone MCP server otherwise.
| Tool | Confirms |
|---|---|
odoo_search_models / mcp_search_models | the documented model still exists |
odoo_get_fields / mcp_get_fields | the documented field still exists on it |
odoo_validate_field / mcp_validate_field | a specific model+field pair before trusting a rule that names it |
odoo_get_relationships / mcp_get_relationships | a documented relation target still resolves |
Standalone server ports: Odoo 17 → 8765 (XML-RPC), Odoo 18 → 8766 (XML-RPC),
Odoo 19 → 8767 (JSON-RPC 2.0). Check with odoo_mcp/start_mcp_server.sh --status.
If no connection is available, do not start a server and do not block. Report static-only and list the specific claims left unverified. A skipped Tier 2 is a normal, complete run.
## Odoo rules-file drift check — range: <range> — tier: <static-only | DB-confirmed vX>
### Fix (now false)
| Where | What's wrong | Minimal fix |
|-------|--------------|-------------|
| CLAUDE.md "Key Files" | scripts/foo.py moved to scripts/pricing/ | update the one path |
### Gate-state contradiction
| Claim | Reality | Minimal fix |
|-------|---------|-------------|
| Phase table: "Phase 4 Complete" | docs/tasks.md has 3 open [ ] | mark In Progress |
### Add (new invariant only)
- <one-line rule> — established by <the change that made it durable>
### Rules-file divergence
- GEMINI.md still says <X>; CLAUDE.md was updated to <Y> — align GEMINI.md
### Unverified (Tier 2 skipped)
- <model/field/ID claims that need a live DB to confirm>
### Checked, still true — no edit
- <areas verified as needing no change>
If nothing drifted: "The rules files are still accurate for these changes — no edits needed."
models/sale_order.py."
Bad: pasting the method.tasks.md disagree, tasks.md wins.
Never edit tasks.md to make the rules file look right.docs/design.md, not PRD prose.[x], never change a progress percentage, never write to Odoo. This skill
is read-only against the database and against task state.docs/tasks.md or progress.json to resolve a contradiction → wrong direction; fix the claim.test -f'd the cited paths and identifiers → you did not check.| Mistake | Fix |
|---|---|
Auditing README and docs/ too | Scope is rules files + gate state. Nothing else. |
| Rewriting a whole section to fix one path | Change the one wrong entry. |
| Adding "as of " qualifiers | Rules are present-tense. A dated rule is already stale. |
| Trusting a documented record ID statically | IDs need Tier 2. Mark UNVERIFIED otherwise. |
| Fixing CLAUDE.md and leaving GEMINI.md behind | Handoff writes all of them; align them together. |
odoo_commanding_system — owns the /plan-analysis → /start-coding → /testing gates this
skill audits for contradiction.prd_writing — owns the content of docs/tasks.md; this skill only reads its gate state.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub vperfectcs/odoo-agent-pro-kit --plugin odoo-agent-pro-kit31 skills in this plugin
/agent_browser_automationBrowser automation for Odoo web testing, form filling, screenshots, documentation, and frontend validation. Use when testing Odoo web pages, creating module screenshots, validating forms, or automating browser interactions for Odoo 17/18/19./odoo_commanding_systemSlash command router providing three lifecycle commands for Odoo custom app development: /plan-analysis (requirements & PRD generation), /start-coding (task-loop with backend testing), /testing (frontend UI testing & documentation). Version-aware (17|18|19), IDE/CLI agnostic. Works from VS Code, Antigravity, Cursor, or terminal./docker-sandbox-multi-cli-adapterManage multiple coding-agent CLIs (Codex, Claude, Hermes, Gemini) in Docker Sandbox phases for Odoo development./docker-sandbox-operationsConfigure, migrate, operate, validate, benchmark, upgrade, roll back, and release the Odoo 17/18/19 Docker Sandbox runtime. Use for Docker Sandbox onboarding, platform setup, local-to-sandbox migration, session lifecycle, release acceptance, capacity measurement, or troubleshooting in this repository./excalidraw-diagramCreate Excalidraw diagram JSON files that make visual arguments. Use when the user wants to visualize workflows, architectures, or concepts./odoo_17_coding_standardOdoo 17.0 coding standards for models, views, security, constraints, and performance. Use when developing Odoo 17 modules to ensure maintainable, upgrade-safe code.Other plugins' skills for the same job