Back to skills
SkillHub ClubShip Full StackFull Stack

commit-push-pr

Commit changes, push to remote, and create a PR in a single workflow.

Packaged view

This page reorganizes the original catalog entry around fit, installability, and workflow context first. The original raw source lives below.

Stars
0
Hot score
74
Updated
March 20, 2026
Overall rating
C0.0
Composite score
0.0
Best-practice grade
A88.0

Install command

npx @skill-hub/cli install drillan-claudecode-model-commit-push-pr

Repository

drillan/claudecode-model

Skill path: .claude/skills/commit-push-pr

Commit changes, push to remote, and create a PR in a single workflow.

Open repository

Best for

Primary workflow: Ship Full Stack.

Technical facets: Full Stack.

Target audience: everyone.

License: Unknown.

Original source

Catalog source: SkillHub Club.

Repository owner: drillan.

This is still a mirrored public skill entry. Review the repository before installing into production workflows.

What it helps with

  • Install commit-push-pr into Claude Code, Codex CLI, Gemini CLI, or OpenCode workflows
  • Review https://github.com/drillan/claudecode-model before adding commit-push-pr to shared team environments
  • Use commit-push-pr for development workflows

Works across

Claude CodeCodex CLIGemini CLIOpenCode

Favorites: 0.

Sub-skills: 0.

Aggregator: No.

Original source / Raw SKILL.md

---
name: commit-push-pr
description: Commit changes, push to remote, and create a PR in a single workflow.
---

# /commit-push-pr

変更のコミット、プッシュ、PR作成を一連で実行する。

## Usage

```
/commit-push-pr
```

## Instructions

When the user invokes `/commit-push-pr`, use the bundled `pr-creator` agent to execute the complete workflow.

### Step 1: Spawn PR Creator Agent

Use the Task tool to launch the `pr-creator` agent from `.claude/agents/pr-creator.md`:

```
Task tool with subagent_type: "pr-creator"
```

The agent will handle:
1. Branch management
2. Commit creation with auto-generated message
3. Push to remote
4. PR existence check
5. PR creation with issue linkage (only if no PR exists for the branch)

### Step 2: Base Branch Detection

The agent automatically detects the base branch using:
```bash
BASE_BRANCH=$(gh repo view --json defaultBranchRef --jq '.defaultBranchRef.name')
git remote set-head origin "$BASE_BRANCH"
```

This queries the GitHub API for the actual default branch and syncs the local reference.

### Step 3: Quality Verification

Before creating the PR, verify that quality checks pass according to `workflow-config.json`:
```bash
cat .claude/workflow-config.json
```

If `workflow.quality_gate_required` is true, run the quality checks defined in `quality.all` before committing.

## Output Format

### PRが新規作成された場合

```
✅ コミット、プッシュ、PR作成が完了しました

コミット: {COMMIT_HASH} {COMMIT_MESSAGE}
PR: #{PR_NUMBER} - {PR_TITLE}
URL: {PR_URL}
```

### PRが既に存在する場合

```
✅ コミット、プッシュが完了しました(PR作成スキップ)

コミット: {COMMIT_HASH} {COMMIT_MESSAGE}
プッシュ: {BRANCH_NAME}
既存PR: #{PR_NUMBER}
```

## Error Handling

| エラー | 対応 |
|--------|------|
| 変更なし | `ℹ️ コミットする変更がありません` |
| プッシュ失敗 | 原因を表示(認証、ネットワーク等) |
| PR既存 | `ℹ️ PRが既に存在するためPR作成をスキップし、commit + pushのみ実行しました` |
| PR作成失敗 | 原因を表示(権限等) |
| 品質チェック失敗 | 失敗したチェックを表示、修正を促す |
commit-push-pr | SkillHub