agentleFS
Maples7Maples7/Apple-Dev-AI-Skills/skills/commit-message/SKILL.md

commit-message

Skill2 starsChanged 7 months agoMITView on GitHub

Draft a git commit message from current repository changes, current conversation, and session context. Use when writing a Conventional Commit, applying repository or team policy for scopes and footers, generating monorepo-aware commit text, or adding issue trailers without running git commit.

34 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use error-handling, changelog and 2 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

    error-handling

    统一错误处理系统。在添加 API 端点、修改错误处理、添加前端 API 调用、编写错误相关测试时使用。

    Also in 3 projects that use this

  • HashiCorpSkill

    changelog

    Add a `.changelog/<PR_NUMBER>.txt` entry for a GitHub Pull Request, commit, and push.

    Also in 4 projects that use this

  • GoogleSkill

    code-review

    Adversarial systems, concurrency, memory-model, and architecture code review protocol. Use this skill whenever asked to review code, PRs, diffs, or branches in Filament.

    Also in 6 projects that use this

  • OpenAISkill

    brainstorming

    You MUST use this before any creative work - creating features, building components, adding functionality, or modifying behavior. Explores user intent, requirements and design before implementation.

    Also in 3 projects that use this

The file

We split this skill into the rules it gives an agent

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

  • 0

    Common

    Most of the 27 edited versions we read keep these.

  • 7

    Distinctive

    This author's own choices. Worth a look.

  • 2

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Prefer staged changes whenever staged content exists.

    line 26
  2. Distinctive:

    Use the actual diff plus session context so the message explains why the change happened, not only what changed.

    line 27
  3. Distinctive:

    Look for a commit profile in one of these places before drafting:

    line 33
  4. Distinctive:

    If no profile exists, fall back to the conservative defaults in commit profile reference and recommend adding a profile after the change …

    line 40
  5. Very specific:

    Use assets/commit-message-profile.yaml as the template when a repository needs one.

    line 42
  6. Distinctive:

    Follow the inspection order in workflow.

    line 46
  7. Distinctive:

    If the diff covers unrelated concerns, still produce the best single message you can.

    line 48
  8. Distinctive:

    Never run git add, git commit, or otherwise modify the index or working tree.

    line 49
  9. Very specific:

    when split signals are strong, an additional Suggested split plan section is appended.

    line 59

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

Generate a single high-quality git commit message from the current repository changes.

Use This Skill When

  • the user asks for a commit message for current local changes
  • the user wants the commit message to reflect the current conversation, not only the diff
  • staged changes should take priority over unstaged work
  • a Conventional Commit subject, body, or footer is needed
  • the repository expects commit scopes, constrained commit types, or specific footers
  • the repository is a monorepo and scope selection should follow package or workspace names
  • the change should reference an issue from the branch name or conversation
  • the user wants help deciding whether a diff should be split before committing

Required Operating Model

  1. Load the repository commit profile before drafting when one exists.
  2. Prefer staged changes whenever staged content exists.
  3. Use the actual diff plus session context so the message explains why the change happened, not only what changed.
  4. Detect likely issue references from the current branch name and recent conversation.
  5. Produce a commit message plus only the allowed short caveats; do not run git commit.

Commit Profile

Look for a commit profile in one of these places before drafting:

  • commit-message-profile.yaml
  • .ai/commit-message-profile.yaml
  • .github/commit-message-profile.yaml
  • another path explicitly provided by the user

If no profile exists, fall back to the conservative defaults in commit profile reference and recommend adding a profile after the change when repository-specific rules matter.

Use assets/commit-message-profile.yaml as the template when a repository needs one.

Procedure

  1. Follow the inspection order in workflow.
  2. Apply the drafting rules in message rules.
  3. If the diff covers unrelated concerns, still produce the best single message you can. When strong split signals are present, also append a suggested split plan as described in workflow.
  4. Never run git add, git commit, or otherwise modify the index or working tree. Splitting and validation are the user's decision.

Exit Criteria

  • exactly one primary Conventional Commit message is produced for the current diff
  • the message is written in idiomatic English
  • the message satisfies the effective repository profile or conservative fallback rules
  • staged versus unstaged scope is handled correctly
  • required scope and footer conventions are applied when the evidence supports them
  • any note after the message is high-confidence, commit-relevant, and non-speculative
  • when split signals are strong, an additional Suggested split plan section is appended; it is a proposal only and no git commands are executed
  • the output is ready for the user to copy into git commit

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.