odoo-18 — скилл для Claude Code: что делает и как установить
Справочник по разработке модулей под Odoo 18 для ИИ-агентов. Помогает писать модели ORM, контроллеры, компоненты OWL, отчёты QWeb и файлы безопасности.
npx skills add unclecatvn/agent-skills --skill odoo-18 -a claude-code
npx skills add unclecatvn/agent-skills --skill odoo-18.0 -a claude-codeЧто делает odoo-18
Скилл содержит сводный индекс и набор тематических руководств в папке references/. Агент обращается к ним при создании кастомных аддонов, правке представлений XML или разборе трейсбеков. Правила срабатывают на файлы с расширениями .py, .xml, .csv, .js, .ts, .css и .scss.
Внутри собраны отдельные документы под конкретные задачи: от настройки __manifest__.py, прав доступа и миграций до оптимизации запросов для защиты от проблемы N+1. Автор прямо советует перед написанием кода запускать скилл odoo-workflow и сверяться со списком устаревших практик в references/api-highlights.md. Если модуль использует методы прошлых версий Odoo, эти инструкции помогут их отсеять.
Какие задачи решает
- исправить ошибки в XML-представлениях и kanban-досках Odoo 18
- настроить правила доступа ir.model.access.csv и record rules
- написать вычисляемые поля ORM и декораторы @api
- оптимизировать медленные запросы к базе данных без проблемы N+1
Примеры запросов агенту
- Сделай вычисляемое поле с декоратором @api.depends для модели в Odoo 18
- Проверь этот трейсбек после обновления аддона в Odoo 18
- Напиши компонент интерфейса на OWL и зарегистрируй его в ассетах
Как установить odoo-18
1Через Skills CLI (Vercel)
npx skills add unclecatvn/agent-skills --skill odoo-18 -a claude-codenpx skills add unclecatvn/agent-skills --skill odoo-18.0 -a claude-code2Вручную: положить файлы
~/.claude/skills/odoo-18.0/SKILL.mdПапка скилла целиком; для одного проекта — .claude/skills/odoo-18.0/
1Через Skills CLI (Vercel)
npx skills add unclecatvn/agent-skills --skill odoo-18.0 -a codex2Вручную: положить файлы
.agents/skills/odoo-18.0/SKILL.mdДля всех проектов — ~/.agents/skills/
1Через Skills CLI (Vercel)
npx skills add unclecatvn/agent-skills --skill odoo-18.0 -a cursor2Вручную: положить файлы
.cursor/skills/odoo-18.0/SKILL.mdCursor читает и .agents/skills/, и .claude/skills/
1GitHub CLI
gh skill install unclecatvn/agent-skills odoo-18.02Вручную: положить файлы
.github/skills/odoo-18.0/SKILL.md1Через Skills CLI (Vercel)
npx skills add unclecatvn/agent-skills --skill odoo-18.0 -a gemini-cli2Командой платформы
gemini skills install https://github.com/unclecatvn/agent-skills --path skills/odoo-18.0Вручную: положить файлы
.devin/skills/odoo-18.0/SKILL.mdСтарый путь .windsurf/skills/ тоже читается
Через Skills CLI (Vercel)
npx skills add unclecatvn/agent-skills --skill odoo-18.0 -a opencodeClaude.ai
Упакуйте папку в zip и загрузите в Settings → Capabilities → Skills
По шагам, с командами для каждой платформы: Как установить скилл в Claude Code: пять способов
Вопросы о odoo-18
Как установить odoo-18 в Claude Code?
Выполните в терминале команду npx skills add unclecatvn/agent-skills --skill odoo-18 -a claude-code.
Для чего нужен скилл odoo-18?
Он даёт агенту контекст по внутреннему устройству Odoo 18, помогая писать корректный код для моделей ORM, представлений XML, отчётов QWeb и клиентских компонентов OWL.
Что проверить перед генерацией кода под Odoo 18?
Руководство требует свериться с файлом references/api-highlights.md. В нём перечислены конструкции, которые запрещено использовать в Odoo 18.
Исходный текст
SKILL.md · MIT
---
name: odoo-18
description: >
Odoo 18 development reference for Python models and ORM (search, domain, read_group, compute fields),
XML/CSV data and views, OWL/JS client code, QWeb reports, security (ACL, record rules, groups),
cron and server actions, migrations and module upgrades, tests, i18n, and performance.
Use this skill whenever work involves Odoo 18 or custom addons—even if the user only pastes a traceback,
mentions addons/ or __manifest__.py, describes form/list/kanban/XML errors, HTTP controllers, or
business rules on models—including building features, fixing bugs, refactoring, or reviewing addon code.
Includes CSS/SCSS asset authoring and review for Odoo addons.
globs: "**/*.{py,xml,csv,js,ts,css,scss}"
---
# Odoo 18 Skill - Master Index
Master index for all Odoo 18 development guides. Read the appropriate guide from `references/` based on your task.
## Quick Reference
| Topic | File | When to Use |
|-------|------|-------------|
| Actions | `references/odoo-18-actions-guide.md` | Creating actions, menus, scheduled jobs, server actions |
| API Decorators | `references/odoo-18-decorator-guide.md` | Using @api decorators, compute fields, validation |
| Controllers | `references/odoo-18-controller-guide.md` | Writing HTTP endpoints, routes, web controllers |
| Data Files | `references/odoo-18-data-guide.md` | XML/CSV data files, records, shortcuts |
| Development | `references/odoo-18-development-guide.md` | Creating modules, manifest, reports, security, wizards |
| Field Types | `references/odoo-18-field-guide.md` | Defining model fields, choosing field types |
| Manifest | `references/odoo-18-manifest-guide.md` | __manifest__.py configuration, dependencies, hooks |
| Migration | `references/odoo-18-migration-guide.md` | Upgrading modules, data migration, version changes |
| Mixins | `references/odoo-18-mixins-guide.md` | mail.thread, activities, email aliases, tracking |
| Model Methods | `references/odoo-18-model-guide.md` | Writing ORM queries, CRUD operations, domain filters |
| OWL Components | `references/odoo-18-owl-guide.md` | Building OWL UI components, hooks, services |
| Performance | `references/odoo-18-performance-guide.md` | Optimizing queries, fixing slow code, preventing N+1 |
| Reports | `references/odoo-18-reports-guide.md` | QWeb reports, PDF/HTML, templates, paper formats |
| Security | `references/odoo-18-security-guide.md` | Access rights, record rules, field permissions |
| Testing | `references/odoo-18-testing-guide.md` | Writing tests, mocking, assertions, browser testing |
| Transactions | `references/odoo-18-transaction-guide.md` | Handling database errors, savepoints, UniqueViolation |
| Translation | `references/odoo-18-translation-guide.md` | Adding translations, localization, i18n |
| Views & XML | `references/odoo-18-view-guide.md` | Writing XML views, actions, menus, QWeb templates |
## Coding Conventions
Before writing code, run the `odoo-workflow` skill if it is installed (trace the real
source, Context Brief with `file:line`, definition of done); install it alongside this pack.
Read `references/api-highlights.md` before writing code and apply its Quick review
checks: the ❌ items are what not to use in Odoo 18.
Apply the convention section in the guide you open. Odoo 18 runtime behavior,
then existing stable-addon style, takes precedence; keep diffs focused.
- Module naming, assets, JavaScript, CSS, and SCSS: development guide.
- XML formatting and IDs: data, actions, reports, security, and views guides.
- Python, recordsets, transactions, and translations: model, field, decorator,
performance, transaction, and translation guides.
## File Structure
```
skills/odoo-18.0/
├── SKILL.md # This file - master index
└── references/ # Development guides
├── odoo-18-actions-guide.md
├── odoo-18-controller-guide.md
├── odoo-18-data-guide.md
├── odoo-18-decorator-guide.md
├── odoo-18-development-guide.md
├── odoo-18-field-guide.md
├── odoo-18-manifest-guide.md
├── odoo-18-migration-guide.md
├── odoo-18-mixins-guide.md
├── odoo-18-model-guide.md
├── odoo-18-owl-guide.md
├── odoo-18-performance-guide.md
├── odoo-18-reports-guide.md
├── odoo-18-security-guide.md
├── odoo-18-testing-guide.md
├── odoo-18-transaction-guide.md
├── odoo-18-translation-guide.md
└── odoo-18-view-guide.md
```
## Base Code Reference (Odoo 18)
All guides are based on analysis of Odoo 18 source code:
- `odoo/models.py` - ORM implementation
- `odoo/fields.py` - Field types
- `odoo/api.py` - Decorators
- `odoo/http.py` - HTTP layer
- `odoo/exceptions.py` - Exception types
- `odoo/tools/translate.py` - Translation system
- `odoo/addons/base/models/res_lang.py` - Language model
- `addons/web/static/src/core/l10n/translation.js` - JS translations
## External Documentation
- [Odoo 18 Official Documentation](https://github.com/odoo/documentation/tree/18.0)
- [Odoo 18 Developer Reference](https://github.com/odoo/documentation/blob/18.0/developer/reference/orm.rst)
- [Odoo Coding Guidelines](https://raw.githubusercontent.com/odoo/documentation/17.0/content/contributing/development/coding_guidelines.rst)
© unclecatvn · MIT · unclecatvn/agent-skills