agentleFS
LongJohnSilver1504LongJohnSilver1504/claude-skills/skills/git-commit/SKILL.md

git-commit

Skill1 starsChanged 57 days agoMITView on GitHub

Create git commits following the project's conventional commit style with descriptive bullet-point bodies. Use when user says "commit", "save changes", or invokes /commit.

  • Reads credentials

174 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use git-pr, github-pr-create and 10 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.
  • klauswgSkill

    git-pr

    Prepare, review, publish, or update a complete GitHub pull request for the current repository, including local commit readiness, safe push strategy, semantic title validation, repository-native PR templates, issue linking, and checks verification. Use when the user asks to draft, create, submit, publish, open, or update a pull request. Always require the user to review and explicitly approve the exact final PR before any push or GitHub write.

    Also in 11 projects that use this

  • mjun0812Skill

    github-pr-create

    Pull Requestを作成するSkill。現在のbranchからpull requestを作成する。言語指定可能。 ユーザーが「PR作って」「pull request作成して」のように依頼したら使うこと。

    Also in 3 projects that use this

  • MicrosoftSkill

    git-branch

    Branch management for implementation. Use when you need to create a branch, switch branches, checkout, or verify branching strategy before implementing code. Do not use for commits (use git-commit), pull requests (use pull-request), or advanced git operations (rebase, merge).

    Also in 4 projects that use this

  • klauswgSkill

    git-issue

    Prepare, review, create, or update evidence-based GitHub issues for the current repository with duplicate detection, repository-native templates, valid labels, and post-publication verification. Use when the user asks to draft, file, submit, publish, edit, or refine a GitHub issue, bug report, feature request, performance issue, or technical proposal. Always require the user to review and explicitly approve the exact final issue before any GitHub write.

    Also in 3 projects that use this

  • gologo13Skill

    git-push

    Push current branch to origin and sync with remote updates; keywords: git, rebase. Use only on explicit request; before execution, review diffs and list impact scope.

    Also in 6 projects that use this

  • GoogleSkill

    github-pr-review

    Review a GitHub pull request and leave inline comments in a natural human reviewing voice, indistinguishable from comments typed by hand on the GitHub web UI. Deliberately bounded to defects a reader can settle by looking at the anchored line, rather than a deep audit, so every comment is cheap for the author to check. Scales to 2-20 comments by PR size, parallelises analysis across sub-agents, drafts for approval, then posts individually with human pacing. Use when the user says "review this PR", "review PR 123", pastes a github.com/.../pull/N link, or asks for comments on a pull request. Don't use for reviewing local uncommitted changes or a diff against a branch (use the `review` skill for that).

    Also in 4 projects that use this

The file

We split this skill into the rules it gives an agent

11 rules. 0 are common, 7 are distinctive, and 4 are very specific to this project.

  • 0

    Common

    Most of the 134 edited versions we read keep these.

  • 7

    Distinctive

    This author's own choices. Worth a look.

  • 4

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Create git commits following the project's conventional commit style with descriptive bullet-point bodies.

    line 8
  2. Distinctive:

    After completing a feature, fix, or refactor

    line 13
  3. Very specific:

    When user invokes /commit

    line 14
  4. Distinctive:

    Start with capital letter after the colon

    line 38
  5. Distinctive:

    No period at the end

    line 39
  6. Distinctive:

    Not every commit group will apply — skip empty groups.

    line 82
  7. Very specific:

    When execute-tasks invokes this skill for a checkpoint, skip the confirmation and Step 1's grouping — it is one commit:

    line 94
  8. Very specific:

    Commit locally and never push — publishing is finish-feature's decision.

    line 98
  9. Distinctive:

    Do NOT stage files that contain secrets (.env, credentials)

    line 109
  10. Distinctive:

    Run git status after all commits to confirm clean working tree.

    line 113
  11. Very specific:

    When a PR follows the commit, the base is the project's base/integration branch from docs/agents/project-conventions.md, never assumed to …

    line 177

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

Git Commit

Create git commits following the project's conventional commit style with descriptive bullet-point bodies.

When to Use

  • User says "commit", "save changes", "create a commit"
  • After completing a feature, fix, or refactor
  • When user invokes /commit

Commit Style

Based on the project's commit history, commits follow this format:

Subject Line

{type}: {Short imperative description}

Types:

TypeWhen
featNew feature or capability
fixBug fix
refactorCode restructuring without behavior change
choreDependencies, config, tooling, cleanup
testAdding or updating tests
docsDocumentation only

Rules:

  • Imperative mood ("Create", "Add", "Update", "Fix" — not "Created", "Added")
  • Start with capital letter after the colon
  • No period at the end
  • Under 72 characters

Body (Required for non-trivial commits)

- Bullet point describing a key change
- Another key change
- Group related changes logically

Rules:

  • Each bullet starts with - (dash + space)
  • Each bullet is imperative mood ("Add X", "Update Y", "Wire Z")
  • Focus on WHAT changed, not WHY (the subject covers the why)
  • 3-8 bullets typical for feature commits
  • Skip the body for single-file trivial changes

No Co-Authored-By

Per user preference, do NOT add Co-Authored-By lines.

Process

Step 0: Build Freshness

Ensure a successful build ran since the last source change — the plugin's check-build-before-commit hook blocks git commit when the build output is stale relative to source files. If stale (or unsure), run the project's build command (from docs/agents/project-conventions.md; e.g. pnpm build) and confirm it succeeds before proceeding. One fresh build covers all split commits in the same session.

Step 1: Analyze and Group Changes

Split changes into multiple focused commits by layer/concern. Never combine everything into one monolithic commit.

Grouping order (commit in this sequence):

OrderTypeWhat belongs
1choreshadcn installs, dependencies, config, tooling
2featShared infrastructure (ui/custom/, shared/)
3featDomain layer (types, pure functions, state logic)
4featFeature code (API adapters, hooks, components, page wiring)
5testTests (.test.ts, .test.tsx)
6docsPRDs, UX specs, README updates

Not every commit group will apply — skip empty groups. If a group has only 1-2 trivial files, it can merge into the nearest related group.

For each group:

  • Identify the type (feat/fix/refactor/chore/test/docs)
  • Draft subject line and body bullets

Step 2: Confirm With the User

Always confirm with the user before creating any commit (standing preference — never auto-commit), except the Pipeline checkpoint below. Present the planned groups with their draft messages and wait for approval before staging anything.

Pipeline checkpoint (exception to Step 2)

When execute-tasks invokes this skill for a checkpoint, skip the confirmation and Step 1's grouping — it is one commit:

  • Stage by name only the files PROGRESS.md lists for the deliverables in this checkpoint, plus PROGRESS.md itself; on the final checkpoint, also the run report docs/agents/runs/<feature>-<YYYY-MM-DD>.json (this commit is the one that carries it). Anything else in git status stays unstaged — it is not part of those deliverables.
  • Message chore(checkpoint): <deliverable ids>.
  • Commit locally and never push — publishing is finish-feature's decision.

The user launching execute-tasks is the request. Every other invocation confirms.

Step 3: Stage and Commit Each Group

For each approved group:

  1. Stage specific files by name — never use git add -A or git add .
  2. Commit with the drafted subject and body, then move to the next group
  • Do NOT stage files that contain secrets (.env, credentials)

Step 4: Verify

Run git status after all commits to confirm clean working tree.

Examples

Feature commit (multi-file)

feat: Create reservation details feature

- Add reservation detail page with checkout guide dialog
- Implement multi-step dialog with embla carousel and numbered pills
- Add location API adapter with AppError transformation
- Add checkout guide store with zustand for auto-open timer
- Wire Sonner toast provider in _app.tsx
- Route file is thin re-export, page component lives in feature

Refactor commit

refactor: Move custom UI components to ui/custom

- Move AppContainer, BackButton, AppNavbar, LanguageSelector
  from shared/layouts/ to ui/custom/
- Move ProgressMeter and Stepper from shared/components/ to ui/custom/
- Separate custom hand-crafted UI from shadcn CLI-managed primitives

Fix commit

fix: Correct store data extraction in checkout flow

- Update monthly and annual pay-invoice pages to access nested data property

Chore commit

chore: Update dependencies and config

- Add embla-carousel, sonner, and zustand dependencies
- Add jsdom polyfills for Radix UI pointer capture APIs
- Update .gitignore and tsconfig build info

Small commit (no body needed)

feat: Create shared links

Anti-Patterns

  • Don't use past tense — "Created" → "Create", "Added" → "Add"
  • Don't use git add . — stage specific files
  • Don't combine unrelated changes — split into separate commits
  • Don't add Co-Authored-By — user preference
  • Don't skip the body for multi-file changes
  • Don't amend previous commits unless explicitly asked
  • Don't push unless explicitly asked

PR Base

When a PR follows the commit, the base is the project's base/integration branch from docs/agents/project-conventions.md, never assumed to be main.

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.