odoo-code-tracer

odoo-code-tracer is a skill for Claude Code, Codex from chama-x/GroundRules. It costs 71 tokens per session (1,268 once invoked), scanned A, original, MIT.

A guide for tracing how an Odoo business application runs code from an entry point, such as a web request, button, scheduled task, or data change.

In plain words
What is it for?
Use it to debug Odoo addons, assess the impact of a change, review performance, or check whether an implementation follows the expected execution flow.
Why use it?
It helps you understand the real call path before changing code or investigating a bug, including inherited methods, automatic triggers, database work, permissions, and side effects.

Skill for Claude CodeCodex

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/chama-x/groundrules/odoo-code-tracer
Any agent
npx skills add chama-x/GroundRules --skill odoo-code-tracer
Clone the repo
git clone --depth 1 https://github.com/chama-x/GroundRules

Made for: Claude Code, Codex.

Per session 71 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,268 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00071 $0.01268
Opus 5 $0.00036 $0.00634
Sonnet 5 $0.00014 $0.00254
Haiku 4.5 $0.00007 $0.00127

Measured 3d ago against content hash 832efca471fc, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

odoo-code-tracer scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 3d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.agents/archive/v3/skill_odoo-discipline/skills/odoo-code-tracer/SKILL.md · 116 lines

How it starts

The opening of the file, as written. The whole thing — 116 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Odoo Code Tracer

Use this skill to map how Odoo code actually executes. Trace only what you can verify in code. If a path is uncertain, mark it as uncertain and explain what evidence is missing.

First Move

Identify the starting point:

  • HTTP route or controller
  • form/list button action
  • server action or automated action
  • cron job
  • ORM method called by another addon
  • compute, onchange, constraint, inverse, or create/write/unlink hook
  • report render
  • OWL/web client action calling backend code
  • external webhook or integration callback

Detect the target Odoo version. If a version-specific reference exists, consult it before tracing version-sensitive behavior:

  • Odoo 17: odoo-17.0
  • Odoo 18: odoo-18.0
  • Odoo 19: odoo-19.0

If $ODOO_SOURCE is set, inspect local framework code for controller dispatch, ORM behavior, decorators, web client actions, assets, tests, and version-specific execution details.

Tracing Process

  1. Locate the entry point with file and line reference.
  2. Follow the direct method call chain.
  3. Follow inheritance and super() calls through parent implementations.
  4. Check decorators and implicit triggers: @api.depends, @api.constrains, @api.onchange, inverse methods, @api.ondelete, create/write/unlink overrides.
  5. Follow XML wiring: buttons, actions, menus, reports, cron records, server actions, and external IDs.
  6. Follow frontend wiring when relevant: asset bundle, JS module, registry entry, service call, RPC/ORM call, template event.
  7. Record database operations: search, browse, read, read_group, create, write, unlink, direct SQL, savepoints, locks.
  8. Record side effects: chatter, emails, notifications, activities, reports, attachments, external API calls, queue jobs, bus events.
  9. Record security checks: auth mode, ACLs, record rules, groups, domains, company filters, sudo() boundaries.
  10. Mark exit points and returned actions/data.

What To Watch For

  • N+1 queries from searches, browses, reads, creates, writes, or unlinks inside loops.
  • Hidden side effects from computed fields, constraints, onchange methods, mail mixins, activities, and automation.
  • Unsafe sudo() that bypasses ownership, company, portal, or public-user boundaries.
  • Fragile XML linkage through renamed methods, missing external IDs, or version-specific view syntax.
  • Transaction hazards from caught database exceptions without savepoints.
  • Business rules split across views, onchanges, controllers, and scheduled actions.

Read the full file on GitHub · 116 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 3d ago First seen · 116 lines · 71 tokens per session scan A 832efca471fc

Subscribe to this mod's changes

odoo-code-tracer is a skill published in the GitHub repository chama-x/GroundRules (5 stars, last pushed 19d ago), licensed MIT. It adds 71 tokens to every session and 1,268 once invoked, about $0.0004 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

hive.worker-delegation

Concrete patterns for breaking colony work into parallel worker jobs via runplaybook — when fan-out helps, how to model the goal as a tracker table, write the worker skill, author the playbook, pilot, and let convergence retry/resume the gap.

aden-hive/hive · 58 tokens

hive.chart-creation-foundations

Required reading whenever any chart tool is available. Teaches the one-tool embedding contract (call chartrender → live chart appears in chat AND a downloadable PNG lands in the queen session dir), the ECharts (data viz) vs Mermaid (structural diagrams) decision, the BI/financial-grade aesthetic baseline (no…

aden-hive/hive · 133 tokens

seedance

Generate AI videos using Volcengine Seedance model. Supports text-to-video (T2V), image-to-video (I2V), and audio-synced video generation. Use this skill when the user wants to create or generate videos.

netease-youdao/LobsterAI · 52 tokens

develop-web-game

Use when Codex is building or iterating on a web game (HTML/JS) and needs a reliable development + testing loop: implement small changes, run a Playwright-based test script with short input bursts and intentional pauses, inspect screenshots/text, and review console errors with rendergametotext.

netease-youdao/LobsterAI · 64 tokens

pr-feedback

Fetches PR review feedback and inline comments, categorizes them, and presents options to the user. Use when the user asks to get, read, address, or fix review comments on a pull request.

strands-agents/harness-sdk · 44 tokens

stock-explorer

A Yahoo Finance (yfinance) powered financial analysis tool. Get real-time quotes, generate technical indicator reports (RSI/MACD/Bollinger/VWAP/ATR), summarize fundamentals, and run a one-shot report that outputs a text summary.

netease-youdao/LobsterAI · 55 tokens