Skip to content
Skillpedia
Deploy & cloud (DevOps)11k · #11720

git-commit

What it does

This skill guides the AI in saving changes to a git project in a tidy way. It is for developers who want clear commit messages and well-described pull requests.

When to use it

  • ✓When you are about to commit changes to a git project.
  • ✓When your changes mix several unrelated topics and need to be split into separate commits.
  • ✓When you want to open a pull request with a clear title and description.

Skill link

https://github.com/spinabot/brigade/blob/main/skills/git-commit/SKILL.md

Copy it and paste it into your AI (Claude, ChatGPT or Cursor), asking it to follow the instructions.

How to use

The easiest way: copy the message and paste it into your AI. It reads the skill and follows the instructions.

Ready-to-paste message

Use this skill to help me: https://github.com/spinabot/brigade/blob/main/skills/git-commit/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
Want your AI to find skills like this on its own?Install the free Skillpedia MCP: one line, and it searches 15,000+ skills before each task.Install in 1 minute →

Example of what to ask your AI

“Commit my changes in this project with a clean message, and open a pull request against the main branch.”

5 new skills a week. 1 minute to read.

How it works

The AI checks exactly which files are staged, writes a short message in a standard style, and splits unrelated work into separate commits. For pull requests, it pushes the branch and creates the request with the GitHub command line tool.

Technical content (original SKILL.md)

Original text by the author, straight from GitHub.

Git commits & PRs

Use this when committing changes or opening a pull request.

Before committing

  • Run git status and git diff --staged to see exactly what's going in. Never git add -A blindly — stage the files that belong to this change.
  • Keep one logical change per commit. If the diff does two unrelated things, make two commits.
  • Don't commit secrets, large binaries, or generated artifacts. Check .gitignore covers them.

Message format

Conventional Commits:

<type>(<optional scope>): <short imperative summary>

<optional body — what changed and WHY, wrapped at ~72 cols>

Types: feat, fix, docs, refactor, test, chore, perf, build, ci.

  • Summary in the imperative mood ("add", not "added"), ≤72 chars, no trailing period.
  • The body explains the reasoning a future reader needs — not a restatement of the diff.

Pull requests (gh CLI)

  • git push -u origin <branch> then gh pr create --fill (or --title/--body).
  • PR body: what changed, why, and how it was verified (tests run, manual checks).
  • Confirm the base branch is correct before creating.

Conventions to honor

Match the repository's existing style — read recent git log --oneline first and follow whatever format the project already uses if it differs from the above.

FAQ

What commit message style does it use?

It uses Conventional Commits, a standard format with a type such as fix or feat and a short summary.

Will it add all my files at once?

No. It stages only the files that belong to the change, instead of adding everything.

Does it follow the project's own style?

Yes. It reads recent commit history first and follows the style the project already uses.

Details

Original description by the author

Stage, write, and structure git commits and pull requests cleanly. Read this before committing — for conventional-commit message format, when to split commits, and how to open a PR with the gh CLI.

repo: spinabot/brigade

Popularity

GitHub stars
11k
Ranking position
#11720
License
MIT
Updated
11/2/2026

Is this skill useful?

0

Sign in to vote.

Comments

  • …

More skills from this repository

Similar skills