Agent skill
triage-prs
Triage open GitHub PRs assigned to the user. Fetch PRs where CI has completed and cc-in-progress label is not present, run create-review-fix-plan for each, then either add cc-fix-onetime label (if fixes are needed) or merge the PR (if it's ready to merge as-is).
Install this agent skill to your Project
npx add-skill https://github.com/getty104/claude-code-marketplace/tree/main/base-tools/skills/triage-prs
SKILL.md
Triage PRs
ユーザーにアサインされたオープンなPRを取得し、CIが完了済みかつcc-fix-onetimeラベルがついていないPRに対して修正プランを確認し、適切なアクション(ラベル付与またはマージ)を実行するスキルです。
Instructions
実行ステップ
1. 対象PR一覧の確認
対象対象PR一覧は以下の通り。
!gh pr list --assignee "$(gh api user --jq '.login')" --label "cc-triage-scope" --state open --json number,title,url,labels,headRefName,statusCheckRollup,reviewDecision --limit 100 --jq '[.[] | select(([.labels[].name] | any(. == "cc-fix-onetime")) | not) | select((.statusCheckRollup | length == 0) or (.statusCheckRollup | all(.status == "COMPLETED")))]'
対象PRが0件の場合は、その旨を報告して終了する。
2. 各PRに対するトリアージ処理
上記の対象PRすべてに対して、pr-triage-processor エージェントをAgent toolでトリアージ処理を行う。
エージェントは並列で実行する。
各PRについて、以下の情報をエージェントに渡す:
- PR番号
- PRタイトル
- ブランチ名(headRefName)
エージェントがPRの分析(ブランチのcheckout、コンフリクト確認・解消、修正プラン確認、判定)とアクション(ラベル付与またはマージ)を実行する。すべてのエージェントの結果を収集する。
各エージェントが作成したworktreeは、エージェントの処理が完了した後にまだ残っていれば削除する。
3. 結果の報告
処理結果を以下の形式で報告する。
- 処理したPRの総数
- パターンA(修正が必要): PR番号とタイトルの一覧、修正が必要な理由の要約
- パターンB(マージ済み): PR番号とタイトルの一覧
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
bump-version
base-toolsプラグインのバージョン(patchバージョン)をインクリメントし、commit-pushでコミット・プッシュする。「バージョンを上げて」「バージョンアップ」「bump version」などのリクエストで使用する。
create-agent
Create a new sub-agent definition file (agents/*.md) for the Claude Code plugin. Use this skill when the user wants to add a new specialized agent, define a new agent type, or create an agent that handles a specific domain of tasks. Trigger whenever the user mentions creating, adding, or defining a new agent or sub-agent.
resolve-pr-comments
GitHub PRの未解決Review threadsを一括Resolveします。
update-issue
Update an existing GitHub Issue's description based on the issue number and request provided as arguments
fix-review-point
Address unresolved review comments on specified branch
create-task-summary
直近一週間で自身が作成したPRを取得し、やったことのサマリーを作成する。週次報告や作業振り返り時に使用。
Didn't find tool you were looking for?