commit

Group dirty Git working tree changes into logically structured commits.

2|Updated May 22, 2026
One-click install
npx skills add https://github.com/sunsided/commit-skills --skill commit-sunsided
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: commit
Source: https://github.com/sunsided/commit-skills/tree/main/commit
Command: npx skills add https://github.com/sunsided/commit-skills --skill commit-sunsided

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill helps you convert a messy working tree into a set of logically grouped, well-written commits that a reviewer can understand quickly and safely.

Core Features & Use Cases

  • Auto-detect commit message style: Detects the repository's commit convention (Conventional Commits, plain imperative, ticket-prefixed, etc.) by checking policy files and recent history.
  • Group changes by intent: Splits unrelated work into separate commits while keeping tightly coupled changes together, including tests and wiring.
  • Write reviewer-friendly messages: Produces a commit subject plus a rationale-focused body (Why/Before/After/Findings as appropriate) and surfaces issue links when available.
  • Stages and commits safely: Uses explicit file lists for git add, avoids committing secrets, and asks for confirmation when boundaries are ambiguous.

Quick Start

Ask the AI to commit your current changes with commit messages that match this repository’s style, splitting unrelated work into separate commits and including reviewer-oriented explanations and any relevant issue links.

Frequently Asked Questions about commit

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I split dirty Git changes into clean, logically grouped commits?

To split dirty Git changes into clean commits, the tool reads your working tree diffs, detects logical groupings by intent, stages explicit file lists, and writes reviewer-friendly messages. It then asks for your approval before executing the commits.

How do I write conventional commit messages that match my repository's history?

You can write conventional commit messages that match your history by analyzing recent Git log entries and policy files. The tool auto-detects your repository's commit convention and generates imperative-style or ticket-prefixed messages accordingly.

What is the best way to group code changes before a pull request?

The best way to group code changes before a pull request is to separate unrelated work into distinct commits while keeping tightly coupled changes, including tests and wiring, together in a draft commit plan for user review.

How do I extract issue links from Git branches and include them in commit bodies?

To extract issue links from Git branches and include them in commit bodies, the tool optionally parses branch names, diffs, and history. It then surfaces these issue links within the extended rationale-focused message body.

Can I commit specific file refactors without staging secrets or unsafe artifacts?

Yes, you can commit specific file refactors safely because the tool uses explicit file lists for git add and avoids committing secrets. It asks for confirmation when boundaries are ambiguous to prevent unsafe artifacts.