GroundRules: Agent for Claude Code

.agents/skills/odoo-patterns/agents/odoo-context-gatherer.md

odoo-context-gatherer is an agent for Claude Code 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 Claude Code

Written for Claude Code: a Claude Code subagent (agents/*.md). Also seen: installed under .agents/ (shared by several agents).

This is chama-x/GroundRules's own configuration. It tells Claude Code 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/skills/odoo-patterns/agents/odoo-context-gatherer.md
Clone the repo
git clone --depth 1 https://github.com/chama-x/GroundRules

Made for: Claude Code.

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/github.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/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-context-gatherer

Your own site · 80×15
<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="Reviewed on agentmods" width="80" 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. A grade says what 26 rules found in the file — not that it is safe.
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.1 $0.00036 $0.01913
Opus 5.5 $0.00014 $0.00765
Sonnet 5.5 $0.00007 $0.00383
Haiku 4.5 $0.00004 $0.00191

Measured 1mo ago against content hash 6c4139f8a7aa, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, 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 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.

Origin

This is a copy

100% identical to odoo-context-gatherer — 26 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. 1mo ago 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 2mo ago), licensed MIT. It adds 36 tokens to every session and 1,913 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 0 findings. It is 100% identical to odoo-context-gatherer, differing in 26 lines, and is treated as a copy.

Related

Other agents, from other repositories

backend-developer

Use when a ticket needs API or backend work — endpoints, data models, auth, integrations, infra-as-code. Only spawned when backend is in scope per the architecture doc. Runs in parallel with mobile devs on independent tickets.

vmobifystudio/app-dev-team · 50 tokens

backend-engineer

General-purpose backend implementer for the user-search feature. Owns API handlers, request validation, RBAC scoping, query builders, cache logic, observability instrumentation, and rate limiting. Triggers - "implement task.

Enovatr-Labs/SpecRoute · 48 tokens

api-attacker

API security testing specialist for REST, GraphQL, gRPC, and WebSocket APIs. Handles BOLA/IDOR, mass assignment, authentication bypass, rate limit evasion, JWT attacks, GraphQL introspection abuse, API enumeration, and OWASP API Top 10. Triggers on: API, REST, GraphQL, gRPC, WebSocket, BOLA, IDOR, mass assignment, API…

mukul975/Threatswarm · 105 tokens

ciel-web-guild

CIEL's elite full-stack web guild. Specializes in React, Vue, Svelte, Next.js, Django, Rails, and Laravel.

jxoesneon/Ciel · 35 tokens

backend-generator

Backend coding agent. Implements backend sprints from the product spec, one feature at a time. Focuses on API correctness, data integrity, test coverage, and robust error handling. Use for backend implementation sprints.

superduke/ganvil · 46 tokens

architect

System architecture and design specialist. Use for designing scalable systems, making architectural decisions, creating technical specifications, or refactoring system structure.

a-ariff/ariff-claude-plugins · 28 tokens