agentleFS
tuanductrantuanductran/hr-skills/.agents/skills/github-awesome-copilot-git-commit/SKILL.md

github-awesome-copilot-git-commit

Skill58 starsChanged 2 months agoMITView on GitHub

Generate high-quality, atomic Conventional Commits by analyzing Git changes, recommending logical commit boundaries, validating commit messages, and assisting with PRs, changelogs, and releases.

The file

Show its rules and text

We split this skill into the rules it gives an agent

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

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈12

    Distinctive · estimate

    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:

    Write concise subjects in the imperative mood (≤72 characters)

    line 20
  2. Distinctive:

    Always prioritize atomic commits.

    line 118
  3. Distinctive:

    Add a scope only when it provides meaningful context.

    line 121
  4. Distinctive:

    Keep commit subjects concise, imperative, and under 72 characters.

    line 122
  5. Distinctive:

    Do not end commit subjects with a period.

    line 123
  6. Distinctive:

    Prefer git add -p over staging everything when unrelated changes exist.

    line 126
  7. Distinctive:

    Follow Conventional Commits 1.0.0 whenever possible.

    line 130
  8. Very specific:

    Never create temporary patch or diff files (for example *.patch or *.diff) unless the user explicitly requests them.

    line 134
  9. Distinctive:

    Prefer piping output directly to Git or the terminal instead of writing temporary files.

    line 135
  10. Distinctive:

    If a temporary file is required during execution, treat it as ephemeral:

    line 136
  11. Very specific:

    Before creating a temporary file, verify whether it is ignored by Git (.gitignore).

    line 137
  12. Distinctive:

    Remove the file before completing the task.

    line 138
  13. Distinctive:

    Never leave temporary artifacts behind or include them in commits.

    line 139
  14. Distinctive:

    Keep the history clean and review-friendly.

    line 164

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

GitHub Awesome Copilot Git Commit

Supported tasks

Commit generation

  • Generate Conventional Commit messages from Git diffs
  • Analyze the current working tree using git diff
  • Generate commit messages from staged changes using git diff --cached
  • Infer the best commit type from the actual intent of the change
  • Recommend an appropriate scope when it improves clarity
  • Write concise subjects in the imperative mood (≤72 characters)
  • Generate optional commit bodies explaining what changed and why
  • Generate footers for issue references and breaking changes

Commit review

  • Review uncommitted Git changes before creating commits
  • Detect unrelated changes mixed in the same diff
  • Recommend splitting large changes into multiple atomic commits
  • Explain why commits should be separated
  • Generate one Conventional Commit for each logical change
  • Ignore whitespace-only changes unless intentional

Interactive Git workflow

  • Review git diff before staging
  • Review git diff --cached before committing
  • Suggest files that should be committed together
  • Recommend staging strategies using git add -p
  • Help create clean Git history with atomic commits

Validation

  • Validate commit messages against Conventional Commits 1.0.0
  • Detect incorrect types, scopes, formatting, or grammar
  • Suggest improved commit messages
  • Validate subject length
  • Detect non-imperative subjects
  • Detect unnecessary scopes

Pull requests

  • Generate PR titles from commits
  • Generate concise PR descriptions
  • Summarize major changes
  • Highlight breaking changes
  • List testing notes
  • Draft reviewer checklists

Releases

  • Generate changelog entries
  • Group commits into release categories
  • Draft release notes
  • Detect breaking changes
  • Generate migration notes
  • Summarize notable improvements

Key prompts

Generate commit from current changes

  • "Analyze the current Git working tree by running git diff and generate the best Conventional Commit."
  • "Review my current changes and recommend whether they should be split into multiple commits."
  • "Generate a Conventional Commit from the current unstaged changes."
  • "Generate a Conventional Commit from git diff --cached."

Generate commit from provided diff

  • "Generate a Conventional Commit from this Git diff."
  • "Analyze this patch and create the best Conventional Commit."
  • "Determine the intent of this change instead of describing modified files."
  • "Write a complete multi-line Conventional Commit including body and footer."

Improve commit quality

  • "Recommend a better commit scope."
  • "Suggest a shorter commit subject."
  • "Rewrite this commit message following Conventional Commits."
  • "Explain why this commit should be split."

Git workflow

  • "Review my Git changes before I commit."
  • "Suggest a clean staging strategy using git add -p."
  • "Identify unrelated modifications."
  • "Recommend the optimal commit order."

Validation

  • "Validate this Conventional Commit."
  • "Explain why this commit message is invalid."
  • "Rewrite this commit following Conventional Commits 1.0.0."

Pull requests

  • "Generate a PR title from these commits."
  • "Generate a complete PR description."
  • "Summarize these commits for reviewers."

Releases

  • "Generate changelog entries from these commits."
  • "Draft release notes for the next version."
  • "Generate migration notes for breaking changes."

Best practices

  • Always prioritize atomic commits.
  • Focus on the intent of the change rather than modified filenames.
  • Infer the correct commit type from behavior, not keywords.
  • Add a scope only when it provides meaningful context.
  • Keep commit subjects concise, imperative, and under 72 characters.
  • Do not end commit subjects with a period.
  • Include a body only when it adds useful context.
  • Recommend splitting unrelated changes into separate commits.
  • Prefer git add -p over staging everything when unrelated changes exist.
  • Review git diff before staging.
  • Review git diff --cached before committing.
  • Generate release notes from grouped Conventional Commits.
  • Follow Conventional Commits 1.0.0 whenever possible.

Temporary files

  • Never create temporary patch or diff files (for example *.patch or *.diff) unless the user explicitly requests them.
  • Prefer piping output directly to Git or the terminal instead of writing temporary files.
  • If a temporary file is required during execution, treat it as ephemeral:
    • Before creating a temporary file, verify whether it is ignored by Git (.gitignore); if not, avoid creating it or remove it before completing the task.
    • Remove the file before completing the task.
    • Never leave temporary artifacts behind or include them in commits.

Conventional Commit types

  • feat — Introduce a new feature
  • fix — Fix a bug
  • refactor — Improve code without changing behavior
  • perf — Improve performance
  • docs — Documentation only
  • style — Formatting without behavior changes
  • test — Add or update tests
  • build — Build system or dependencies
  • ci — Continuous integration
  • chore — Maintenance tasks
  • revert — Revert previous commits

Output guidelines

When generating commits:

  1. Analyze the complete Git diff.
  2. Identify the primary intent.
  3. Detect unrelated logical changes.
  4. Recommend splitting commits when appropriate.
  5. Produce valid Conventional Commit messages.
  6. Keep the history clean and review-friendly.
  7. Generate bodies only when they improve understanding.
  8. Include breaking-change footers when necessary.

Preferred output format:

type(optional-scope): concise imperative subject

Optional body explaining what changed and why.

BREAKING CHANGE: description (if applicable)

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.