commit

Proposes grouped git commits with conventional messages and waits for user confirmation.

Updated Aug 10, 2026
One-click install
npx skills add https://github.com/ledtorch/coding-agent-workflow --skill commit-ledtorch
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: commit
Source: https://github.com/ledtorch/coding-agent-workflow/tree/main/skills/commit
Command: npx skills add https://github.com/ledtorch/coding-agent-workflow --skill commit-ledtorch

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Writing consistent, well-scoped git commit messages is tedious and error-prone, especially when a working tree mixes several unrelated changes. This Skill inspects the repository state, groups changes by topic, and drafts convention-compliant commit messages for your approval. ## Core Features & Use Cases - Context-aware proposals: Reads git status, diffs, branch, and recent log to match the project's existing message style. - Topic-based grouping: Splits mixed changes into one logical commit per topic, or respects already-staged changes as the commit scope. - Conventional message format: Enforces type prefixes (feat, fix, refact, docs, chore, etc.), imperative tense, and a 72-character description limit. - Safety guardrails: Warns about potential secrets, never uses --no-verify or --force, and always waits for explicit Y/N confirmation before committing. - Use Case: After finishing a feature plus an unrelated config tweak, run the commit command to receive two separate proposed commits with proper types and scopes, then confirm to create them sequentially. ## Quick Start Ask the agent to commit the current changes using the commit workflow, then review the proposed messages and reply Y to confirm.

Frequently Asked Questions about commit

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

FAQPage Schema
How do I write conventional commit messages with git?

Use the format type(scope): description, where type is feat, fix, refact, docs, chore, or similar. Keep the description under 72 characters in imperative present tense, and match the existing style shown by git log.

How do I split mixed changes into multiple git commits?

Group changes by topic so each commit contains one logical change. Stage only the files belonging to one topic at a time, then create separate commits sequentially with their own type and scope prefixes.

Does the commit workflow handle already staged changes?

Yes. When changes are staged, the staged diff defines the commit scope and unrelated unstaged files are excluded. It only flags directly related forgotten files and asks whether to include them.

Can the agent commit without my confirmation?

No. Every proposal waits for an explicit Y or N response before creating commits. It also never uses --no-verify, --force, or amend unless you explicitly request it.

What happens if files contain secrets like .env or credentials?

The workflow refuses to commit files that may contain secrets such as .env files, credentials, or private keys, and warns you instead so you can exclude them before committing.