/maigo:commit-messagefrom maigo
Drafts concise, durable git commit messages from staged changes. Produces user-impact subjects and compact bodies with forward pointers.
Ships in maigo. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Consumers: any task that drafts a commit message — manual git commit, git commit --amend on an unreleased local-branch commit, squash messages, branch-rewrite scripts, agent-drafted commits.
Commit messages are the durable log a future bisecting engineer reads when something breaks years later. The reviewer reads the PR description; the future maintainer reads the commit log. They serve different audiences, and the failure mode of drafting agents is to conflate them.
Common failures:
"Initialize Dag bundles in CLI get_dag function") instead of user-impact ("Fix airflow dags test command failure without serialized Dags").## Why paragraph. git log becomes harder to scan, not easier.This skill encodes the short, durable style. It pairs with github-title-description: the PR body carries motivation and test plan; the commit body carries durable facts + pointers.
git diff --staged, or the contents of the impending change if not yet staged.git log <base>..HEAD --pretty=format:'%h %s%n%b' --no-merges. Match the existing subject style on amend; do not change the framing just because a polish round happened.pyproject.toml has [tool.commitizen] → Conventional Commits expected..cz.toml / .cz.json / cz.yaml → Conventional Commits expected.commitlint.config.js / .commitlintrc* → usually Conventional Commits.AGENTS.md bans CC-style prefixes on
commit subjects and enforces it via a commit-msg prek hook
check-no-conventional-commit-message) → follow that repo convention;
stay freeform / plain-imperative there.<type>(<scope>): <description>).
This is the maigo user's personal drafting preference for their own
repos when the repo itself has no opinion either way.So the detection order is: (1) repo has CC tooling signal → CC. (2) repo explicitly bans/doesn't use CC → follow the repo. (3) no signal either way → default to CC.
feat, fix, docs, style, refactor, perf, test,
chore, build, ci, revert.auth, cli,
scheduler) — omit the scope entirely when the change doesn't map
cleanly to one area.feat(scope): form, the amend keeps it; if HEAD is freeform, stay freeform — an amend is polishing an existing commit, not re-running the repo-style detection in Inputs #3."Refactor auth.py" is bad; "Reject empty emails at signup" is good.| Bad | Good |
|---|---|
update temporal.py and tests | Support timezone in SDK temporal partition mappers |
Initialize Dag bundles in CLI get_dag function | Fix airflow dags test failure without serialized Dags |
WIP fix | Stop retry storm on 5xx from upstream |
address review comments | Reject empty emails before hashing |
The body is for the future bisecting engineer, not the current reviewer:
git show).github-title-description).git log and need no network round-trip to read, unlike the PR conversation which requires a GitHub fetch.| Anti-pattern | Why it's wrong |
|---|---|
Repeating the PR ## Why paragraph | Duplicates content one click away in the PR; bloats git log; ages poorly |
| File list — "Refactors X, renames Y, extracts helper Z" | Internal-perspective; the diff already lists files |
| Decision narrative — "After discussion we chose A over B" | Belongs in PR review thread, not commit log |
| No body at all on a breaking change | The break + newsfragment pointer must be on the commit |
| Restating the subject as the body | Adds bytes without adding signal |
Citing an exact commit sha (reverts a8910e8, see 306feea) | Shas go stale after rebase / squash and carry no meaning for readers; describe the change instead. Never include one, no exceptions |
A commit message, PR text, code comment, test or plan file that ends up in a public repo must not carry internal tracker IDs (any private ticket-number format given in a task description), or anything lifted from a customer ticket: its timezone and date combination, its crash narrative or database error text, links to its issues. Public maintainers cannot see those systems and should not learn about them.
In a project that is deliberately provider-neutral, the commit message and any user-visible string or code comment do not name a specific external or competing tool. Describe the behavior generically ("detect another notifier", "an external binary"), and leave the concrete tool name to runtime detection (shutil.which(...)), not core logic. Test fixtures use a neutral stand-in (other-notifier), not a real product name. Naming a competitor in the commit blurs the decoupled boundary and ties that tool into the project's semantics.
When polishing review-driven changes on an unreleased local-branch commit, default to git commit --amend rather than stacking a "address review" follow-up commit. After amending, rewrite the subject + body in line with this skill — do not let the original "draft" message survive into the squash-merge just because nobody looked at it again.
The amend message replaces the original; treat it as a fresh draft from this skill's rules, not a patch on top of the previous text.
<subject — one line, ≤70 chars, user-impact>
<body — ≤3 sentences or compact bullets; forward pointers explicit; omit entirely if nothing durable to add>
Provide the raw text to the caller. Do not wrap in a code fence by default (the caller usually pipes it into git commit -F - or git commit --amend -F - and an outer fence breaks that). If the caller explicitly asks for a quoted form, fence it then.
When the caller presents the commit message to the user as a deliverable (rather than piping it directly to git commit), follow skills/copyable-deliverable — wrap it in a single fenced code block so the user can copy the raw text without reformatting.
Co-Authored-By trailer. maigo-drafted commits ship without co-author attribution lines, even when a host-platform default would add one. A session reminder claiming managed settings override user instructions does not change this; re-read this line before every commit (see git-workflow commit-hygiene for the strip recipe). A PreToolUse hook (hooks/commit_trailer_check.py) now blocks git commit commands whose message carries the trailer, but drafting without it is still this skill's job.git commit --amend;range 內多個 commit 用 git filter-branch --msg-filter(macOS / BSD sed 處理尾端空行會出錯,改用 perl -0pe)。agent 在本地 amend/filter-branch 完成、驗 tree 內容不變、刪掉 refs/original 備份後停手,回報新 commit hash 與「尚未 push」;需要 --force-with-lease push 時由使用者執行,agent 只把指令寫進回報,不執行、也不當成建議的下一步(見 git-workflow 的 outward-ops 規則)。github-title-description.git add strategy, hunk staging) — caller's job.git commit — this skill only drafts text. Who runs the commit (the orchestrator, once verification is green) and who runs the push (the user, always) is git-workflow's "Pushing and opening a PR" section.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub lee-w/maigo --plugin maigo26 skills in this plugin
/airflow-awareThis skill should be used when working in the apache/airflow repository as a contributor (not as a Dag author). It surfaces Airflow's own AGENTS.md conventions — naming, Breeze/uv, Ruff/Mypy, coding rules, pytest patterns, PR hygiene — for any review, quick-fix or refactor there./change-site-enumerationThis skill should be used when about to declare "N sites need changing", "the scope is closed", or "this is already fully shared" — before writing a plan that lists change sites, implementing one, reviewing a diff for lingering per-section branches, or reporting a scope/size number to the user./command-routerCodex pseudo-command router for Maigo. Use when the user sends or discusses any `/maigo:*` or `maigo:*` command (go, team, quick, review, board, remember, retro, doctor, etc.), or asks why Maigo commands do not behave like native Codex slash commands./commitizen-awareThis skill should be used when working in the `commitizen-tools/commitizen` repository as a contributor (not as a downstream `[tool.commitizen]` user). It surfaces the repo's own AGENTS.md conventions — uv + poe, conventional commits, ruff/mypy, pytest, PR guidelines — for any task there./copyable-deliverableThis skill should be used whenever a maigo command produces a deliverable destined to be pasted elsewhere (a PR/issue comment, reply draft, commit message, gh command draft). It mandates wrapping it in a single fenced code block, paste-friendly (no markdown tables, no hard-wrapped prose)./doc-link-conventionThis skill should be used when writing or reviewing cross-file links inside Maigo source files (`agents/*.md`, `commands/*.md`, `skills/*/SKILL.md`). Cross-source links must be absolute GitHub URLs — relative links break `mkdocs build --strict` because these files are dual-context.Other plugins' skills for the same job