AI Agent Hub
AI エージェント / プラグイン情報メディア
← 一覧へ
Claude Code Action
CLAUDE

Claude Code Action

Claude Code Action

Anthropic 公式の GitHub Actions。PR や Issue で @claude をメンションすると Claude Code がリポジトリ内で実装やレビューを行い PR を作成する。

#GitHub Actions#公式#CI/CD
REPO STATS

リポジトリ統計

⭐ Stars
7.5k
🍴 Forks
1.8k
⚠️ Open Issues
531
🌿 Language
TypeScript
📄 License
MIT
🕒 最終更新
2026.05.07 (今日)
📅 公開日
2025.05.20
🌿 Branch
main
README

ドキュメント

— AI による自動翻訳 (2026.05.07 更新)

Claude Code Action responding to a comment

Claude Code Action

GitHub の PR とイシューのための汎用 Claude Code アクションで、質問への回答とコード変更の実装ができます。このアクションはワークフロー コンテキストに基づいて、いつアクティベートするかを知的に検出します。@claude メンションへの応答、イシュー割り当て、または明示的なプロンプトによるオートメーション タスクの実行など、様々なシーンに対応します。Anthropic 直接 API、Amazon Bedrock、Google Vertex AI、Microsoft Foundry など複数の認証方法をサポートしています。

機能

  • 🎯 インテリジェント モード検出: ワークフロー コンテキストに基づいて、適切な実行モードを自動的に選択します。設定は不要です。
  • 🤖 インタラクティブ コード アシスタント: Claude はコード、アーキテクチャ、プログラミングについての質問に答えられます。
  • 🔍 コード レビュー: PR の変更を分析し、改善案を提案します。
  • コード実装: シンプルな修正、リファクタリング、さらには新機能の実装ができます。
  • 💬 PR/イシュー統合: GitHub のコメントと PR レビューとシームレスに連動します。
  • 🛠️ 柔軟なツール アクセス: GitHub API とファイル操作にアクセスできます。(追加のツールは設定で有効化できます)
  • 📋 進捗追跡: Claude がタスクを完了すると動的に更新されるチェックボックス付きの視覚的な進捗インジケーター
  • 📊 構造化された出力: 検証済み JSON 結果を取得でき、複雑なオートメーション用に自動的に GitHub Action の出力になります。
  • 🏃 自分たちのインフラストラクチャで実行: アクションは完全に自分たちの GitHub ランナー上で実行されます。(Anthropic API 呼び出しは選択したプロバイダーに送信されます)
  • ⚙️ シンプルな設定: 統一された promptclaude_args の入力により、Claude Code SDK と一致した、クリーンで強力な設定が実現します。

📦 v0.x からのアップグレード

マイグレーション ガイドを参照してください。ワークフローを v1.0 に更新するための手順を説明しています。新しいバージョンは設定をシンプルにしながら、既存のセットアップとの互換性を保ちます。

クイックスタート

このアクションをセットアップする最も簡単な方法は、ターミナルから Claude Code を通じて行うことです。単に claude を開いて /install-github-app を実行してください。

このコマンドは、GitHub アプリのセットアップと必要なシークレットの設定をガイドしてくれます。

注意:

  • GitHub アプリをインストールしてシークレットを追加するには、リポジトリ管理者である必要があります。
  • このクイックスタート方法は、Anthropic 直接 API ユーザーのみが利用可能です。AWS Bedrock、Google Vertex AI、または Microsoft Foundry のセットアップについては、docs/cloud-providers.md を参照してください。

📚 ソリューション & ユースケース

特定のオートメーション パターンをお探しですか?ソリューション ガイドで、以下を含む完全な動作例をご覧ください:

  • 🔍 自動 PR コード レビュー - フルレビュー オートメーション
  • 📂 パス固有のレビュー - 重要なファイル変更時にトリガー
  • 👥 外部コントリビューター レビュー - 新規コントリビューターへの特別な対応
  • 📝 カスタム レビュー チェックリスト - チーム標準の実施
  • 🔄 スケジュール メンテナンス - リポジトリのヘルスチェック自動化
  • 🏷️ イシュー トリアージ とラベリング - 自動カテゴリー化
  • 📖 ドキュメント同期 - ドキュメントをコード変更と同期させておく
  • 🔒 セキュリティ重視のレビュー - OWASP に準拠したセキュリティ分析
  • 📊 DIY 進捗追跡 - オートメーション モードで追跡コメントを作成

各ソリューションには、完全な動作例、設定の詳細、および期待される成果が含まれます。

ドキュメント

📚 FAQ

問題や質問がありますか?よくある質問ページで、一般的な問題の解決策と Claude の機能および制限事項の詳細な説明をご確認ください。

ライセンス

このプロジェクトは MIT ライセンスの下でライセンスされています。詳細は LICENSE ファイルを参照してください。

— GitHub から取得した原文(一部省略の場合あり)

Claude Code Action responding to a comment

Claude Code Action

A general-purpose Claude Code action for GitHub PRs and issues that can answer questions and implement code changes. This action intelligently detects when to activate based on your workflow context—whether responding to @claude mentions, issue assignments, or executing automation tasks with explicit prompts. It supports multiple authentication methods including Anthropic direct API, Amazon Bedrock, Google Vertex AI, and Microsoft Foundry.

Features

  • 🎯 Intelligent Mode Detection: Automatically selects the appropriate execution mode based on your workflow context—no configuration needed
  • 🤖 Interactive Code Assistant: Claude can answer questions about code, architecture, and programming
  • 🔍 Code Review: Analyzes PR changes and suggests improvements
  • Code Implementation: Can implement simple fixes, refactoring, and even new features
  • 💬 PR/Issue Integration: Works seamlessly with GitHub comments and PR reviews
  • 🛠️ Flexible Tool Access: Access to GitHub APIs and file operations (additional tools can be enabled via configuration)
  • 📋 Progress Tracking: Visual progress indicators with checkboxes that dynamically update as Claude completes tasks
  • 📊 Structured Outputs: Get validated JSON results that automatically become GitHub Action outputs for complex automations
  • 🏃 Runs on Your Infrastructure: The action executes entirely on your own GitHub runner (Anthropic API calls go to your chosen provider)
  • ⚙️ Simplified Configuration: Unified prompt and claude_args inputs provide clean, powerful configuration aligned with Claude Code SDK

📦 Upgrading from v0.x?

See our Migration Guide for step-by-step instructions on updating your workflows to v1.0. The new version simplifies configuration while maintaining compatibility with most existing setups.

Quickstart

The easiest way to set up this action is through Claude Code in the terminal. Just open claude and run /install-github-app.

This command will guide you through setting up the GitHub app and required secrets.

Note:

  • You must be a repository admin to install the GitHub app and add secrets
  • This quickstart method is only available for direct Anthropic API users. For AWS Bedrock, Google Vertex AI, or Microsoft Foundry setup, see docs/cloud-providers.md.

📚 Solutions & Use Cases

Looking for specific automation patterns? Check our Solutions Guide for complete working examples including:

  • 🔍 Automatic PR Code Review - Full review automation
  • 📂 Path-Specific Reviews - Trigger on critical file changes
  • 👥 External Contributor Reviews - Special handling for new contributors
  • 📝 Custom Review Checklists - Enforce team standards
  • 🔄 Scheduled Maintenance - Automated repository health checks
  • 🏷️ Issue Triage & Labeling - Automatic categorization
  • 📖 Documentation Sync - Keep docs updated with code changes
  • 🔒 Security-Focused Reviews - OWASP-aligned security analysis
  • 📊 DIY Progress Tracking - Create tracking comments in automation mode

Each solution includes complete working examples, configuration details, and expected outcomes.

Documentation

📚 FAQ

Having issues or questions? Check out our Frequently Asked Questions for solutions to common problems and detailed explanations of Claude's capabilities and limitations.

License

This project is licensed under the MIT License—see the LICENSE file for details.

RELATED

同じカテゴリの他のツール