git-commit

Create git commits using conventional commits with scopes. Use when the user asks to commit, make a commit, save changes, or any git commit operation. Never include Co-Authored-By lines, AI agent mentions, or any reference to Claude, AI, or automated tooling in commit messages.

Safety Notice

This listing is imported from skills.sh public index metadata. Review upstream SKILL.md and repository scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "git-commit" with this command: npx skills add bresends/skills/bresends-skills-git-commit

Git Commit

Rules

  • Never add Co-Authored-By lines to commit messages
  • Never mention Claude, AI, agent, copilot, or any automated tooling
  • Never commit two unrelated changes together. Commits should be atomic.
  • Commits must look like they were written by a human developer

Format

type(scope): subject

body (optional)
  • subject: lowercase, imperative mood, no period, max 72 chars
  • body: wrap at 72 chars, explain why not what, separated by blank line

Types

TypeUse for
featNew feature
fixBug fix
refactorCode change that neither fixes nor adds
docsDocumentation only
styleFormatting, semicolons, no code change
testAdding or updating tests
choreBuild, tooling, deps, no production code
perfPerformance improvement
ciCI/CD configuration

Scope

Derive the scope from the primary area of change:

  • Module or package name (auth, api, db)
  • Feature area (login, checkout, search)
  • Layer (ui, server, cli)

Omit scope only when the change is truly project-wide.

Workflow

  1. Run git status and git diff --staged (or git diff if nothing staged)
  2. Identify the primary change type and scope
  3. Write the commit message
  4. Stage relevant files by name (avoid git add . or git add -A)
  5. Commit using a HEREDOC:
git commit -m "$(cat <<'EOF'
type(scope): subject

optional body
EOF
)"

Important Guideline

If a commit has the word end it means it is not atomic. Break into more than 1 to make them isolated.

Examples

feat(auth): add password reset flow

Allow users to reset their password via email link.
Tokens expire after 30 minutes.
fix(api): handle null response from payment gateway
refactor(db): extract query builder into separate module
chore(deps): upgrade react to v19

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

General

git-commit

No summary provided by upstream source.

Repository SourceNeeds Review
General

git-commit

No summary provided by upstream source.

Repository SourceNeeds Review
General

git-commit

No summary provided by upstream source.

Repository SourceNeeds Review