Showing 28 verified skills. 284 preview entries are hidden until we confirm a real source. Show preview skills · Why?
Commit, push, and create PRs with rich descriptions in one command
claude install anthropics/claude-code/commit-commandsAnalyze staged diffs, generate conventional commit messages, push to remote, and create PRs with rich descriptions automatically.
This is the actual SKILL.md file that powers this skill. Copy it to install.
---
name: commit-commands
description: |
Trigger on "commit", "push", "create PR", "git commit", or any git
workflow request. Auto-generates commit messages from staged changes.
allowed-tools:
- Bash(git *)
- Bash(gh *)
- Read
- Grep
---
# Commit Commands
Git workflow automation: analyze diffs, generate conventional commit messages,
push, and create pull requests.
## Prerequisites
- Git repository initialized with a remote
- `gh` CLI installed for PR creation (optional)
## Steps
### Commit
1. Check what's staged:
```bash
git status
git diff --staged --stat
```
2. If nothing is staged, stage relevant files:
```bash
git add <specific-files>
```
Never use `git add -A` without user confirmation.
3. Read the staged diff to understand changes:
```bash
git diff --staged
```
4. Generate a commit message following conventional commits:
- Format: `type: short description`
- Types: feat, fix, refactor, docs, test, chore, style, perf
- Keep the subject line under 72 characters
- Use lowercase, no period at end
- Use imperative mood: "add" not "added"
5. Read recent commits to match project style:
```bash
git log --oneline -10
```
6. Commit:
```bash
git commit -m "type: description"
```
### Push
```bash
git push origin HEAD
```
### Create PR
1. Compare against base branch:
```bash
git log main..HEAD --oneline
git diff main...HEAD --stat
```
2. Create PR with gh:
```bash
gh pr create --title "type: description" --body "## Summary\n- change 1\n- change 2"
```
mkdir -p ~/.claude/skills/commit-commands~/.claude/skills/commit-commands/SKILL.mdResulting file structure:
~/.claude/
skills/
commit-commands/
SKILL.md <-- skill definitionSkills are loaded automatically by Claude Code when you start a new session. The skill name and description in the frontmatter determine when Claude triggers it.
Recommended from shared domain, career, and tool overlap with Commit Commands
Query databases, inspect schemas, and explore data from your AI editor
Both used by Software Engineer
Inspect Redis keys, TTLs, and cache hit rates from your AI editor
Both used by Software Engineer
Query Sentry errors and analyze stack traces from your AI editor
Both used by Software Engineer
Manage Stripe payments and subscriptions from your AI assistant
Both used by Software Engineer
Manage Supabase databases, auth, and storage from your editor
Both used by Software Engineer
Control a browser from your AI editor - navigate, screenshot, interact
Both used by Software Engineer
Commit Commands