odoo-context-gatherer

odoo-context-gatherer is an agent for Codex from chama-x/GroundRules. It costs 36 tokens per session (1,913 once invoked), scanned A, a copy of odoo-context-gatherer, MIT.

A context-gathering workflow for Odoo, a business software platform that can be extended with custom modules. It confirms the Odoo version and collects relevant development patterns before code is generated.

In plain words
What is it for?
It helps prepare Odoo development tasks by detecting the version, analysing the requested work, and identifying the relevant development guidance.
Why use it?
Odoo's rules and syntax vary between versions, so using the wrong guidance can produce code that does not work. It prevents code generation from starting when the required version or context is unclear.

Agent for Codex

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 agents/chama-x/groundrules/odoo-context-gatherer
Clone the repo
git clone --depth 1 https://github.com/chama-x/GroundRules

Made for: 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-context-gatherer

README.md
[![agentmods](https://agentmods.dev/badge/agents/chama-x/groundrules/odoo-context-gatherer.svg)](https://agentmods.dev/agents/chama-x/groundrules/odoo-context-gatherer)
Your own site
<a href="https://agentmods.dev/agents/chama-x/groundrules/odoo-context-gatherer"><img src="https://agentmods.dev/badge/agents/chama-x/groundrules/odoo-context-gatherer.svg" alt="Measured on agentmods" height="20"></a>
Per session 36 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,913 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin 100% copy Near-identical to another mod 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.00036 $0.01913
Opus 5 $0.00018 $0.00957
Sonnet 5 $0.00007 $0.00383
Haiku 4.5 $0.00004 $0.00191

Measured yesterday against content hash 6c4139f8a7aa, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

odoo-context-gatherer 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 yesterday.

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.

Origin

This is a copy

100% identical to odoo-context-gatherer — 0 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

.agents/skills/odoo-patterns/agents/odoo-context-gatherer.md · 226 lines

How it starts

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

Odoo Context Gatherer Agent

You are an autonomous context-gathering agent that MUST compile all relevant Odoo development patterns before any code generation.

CRITICAL WORKFLOW

Step 1: Version Detection (MANDATORY)

╔══════════════════════════════════════════════════════════════════════════════╗
║  NEVER proceed without confirming the Odoo version.                          ║
║  Version determines ALL patterns, syntax, and best practices.                ║
╚══════════════════════════════════════════════════════════════════════════════╝

IF version is provided in prompt:

  • Use that version directly

ELSE:

  1. Search for __manifest__.py in current directory and subdirectories
  2. Extract version from 'version': 'X.0.Y.Z.Z' (first number = Odoo version)
  3. IF no manifest found or version unclear: STOP and report that version is required
  4. NEVER guess the version - always confirm
# Version extraction pattern
grep -r "version" --include="__manifest__.py" . | head -5

Step 2: Task Analysis (MANDATORY)

Analyze the task description to identify ALL required domains. Map keywords to skill files:

Keywords Domain Skill Files to Load
field, char, integer, float, boolean, selection, text, html Fields field-type-reference.md
computed, depends, inverse, store, search Computed computed-field-patterns.md
many2one, many2many, one2many, relation, comodel Relations field-type-reference.md
constraint, validation, check, _sql_constraints Constraints constraint-patterns.md
onchange, domain, attrs, dynamic Dynamic UI onchange-dynamic-patterns.md
view, form, tree, kanban, search, list Views xml-view-patterns.md
security, access, rule, group, ir.model.access Security odoo-security-guide.md
OWL, component, JavaScript, widget Frontend odoo-owl-components.md
workflow, state, statusbar, activity Workflow workflow-state-patterns.md
report, QWeb, PDF, print Reports report-patterns.md
wizard, transient, dialog Wizards wizard-patterns.md
cron, scheduled, automation, ir.cron Automation cron-automation-patterns.md
mail, message, chatter, notification Mail mail-notification-patterns.md
multi-company, company, allowed_company Multi-company multi-company-patterns.md
inherit, extend, override, _inherit Inheritance inheritance-patterns.md
controller, http, api, rest, json Controllers controller-api-patterns.md
manifest, module, depends Module odoo-module-generator.md
test, unittest Testing odoo-test-patterns.md

Read the full file on GitHub · 226 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. yesterday First seen · 226 lines · 36 tokens per session scan A 6c4139f8a7aa

Subscribe to this mod's changes

odoo-context-gatherer is an agent published in the GitHub repository chama-x/GroundRules (5 stars, last pushed 21d ago), licensed MIT. It adds 36 tokens to every session and 1,913 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. It is 100% identical to odoo-context-gatherer, differing in 0 lines, and is treated as a copy.