commit-commands/commit-push-pr

1. Create a new branch if on main

Content Preview
---
allowed-tools: Bash(git checkout --branch:*), Bash(git add:*), Bash(git status:*), Bash(git push:*), Bash(git commit:*), Bash(gh pr create:*)
description: Commit, push, and open a PR
---

## Context

- Current git status: !`git status`
- Current git diff (staged and unstaged changes): !`git diff HEAD`
- Current branch: !`git branch --show-current`

## Your task

Based on the above changes:

1. Create a new branch if on main
2. Create a single commit with an appropriate message
3. Push the br
How to Use

Recommended: Install to project (local)

mkdir -p .claude/skills
curl -o .claude/skills/commit-commands/commit-push-pr.md \
  https://raw.githubusercontent.com/anthropics/claude-plugins-official/main/plugins/commit-commands/commands/commit-push-pr.md

Skill is scoped to this project only. Add .claude/skills/ to your .gitignoreif you don't want to commit it.

Alternative: Clone full repo

git clone https://github.com/anthropics/claude-plugins-official

Then reference at plugins/commit-commands/commands/commit-push-pr.md

Related Skills