smart-commit
Smart Commit examines your uncommitted changes, organizes them into logically cohesive groups, and generates commit messages that match your project's style conventions. By default it outputs git commands for manual review; use the `--execute` flag to run commits directly after confirmation.
Smart Commit analyzes uncommitted changes, groups them by cohesion, and generates commit messages matching your project style.
AI-generated summary based on this skill's SKILL.md
Install
sd0xdev/sd0x-dev-flow/smart-commit · repository language: JavaScript
git clone https://github.com/sd0xdev/sd0x-dev-flow
cp -r sd0x-dev-flow/skills/smart-commit ~/.claude/skills/smart-commitnpx skillfed install sd0xdev/sd0x-dev-flow/smart-commitFrequently asked questions
AI-generated answers based on this skill's SKILL.md and metadata
How does smart-commit batch commit with messages?
Smart Commit analyzes your uncommitted changes and organizes them into logically cohesive groups. It then generates commit messages for each group that match your project's style conventions. By default, smart-commit outputs the git commands for your review; you can inspect them before deciding whether to proceed.
What does smart-commit do in --execute mode?
Smart Commit's `--execute` flag automatically runs the git add and commit commands after you approve them. This streamlines the workflow by eliminating the manual copy-paste step, while still requiring your confirmation before any changes are committed to your repository.
Can smart-commit auto-generate commit messages?
Yes. Smart Commit examines your uncommitted changes and automatically generates commit messages tailored to each logical group of modifications. It learns your project's commit style conventions and applies consistent formatting across all generated messages.
Does smart-commit verify git configuration before committing?
Smart Commit verifies your git identity, signing configuration, and pre-commit checks before committing. This ensures your commits meet your repository's requirements and that your identity is properly configured.
How can I scope changes to avoid committing unrelated files?
Smart Commit supports filtering changes by session or path, allowing you to narrow the scope of what gets analyzed and committed. This helps prevent accidentally bundling unrelated modifications into a single commit batch.
SKILL.md
rendered from the published skill — quoted content, verbatim
Smart Commit
Analyze uncommitted changes → group by cohesion → generate commit messages → output git commands (or execute directly with --execute).
Workflow
```mermaid sequenceDiagram participant C as Claude participant U as User C->>C: Step 1a: Detect permissions C->>C: Step 1b: Learn commit style C->>C: Step 1c: Identity diagnostics C->>C: Step 1d: Signing diagnostics C->>C: Step 1e: AI guard readiness C->>C: Step 2: Pre-flight check (precommit) C->>C: Step 3: Collect changes + exclude sensitive files C->>C: Step 4: Group (high cohesion) C->>U: Show commit plan (with Author/Signing/Guard) U->>C: Confirm/adjust loop Each commit group C->>C: Read diff → generate
(truncated - see the full file via the links below)
Read as markdown · JSON record · Browse the source repository
File tree — 2 files
skills/smart-commit/SKILL.md
skills/smart-commit/references/execute-mode.md