CO
commit
Create a well-formed git commit from current changes using session history for
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 for78 chars · catalog descriptionno explicit “when” trigger
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]>