Sandbox
@mart337i/odoo-skills

Odoo agent skills for Claude Code

This repo is a skill pack for Odoo work in Claude Code. It covers addon development, OCA migration, OWL frontend tasks, code review, execution tracing, and test writing, with version-specific guidance for Odoo 17, 18, and 19.

34 stars8 forksJavaScriptUpdated 4mo ago
Who it's for

Builders who want their agent to handle Odoo addon work with fewer version, security, and migration mistakes.

What it delivers

You can have your agent inspect Odoo code with the right conventions, trace behavior, and write safer tests before calling a task done.

What it does

Odoo version skills

Provides separate guidance for Odoo 17.0, 18.0, and 19.0.

Migration workflow

Adds an end-to-end skill for OCA module migration and `[MIG]` pull request prep.

Code review and tracing

Helps review Odoo code for security, performance, manifests, tests, and execution flow.

Test writing

Gives patterns for TransactionCase, HttpCase, Form helper, mocks, access tests, and workflow tests.

OWL guidance

Covers Odoo web client components, templates, reactivity, hooks, props, registries, and assets.

Skill installer

Includes a Node-based installer and a shell script to link skills into agent directories.

How to get it

  1. 1Install directly with npx from GitHub
    npx github:mart337i/odoo-skills
  2. 2Install only one target
    npx github:mart337i/odoo-skills --target opencode
    npx github:mart337i/odoo-skills --target claude
  3. 3After publishing to npm, the package can also be run as
    npx @mart337i/odoo-skills
  4. 4For local development, clone the repo
    git clone https://github.com/mart337i/odoo-skills.git
    cd odoo-skills
  5. 5Then symlink into Claude-style skills
    ./scripts/link-skills.sh

README

image

Odoo Skills

Agent skills for Odoo engineering plus generic grilling, architecture review, documentation-aware planning, and codebase orientation.

Skills Odoo OCA Node.js GitHub last commit GitHub stars


Table Of Contents


What Is This?

Odoo Skills is an Odoo-focused skill pack with a small set of generic engineering workflows for AI coding agents.

Odoo work is full of sharp edges: version-specific ORM APIs, XML loading order, record rules, sudo() boundaries, multi-company behavior, asset bundles, OWL version differences, and OCA migration conventions. Generic agents regularly miss those details.

This repo gives your agent a practical operating manual: what to inspect, what to ask, what not to run without confirmation, and which Odoo-specific or architectural risks to check before claiming a task is done.


Why Use It?

Generic AgentWith Odoo Skills
Guesses the Odoo version from memoryDetects version from branch, manifests, docs, config, or local source
Treats Odoo like normal Python + XMLChecks ORM, manifests, security CSVs, record rules, views, assets, tests, and version-specific APIs
Suggests commands that may touch the wrong databaseReads local setup docs/base command and asks before database-touching commands
Misses multi-company and portal/public exposureReviews groups, ACLs, record rules, sudo(), domains, and company isolation together
Mixes migration cleanup with feature changesKeeps OCA migration compatibility work separate from behavior changes
Adds code without proving behaviorWrites Odoo tests at the ORM, form, access, controller, report, or mocked integration seam
Uses generic frontend adviceRoutes OWL work through component, template, reactivity, props, assets, and migration guidance

Quick Start

Install directly with npx from GitHub:

npx github:mart337i/odoo-skills

Install only one target:

npx github:mart337i/odoo-skills --target opencode
npx github:mart337i/odoo-skills --target claude

After publishing to npm, the package can also be run as:

npx @mart337i/odoo-skills

The installer copies all skills into both ~/.claude/skills and ~/.config/opencode/skills by default. Existing skills with the same names are moved into a timestamped .backup-odoo-skills-* folder before replacement.

For local development, clone the repo:

git clone https://github.com/mart337i/odoo-skills.git
cd odoo-skills

Then symlink into Claude-style skills:

./scripts/link-skills.sh

Restart or reload your agent so it picks up the new skill list.


Real-World Example

Prompt:

Add a portal endpoint that lets customers download a PDF report for their own records.

Without Odoo SkillsWith Odoo Skills
Adds a controller and calls sudo() to fetch the recordAsks which model/report, confirms portal ownership rule, checks auth, CSRF, access rights, record rules, and whether sudo() is safe
Puts the route in any controller fileInspects existing controller structure and route naming conventions
Returns a PDF if the ID existsVerifies the current user can access that record and cannot enumerate others
Skips verificationTraces route -> model -> report flow and proposes a portal/controller test or realistic user access check before running commands

The point is not more ceremony. The point is fewer security bugs, fewer broken module updates, and less cleanup after the agent "helped."


Skills

SkillUse It For
grill-meStress-test generic plans and designs by asking one high-leverage question at a time.
grill-with-docsStress-test plans against project domain language, CONTEXT.md, and ADRs, updating docs as decisions crystallise.
improve-codebase-architectureFind deepening opportunities that make a codebase more testable, navigable, and modular.
odooGeneral Odoo addon development: exploration, debugging, architecture review, manifest/docs sync, models, views, controllers, reports, tests, and security.
odoo-17.0Odoo 17 reference guides for actions, controllers, data, decorators, fields, manifests, migrations, mixins, models, OWL, performance, reports, security, testing, transactions, translations, and views.
odoo-18.0Odoo 18 reference guides for actions, controllers, data, decorators, fields, manifests, migrations, mixins, models, OWL, performance, reports, security, testing, transactions, translations, and views.
odoo-19.0Odoo 19 reference guides for actions, controllers, data, decorators, fields, manifests, migrations, mixins, models, OWL, performance, reports, security, testing, transactions, translations, and views.
odoo-code-reviewReview Odoo code for correctness, security, performance, migrations, tests, manifests, and official coding guidelines.
odoo-code-tracerTrace execution through controllers, buttons, cron jobs, model methods, overrides, computes, onchanges, constraints, database operations, side effects, and security checks.
odoo-grill-meStress-test Odoo plans before implementation: addon boundaries, models, security, UI flows, data, OWL, migrations, and verification.
odoo-idea-gatesValidate whether an Odoo module, addon, app, or product idea should exist: existing alternatives, buyer demand, wedge, reach, Odoo fit, and value equation.
odoo-migrationEnd-to-end OCA module migration workflow for [MIG] pull requests, with version tips from 8.0 through 19.0.
odoo-owlBuild, review, debug, and migrate Odoo OWL frontend code: components, templates, reactivity, hooks, props, plugins, registries, and assets.
odoo-test-writerCreate Odoo tests with TransactionCase, SingleTransactionCase, HttpCase, AccountTestInvoicingCommon, Form helper, tags, mocks, access tests, workflow tests, and coverage patterns.
zoom-outGet a higher-level map of unfamiliar code and how the relevant modules and callers fit together.

Project Structure

odoo-skills/
├── AGENTS.md
├── CLAUDE.md
├── README.md
├── bin/
│   └── odoo-skills.js
├── package.json
├── scripts/
│   └── link-skills.sh
└── skills/
    ├── grill-me/
    ├── grill-with-docs/
    ├── improve-codebase-architecture/
    ├── odoo/
    ├── odoo-17.0/
    ├── odoo-18.0/
    ├── odoo-19.0/
    ├── odoo-code-review/
    ├── odoo-code-tracer/
    ├── odoo-grill-me/
    ├── odoo-idea-gates/
    ├── odoo-migration/
    ├── odoo-owl/
    ├── odoo-test-writer/
    └── zoom-out/

There are no bucket folders. Skills live directly under skills/ so they are easy to link into different agent environments.


Recommended Environment

If your Odoo source checkout is outside the project being edited, expose it so agents can inspect framework code instead of relying on memory:

export ODOO_SOURCE=/path/to/odoo

You can also expose your local Odoo command and setup docs:

export ODOO_BASE_COMMAND="/path/to/odoo/odoo-bin -c /path/to/odoo.conf --addons-path=/path/to/addons"
export ODOO_TOOL_README=/path/to/local-development/README.md

ODOO_BASE_COMMAND is the base command agents should inspect before proposing install/update/test commands. ODOO_TOOL_README points to local setup documentation agents should read before using project-specific tooling.

Put those exports in your shell profile if you want them available in every agent session.


How It Works

flowchart LR
    A[Developer prompt] --> B[AI agent]
    B --> C[Odoo Skills]
    C --> D[Repo inspection]
    C --> E[Odoo conventions]
    C --> F[Security and migration guardrails]
    D --> G[Safer Odoo change]
    E --> G
    F --> G

The skills push agents toward a simple discipline:

  1. Detect the Odoo version and repo shape.
  2. Use version-specific references for Odoo 17, 18, and 19 when detailed API guidance is needed.
  3. Read manifests, models, views, security, assets, tests, and docs before editing.
  4. Trace execution paths when behavior depends on controllers, buttons, cron jobs, overrides, or side effects.
  5. Write tests at the Odoo behavior seam: ORM, form, access, workflow, controller, report, or mocked integration.
  6. Use local Odoo source and setup docs when available.
  7. Ask before running commands that touch databases or services.
  8. Verify at the Odoo behavior seam, not just with generic static checks.

Designed For

  • Odoo addon development.
  • Odoo module and app idea validation before implementation.
  • OCA repositories.
  • OCA module migrations between major Odoo versions.
  • OWL/web client frontend work.
  • Odoo code reviews and architecture checks.
  • Odoo test writing for custom modules.
  • Odoo execution tracing and impact analysis.
  • Odoo 17, 18, and 19 version-specific reference lookup.
  • Generic plan grilling, documentation-aware design work, architecture review, and codebase orientation.
  • Agents working in unfamiliar Odoo codebases.

Deliberately Out Of Scope

OpenUpgrade workflows are not covered. The migration skill is for normal OCA module migration and [MIG] pull request preparation.


Stats

MetricValue
Skills15
Installernpx github:mart337i/odoo-skills
OCA migration coverage8.0 through 19.0
Version reference coverageOdoo 17.0, 18.0, 19.0
Main focusOdoo addon engineering plus generic engineering workflows
Frontend coverageOWL, Odoo assets, templates, reactivity, migration
Testing coverageTransactionCase, SingleTransactionCase, HttpCase, Form helper, mocks, tags, access tests
Safety focuscode review, execution tracing, security, multi-company, manifests, database-touching commands

If this saves you from one bad sudo(), one broken XML load order, or one wrong-version migration, it did its job.

Star the repo if you find it useful.

Files in the repo

Repository payload8 top-level entries
  • .claude-plugin
  • bin
  • scripts
  • skills
  • AGENTS.md
  • CLAUDE.md
  • package.json
  • README.md

Discussion (0)

Ask about usage, or say what you built with it

Sign in to join the discussion.

No comments yet. Be the first to say what this is good for.

More skills

obra/
superpowers

An agentic skills framework & software development methodology that works.

285k
1 add

Turn any codebase, with its docs, SQL schemas, configs, and PDFs, into a queryable knowledge graph. A /graphify skill for Claude Code, Cursor, Codex, and Gemini CLI: local deterministic AST parsing, every edge explained, no vector store.

117k
1 add
Vincentwei1021/
anything2explainer

Topic in, narrated explainer video out. A Claude Code / Codex skill that turns any topic into a black-canvas motion-graphics explainer video with TTS voiceover, subtitles and a chapter progress bar. Chinese or English; every frame drawn in code with Remotion.

666

Open-source AI job search: scan job portals, evaluate listings into a structured A-H report with a global 1-5 score, tailor your CV, track applications — runs locally in your AI coding CLI (Claude Code, Codex, OpenCode, Antigravity…)

71k