committing-code

Installation
SKILL.md

Smart Commit

Group changed files logically into focused, atomic commits.

Step 1: Gather State

Run in parallel:

git status --porcelain
git diff --name-status HEAD
git log --oneline -8

If no changes: Say "Nothing to commit" → stop.

Step 2: Analyze & Present

Group files by: feature (impl+tests), fix (bug+test), refactor, docs, config

Match commit style from recent history.

Present proposed commits:

Proposed commits:

1. feat: add user validation
   - src/validate.ts
   - src/validate_test.ts

2. docs: update README
   - README.md

Step 3: Execute

Never stage files matching .env, *.pem, *credentials*, or *secret*. Flag to user if detected in changes.

For each group, run git add + commit.

User will be prompted to approve each write operation (git add/commit not pre-allowed).

Step 4: Summary

Show git status and list commits created.


Related skills
Installs
3
GitHub Stars
19
First Seen
Apr 14, 2026