agentleFS
brokspacebrokspace/brok/skills/engineering/commit-message/SKILL.md

commit-message

Skill12 starsChanged 27 days agoApache-2.0View on GitHub

Write a Conventional Commits message for a staged change. Use when the user asks for a commit message, wants to commit their work, or runs brok commit.

85 other projects use a version of this, 2 of them edited.

Adopted by

Most recently taken up by

Used with

Projects with it also use pr-description, api-docs and 6 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • MicrosoftSkill

    pr-description

    Draft Nacelle PR titles, pull request descriptions, commit titles, commit descriptions, and squash commit messages. Use when asked for PR or commit wording, a branch summary, or a PR description that can be used in a commit. Omit validation sections from commit bodies and remove filler.

    Also in 13 projects that use this

  • LangChainSkill

    api-docs

    OpenAPI documentation and REST API design patterns

    Also in 3 projects that use this

  • cryptofish7Skill

    smoke-test

    Generate and maintain a local deploy script (scripts/deploy.sh). Discovers project services, deploys them locally, and health-checks each one. Use when the user asks to "smoke test", "deploy locally", "test local deploy", "update deploy script", "run deploy", or "run smoke test".

    Also in 3 projects that use this

  • srclightSkill

    refactor-safely

    This skill should be used when the user asks to "refactor", "rename", "move", "change a function signature", "extract a method", "delete unused code", "clean up", or any modification that could break callers or dependents. Provides a pre-change safety checklist using srclight's graph tools to assess blast radius before touching code.

    Also in 3 projects that use this

  • HashiCorpSkill

    changelog

    Add a Changie change fragment (`.changes/<major>.x/unreleased/*.yaml`) for a GitHub Pull Request, commit, and push.

    Also in 4 projects that use this

  • GitHubSkill

    refactor

    Surgical code refactoring to improve maintainability without changing behavior. Covers extracting functions, renaming variables, breaking down god functions, improving type safety, eliminating code smells, and applying design patterns. Less drastic than repo-rebuilder; use for gradual improvements.

    Also in 3 projects that use this

The file

We split this skill into the rules it gives an agent

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

  • 0

    Common

    Most of the 73 edited versions we read keep these.

  • 2

    Distinctive

    This author's own choices. Worth a look.

  • 1

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Read the diff (git diff --cached.

    line 13
  2. Distinctive:

    Write the subject: imperative mood ("add", not "added"), lowercase after the colon, no final period, 72 characters or fewer.

    line 21
  3. Distinctive:

    Add a body only when the why is not obvious from the subject: what was wrong or missing, and what changes now.

    line 23

“Common” is measured: kept by at least 6 in 10 of the 73 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

Commit message

Turn a staged diff into one commit message that a reviewer understands without opening the diff.

Steps

  1. Read the diff (git diff --cached; brok commit passes it to you) and decide what the change does for a user or a maintainer. Ignore formatting noise.
  2. Pick the type: feat (new behavior), fix (a bug), docs, refactor (no behavior change), perf, test, build, ci or chore.
  3. Pick a scope from the area touched, using the project's words (see GLOSSARY.md when it exists): feat(index): .... Omit it when the change spans the whole project.
  4. Write the subject: imperative mood ("add", not "added"), lowercase after the colon, no final period, 72 characters or fewer.
  5. Add a body only when the why is not obvious from the subject: what was wrong or missing, and what changes now. Wrap at 72 characters. Never narrate the code line by line.
  6. A breaking change gets ! after the type or scope and a footer BREAKING CHANGE: <what users must do>.

Output

Return only the message: subject, optional blank line and body, optional footers. No code fences, no quotes, no commentary before or after.

Example

fix(bus): route replies only to the requester

Replies were broadcast to every subscriber of the reply topic, so other
shards could read answers meant for someone else.

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.