Agent Skills › odoo/odoo › odoo-web-guidelines

odoo-web-guidelines

GitHub

提供Odoo插件前端代码(JS、Owl模板、SCSS)的开发规范,指导文件组织、避免Getters及补丁等最佳实践,适用于编写、审查或迁移static/目录下的代码。

skills/odoo-web-guidelines/SKILL.md odoo/odoo

触发场景

编写Odoo前端代码 审查Odoo前端代码 决定新文件存放位置

安装

npx skills add odoo/odoo --skill odoo-web-guidelines -g -y
更多选项

不安装直接使用

npx skills use odoo/odoo@odoo-web-guidelines

指定 Agent (Claude Code)

npx skills add odoo/odoo --skill odoo-web-guidelines -a claude-code -g -y

安装 repo 全部 skill

npx skills add odoo/odoo --all -g -y

预览 repo 内 skill

npx skills add odoo/odoo --list

SKILL.md

Frontmatter
{
    "name": "odoo-web-guidelines",
    "description": "House rules for the web framework code of Odoo addons: the JavaScript, Owl templates and SCSS in static\/src\/ and static\/tests\/ of any addon (community, enterprise, or custom). Use when writing, reviewing, or moving files under static\/ in an Odoo addon."
}

Odoo web guidelines

These rules apply to the web framework code an addon ships in static/src/ and static/tests/: JavaScript, Owl templates (XML) and SCSS. They do not apply to static/lib/, which holds vendored or library-style code, nor to the images and static/description/ an addon ships alongside. They are house rules, not general web development advice.

Guidelines are grouped by domain, one file per domain in guidelines/, one section per guideline. No rule outranks another. Read the sections that match the code you are touching instead of loading whole files.

Guideline Read it when
Organize files by feature creating a file, or deciding where new code lives
Avoid getters adding a computed value to a class or a component
Avoid patching JavaScript code extending or overriding behaviour that already exists
SCSS and CSS touching *.scss
Assets adding an image, font, or library

To add a guideline, follow AUTHORING.md.

版本历史

  • 5.0.0-2-addons 当前 2026-09-27 17:16

同 Skill 集合

skills/odoo-guidelines/SKILL.md
skills/odoo-review/SKILL.md
skills/odoo-security/SKILL.md

元信息

文件数
0
版本
5.0.0-2-addons
Hash
496f7475
收录时间
2026-09-27 17:16

首页 - Wiki
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-10-14 13:23
浙ICP备14020137号-1