jpskill.com
📦 その他 コミュニティ

pr-prepare

プロジェクトのテンプレートに従い、プルリクエストの説明文を「PR準備」「PR作成」「プルリクエスト」などのキーワードに反応して自動で作成し、レビューしやすいように準備するSkill。

📜 元の英語説明(参考)

Prepare pull request descriptions following project template. Activates on: prepare PR, create PR, pull request, ready for PR, draft PR, write PR

🇯🇵 日本人クリエイター向け解説

一言でいうと

プロジェクトのテンプレートに従い、プルリクエストの説明文を「PR準備」「PR作成」「プルリクエスト」などのキーワードに反応して自動で作成し、レビューしやすいように準備するSkill。

※ jpskill.com 編集部が日本のビジネス現場向けに補足した解説です。Skill本体の挙動とは独立した参考情報です。

⚡ おすすめ: コマンド1行でインストール(60秒)

下記のコマンドをコピーしてターミナル(Mac/Linux)または PowerShell(Windows)に貼り付けてください。 ダウンロード → 解凍 → 配置まで全自動。

🍎 Mac / 🐧 Linux
mkdir -p ~/.claude/skills && cd ~/.claude/skills && curl -L -o pr-prepare.zip https://jpskill.com/download/17655.zip && unzip -o pr-prepare.zip && rm pr-prepare.zip
🪟 Windows (PowerShell)
$d = "$env:USERPROFILE\.claude\skills"; ni -Force -ItemType Directory $d | Out-Null; iwr https://jpskill.com/download/17655.zip -OutFile "$d\pr-prepare.zip"; Expand-Archive "$d\pr-prepare.zip" -DestinationPath $d -Force; ri "$d\pr-prepare.zip"

完了後、Claude Code を再起動 → 普通に「動画プロンプト作って」のように話しかけるだけで自動発動します。

💾 手動でダウンロードしたい(コマンドが難しい人向け)
  1. 1. 下の青いボタンを押して pr-prepare.zip をダウンロード
  2. 2. ZIPファイルをダブルクリックで解凍 → pr-prepare フォルダができる
  3. 3. そのフォルダを C:\Users\あなたの名前\.claude\skills\(Win)または ~/.claude/skills/(Mac)へ移動
  4. 4. Claude Code を再起動

⚠️ ダウンロード・利用は自己責任でお願いします。当サイトは内容・動作・安全性について責任を負いません。

🎯 このSkillでできること

下記の説明文を読むと、このSkillがあなたに何をしてくれるかが分かります。Claudeにこの分野の依頼をすると、自動で発動します。

📦 インストール方法 (3ステップ)

  1. 1. 上の「ダウンロード」ボタンを押して .skill ファイルを取得
  2. 2. ファイル名の拡張子を .skill から .zip に変えて展開(macは自動展開可)
  3. 3. 展開してできたフォルダを、ホームフォルダの .claude/skills/ に置く
    • · macOS / Linux: ~/.claude/skills/
    • · Windows: %USERPROFILE%\.claude\skills\

Claude Code を再起動すれば完了。「このSkillを使って…」と話しかけなくても、関連する依頼で自動的に呼び出されます。

詳しい使い方ガイドを見る →
最終更新
2026-05-18
取得日時
2026-05-18
同梱ファイル
1

📖 Skill本文(日本語訳)

※ 原文(英語/中国語)を Gemini で日本語化したものです。Claude 自身は原文を読みます。誤訳がある場合は原文をご確認ください。

PR準備スキル

プロジェクト標準に従って、プルリクエストの説明を自動的に準備します。

有効化

このスキルは、以下のキーワードで有効になります。

  • "prepare PR", "prepare the PR", "prepare a PR"
  • "create PR", "create pull request"
  • "PR description", "pull request description"
  • "ready for PR", "ready for PR"
  • "draft PR", "write PR"

ワークフロー

有効化された場合、以下の手順に従います。

1. コンテキストの収集

以下のコマンドを実行して、変更内容を理解します。

# 現在の状態
git status

# ブランチの比較 ('main' が異なるベースブランチの場合は調整)
git log $(git merge-base HEAD main)..HEAD --oneline

# 変更されたファイル
git diff $(git merge-base HEAD main)..HEAD --stat

# 実際の差分 (小規模な変更の場合)
git diff $(git merge-base HEAD main)..HEAD

2. 変更の分析

以下を特定します。

  • 変更されたコンポーネント: どのファイル/モジュールが変更されたか
  • 目的: なぜこれらの変更が行われたのか
  • 影響: メリット、リスク、破壊的変更
  • テスト: どのような検証が行われたか、または必要か

3. PRの説明の生成

以下のテンプレート形式を使用します。

## Summary

[1〜3文: 何がどのように変更されたか、そしてその理由]

## Changes

- **[Component]**: [何がどのように変更されたか、そしてその理由]
- **[Component]**: [何がどのように変更されたか、そしてその理由]

## Impact

- ✅ [主なメリットまたは成果]
- ✅ [別のメリット]
- ✅ 破壊的な変更はありません

## Testing

- [ ] テストに合格する (`uv run pytest`)
- [ ] Lintingに合格する (`uv run ruff check`)

## Notes

[オプション: 既知の問題、フォローアップ作業、依存関係]

4. PRタイトルの提案

conventional commits形式に従います。

Type When to Use
feat: 新機能
fix: バグ修正
docs: ドキュメントのみ
refactor: コードの再構成
test: テストの追加
perf: パフォーマンスの向上
chore: メンテナンス、依存関係

6. 出力

GitHubにコピー&ペーストできる、完全なPRの説明を提示します。

ユーザーに以下をリマインドします。

  • CodeRabbitが@coderabbitai summaryプレースホルダーを自動的に入力します
  • gh pr createでプッシュしてPRを作成できます

インタラクションの例

ユーザー: "このブランチのPRを準備できますか?"

Claude:

  1. gitコマンドを実行してコンテキストを収集します
  2. 変更を分析します
  3. 以下を出力します。

提案されたタイトル: feat: add user authentication with OAuth2

PRの説明:

## Summary

GoogleおよびGitHubプロバイダーをサポートするOAuth2認証を追加します。

## Changes

- **auth/oauth.py**: トークンリフレッシュを備えたOAuth2クライアントの実装
- **api/routes/auth.py**: ログイン、ログアウト、コールバックエンドポイント
- **models/user.py**: OAuthプロバイダーフィールドを持つユーザーモデル

## Impact

- ✅ ユーザーはGoogleまたはGitHubでサインインできます
- ✅ httponly Cookieによる安全なセッション管理
- ✅ 既存のAPIへの破壊的な変更はありません

## Testing

- [x] テストに合格する (`uv run pytest`)
- [x] Lintingに合格する (`uv run ruff check`)

## Notes

フォローアップ: Microsoftプロバイダーのサポートを追加

コピーする準備ができました! 以下でプッシュします:

git push -u origin HEAD
gh pr create --fill
📜 原文 SKILL.md(Claudeが読む英語/中国語)を展開

PR Preparation Skill

Automatically prepare pull request descriptions following project standards.

Activation

This skill activates on keywords:

  • "prepare PR", "prepare the PR", "prepare a PR"
  • "create PR", "create pull request"
  • "PR description", "pull request description"
  • "ready for PR", "ready to PR"
  • "draft PR", "write PR"

Workflow

When activated, follow these steps:

1. Gather Context

Run these commands to understand the changes:

# Current state
git status

# Branch comparison (adjust 'main' if different base branch)
git log $(git merge-base HEAD main)..HEAD --oneline

# Files changed
git diff $(git merge-base HEAD main)..HEAD --stat

# Actual diff (for smaller changes)
git diff $(git merge-base HEAD main)..HEAD

2. Analyze Changes

Identify:

  • Components modified: Which files/modules changed
  • Purpose: Why these changes were made
  • Impact: Benefits, risks, breaking changes
  • Testing: What validation was done or needed

3. Generate PR Description

Use this template format:

## Summary

[1-3 sentences: what changed and why]

## Changes

- **[Component]**: [What changed and why]
- **[Component]**: [What changed and why]

## Impact

- ✅ [Key benefit or outcome]
- ✅ [Another benefit]
- ✅ No breaking changes

## Testing

- [ ] Tests pass (`uv run pytest`)
- [ ] Linting passes (`uv run ruff check`)

## Notes

[Optional: known issues, follow-up work, dependencies]

4. Suggest PR Title

Follow conventional commits format:

Type When to Use
feat: New feature
fix: Bug fix
docs: Documentation only
refactor: Code restructuring
test: Adding tests
perf: Performance improvement
chore: Maintenance, dependencies

6. Output

Present the complete PR description ready to copy-paste into GitHub.

Remind the user:

  • CodeRabbit will auto-fill @coderabbitai summary placeholder
  • They can push and create PR with gh pr create

Example Interaction

User: "Can you prepare the PR for this branch?"

Claude:

  1. Runs git commands to gather context
  2. Analyzes the changes
  3. Outputs:

Suggested Title: feat: add user authentication with OAuth2

PR Description:

## Summary

Add OAuth2 authentication supporting Google and GitHub providers.

## Changes

- **auth/oauth.py**: OAuth2 client implementation with token refresh
- **api/routes/auth.py**: Login, logout, and callback endpoints
- **models/user.py**: User model with OAuth provider fields

## Impact

- ✅ Users can sign in with Google or GitHub
- ✅ Secure session management with httponly cookies
- ✅ No breaking changes to existing API

## Testing

- [x] Tests pass (`uv run pytest`)
- [x] Linting passes (`uv run ruff check`)

## Notes

Follow-up: Add Microsoft provider support

Ready to copy! Push with:

git push -u origin HEAD
gh pr create --fill