🛠️ GitPrWorkflowsGitワークフロー
コードレビューからPR作成まで、品質保証やテスト、デプロイ準備を専門エージェントが支援し、包括的なGitワークフローを構築するSkill。
📺 まず動画で見る(YouTube)
▶ 【衝撃】最強のAIエージェント「Claude Code」の最新機能・使い方・プログラミングをAIで効率化する超実践術を解説! ↗
※ jpskill.com 編集部が参考用に選んだ動画です。動画の内容と Skill の挙動は厳密には一致しないことがあります。
📜 元の英語説明(参考)
Orchestrate a comprehensive git workflow from code review through PR creation, leveraging specialized agents for quality assurance, testing, and deployment readiness. This workflow implements modern g
🇯🇵 日本人クリエイター向け解説
コードレビューからPR作成まで、品質保証やテスト、デプロイ準備を専門エージェントが支援し、包括的なGitワークフローを構築するSkill。
※ jpskill.com 編集部が日本のビジネス現場向けに補足した解説です。Skill本体の挙動とは独立した参考情報です。
下記のコマンドをコピーしてターミナル(Mac/Linux)または PowerShell(Windows)に貼り付けてください。 ダウンロード → 解凍 → 配置まで全自動。
mkdir -p ~/.claude/skills && cd ~/.claude/skills && curl -L -o git-pr-workflows-git-workflow.zip https://jpskill.com/download/2923.zip && unzip -o git-pr-workflows-git-workflow.zip && rm git-pr-workflows-git-workflow.zip
$d = "$env:USERPROFILE\.claude\skills"; ni -Force -ItemType Directory $d | Out-Null; iwr https://jpskill.com/download/2923.zip -OutFile "$d\git-pr-workflows-git-workflow.zip"; Expand-Archive "$d\git-pr-workflows-git-workflow.zip" -DestinationPath $d -Force; ri "$d\git-pr-workflows-git-workflow.zip"
完了後、Claude Code を再起動 → 普通に「動画プロンプト作って」のように話しかけるだけで自動発動します。
💾 手動でダウンロードしたい(コマンドが難しい人向け)
- 1. 下の青いボタンを押して
git-pr-workflows-git-workflow.zipをダウンロード - 2. ZIPファイルをダブルクリックで解凍 →
git-pr-workflows-git-workflowフォルダができる - 3. そのフォルダを
C:\Users\あなたの名前\.claude\skills\(Win)または~/.claude/skills/(Mac)へ移動 - 4. Claude Code を再起動
⚠️ ダウンロード・利用は自己責任でお願いします。当サイトは内容・動作・安全性について責任を負いません。
🎯 このSkillでできること
下記の説明文を読むと、このSkillがあなたに何をしてくれるかが分かります。Claudeにこの分野の依頼をすると、自動で発動します。
📦 インストール方法 (3ステップ)
- 1. 上の「ダウンロード」ボタンを押して .skill ファイルを取得
- 2. ファイル名の拡張子を .skill から .zip に変えて展開(macは自動展開可)
- 3. 展開してできたフォルダを、ホームフォルダの
.claude/skills/に置く- · macOS / Linux:
~/.claude/skills/ - · Windows:
%USERPROFILE%\.claude\skills\
- · macOS / Linux:
Claude Code を再起動すれば完了。「このSkillを使って…」と話しかけなくても、関連する依頼で自動的に呼び出されます。
詳しい使い方ガイドを見る →- 最終更新
- 2026-05-17
- 取得日時
- 2026-05-17
- 同梱ファイル
- 1
💬 こう話しかけるだけ — サンプルプロンプト
- › Git Pr Workflows Git Workflow を使って、最小構成のサンプルコードを示して
- › Git Pr Workflows Git Workflow の主な使い方と注意点を教えて
- › Git Pr Workflows Git Workflow を既存プロジェクトに組み込む方法を教えて
これをClaude Code に貼るだけで、このSkillが自動発動します。
📖 Skill本文(日本語訳)
※ 原文(英語/中国語)を Gemini で日本語化したものです。Claude 自身は原文を読みます。誤訳がある場合は原文をご確認ください。
[Skill 名] git-pr-workflows-git-workflow
マルチエージェントオーケストレーションによる完全な Git ワークフロー
コードレビューから PR 作成まで、包括的な Git ワークフローをオーケストレーションします。品質保証、テスト、デプロイ準備のために特化したエージェントを活用します。このワークフローは、Conventional Commits、自動テスト、構造化された PR 作成を含む現代の Git ベストプラクティスを実装しています。
[拡張思考: このワークフローは、コミットが行われる前にコード品質を保証するために、複数の専門エージェントを調整します。コードレビューアエージェントが初期の品質チェックを実行し、テストオートメーターがすべてのテストが合格することを確認し、デプロイメントエンジニアが本番環境への準備状況を検証します。これらのエージェントをコンテキストを渡しながら順次オーケストレーションすることで、高い速度を維持しながら、壊れたコードがリポジトリに入るのを防ぎます。このワークフローは、チームのさまざまなニーズに合わせて設定可能なオプションで、トランクベースとフィーチャーブランチの両方の戦略をサポートしています。]
このスキルを使用する場面
- マルチエージェントオーケストレーションタスクまたはワークフローを含む完全な Git ワークフローに取り組む場合
- マルチエージェントオーケストレーションを含む完全な Git ワークフローに関するガイダンス、ベストプラクティス、またはチェックリストが必要な場合
このスキルを使用しない場面
- タスクがマルチエージェントオーケストレーションを含む完全な Git ワークフローと無関係な場合
- このスコープ外の異なるドメインまたはツールが必要な場合
手順
- 目標、制約、および必要な入力を明確にしてください。
- 関連するベストプラクティスを適用し、結果を検証してください。
- 実用的な手順と検証を提供してください。
- 詳細な例が必要な場合は、
resources/implementation-playbook.mdを開いてください。
設定
ターゲットブランチ: $ARGUMENTS (指定がない場合は 'main' がデフォルトです)
サポートされているフラグ:
--skip-tests: 自動テストの実行をスキップします (注意して使用してください)--draft-pr: 作業中の PR をドラフトとして作成します--no-push: すべてのチェックを実行しますが、リモートにプッシュしません--squash: プッシュする前にコミットをスカッシュします--conventional: Conventional Commits 形式を厳密に強制します--trunk-based: トランクベース開発ワークフローを使用します--feature-branch: フィーチャーブランチワークフローを使用します (デフォルト)
フェーズ 1: プレコミットレビューと分析
1. コード品質評価
Taskツールをsubagent_type="code-reviewer"で使用します- プロンプト: "コミットされていないすべての変更について、コード品質の問題をレビューしてください。以下を確認してください: 1) コードスタイル違反、2) セキュリティ脆弱性、3) パフォーマンスに関する懸念、4) エラー処理の欠落、5) 不完全な実装。重大度レベル (critical/high/medium/low) を含む詳細なレポートを生成し、具体的な行ごとのフィードバックを提供してください。出力形式: {issues: [], summary: {critical: 0, high: 0, medium: 0, low: 0}, recommendations: []} の JSON 形式"
- 期待される出力: 次のフェーズのための構造化されたコードレビューレポート
2. 依存関係と破壊的変更の分析
Taskツールをsubagent_type="code-reviewer"で使用します- プロンプト: "変更について以下を分析してください: 1) 新しい依存関係またはバージョン変更、2) 破壊的な API 変更、3) データベーススキーマの変更、4) 設定変更、5) 後方互換性の問題。前回のレビューからのコンテキスト: [insert issues summary]。移行スクリプトまたはドキュメントの更新が必要な変更を特定してください。"
- 前回のコンテキスト: 破壊的変更を示す可能性のあるコード品質の問題
- 期待される出力: 破壊的変更の評価と移行要件
フェーズ 2: テストと検証
1. テスト実行とカバレッジ
Taskツールをsubagent_type="unit-testing::test-automator"で使用します- プロンプト: "変更されたコードのすべてのテストスイートを実行してください。以下を実行してください: 1) 単体テスト、2) 統合テスト、3) 該当する場合はエンドツーエンドテスト。カバレッジレポートを生成し、テストされていないコードパスを特定してください。レビューの問題に基づいて: [insert critical/high issues]、問題領域をテストがカバーしていることを確認してください。テスト結果を次の形式で提供してください: {passed: [], failed: [], skipped: [], coverage: {statements: %, branches: %, functions: %, lines: %}, untested_critical_paths: []}"
- 前回のコンテキスト: テストカバレッジが必要な重要なコードレビューの問題
- 期待される出力: 完全なテスト結果とカバレッジメトリクス
2. テストの推奨事項とギャップ分析
Taskツールをsubagent_type="unit-testing::test-automator"で使用します- プロンプト: "テスト結果 [insert summary] とコード変更に基づいて、以下を特定してください: 1) 不足しているテストシナリオ、2) カバーされていないエッジケース、3) 検証が必要な統合ポイント、4) 必要なパフォーマンスベンチマーク。リスクによって優先順位付けされたテスト実装の推奨事項を生成してください。特定された破壊的変更を考慮してください: [insert breaking changes]。"
- 前回のコンテキスト: テスト結果、破壊的変更、テストされていないパス
- 期待される出力: 追加で必要なテストの優先順位付けされたリスト
フェーズ 3: コミットメッセージの生成
1. 変更分析と分類
Taskツールをsubagent_type="code-reviewer"で使用します- プロンプト: "すべての変更を分析し、Conventional Commits の仕様に従って分類してください。主要な変更タイプ (feat/fix/docs/style/refactor/perf/test/build/ci/chore/revert) とスコープを特定してください。変更について: [insert file list and summary]、これが単一のコミットであるべきか、複数のアトミックなコミットであるべきかを判断してください。テスト結果を考慮してください: [insert test summary]。"
- 前回のコンテキスト: テスト結果、コードレビューの概要
- 期待される出力: コミット構造の推奨事項
2. Conventional Commit メッセージの作成
Taskツールをsubagent_type="llm-application-dev::prompt-engineer"で使用します- プロンプト: "分類 [insert categorization] に基づいて Conventional Commits 形式のメッセージを作成してください。形式: <type>(<scope>): <subject> の後に空行、そして何と理由 (方法ではない) を説明する <body>、そして該当する場合は BREAKING CHANGE: を含む <footer>。以下を含めてください: 1) 明確な件名 (最大 50 文字)、2) 根拠を説明する詳細な本文、3) 問題/チケットへの参照、4) 該当する場合は共著者。影響を考慮してください: [insert breaking changes if any]。"
- 前回のコンテキスト: 変更の分類、破壊的変更
- 期待される出力: 適切にフォーマットされたコミットメッセージ
フェーズ 4: ブランチ戦略とプッシュ準備
1. ブランチ管理
Taskツールをt
📜 原文 SKILL.md(Claudeが読む英語/中国語)を展開
Complete Git Workflow with Multi-Agent Orchestration
Orchestrate a comprehensive git workflow from code review through PR creation, leveraging specialized agents for quality assurance, testing, and deployment readiness. This workflow implements modern git best practices including Conventional Commits, automated testing, and structured PR creation.
[Extended thinking: This workflow coordinates multiple specialized agents to ensure code quality before commits are made. The code-reviewer agent performs initial quality checks, test-automator ensures all tests pass, and deployment-engineer verifies production readiness. By orchestrating these agents sequentially with context passing, we prevent broken code from entering the repository while maintaining high velocity. The workflow supports both trunk-based and feature-branch strategies with configurable options for different team needs.]
Use this skill when
- Working on complete git workflow with multi-agent orchestration tasks or workflows
- Needing guidance, best practices, or checklists for complete git workflow with multi-agent orchestration
Do not use this skill when
- The task is unrelated to complete git workflow with multi-agent orchestration
- You need a different domain or tool outside this scope
Instructions
- Clarify goals, constraints, and required inputs.
- Apply relevant best practices and validate outcomes.
- Provide actionable steps and verification.
- If detailed examples are required, open
resources/implementation-playbook.md.
Configuration
Target branch: $ARGUMENTS (defaults to 'main' if not specified)
Supported flags:
--skip-tests: Skip automated test execution (use with caution)--draft-pr: Create PR as draft for work-in-progress--no-push: Perform all checks but don't push to remote--squash: Squash commits before pushing--conventional: Enforce Conventional Commits format strictly--trunk-based: Use trunk-based development workflow--feature-branch: Use feature branch workflow (default)
Phase 1: Pre-Commit Review and Analysis
1. Code Quality Assessment
- Use Task tool with subagent_type="code-reviewer"
- Prompt: "Review all uncommitted changes for code quality issues. Check for: 1) Code style violations, 2) Security vulnerabilities, 3) Performance concerns, 4) Missing error handling, 5) Incomplete implementations. Generate a detailed report with severity levels (critical/high/medium/low) and provide specific line-by-line feedback. Output format: JSON with {issues: [], summary: {critical: 0, high: 0, medium: 0, low: 0}, recommendations: []}"
- Expected output: Structured code review report for next phase
2. Dependency and Breaking Change Analysis
- Use Task tool with subagent_type="code-reviewer"
- Prompt: "Analyze the changes for: 1) New dependencies or version changes, 2) Breaking API changes, 3) Database schema modifications, 4) Configuration changes, 5) Backward compatibility issues. Context from previous review: [insert issues summary]. Identify any changes that require migration scripts or documentation updates."
- Context from previous: Code quality issues that might indicate breaking changes
- Expected output: Breaking change assessment and migration requirements
Phase 2: Testing and Validation
1. Test Execution and Coverage
- Use Task tool with subagent_type="unit-testing::test-automator"
- Prompt: "Execute all test suites for the modified code. Run: 1) Unit tests, 2) Integration tests, 3) End-to-end tests if applicable. Generate coverage report and identify any untested code paths. Based on review issues: [insert critical/high issues], ensure tests cover the problem areas. Provide test results in format: {passed: [], failed: [], skipped: [], coverage: {statements: %, branches: %, functions: %, lines: %}, untested_critical_paths: []}"
- Context from previous: Critical code review issues that need test coverage
- Expected output: Complete test results and coverage metrics
2. Test Recommendations and Gap Analysis
- Use Task tool with subagent_type="unit-testing::test-automator"
- Prompt: "Based on test results [insert summary] and code changes, identify: 1) Missing test scenarios, 2) Edge cases not covered, 3) Integration points needing verification, 4) Performance benchmarks needed. Generate test implementation recommendations prioritized by risk. Consider the breaking changes identified: [insert breaking changes]."
- Context from previous: Test results, breaking changes, untested paths
- Expected output: Prioritized list of additional tests needed
Phase 3: Commit Message Generation
1. Change Analysis and Categorization
- Use Task tool with subagent_type="code-reviewer"
- Prompt: "Analyze all changes and categorize them according to Conventional Commits specification. Identify the primary change type (feat/fix/docs/style/refactor/perf/test/build/ci/chore/revert) and scope. For changes: [insert file list and summary], determine if this should be a single commit or multiple atomic commits. Consider test results: [insert test summary]."
- Context from previous: Test results, code review summary
- Expected output: Commit structure recommendation
2. Conventional Commit Message Creation
- Use Task tool with subagent_type="llm-application-dev::prompt-engineer"
- Prompt: "Create Conventional Commits format message(s) based on categorization: [insert categorization]. Format: <type>(<scope>): <subject> with blank line then <body> explaining what and why (not how), then <footer> with BREAKING CHANGE: if applicable. Include: 1) Clear subject line (50 chars max), 2) Detailed body explaining rationale, 3) References to issues/tickets, 4) Co-authors if applicable. Consider the impact: [insert breaking changes if any]."
- Context from previous: Change categorization, breaking changes
- Expected output: Properly formatted commit message(s)
Phase 4: Branch Strategy and Push Preparation
1. Branch Management
- Use Task tool with subagent_type="cicd-automation::deployment-engineer"
- Prompt: "Based on workflow type [--trunk-based or --feature-branch], prepare branch strategy. For feature branch: ensure branch name follows pattern (feature|bugfix|hotfix)/<ticket>-<description>. For trunk-based: prepare for direct main push with feature flag strategy if needed. Current branch: [insert branch], target: [insert target branch]. Verify no conflicts with target branch."
- Expected output: Branch preparation commands and conflict status
2. Pre-Push Validation
- Use Task tool with subagent_type="cicd-automation::deployment-engineer"
- Prompt: "Perform final pre-push checks: 1) Verify all CI checks will pass, 2) Confirm no sensitive data in commits, 3) Validate commit signatures if required, 4) Check branch protection rules, 5) Ensure all review comments addressed. Test summary: [insert test results]. Review status: [insert review summary]."
- Context from previous: All previous validation results
- Expected output: Push readiness confirmation or blocking issues
Phase 5: Pull Request Creation
1. PR Description Generation
- Use Task tool with subagent_type="documentation-generation::docs-architect"
- Prompt: "Create comprehensive PR description including: 1) Summary of changes (what and why), 2) Type of change checklist, 3) Testing performed summary from [insert test results], 4) Screenshots/recordings if UI changes, 5) Deployment notes from [insert deployment considerations], 6) Related issues/tickets, 7) Breaking changes section if applicable: [insert breaking changes], 8) Reviewer checklist. Format as GitHub-flavored Markdown."
- Context from previous: All validation results, test outcomes, breaking changes
- Expected output: Complete PR description in Markdown
2. PR Metadata and Automation Setup
- Use Task tool with subagent_type="cicd-automation::deployment-engineer"
- Prompt: "Configure PR metadata: 1) Assign appropriate reviewers based on CODEOWNERS, 2) Add labels (type, priority, component), 3) Link related issues, 4) Set milestone if applicable, 5) Configure merge strategy (squash/merge/rebase), 6) Set up auto-merge if all checks pass. Consider draft status: [--draft-pr flag]. Include test status: [insert test summary]."
- Context from previous: PR description, test results, review status
- Expected output: PR configuration commands and automation rules
Success Criteria
- ✅ All critical and high-severity code issues resolved
- ✅ Test coverage maintained or improved (target: >80%)
- ✅ All tests passing (unit, integration, e2e)
- ✅ Commit messages follow Conventional Commits format
- ✅ No merge conflicts with target branch
- ✅ PR description complete with all required sections
- ✅ Branch protection rules satisfied
- ✅ Security scanning completed with no critical vulnerabilities
- ✅ Performance benchmarks within acceptable thresholds
- ✅ Documentation updated for any API changes
Rollback Procedures
In case of issues after merge:
- Immediate Revert: Create revert PR with
git revert <commit-hash> - Feature Flag Disable: If using feature flags, disable immediately
- Hotfix Branch: For critical issues, create hotfix branch from main
- Communication: Notify team via designated channels
- Root Cause Analysis: Document issue in postmortem template
Best Practices Reference
- Commit Frequency: Commit early and often, but ensure each commit is atomic
- Branch Naming:
(feature|bugfix|hotfix|docs|chore)/<ticket-id>-<brief-description> - PR Size: Keep PRs under 400 lines for effective review
- Review Response: Address review comments within 24 hours
- Merge Strategy: Squash for feature branches, merge for release branches
- Sign-Off: Require at least 2 approvals for main branch changes
Limitations
- Use this skill only when the task clearly matches the scope described above.
- Do not treat the output as a substitute for environment-specific validation, testing, or expert review.
- Stop and ask for clarification if required inputs, permissions, safety boundaries, or success criteria are missing.