agentleFS
kwhornekwhorne/elyra-skills/skills/conventional-commits/SKILL.md

conventional-commits

Skill1 starsChanged 6 months agoMITView on GitHub

Generate Conventional Commits messages from staged changes. Use when the user asks to write a commit message, follow Conventional Commits, summarize staged changes, or prepare a commit.

38 other projects use a version of this.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

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

  • 0

    Common

    Most of the 37 edited versions we read keep these.

  • 2

    Distinctive

    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:

    If nothing is staged, ask the user whether to use git diff (working tree) instead.

    line 30
  2. Distinctive:

    Add a body: if the change is non-trivial:

    line 43

“Common” is measured: kept by at least 6 in 10 of the 37 edited versions of this file we could read. “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 Commits

Writes commit messages that follow the Conventional Commits spec — useful for automated changelogs, semver bumps, and humans skimming history.

When to use

  • "Write a commit message for these changes"
  • "Commit this with a conventional commit message"
  • "Summarize what's staged"

Procedure

  1. Inspect what's actually staged (not the working tree):
    git diff --staged --stat
    git diff --staged
    If nothing is staged, ask the user whether to use git diff (working tree) instead.
  2. Optionally run the helper script in scripts/suggest.sh to get a quick summary of touched paths and a type guess.
  3. Pick a type (see table below). When multiple apply, choose the one that best describes the user-facing intent.
  4. Pick a scope (optional but recommended) — usually a top-level module, package, or feature area. Lowercase, no spaces.
  5. Write the subject line:
    • <type>(<scope>): <imperative summary>
    • ≤72 chars, no trailing period
    • Imperative mood: "add", "fix", "rename" — not "added", "adds"
  6. Add a body if the change is non-trivial:
    • Blank line after subject
    • Wrap at ~72 chars
    • Explain why, not what (the diff already shows what)
  7. Footer for breaking changes or issue refs:
    • BREAKING CHANGE: <description> or ! after type/scope
    • Refs: #123 / Closes: #123

Types

TypeUse forTriggers semver
featNew user-facing featureminor
fixBug fixpatch
perfPerformance improvementpatch
refactorCode change that neither fixes a bug nor adds a featurenone
docsDocumentation onlynone
testAdding or fixing testsnone
buildBuild system, dependencies, packagingnone
ciCI configurationnone
choreMaintenance with no code impactnone
styleFormatting, whitespace, no logic changenone
revertRevert a previous commitdepends

Breaking changes: append ! (e.g. feat(api)!: rename /users to /accounts) and add a BREAKING CHANGE: footer explaining the migration.

Output format

Show the proposed message in a code block, then offer to run git commit:

feat(auth): support passwordless email login

Adds a magic-link flow alongside the existing password login.
Tokens are single-use and expire after 10 minutes.

Refs: #482

Then: "Run git commit -F- with this message? (yes/no)"

Anti-patterns

  • ❌ chore: updates — meaningless; pick the real type and say what changed
  • ❌ Past tense ("added X") — use imperative ("add X")
  • ❌ Multiple unrelated changes in one commit — suggest splitting instead
  • ❌ Trailing period on the subject line
  • ❌ Wrapping the subject across lines

Examples

fix(parser): handle escaped quotes inside attribute values

Closes: #1204
refactor(http): extract retry logic into a helper

No behavior change. Sets up the next commit which adds exponential backoff.
feat(api)!: return ISO 8601 timestamps everywhere

BREAKING CHANGE: `created_at` and `updated_at` were unix timestamps;
they are now ISO 8601 strings. Update clients accordingly.

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.