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

odoo-web-guidelines

GitHub

定义Odoo插件Web框架代码规范,涵盖JavaScript、Owl模板及SCSS在static目录下的编写、审查与重构标准。提供文件组织、避免Getter及补丁等具体指南,用于统一前端开发实践。

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

Trigger Scenarios

编写或审查Odoo插件静态资源代码 决定新代码在static/src/中的位置 修改SCSS样式或添加资产

Install

npx skills add odoo/odoo --skill odoo-web-guidelines -g -y
More Options

Use without installing

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.

Version History

  • 5.0.0-2-addons Current 2026-09-27 17:16

Same Skill Collection

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

Metadata

Files
0
Version
5.0.0-2-addons
Hash
496f7475
Indexed
2026-09-27 17:16

inicio - Wiki
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-10-29 04:03
浙ICP备14020137号-1