agentleFS
ATOM00blueATOM00blue/agent-skills-pro/skills/conventional-commit-writer/SKILL.md

conventional-commit-writer

Skill0 starsChanged 6 months agoMITView on GitHub

Writes Conventional Commits messages from a diff or change description, choosing the correct type and scope, writing an imperative subject, and flagging breaking changes. Use when the user asks for a commit message, wants to commit staged changes, or mentions conventional commits, semantic commits, or commit conventions.

The file

We split this skill into the rules it gives an agent

6 rules. About 0 are common, 6 are distinctive, and 0 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈6

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 0

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Write a commit message that follows the Conventional Commits 1.0.0 spec, so history is readable and tools can derive versions and …

    line 14
  2. Distinctive:

    If you have repo access, base the message on the actual diff, not assumptions:

    line 29
  3. Distinctive:

    If the diff is empty, note there are no staged changes and ask what was changed (or read the unstaged diff).

    line 35
  4. Distinctive:

    Keep scopes from a small, consistent set.

    line 60
  5. Distinctive:

    No capital first letter after the colon, no trailing period.

    line 65
  6. Distinctive:

    Add a body when the *why* isn't obvious from the subject.

    line 71

≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Conventional Commit Writer

Write a commit message that follows the Conventional Commits 1.0.0 spec, so history is readable and tools can derive versions and changelogs automatically.

Format

<type>(<optional scope>): <subject>
<BLANK LINE>
<optional body — what and why, not how>
<BLANK LINE>
<optional footer(s) — BREAKING CHANGE, Refs, Closes>

Step 1 — Inspect the change

If you have repo access, base the message on the actual diff, not assumptions:

Staged changes: !`git diff --cached --stat`

If the diff is empty, note there are no staged changes and ask what was changed (or read the unstaged diff).

Step 2 — Pick the type

TypeUse forSemVer impact
feata new user-facing featureMINOR
fixa bug fixPATCH
docsdocumentation onlynone
styleformatting, whitespace, no logic changenone
refactorcode change that is neither a fix nor a featurenone
perfa change that improves performancePATCH
testadding or fixing testsnone
buildbuild system or dependencies (npm, cargo, docker)none
ciCI configuration and scriptsnone
choremaintenance that doesn't touch src or testsnone
revertreverts a previous commitvaries

Pick the single most important type. If a change is both a feature and a fix, prefer feat and describe the fix in the body.

Step 3 — Scope (optional but useful)

A noun in parentheses naming the affected area: feat(auth):, fix(api):, docs(readme):. Keep scopes from a small, consistent set. Omit the scope rather than inventing a vague one.

Step 4 — Write the subject

  • Imperative mood: "add", "fix", "remove" — not "added", "fixes", "adding".
  • No capital first letter after the colon, no trailing period.
  • Aim for ≤50 characters; hard cap 72.
  • Complete the sentence: "If applied, this commit will <subject>."

Step 5 — Body and footers (when warranted)

Add a body when the why isn't obvious from the subject. Wrap at ~72 columns. Explain the motivation and contrast with previous behavior; the code already shows the how.

Footers reference issues and declare breaking changes:

Closes #123
Refs #456
Reviewed-by: Jane Doe

Step 6 — Breaking changes

Two equivalent ways to mark a breaking change; use the footer for tooling and the ! for visibility:

feat(api)!: drop support for legacy v1 auth tokens

BREAKING CHANGE: v1 bearer tokens are no longer accepted. Clients must
migrate to OAuth2 access tokens. See MIGRATION.md.

A BREAKING CHANGE: footer (or !) signals a MAJOR version bump regardless of type.

Examples

Input: Added a /healthz endpoint that returns 200 when the DB is reachable. Output:

feat(api): add /healthz readiness endpoint

Returns 200 when the database connection is live, 503 otherwise, so the
load balancer can route around unhealthy instances.

Input: Fixed dates rendering one day off due to timezone handling. Output:

fix(reports): use UTC to prevent off-by-one dates

Report timestamps were formatted in local time, shifting dates across the
midnight boundary. Format consistently in UTC.

Closes #842

Input: Bumped lodash and removed an unused helper. Output:

chore(deps): upgrade lodash to 4.17.21 and drop unused util

- Patches a prototype-pollution advisory
- Removes the now-unreferenced deepClone helper

Common edge cases

  • Mixed unrelated changes: recommend splitting into separate commits; if that's not possible, lead with the most significant type and enumerate the rest in the body.
  • Revert: revert: <subject of reverted commit> with a body This reverts commit <sha>.
  • WIP/merge commits: Conventional Commits is for meaningful history; squash WIP commits before merging.
  • No issue tracker: omit footers rather than inventing references.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.