GroundRules: Skill for Claude Code

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

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

Written for no agent in particular: nothing here depends on one. Also seen: installed under .agents/ (shared by several agents).

This is chama-x/GroundRules's own configuration. It tells Claude Code and Codex how to work on GroundRules itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything GroundRules configures →

Reuse

Borrowing it

Nothing to install: this file belongs to chama-x/GroundRules. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/chama-x/GroundRules/master/.agents/archive/v3/skill_odoo-discipline/skills/odoo-code-tracer/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/chama-x/GroundRules

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for odoo-code-tracer

README.md
[![agentmods](https://agentmods.dev/badge/skills/chama-x/groundrules/odoo-code-tracer/github.svg)](https://agentmods.dev/skills/chama-x/groundrules/odoo-code-tracer)
Your own site
<a href="https://agentmods.dev/skills/chama-x/groundrules/odoo-code-tracer"><img src="https://agentmods.dev/badge/skills/chama-x/groundrules/odoo-code-tracer/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for odoo-code-tracer

Your own site · 80×15
<a href="https://agentmods.dev/skills/chama-x/groundrules/odoo-code-tracer"><img src="https://agentmods.dev/badge/skills/chama-x/groundrules/odoo-code-tracer.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
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. A grade says what 26 rules found in the file — not that it is safe.
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.1 $0.00071 $0.01268
Opus 5.5 $0.00028 $0.00507
Sonnet 5.5 $0.00014 $0.00254
Haiku 4.5 $0.00007 $0.00127

Measured 1mo ago against content hash 832efca471fc, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, 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 1mo 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. 1mo 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 2mo ago), licensed MIT. It adds 71 tokens to every session and 1,268 once invoked, about $0.0003 per session on Opus 5.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.