Now liveThe Skillselion MCP - thousands of ranked skills, loaded into your agent mid-task. No install.Get it →
ilteoood avatar

Git Commit

  • 220 installs
  • 2 repo stars
  • Updated July 24, 2026
  • ilteoood/harness

This is a copy of git-commit by github - installs and ranking accrue to the original listing.

Turn a messy working tree into one or more Conventional Commits with smart staging when you ask the agent to commit or run /commit.

About

git-commit is an agent skill that runs real git operations to produce Conventional Commits. It inspects your diff to infer the right type and optional scope, drafts a clear subject line, and can stage files in sensible batches instead of one giant commit. Solo builders use it throughout Build and Ship whenever they want semantic history without memorizing the spec or writing messages by hand. The skill encodes the full type table—from feat and fix through perf, test, build, and ci—and documents how to flag breaking changes in the footer. Because it is allowed to use Bash, the agent can stage, commit, and adjust in the same workflow you would run locally. It fits Cursor, Claude Code, and other agents that expose shell tools, and pairs well with PR and code-review skills that expect readable commit logs.

  • Derives type, scope, and description from the actual git diff—not generic messages
  • Supports 11 Conventional Commit types including feat, fix, docs, ci, and breaking-change footers
  • Intelligent staging to group related files into logical commits
  • Interactive overrides for type, scope, and description when you want control
  • Triggers on natural language (“commit changes”) and the /commit slash command

Git Commit by the numbers

  • 220 all-time installs (skills.sh)
  • +30 installs in the week ending Jul 25, 2026 (Skillselion tracking)
  • Security screen: LOW risk (skills.sh audit)
  • Data as of Jul 25, 2026 (Skillselion catalog sync)
npx skills add https://github.com/ilteoood/harness --skill git-commit

Add your badge

Show developers this skill is listed on Skillselion. Paste this into your README.

Listed on Skillselion
Installs220
repo stars2
Security audit3 / 3 scanners passed
Last updatedJuly 24, 2026
Repositoryilteoood/harness

What it does

Turn a messy working tree into one or more Conventional Commits with smart staging when you ask the agent to commit or run /commit.

Files

SKILL.mdMarkdownGitHub ↗

Git Commit with Conventional Commits

Overview

Create standardized, semantic git commits using the Conventional Commits specification. Analyze the actual diff to determine appropriate type, scope, and message.

Conventional Commit Format

<type>[optional scope]: <description>

[optional body]

[optional footer(s)]

Commit Types

TypePurpose
featNew feature
fixBug fix
docsDocumentation only
styleFormatting/style (no logic)
refactorCode refactor (no feature/fix)
perfPerformance improvement
testAdd/update tests
buildBuild system/dependencies
ciCI/config changes
choreMaintenance/misc
revertRevert commit

Breaking Changes

# Exclamation mark after type/scope
feat!: remove deprecated endpoint

# BREAKING CHANGE footer
feat: allow config to extend other configs

BREAKING CHANGE: `extends` key behavior changed

Workflow

1. Analyze Diff

# If files are staged, use staged diff
git diff --staged

# If nothing staged, use working tree diff
git diff

# Also check status
git status --porcelain

2. Stage Files (if needed)

If nothing is staged or you want to group changes differently:

# Stage specific files
git add path/to/file1 path/to/file2

# Stage by pattern
git add *.test.*
git add src/components/*

# Interactive staging
git add -p

Never commit secrets (.env, credentials.json, private keys).

3. Generate Commit Message

Analyze the diff to determine:

  • Type: What kind of change is this?
  • Scope: What area/module is affected?
  • Description: One-line summary of what changed (present tense, imperative mood, <72 chars)

4. Execute Commit

# Single line
git commit -m "<type>[scope]: <description>"

# Multi-line with body/footer
git commit -m "$(cat <<'EOF'
<type>[scope]: <description>

<optional body>

<optional footer>
EOF
)"

Best Practices

  • One logical change per commit
  • Present tense: "add" not "added"
  • Imperative mood: "fix bug" not "fixes bug"
  • Reference issues: Closes #123, Refs #456
  • Keep description under 72 characters

Git Safety Protocol

  • NEVER update git config
  • NEVER run destructive commands (--force, hard reset) without explicit request
  • NEVER skip hooks (--no-verify) unless user asks
  • NEVER force push to main/master
  • If commit fails due to hooks, fix and create NEW commit (don't amend)

Related skills

FAQ

Is Git Commit safe to install?

skills.sh reports 3 of 3 security scanners passed. Review the Security Audits panel on this page before installing in production.

This week in AI coding

Five minutes, every Monday - the tools, releases and tactics for developers.

unsubscribe anytime.