commit

Creates scoped git commits with conventional message formatting and authorization checks.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Making git commits without clear scope or message conventions leads to messy history, accidental inclusion of unrelated changes, and inconsistent commit messages across a repository. ## Core Features & Use Cases - Scope Enforcement: Determines authorized changes from the user's request, inspects git status and diffs, and stops to ask when unrelated changes create ambiguity. - Message Conventions: Follows the repository's documented convention or infers one from recent history, falling back to <type>(<scope>): <summary> format with types like feat, fix, docs, and refactor. - Safe Staging and Committing: Stages only explicit intended paths, reviews the cached diff before committing, keeps hooks enabled, and reports the resulting commit SHA. - Use Case: After finishing a bug fix, ask the agent to commit only the parser changes; it stages those files, writes fix(parser): reject empty input, runs hooks, and reports the SHA without touching unrelated work. ## Quick Start Commit only the changes in the src/parser directory with an appropriate conventional commit message.

Frequently Asked Questions about commit

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

FAQPage Schema
How do I write a conventional commit message in git?▼

Use the format `<type>(<scope>): <summary>` with types like feat, fix, docs, refactor, chore, test, or perf. Keep the summary imperative, under 72 characters, with no trailing period, for example `fix(parser): reject empty input`.

How do I commit only specific files in git?▼

Stage explicit intended paths with `git add <path>` rather than `git add -A`, then review `git diff --cached` before committing. If pre-staged changes fall outside your intended scope, stop and clarify rather than including or unstaging them.

What should I do when a repository has no commit message convention?▼

First check for documented conventions, then inspect recent history with `git log -10 --pretty=format:%s` to infer the pattern. If neither establishes a convention, default to the conventional commits format with a type prefix and imperative summary.

Does committing authorize pushing or amending changes?▼

No, committing does not authorize pushing, amending, or switching branches. Each of those actions requires separate explicit authorization from the user before proceeding.

What happens when pre-commit hooks fail?▼

Commits run with hooks enabled, and failures are fixed only within the authorized scope of the change. If a hook failure cannot be resolved within that scope, the blocker is reported rather than bypassed.