commit
Interactively generates commit messages, runs checks, and commits changes after confirmation.
Install
mkdir -p .claude/skills/commit-kabroxiko && curl -L -o skill.zip "https://agentskills.codes/api/skills/download/10274" && unzip -o skill.zip -d .claude/skills/commit-kabroxiko && rm skill.zipInstalls to .claude/skills/commit-kabroxiko
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.
Interactive `/commit` assistant command: propose commit message from git diff, stage all changes, and commit after confirmation.Key capabilities
- →Inspect repository status
- →Run automated checks
- →Generate commit messages
- →Stage changes
- →Execute commits
How it works
It inspects the repository, delegates checks to focused skills, generates a narrative commit message, and executes the commit upon confirmation.
Inputs & outputs
When to use commit
- →Propose commit message from diff
- →Stage changes automatically
- →Run commit-time security checks
About this skill
When the user invokes the /commit command, the assistant will:
When the user invokes /commit, the assistant performs three distinct phases:
-
Inspect the repository and working tree (sanity + changed files):
- Run
git status --porcelain --branchandgit diff --name-only --diff-filter=AM HEADto determine branch health andchanged_set. - If a merge/rebase/conflict is in progress, abort and ask the user to resolve it.
- Run
-
Run checks (delegated):
-
Rather than relying on a single helper script,
/commitdelegates checks to discrete, focused skills named below:formatters— formatting and autofixes.linters— linting and non-fixable errors.dependencies— dependency vulnerability and outdated-package checks (NVD/OSV/GHSA-aware).docker-scout— Dockerfile/image vulnerability scan usingdocker scout quickview.secret-scan— secret scanning.large-files— large file detection (>5MB).eslint-provision— optional ESLint provisioning when JS/TS files changed.
-
Each check skill describes its invocation, exit codes, and when the assistant must pause for confirmation.
-
When the
/commitorchestrator invokes these checks it MUST call thechecksskill withscope=changedso sub-skills operate only on the computedchanged_set. -
The
/commitorchestrator accepts an optional--skip-checks(orskip_checks) flag. When provided, the assistant will skip invoking thechecksskill entirely and proceed directly to commit-message generation and staging. This is intended for advanced workflows where the caller intentionally bypasses automated checks; use with caution.NOTE:
checkshere refers to an assistant/skill invocation, not an OS shell program. The assistant should invoke the repository'schecksskill (for example, via the assistant's skill/capability API), and must not attempt to run a literalcheckscommand in the user's shell. Example skill-like invocations (conceptual):checks --scope=changed(invoke the checks skill to run all checks against changed files)- Or skip checks when invoking
/commitby passing--skip-checks, e.g./commit --skip-checks. checks --check=linters --scope=changed(invoke the checks skill to run only linters against changed files)
If the
checksskill is not available, the assistant should skip running checks and continue to the commit-message generation and staging steps.
-
-
-
Commit message generation and commit execution:
-
The assistant synthesizes a multiline commit message based on the actual content changes (the diff), not simply a list of filenames, and presents it for user confirmation/edit. The assistant MUST inspect the diffs for the computed
changed_set(for example viagit diff --stagedorgit diff HEAD -- <paths>) and summarize what was changed and why at a code/content level. The required format is:- A concise one-line header (summary) — preferably <= 50 characters.
- A blank line.
- An unstructured narrative paragraph (one or more sentences) describing the change in freeform prose. The narrative should explain the reason for the change, what was modified (behaviour, API, tests, docs), and any developer- or user-visible impact. When relevant, mention added or updated tests and migration steps.
-
Guidance for message content:
- Prefer summarizing the content of diffs: code paths modified, bugs fixed, logic added or removed, and tests added. Do not default to enumerating filenames; only include filenames when they provide helpful context (e.g., "update config loader in
settings.go"). - Highlight user-facing changes, breaking changes, or required follow-ups (e.g., run
go mod tidy, database migrations, ornpm install). - Keep the header atomic and the body explanatory and actionable for other developers.
Example:
Fix crash on startup when config missing
The app attempted to read an unset env var and panicked; add a safe fallback and unit tests to cover the code path. No user-facing impact; developers should run
make testafter pulling. - Prefer summarizing the content of diffs: code paths modified, bugs fixed, logic added or removed, and tests added. Do not default to enumerating filenames; only include filenames when they provide helpful context (e.g., "update config loader in
-
For the final staging/commit step the assistant will: - Present the proposed commit message and a summary of the changed files for user confirmation; by default, when the user approves, stage all changes. - If the user approves, execute the necessary
gitcommands directly in the working tree, for example:git add --all # Use a heredoc to provide a multiline commit message safely git commit --file=- <<'COMMIT_MSG' <One-line header> <Unstructured narrative describing why the change was made, what changed, and any impact> COMMIT_MSG- If the user prefers to run commands locally, provide the exact
gitcommands to run and do not execute them automatically.
- If the user prefers to run commands locally, provide the exact
-
Rules & constraints:
- Never push to remotes automatically.
- Each check is a separate skill and must be implemented or provided by the repository owner if the repo requires deterministic automation.
- The assistant must not conflate multiple checks into a single script without explicit repository policy that mandates it.
See the sibling checks-* skills for details on each check's behavior and exit codes.
- checks/formatters — formatting and autofixes.
When not to use it
- →Pushing to remotes automatically
- →Committing during active merge/rebase
Prerequisites
Limitations
- →Does not push to remotes automatically
How it compares
It automates the entire commit preparation and validation process instead of manual staging and message writing.
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 | Intermediate |
| resolve-conflicts | 81 | 8mo | Review | Intermediate |
| git-advanced-workflows | 11 | 2mo | Review | Advanced |
| nx-workspace | 4 | 6mo | Review | Beginner |
Try saying
Example prompts that trigger this skill in your AI assistant.
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.
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.
nx-workspace
nrwl
Explore and understand Nx workspaces. USE WHEN answering any questions about the nx workspace, the projects in it or tasks to run. EXAMPLES: 'What projects are in this workspace?', 'How is project X configured?', 'What targets can I run?', 'What's affected by my changes?', 'Which projects depend on library Y?', or any questions about Nx workspace structure, project configuration, or available tasks.
fix-github-issue
AgnosticUI
Fix a GitHub issue by number. Use when asked to fix GitHub issues.
rebase-pr
AztecProtocol
Rebase a PR on its base branch, fix conflicts, and verify build
resolve-pr-parallel
EveryInc
Resolve all PR comments using parallel processing. Use when addressing PR review feedback, resolving review threads, or batch-fixing PR comments.