ワンクリックで
is-commit-rules
Commit message formatting rules. Apply whenever creating or amending a git commit.
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
メニュー
Commit message formatting rules. Apply whenever creating or amending a git commit.
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
SOC 職業分類に基づく
C/blk coding rules for the Intersec codebase. Load before writing or reviewing C or blk code.
Deep code review of a commit covering correctness, commit message quality, and English usage.
Fetch Gerrit review comments on the current commit or a range of commits, interactively apply or reject each one, then post draft replies and update the local commit(s). Use when the user wants to apply review comments from Gerrit.
| name | is-commit-rules |
| description | Commit message formatting rules. Apply whenever creating or amending a git commit. |
Apply these rules on top of your usual commit message conventions (imperative mood, meaningful subject, etc.). They add constraints; they don't replace your defaults.
The subject states what changed in imperative mood. The body MUST explain why — the motivation, constraint, or trade-off that the diff alone cannot reveal. Do NOT restate what or how: those are already visible in the modification itself.
Keep the body short. A few lines is usually enough; add length only when the why genuinely needs it (prior incident, hidden constraint, non-obvious decision). A reviewer should grasp the motivation in seconds, not paragraphs.
Subject and every body line MUST wrap at 72 columns. Exception: in the body, raw pasted content (logs, errors, stack traces, command output) may exceed 72 when wrapping would hurt readability.
Change-Id trailerNever add Change-Id: to a new commit; the project's git hook generates
it automatically.
When amending, keep all existing trailers (Change-Id:, Refs:,
Closes:, any Key: value tags at the end) exactly as-is — no
modification, reordering, or removal.
After amending, update the subject/body if the scope or intent changed (still respecting Rules 1, 2, 3 and 4). Do not describe the changes between patchsets; describe the final state.
Co-Authored-By trailerEvery commit MUST end with the Co-Authored-By: trailer from your
system prompt, regardless of repo style. When amending, combine with
Rule 4: keep an existing one, or add it if missing.
Refs / Closes)This project links commits to Redmine tickets via:
Refs: #XXX #YYY — related to those tickets, work not finished.Closes: #XXX #YYY — final commit for those tickets.Syntax: # + numeric id, multiple ids space-separated on one line.
Applies only to new commits, not amends:
Refs:'d or Closes:'d, and wait for the answer.When amending, do not invoke this rule: existing trailers are preserved per Rule 4, and no new ones are added unless the user asks.
RunTests: for @slow Behave scenariosWhen the diff includes Behave .feature files, check whether any
added or modified scenarios carry the @slow tag. If so, a
RunTests: footer is required so those scenarios run during review
(they are otherwise excluded and run only in nightly campaigns).
Reference the scenario's identifying tag(s) in RunTests: (typically
@redmine_XXXXX but may be any tag that uniquely identifies the scenario).
RunTests: @redmine_A @redmine_B