Stats
Actions
Tags
From workflow
Review Odoo (Python & XML) code for best practices, standards, and common errors. Use this skill when the user asks to review Odoo modules, Python files in an Odoo context, or XML views/data files.
How this skill is triggered — by the user, by Claude, or both
Slash command
/workflow:odoo-reviewThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
- **PEP8:** Strictly follow PEP8 (120 chars line length is often acceptable in Odoo).
odoo imports first.from odoo import models, fields, api, _from odoo.exceptions import UserError, ValidationErrorsearch_count() instead of len(search()).filtered() for in-memory filtering of recordsets.mapped() to extract values.self.env.cr.execute) unless absolutely necessary for performance. If used, never inject variables directly; use parameters.snake_case. Many2one fields usually end with _id (e.g., partner_id).line_ids, tag_ids).@api.depends.@api.constrains for data integrity checks._().<record id="..." model="ir.ui.view">.<arch type="xml"> block.name attributes over indices.
//field[3]//field[@name='description']invisible: Use strictly for hiding.readonly: For uneditable fields.required: For mandatory fields.ref="module.xml_id".noupdate="1" in <data> for data that shouldn't be reset on upgrade (like sequence numbers or cron jobs).depends lists all required modules.data lists all XML/CSV files in correct order (security -> views -> data).license is specified (e.g., LGPL-3).npx claudepluginhub nguyenhuy158/skills --plugin workflowGuides creation, editing, and verification of skills for AI coding agents using test-driven development with subagent scenarios. Use when authoring or debugging skills.