Back to list
gupsammy

commit

by gupsammy

9🍴 2📅 Jan 23, 2026

SKILL.md


name: commit description: > Analyze and commit changes with intelligent file grouping and conventional commits. Use when user says "commit my changes", "commit this", "git commit", "save my work", "stage and commit", or mentions committing code. Also triggers on "create a commit" or "commit what I've done". model: claude-sonnet-4-5 context: fork allowed-tools:

  • Bash
  • Read
  • Grep
  • Glob
  • Skill
  • AskUserQuestion

Commit

Analyze uncommitted changes and create well-organized commits using conventional commit format.

Workflow

1. Discover Changes

git status --porcelain
git diff --stat

If no changes, report "Nothing to commit" and stop.

2. Stage Files

Run git add -A to stage all changes.

Exclude temporary files matching: scratch.*, temp.*, debug.*, playground.*, *.log, dist/, build/, target/, node_modules/.

If temporary files detected:

  1. Unstage with git reset HEAD <file>
  2. Ask user if they want to add to .gitignore

3. Analyze Commit Boundaries

For each changed file, write a one-line PURPOSE description (not file location).

Group by PURPOSE, not directory:

  • Same goal = one commit
  • Different goals = separate commits

Ask yourself: "Would I explain these as one thing or multiple things?"

Signs of separate concerns:

  • "Added X" AND "Fixed Y" (feature + bugfix)
  • Changes that could be reverted independently

If multiple concerns: Use git reset HEAD then git add <specific-files> for each group. Commit foundational changes first.

Handle renames (R status): When splitting, add BOTH old and new paths to preserve rename detection.

4. Validate (if available)

Check for project type and run validation:

  • Cargo.tomlcargo fmt --check && cargo build
  • package.jsonnpm run lint && npm run build (if scripts exist)
  • pyproject.tomlruff check . (if available)

Skip gracefully if tools unavailable. If validation fails, report error and stop.

5. Create Commit

Check recent commit style:

git log --oneline -10

Use conventional commit format:

<type>(<scope>): <description>

Types: feat, fix, docs, refactor, test, chore, perf

Rules:

  • Lowercase, no period, imperative mood
  • Max 72 chars for subject
  • NO Co-authored-by trailers
  • NO AI attribution
  • NO emojis

6. Push (if requested)

If user mentions "push" or arguments contain "push", use Skill: push-pr to push and optionally create a PR.

Output

Report: files committed, commit hash and message, excluded temporary files.

Score

Total Score

40/100

Based on repository quality metrics

SKILL.md

SKILL.mdファイルが含まれている

+20
LICENSE

ライセンスが設定されている

0/10
説明文

100文字以上の説明がある

0/10
人気

GitHub Stars 100以上

0/15
最近の活動

3ヶ月以内に更新がある

0/10
フォーク

10回以上フォークされている

0/5
Issue管理

オープンIssueが50未満

+5
言語

プログラミング言語が設定されている

+5
タグ

1つ以上のタグが設定されている

0/5

Reviews

💬

Reviews coming soon