commit-push-pr

A Git workflow that commits local changes, pushes them to a remote repository, and creates a pull request, with support for repository and PR options.

In plain words
What is it for?
Use it to turn completed local work into a commit, pushed branch, and pull request, including a draft pull request when needed.
Why use it?
It groups common delivery steps and can detect the relevant repository, branch, changes, and pull-request template.

Skill for Claude CodeCodex

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/nanasess/eccube-dev-agents/commit-push-pr
Any agent
npx skills add nanasess/eccube-dev-agents --skill commit-push-pr
Clone the repo
git clone --depth 1 https://github.com/nanasess/eccube-dev-agents

Made for: Claude Code, Codex.

Per session 11 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,519 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00011 $0.01519
Opus 5 $0.00005 $0.00759
Sonnet 5 $0.00002 $0.00304
Haiku 4.5 $0.00001 $0.00152

Measured 2d ago against content hash 6f9e759918ee, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

commit-push-pr scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

plugins/eccube-dev-agents/skills/commit-push-pr/SKILL.md · 126 lines

How it starts

The opening of the file, as written. The whole thing — 126 lines — stays where its author put it; the contents beside it link to each section on GitHub.

コミット・Push・PR作成

変更のコミット、リモートへのPush、Pull Request作成を一括で実行します。 PRテンプレートの自動検出・適用に対応。複数リポジトリの親ディレクトリからも実行可能です。

引数

$ARGUMENTS から以下を解析:

  • --repo / -R: フォーク先リポジトリ(例: upstream/repo
  • --base / -B: ベースブランチ(デフォルト: main/master の自動検出)
  • --draft: ドラフトPRとして作成
  • その他のテキスト: PR作成の追加コンテキスト

手順

1. リポジトリ検出

  1. git rev-parse --is-inside-work-tree でカレントディレクトリが git リポジトリか確認
  2. git リポジトリの場合:
    • git status --porcelain で変更を確認
    • 変更がある場合はそのリポジトリで作業を続行
  3. git リポジトリでない場合、または変更がない場合:
    • find . -maxdepth 2 -name ".git" -type d でサブディレクトリ内の git リポジトリを走査し、その親ディレクトリ(リポジトリルート)を特定
    • 各リポジトリルートで git -C <dir> status --porcelain を実行して変更の有無を確認
    • 変更のあるリポジトリをリストアップ
  4. 変更のあるリポジトリが複数の場合: 一覧を表示してユーザーに選択を求める
  5. 変更のあるリポジトリがない場合: 「変更のあるリポジトリが見つかりません」と報告して終了

2. ブランチ確認・自動作成

  1. git -C <dir> branch --show-current で現在のブランチを取得
  2. デフォルトブランチ(main/master/develop)にいる場合:
    • 変更内容を分析してブランチ名を自動生成
    • Conventional Commits タイプとスコープから feat/add-xxx, fix/resolve-yyy 形式
    • git -C <dir> checkout -b <branch-name> で新ブランチ作成
  3. 既にフィーチャーブランチにいる場合: そのまま続行

3. コミット

  1. git -C <dir> status でステージング状態を確認
  2. git -C <dir> diff --staged で変更内容を分析(ステージングがない場合は git diff を確認して追加を提案)
  3. Conventional Commits v1.0.0 形式で日本語コミットメッセージを生成
  4. HEREDOC 形式でコミット:
    git -C <dir> commit -m "$(cat <<'EOF'
    feat(scope): メッセージ本文
    
    Co-Authored-By: Claude <[email protected]>
    EOF
    )"
    

4. Push

  1. git -C <dir> push -u origin <branch> でリモートにPush
  2. Push失敗時はエラーメッセージを表示

5. PRテンプレート検出

対象リポジトリで以下の順に探索:

  1. .github/pull_request_template.md
  2. .github/PULL_REQUEST_TEMPLATE.md
  3. .github/PULL_REQUEST_TEMPLATE/ ディレクトリ内のファイル
  4. docs/pull_request_template.md

テンプレートが見つかった場合:

  • Read ツールでテンプレート内容を読み込む
  • ## 見出しでセクション構造を解析
  • 各セクションに適切な内容を生成して埋める

6. PR説明の生成

テンプレートがある場合:

テンプレートのセクション構造を保持し、各セクションに適切な内容を生成:

  • Summary / 概要: コミット履歴から変更の要約を生成
  • Changes / 変更内容: 主要な変更点を箇条書きで記述
  • Test plan / テスト計画: テスト項目のチェックリストを生成
  • Related issues: コミットメッセージから関連Issue番号を検出
  • その他のセクション: テンプレートの指示に従って記述

Read the full file on GitHub · 126 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2d ago First seen · 126 lines · 0 tokens per session scan A 6f9e759918ee

Subscribe to this mod's changes

commit-push-pr is a skill published in the GitHub repository nanasess/eccube-dev-agents (2 stars, last pushed 27d ago), licensed MIT. It adds 11 tokens to every session and 1,519 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

commit-message-writing

Use this skill when the user explicitly asks to generate, write, draft, or create a commit message, squash commit, commit title, or merge commit message for the Shopware core repository (shopware/shopware). Supports two modes — full commit messages (title + body) for branch commits, and squash merge titles…

shopwareLabs/ai-coding-tools · 160 tokens

normal-skill

Commit staged changes with a conventional message. Use when saving work to git history.

laurigates/claude-plugins · 20 tokens

git-workflow

Git workflow patterns and version control best practices for teams of any size. Use when the user asks to choose a branching strategy (trunk-based, GitHub Flow, Git Flow, GitLab Flow), define commit conventions, set up PR workflows, plan release management, structure a monorepo, or establish team git standards. Covers…

krzysztofsurdy/code-virtuoso · 94 tokens

dev-workflow

Use when performing common development tasks like committing code, reviewing changes, running tests, fixing bugs, creating PRs, or checking repo status. Provides structured workflows for everyday git and development operations.

Sagargupta16/claude-skills · 42 tokens

commit

変更を意味単位のコミットに分割し,各メッセージを全文で提案.承認後にステージ〜コミットのみ実行する(push しない).「コミットして」「変更を記録して」など,記録を求められたときに使う(スキル名の指定は要らない)——素の git commit で済ませない.版を公にするなら /capstone:release を使う..

tomoking2004/claude-plugins · 109 tokens

review-and-fix

Run /review on the current branch, save findings as a tracker file, ask the user which items to fix, then fix and commit each selected item in an isolated sub-agent (one commit per item). Use when the user says "review and fix", "review then apply", "fix review issues", or any variation meaning "run review then walk…

eduardoarantes/agentenv · 85 tokens