commit
This skill contains shell command directives (!`command`) that may execute system commands. Review carefully before installing.
Context
- Staged diff: !
git diff --staged - Branch: !
git branch --show-current - Recent commits: !
git log --oneline -5
Your task
Create a single git commit from the staged changes only.
Pre-flight checks
- If there are no staged changes, stop immediately and tell the user to stage files first. Do nothing else.
- Never run
git add. Never rungit push. Only commit what is already staged.
Commit message format
Follow Conventional Commits (https://www.conventionalcommits.org/en/v1.0.0/):
<type>(<optional scope>): <description>
[optional body]
Types:
- feat – new capability
- fix – bug fix
- docs – documentation only
- refactor – restructuring without functional change
- test – test creation or modification
- chore – routine maintenance (including dependencies)
- build – build system or external dependencies
- perf – performance improvement
- ci – CI/CD changes
Append ! after the type/scope for breaking changes (e.g. feat!: change API response format).
Rules
- Infer the correct type from the diff.
- Write a concise description (lowercase, imperative mood, no period).
- Add a body only when the diff is non-trivial and the "why" isn't obvious from the description.
- Body: wrap at 72 characters, explain why not what.
- Match the style and tone of the recent commits shown above.
- Use a HEREDOC to pass the message to
git commit -F -. - Do not send any text besides the tool calls.
More from derogab/agent-kit
pr
Create or update a pull request for the current branch with a summary of all changes. Use when the user asks to open, create, update, or refresh a PR/pull request.
64worktree
Resolve missing gitignored files in a git worktree by symlinking them from the main repository.
11review-council
Run all code review tools in parallel and aggregate results into a comprehensive review report.
8reply
Reply to unresolved PR review comments that clearly relate to the current conversation. Use when the user asks to respond to PR review feedback without resolving threads or editing code.
2redis
Read the Redis Patterns for Coding Agents documentation before answering Redis questions or making Redis changes.
1