Skip to content
cccskills
FreePublished on GitHub

pr-create

PRを作る、または既存PRのbodyを直す。ユーザーが「PRを作る」「PR出して」「PRのbodyを直して」と言ったとき、ユーザーが `/pr-create` と打ったとき、または `gh pr create` や `gh pr edit --body` がhookにブロックされたときに使う。

Creates or edits a pull request with a three-line body.

The English summary is being prepared. Showing the original description.

Works withGitHub
See how to install

Files included (1)

  • SKILL.md2.4 KB

SKILL.md (original)

Review the instructions the agent will receive before you install.

PR Create

PRの作成とbodyの変更は ~/.claude/scripts/gh/pr-body.sh から実行する。

PR bodyの条件

やったことを書く。

  • 行数
    • 3行以内
    • 空行
      • 数えない
    • 箇条書き
      • 1項目を1行と数える

次は書かない。

  • 理由
  • 見出し
  • 動作確認
  • 変更ファイルの列挙
  • 定型句
    • Generated with

作成の手順

1. 変更の把握

git log と git diff でコミット済みの変更を見る。未コミットの変更が残っていればユーザーに確認する。

2. push

git push -u origin <branch>

3. bodyの作成

mktemp で一時ファイルを作り、mktemp が返したパスにWriteでbodyを書く。

mktemp

4. 作成

~/.claude/scripts/gh/pr-body.sh --title <title> --body-file <path> --base main

スクリプトが終わるまで待つ。

  • --title
    • 英語のconventional commit形式で書く
  • body
    • --body-file でだけ渡せる
  • --draft などの残りの引数
    • gh pr create にそのまま渡す

編集の手順

--edit を付ける。

~/.claude/scripts/gh/pr-body.sh --edit --body-file <path> [<PR番号>]
  • PR番号を省略した場合
    • 現在のブランチのPRを対象にする
  • --title
    • 編集では省略できる
  • gh pr edit を直接実行してよいもの
    • title
    • ラベル

スクリプトが拒否したときの対応

  • 行数超過
    • bodyを3行以内に削る
  • findings
    • stderrのJSONを読む
      • problem
      • fix
    • bodyを直す

直したら同じコマンドをそのまま実行する。

  • パス数
    • ブランチごとに数える
  • 拒否条件
    • mechanical
      • 毎回
    • llm
      • 1パス目だけ

Reviews

No reviews yet. Tell others what you thought.

Comments

No login needed. Share how it worked for you, ask a question, or note where it did not run.

No comments yet. Be the first to write one.

Comments are published right away. Do not include personal information such as email addresses or phone numbers. Up to 2 URLs.

0 / 1,000 characters

This form is protected by reCAPTCHA, and the Google Privacy Policy and Terms of Service apply.

More skills from this repository

Use by any agent before writing specs, editing code, or changing workflow files when the change could add compatibility behavior, aliases, silent fallbacks, or default-value fallbacks.

The English summary is being prepared. Showing the original description.

ogadra/dotfiles3Updated Oct 19, 2026

Cascade merge changes through a chain of dependent branches. Use when updating stacked/chained PRs, propagating changes from a parent branch to all downstream branches, or when the user mentions "cascade merge", "propagate changes", "update dependent branches", or "merge to downstream branches".

The English summary is being prepared. Showing the original description.

ogadra/dotfiles3Updated Oct 19, 2026

Interview the user in rounds until no branch of the design tree stays open.

The English summary is being prepared. Showing the original description.

ogadra/dotfiles3Updated Oct 19, 2026

外部のスキルをこのリポジトリにコピーして自分のスキルにする。ユーザーがスキルのURLやリポジトリ名を渡して「入れたい」「導入したい」と言ったとき、「上流を参照せずコピーしたい」と言ったとき、またはユーザーが `/import-skill` と打ったときに使う。Vendors an external Claude skill into this repository.

The English summary is being prepared. Showing the original description.

ogadra/dotfiles3Updated Oct 19, 2026

Forces the laziest solution that actually works, simplest, shortest, most minimal. Channels a senior dev who has been paged at 3am for a factory class that wrapped one function: question whether the task needs to exist at all, reach for the standard library before custom code, native platform features before dependencies, one line before fifty. Supports intensity levels: lite, full, ultra. The default is full. Use on ANY coding task: writing, adding, refactoring, fixing, reviewing, or designing code, and choosing libraries or dependencies. Also use whenever the user says "ponytail", "be lazy", "lazy mode", "simplest solution", "minimal solution", "yagni", "do less", or "shortest path", or complains about over-engineering, bloat, boilerplate, or unnecessary dependencies. Do NOT use for non-coding requests such as general knowledge, prose, translation, summaries, recipes.

The English summary is being prepared. Showing the original description.

ogadra/dotfiles3Updated Oct 19, 2026

Review a GitHub pull request from multiple perspectives in parallel, output only findings, then let the user pick which to fix in the same session. Use when the user asks to review a PR by number, mentions "PRレビュー" / "PR review" with a number, or invokes `/pr-review <number>`. Fans out subagents for absolute-rules, stop-slop, security, architecture, code-quality, testing, and ai-antipattern.

The English summary is being prepared. Showing the original description.

ogadra/dotfiles3Updated Oct 19, 2026

See all skills by ogadra

Report a problem with this skill