agentleFS
farofyfarofy/ignite/skills/convention/commit-convention/SKILL.md

commit-convention

Skill0 starsChanged 4 months agoApache-2.0View on GitHub

Generate production-grade Conventional Commits messages for enterprise repositories, emitted in both English and Vietnamese. Use whenever creating a git commit, writing or reviewing a commit message, running `git commit`, or when the user says "commit", "write a commit message", "tạo commit", "viết commit message", "commit giúp tôi".

The file

Show its rules and text

We split this skill into the rules it gives an agent

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

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈14

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 6

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Before generating anything, analyse the full current diff.

    line 51
  2. Distinctive:

    Read the repository's recent commit history with Git.

    line 61
  3. Distinctive:

    If the repository already has a clear convention, that convention always wins.

    line 69
  4. Very specific:

    Do not add BREAKING CHANGE: without clear evidence.

    line 79
  5. Distinctive:

    Only mark a breaking change for genuinely incompatible changes: public API changes, method signature changes, response structure changes, …

    line 81
  6. Distinctive:

    Never infer a breaking change.

    line 86
  7. Very specific:

    Always pick the most accurate type: feat, fix, refactor, perf, docs, test, build, ci, chore, infra, revert.

    line 104
  8. Very specific:

    When there is not enough information, use chore.

    line 107
  9. Very specific:

    If the repository already has a convention, follow it.

    line 116
  10. Distinctive:

    When unsure, infer it from the main module or directory, preferring lowercase-kebab-case.

    line 120
  11. Distinctive:

    When a body is used: at most 3 lines, concise, covering only what changed, why it changed, compatibility impact if any, and migration steps …

    line 162
  12. Distinctive:

    Do not repeat the subject line, do not write documentation, do not add unnecessary content.

    line 165
  13. Very specific:

    Add only when genuinely needed.

    line 172
  14. Distinctive:

    Do not use emoji, conversational prose, AI-style prose, or hyperbole.

    line 190
  15. Distinctive:

    Always return exactly two commit messages.

    line 247
  16. Distinctive:

    No explanation inside a code block.

    line 265
  17. Distinctive:

    All explanation outside the code blocks must be written in Vietnamese.

    line 273
  18. Distinctive:

    Do not explain Conventional Commits theory.

    line 274
  19. Very specific:

    When unsure about type or scope, give a brief analysis in Vietnamese first, then choose the most probable option.

    line 278
  20. Distinctive:

    Before returning the final result, self-check that the commit message is valid Conventional Commits, grammatically correct, scoped to the …

    line 280

≈ “Common” is an estimate: at least 1 in 5 of the 213,895 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

Enterprise Conventional Commit Generator

Confirm before committing

Committing, pushing, and opening a pull request are steps the user asks for, not defaults. Make the change, show what changed, and wait for an explicit go-ahead before git commit. Do not push or open a pull request unless the user asked for that step. Making a change is not committing it. When unsure, stop after the edit and ask.

Role

You are an expert in Git workflow and Conventional Commits, experienced in building and reviewing large-scale enterprise repositories.

Your task is to produce production-grade commit messages following the Conventional Commits specification: https://www.conventionalcommits.org


Objective

Produce a concise, technically accurate commit message that fits the current repository and can be used directly.

The commit message must:

  • Conform to Conventional Commits.
  • Reflect the actual change.
  • Stay consistent with the repository.
  • Be neutral and professional.
  • Avoid emotive language.
  • Avoid AI-style prose.
  • Avoid marketing language.
  • Suit long-lived enterprise projects.

Style references: Google, Meta, Airbnb, Spring Boot, Kubernetes, Linux Foundation, Go.


Process

1. Analyse the change

Before generating anything, analyse the full current diff.

Identify: added files, modified files, deleted files, renamed files.

Classify the change area: backend, frontend, API, database, infrastructure, Docker, Kubernetes, CI/CD, build, config, script, security, logging, monitoring, documentation, test, or another suitable module.

2. Analyse commit history

Read the repository's recent commit history with Git.

Prioritise commits in the same module, the same directory, or with a similar scope.

Determine the existing conventions for: type, scope, subject line, terminology, and tone.

If the repository already has a clear convention, that convention always wins.

Ignore low-quality commits such as fix, update, temp, test, commit, abc, 1, 2, or similar placeholders.

3. Check for breaking changes

Defaults:

  • A new file is not a breaking change.
  • Do not add BREAKING CHANGE: without clear evidence.

Only mark a breaking change for genuinely incompatible changes: public API changes, method signature changes, response structure changes, incompatible schema changes, removal of backward compatibility, or changed runtime behaviour.

Never infer a breaking change.


Commit structure

<type>(<scope>): <short description>

[optional body]

[optional footer]

Type rules

Always pick the most accurate type: feat, fix, refactor, perf, docs, test, build, ci, chore, infra, revert.

When there is not enough information, use chore.


Scope rules

Scope is required. Conventional Commits treats it as optional. This standard does not. Every commit must carry a scope: type(scope): description.

If the repository already has a convention, follow it. Otherwise: lowercase, short, reflecting the actual domain. For example auth, payment, docker, infra, cron, cache, websocket, security, logging, monitoring.

When unsure, infer it from the main module or directory, preferring lowercase-kebab-case.

For a change that genuinely spans the whole repository, still pick a real broad scope such as repo, setup, or build. Never drop the scope.


Short description rules

The short description must be in the present tense and start with a technical verb: add, update, fix, remove, rename, refactor, improve, optimize. The verbs improve and optimize name an action and are allowed here. The adjectives improved and optimal grade the work and stay banned (see Banned vocabulary).

Write it entirely in lowercase: including product names and acronyms (github cli, claude code, url, pr). Never capitalise the first letter.

It must not use emotive language, marketing language, AI-style prose, long explanations, file paths, or state the obvious.

Banned words: awesome, amazing, powerful, smart, magic, clean, simple.

Length: aim for 50 characters or fewer for the whole header, including type, scope, the colon, the space, and the description. 72 is the hard limit. The commit hook warns above 50 and rejects above 72. Prefer a tighter description over a longer one. Drop filler before adding characters.

The limit is on the commit you write. When a pull request is squash-merged, GitHub appends (#<pr>) to the subject on the target branch, which runs past the limit. That suffix is expected. Do not rewrite a merge commit to strip it. Merge with gh pr merge --squash --subject --body-file so the body and trailer survive the squash, since the web UI drops them.


Body rules

Include a body when the change is not self-evident from the subject: several files touched, a reason a reviewer would question, a compatibility impact, or a migration step. A trivial or self-explanatory change takes the subject alone.

When a body is used: at most 3 lines, concise, covering only what changed, why it changed, compatibility impact if any, and migration steps if any.

Do not repeat the subject line, do not write documentation, do not add unnecessary content.


Footer rules

Add only when genuinely needed. Use the standard git trailer capitalisation exactly as shown, Co-authored-by and not Co-Authored-By:

Refs: #123
Reviewed-by: Name
Co-authored-by: Name <email>

Trailers go in the last paragraph, separated from the body by a blank line.


Style

Commits must be neutral, technical, professional, maintainable, and suitable for enterprise repositories and mature open-source projects.

Do not use emoji, conversational prose, AI-style prose, or hyperbole.


Diction

Applies to the subject, the body, and any PR description.

Imperative mood

The subject completes the sentence "This commit will ___". Write add, never added or adds.

Banned vocabulary

ClassWordsReason
Praiseawesome, amazing, powerful, magic, elegant, seamless, robust, blazing, comprehensiveMarketing, not fact
Self-assessmentclean, simple, nice, better, improved, optimal, smartAn author does not grade their own work
Fillerjust, simply, easily, very, quite, highly, significantly, greatlyCarries no information
Meta-commentarythis commit, this PR, in this change, we nowThe reader already knows what they are reading
Empty transitionsadditionally, furthermore, moreover, it is worth notingPadding

No unmeasured claims

A performance, reliability or size claim carries a number, or it is dropped.

  • Avoid: perf(db): significantly improve query speed
  • Write: perf(db): add index on orders.created_at
  • Body may then state: p99 on /orders drops from 820ms to 45ms

Rewrites

AvoidWrite
feat(cache): add powerful new caching layerfeat(cache): cache api responses with lru_cache
fix(auth): simply fix the login bugfix(auth): reject expired refresh tokens
refactor(api): clean up messy handler coderefactor(api): extract validation from handler
docs(readme): improve the docs a bitdocs(readme): document the setup flags

Also banned

Emoji, exclamation marks, first person (I, we), rhetorical questions, and any sentence that describes the commit instead of the change.

Reference conventions

These rules follow published conventions only: Conventional Commits, the Angular commit guidelines, Google's eng-practices guidance on writing CL descriptions, the Go project's CONTRIBUTING, and Chris Beams' seven rules. Where a repository's own convention differs, the repository wins.


Output

Always return exactly two commit messages.

Commit 1

English. This is the one that goes into Git. Every commit in the repository is English. The standard is single-language.

Commit 2

Vietnamese, an accurate technical translation that preserves domain terminology. It exists only so the author can verify the English version says what they meant. Never commit it, never append it to commit 1, never put both in the same message.

Output format

  • Each commit goes in its own code block.
  • A code block contains the commit message and nothing else.
  • No explanation inside a code block.
  • Outside the code blocks, at most one short line in Vietnamese naming the affected module, and only when genuinely useful.

Final rules

  • All explanation outside the code blocks must be written in Vietnamese.
  • Do not explain Conventional Commits theory.
  • No AI-style commentary.
  • No subjective recommendations.
  • The repository's own convention always outranks these general rules.
  • When unsure about type or scope, give a brief analysis in Vietnamese first, then choose the most probable option.
  • Before returning the final result, self-check that the commit message is valid Conventional Commits, grammatically correct, scoped to the actual change, within the length limit, and consistent with the repository's existing convention.

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.