odoo-commit
БесплатноБез исполняемых скриптовНе проверенGuides Odoo-style commit creation following official Odoo git guidelines. Drafts `[TAG] module: short description` messages, checks whether to amend or create…
от unclecatvn★ 155 звёзд на GitHubОб этом скилле
Workflow
Run
git diff --statandgit status --shortto see what changed, plusgit log -1 --oneline(andgit log @{u}.. --onelineif a remote-tracking branch exists) to see the last local commit and whether it's still unpushed.If the change is a direct continuation or fix of that unpushed
HEADcommit, skip drafting a new message and fold it in instead of creating a second commit for the same logical change:git add <file> git commit --amend --no-edit # or drop --no-edit to also revise the messageOtherwise, draft a new commit message.
Stage relevant files by name - never
git add -Aorgit add ..Write the commit message to a temporary file, then commit with
git commit -F:
cat > /tmp/odoo-commit-message.txt <<'EOF'
[TAG] module: short description
Optional body line.
EOF
git commit -F /tmp/odoo-commit-message.txt
Any equivalent temp-file flow is fine (for example, using PowerShell's
Set-Content or another editor) as long as the final commit is created with
git commit -F <file>.
Before opening a pull request, squash your own back-and-forth commits into one clean commit per logical change (per OCA guidelines): the rest of the world doesn't need your intermediate "fix bug 1", "fix bug 2" history - only the final state and a clear summary. For a single trailing fix,
git commit --amend(step 2) is usually enough; for folding several commits into one, use an interactive rebase instead:git rebase -i HEAD~N # N = number of commits to foldKeep the first line as
pickwith the real[TAG] module: descriptionmessage, mark the restfixup(drop their messages) orsquash(merge messages):pick 1949129 [IMP] module: Introduce feature A fixup d2cf643 Fix bug 1 of feature A fixup 42bd9e8 Fix bug 2 of feature A fixup 7f767d5 Fix bug 3 of feature AEither way, only rewrite commits that are still local/unpushed, or on a branch you alone own - never amend or rebase shared history without confirming with the user first.
Report the resulting commit hash and subject.
Do not bypass pre-commit hooks. If a hook fails, fix the issue, re-stage the changes, and create the commit again.
Format
[TAG] module: short description
Optional body explaining WHY, not what. What is visible in the diff.
Focus on motivation, constraints, and decisions made.
task-XXXX, opw-XXXXXX
Subject Line Rules
[TAG] module: description- tag in brackets, then module name, colon, space, description- Target the whole header (
[TAG] module: description) at about 50 characters for readability; 72 is a hard ceiling, not something to aim for - Self-test: the header must read as a valid sentence after "if applied, this commit
will
<header>" - e.g.[IMP] base: prevent to archive users linked to active partners-> "if applied, this commit will prevent to archive users linked to active partners" - Never use single, vague words like "bugfix" or "improvements" as the description - it must be self-explanatory and state the reason for the change
- Imperative mood: "add", "fix", "remove" - not "added", "fixes"
- No trailing period
- Module = technical module name (e.g.
hhc,plc,nhso_stddataset,imc) - Avoid touching multiple modules in one commit - split per module so each can be
reverted independently. If truly unavoidable, list the modules or use
various
Tags
[FIX]- bug fix; used in stable versions, also valid for recent dev bugs[REF]- refactoring: feature heavily rewritten[ADD]- adding new modules[REM]- removing resources: dead code, views, modules[REV]- reverting commits[MOV]- moving files (no content change; use git mv)[REL]- release commits: major/minor stable versions[IMP]- improvements: most incremental dev changes[MERGE]- merge commits / forward port of bug fixes[CLA]- signing Odoo Individual Contributor License[I18N]- translation file changes[PERF]- performance patches[CLN]- code cleanup[LINT]- linting passes
Body Rules
- Skip body when subject is self-explanatory
- Include body for: non-obvious WHY, breaking changes, migration notes, task references
- Explain WHY, not WHAT - the diff already shows what changed. WHAT is only worth spelling out when a technical choice or trade-off was involved, and then explain WHY that choice was made
- Don't force brevity for its own sake: official Odoo guidance explicitly says not to hesitate being verbose when the reasoning deserves it. Every line should still earn its place - no restating the diff, no filler
- Wrap at 72 characters per line
- Reference task IDs at the end:
task-XXXX,opw-XXXXXX,Fixes #123,Closes #123
What Never Goes In
- "This comm
Установить odoo-commit в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл odoo-commit?
Guides Odoo-style commit creation following official Odoo git guidelines. Drafts `[TAG] module: short description` messages, checks whether to amend or create a new commit, stages files explicitly, commits via `git commit -F`, and keeps local history clean before PRs. Auto-invokes for commit-related requests in Odoo repositories and takes priority over generic commit skills.
Как установить скилл odoo-commit?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл odoo-commit запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
mcp-builder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
от Anthropicclaude-api
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
от Anthropicalgorithmic-art
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
от Anthropicmcp-integration
This skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…
от Anthropic