commit
Generates well-structured git commits following conventional standards, including summary, rationale, and validation notes.
Install
mkdir -p .claude/skills/commit-sushaantu && curl -L -o skill.zip "https://agentskills.codes/api/skills/download/15442" && unzip -o skill.zip -d .claude/skills/commit-sushaantu && rm skill.zipInstalls to .claude/skills/commit-sushaantu
Activation
This is the description your AI agent reads to decide when to run this skill — the better it matches your request, the more reliably it fires.
Create a well-formed git commit from current changes using session history forKey capabilities
- →Read session history for intent and rationale
- →Inspect working tree and staged changes
- →Stage intended changes, including new files
- →Choose a conventional type and optional scope
- →Write a subject line in imperative mood, 72 characters or fewer
- →Create the commit with `git commit -F <file>`
How it works
The skill reads session history and git changes, then constructs a commit message following conventional guidelines, including a summary, rationale, and test information.
Inputs & outputs
When to use commit
- →Commit staged work
- →Create conventional commit
- →Finalize changes with rationale
About this skill
Commit
Goals
- Produce a commit that reflects the actual code changes and the session context.
- Follow common git conventions with a concise subject and wrapped body.
- Include both summary and rationale in the body.
Inputs
- Codex session history for intent and rationale.
git status,git diff, andgit diff --stagedfor actual changes.- Repo-specific commit conventions if documented.
Steps
- Read session history to identify scope, intent, and rationale.
- Inspect the working tree and staged changes.
- Stage intended changes, including new files, after confirming scope.
- Sanity-check newly added files and flag anything that looks like an artifact, log, or temp file.
- If staging is incomplete or includes unrelated files, fix the index or ask for confirmation.
- Choose a conventional type and optional scope that match the change.
- Write a subject line in imperative mood, 72 characters or fewer, without a trailing period.
- Write a body that includes:
- Summary of key changes.
- Rationale and trade-offs.
- Tests or validation run, or an explicit note if not run.
- Append a
Co-authored-bytrailer for Codex usingCodex <[email protected]>unless the user explicitly requests a different identity. - Wrap body lines at 72 characters.
- Create the commit with
git commit -F <file>or equivalent so newlines are literal. - Ensure the message matches the staged changes before committing.
Template
<type>(<scope>): <short summary>
Summary:
- <what changed>
- <what changed>
Rationale:
- <why>
- <why>
Tests:
- <command or "not run (reason)">
Co-authored-by: Codex <[email protected]>
When not to use it
- →When staging is incomplete or includes unrelated files and confirmation is not desired
- →When a commit message should not follow common git conventions
Limitations
- →The commit message subject line is limited to 72 characters or fewer
- →Body lines are wrapped at 72 characters
- →Requires confirmation if staging is incomplete or includes unrelated files
How it compares
This skill automates the creation of a structured commit message by analyzing session context and code changes, unlike manually crafting a commit message.
Compared to similar skills
commit side by side with the closest alternatives in the catalog.
| Skill | Installs | Updated | Safety | Difficulty |
|---|---|---|---|---|
| commit (this skill) | 0 | 2mo | No flags | Beginner |
| resolve-conflicts | 81 | 8mo | Review | Intermediate |
| dependency-upgrade | 26 | 5mo | Review | Intermediate |
| git-commits | 21 | 4mo | No flags | Beginner |
Try saying
Example prompts that trigger this skill in your AI assistant.
More by sushaantu
View all by sushaantu →You might also like
resolve-conflicts
antinomyhq
Use this skill immediately when the user mentions merge conflicts that need to be resolved. Do not attempt to resolve conflicts directly - invoke this skill first. This skill specializes in providing a structured framework for merging imports, tests, lock files (regeneration), configuration files, and handling deleted-but-modified files with backup and analysis.
dependency-upgrade
wshobson
Manage major dependency version upgrades with compatibility analysis, staged rollout, and comprehensive testing. Use when upgrading framework versions, updating major dependencies, or managing breaking changes in libraries.
git-commits
bonny
Create well-structured git commits in logical chunks following best practices
git-advanced-workflows
wshobson
Master advanced Git workflows including rebasing, cherry-picking, bisect, worktrees, and reflog to maintain clean history and recover from any situation. Use when managing complex Git histories, collaborating on feature branches, or troubleshooting repository issues.
github-multi-repo
ruvnet
Multi-repository coordination, synchronization, and architecture management with AI swarm orchestration
git-workflow-enforcer
CrazyDubya
Ensures commits follow conventional commits, branch naming conventions, and PR templates. Use when creating commits, branches, or PRs, or when user mentions git workflow.