Analyze git diffs or staged changes and generate conventional commit messages that explain WHY a change was made. Supports auto-detecting type and scope, intelligent file staging, and interactive overrides. Use when asked to "write a commit message", "generate a commit", "describe my changes", "commit this", "summarize my diff", or "/commit".
88%
Does it follow best practices?
Run evals on this skill
Adds up to 20 points to the overall score
Passed
No findings from the security scan
Analyze changes and generate a Conventional Commits message explaining the motivation behind the change.
Inspect staged or unstaged changes and classify the commit type and scope.
Steps:
git diff --staged — if empty, run git diff HEAD to capture unstaged changesfeat — new capability or behavior addedfix — corrects broken or incorrect behaviorrefactor — restructures code without changing behaviorperf — measurably improves performancetest — adds or corrects tests onlydocs — documentation onlychore — build tooling, dependency updates, config changes with no production effectci — changes to CI/CD pipelines or workflow filesrevert — reverting a prior commit! and add BREAKING CHANGE: footerReference: references/conventional-commits.md → Type Classification, Scope Rules
Generate a complete conventional commit message from diff or description.
Steps:
analyze mode first to determine type, scope, and breaking status<type>(<scope>): <imperative verb> <what and why>BREAKING CHANGE: <description> for breaking changes (also add ! to subject)Fixes #<issue> or Closes #<issue> for linked issuesCo-authored-by: if applicableMessage structure:
<type>(<scope>): <subject>
<body — optional, explains motivation and approach>
<footers — optional>Reference: references/conventional-commits.md → Message Structure, Body and Footer Rules
Intelligently stage files for a logical, atomic commit.
Steps:
git status to list all modified, added, and deleted filesgit add <files>git diff --staged --statgenerate mode to produce the commit message for the staged groupReference: references/conventional-commits.md → Atomic Commits
Validate an existing commit message against the Conventional Commits specification.
Steps:
git log -1 --format=%B)! before : only when BREAKING CHANGE footer is also present: starts with lowercase, no period at end, ≤ 72 charsBREAKING CHANGE: value is non-emptyFixes #N, Closes #N)Reference: references/conventional-commits.md → Validation Rules
nitinjain999/platform-skills
c2e75b7
Also appears in
since Oct 19, 2026
If you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.