本文へ移動
cccskills
無料GitHub で公開日本語紹介

issue-to-pr-resolver

GitHubのIssueを起点に、作業ブランチで実装とテストを行い、Draft PRの作成からCI失敗やレビューコメントの解消まで進めます。

原文原文の説明を見る

Implement a GitHub issue end-to-end — create a worktree branch, implement the feature with tests, create a draft PR, then iteratively resolve all CI failures and review comments until the PR is clean. Use when you need to fully implement a GitHub issue from start to merge-ready. Triggers on "implement issue", "resolve issue", "/issue-to-pr-resolver <number>".

homeassistant-ai/ha-mcpスター 5,351(GitHub 5,351 + cccskills 0)
連携ツールGitHub

実行スコア 未検証

インストール方法を見る

こんなときに便利

  • GitHub Issueを実装からPRまで進めたいとき
  • IssueからDraft PRを作成したいとき
  • CI失敗やレビューコメントを解消したいとき

日本語での紹介

できること

指定したGitHub Issueを読み、専用のworktreeとブランチを用意して、コードベースの構成や既存の実装パターンを確認したうえで変更を実装します。新しい機能に必要なテストを書き、変更をコミットしてDraft PRを作成します。その後、CIの結果とレビューコメントを確認し、必要な修正を加えて再チェックします。レビューコメントには返信し、該当スレッドも解決します。すべてのチェックが通り、未解決のスレッドがなくなった段階で、実装内容や判断、発生した問題をまとめます。

こんなときに便利

Issueの調査から実装、テスト、Draft PRの準備までを一連の作業として進めたいときに向いています。PR作成後のCIエラーやレビュー対応も続けて整理したい場合に使えます。作業は最大5回の解決サイクルを目安とし、それでも解決できない場合は残った問題を報告します。

使い方の例

  • 「Issue 123を実装してDraft PRを作成してください」
  • 「このIssueを解決し、CIとレビューコメントも対応してください」

注意点

GitHub CLIのghを使ってIssueやPRを操作します。作業はworktree上で行い、PRはDraftとして作成します。PRをReadyにする操作は、利用者から依頼があるまで行いません。

この紹介文は、公開されている SKILL.md をもとに AI(OpenAI Codex)が作成しました。正確な仕様は下の原文を確認してください。

含まれるファイル(1)

  • SKILL.md4.5 KB

SKILL.md(原文)

インストールする前に、エージェントに与えられる指示の中身を確認できます。

Issue-to-PR Resolver

Implement GitHub issue #$ARGUMENTS in homeassistant-ai/ha-mcp end-to-end.

Phase 1: Setup

Read the issue:

gh issue view "$ARGUMENTS" --repo homeassistant-ai/ha-mcp --json title,body,labels,comments,author

Create a worktree from repo root:

cd "$(git rev-parse --show-toplevel)"
git checkout master && git pull origin master
git worktree add "worktree/issue-$ARGUMENTS" -b "feature/issue-$ARGUMENTS"
git -C "worktree/issue-$ARGUMENTS" submodule update --init --recursive
cd "worktree/issue-$ARGUMENTS"

Phase 2: Implement

  • Analyze codebase structure and patterns before writing code
  • Follow project conventions (see AGENTS.md for patterns, naming, error handling)
  • Write tests — all new MCP tools in src/ha_mcp/tools/ need E2E tests
  • Make atomic, well-described commits using conventional commit prefixes

Philosophy: Work autonomously. Don't ask about every small decision. Fix unrelated test failures encountered. Document all choices for the final summary.

If a non-obvious choice has significant consequences, present the available options to the user and let them choose.

Phase 3: Create PR

Write the PR body to local/pr-body-$ARGUMENTS.md first. local/ is git-ignored, so a new worktree does not have it; create it with mkdir -p local if it does not exist. Build the body from .github/pull_request_template.md: keep its headings, put Closes #$ARGUMENTS and the description under ## What does this PR do?, and delete ## Future improvements unless the user has confirmed work to defer. Then push and create the PR:

git push -u origin "feature/issue-$ARGUMENTS"
PR_NUMBER=$(gh pr create --draft \
  --repo homeassistant-ai/ha-mcp \
  --title "<descriptive title>" \
  --body-file "local/pr-body-$ARGUMENTS.md" | grep -oE '[0-9]+$')

Wait for CI:

gh pr checks "$PR_NUMBER" --repo homeassistant-ai/ha-mcp --watch

Before marking ready (gh pr ready), update the PR description to reflect all changes made.

Phase 4: Resolution Loop

Repeat until all checks green and no unresolved threads:

Check for issues:

gh pr checks "$PR_NUMBER" --repo homeassistant-ai/ha-mcp
gh api repos/homeassistant-ai/ha-mcp/pulls/"$PR_NUMBER"/comments \
  --jq '.[] | {id, path, line, author: .user.login, body}'
gh api graphql -F pr="$PR_NUMBER" -f query='query($pr: Int!) { repository(owner:"homeassistant-ai", name:"ha-mcp") { pullRequest(number:$pr) { reviewThreads(first:100) { nodes { id isResolved comments(first:1) { nodes { databaseId body } } } } } } }'

Resolve each comment (both steps required):

# 1. Reply on the inline thread
gh api repos/homeassistant-ai/ha-mcp/pulls/"$PR_NUMBER"/comments/<COMMENT_ID>/replies \
  -f body="✅ Fixed in [commit]. [explanation]"
# or: -f body="📝 Not addressing because [reason]."

# 2. Resolve the thread via GraphQL
gh api graphql -f query='mutation($threadId: ID!) { resolveReviewThread(input: {threadId: $threadId}) { thread { id isResolved } } }' \
  -f threadId="<PRRT_...>"

After pushing fixes, wait and re-check:

gh pr checks "$PR_NUMBER" --repo homeassistant-ai/ha-mcp --watch

Phase 5: Final Report

Once all checks pass and all threads resolved:

gh pr comment "$PR_NUMBER" --repo homeassistant-ai/ha-mcp --body "## Implementation Summary

**Choices Made:**
- [key technical decisions with rationale]

**Problems Encountered:**
- [issues faced and how resolved]
- [unrelated test failures fixed, if any]
"

Report to user: PR number, status, key choices.

Rules

  • Never commit to master — always work in the worktree
  • Always create PRs as draft — never mark ready without user request
  • Maximum 5 resolution iterations before reporting blockers
  • Discovered improvements: fix-in-place by default. See AGENTS.md § Boy Scout Rule — Handling Discovered Improvements for the full rubric. Never open a follow-up PR or issue without explicit user approval; never populate ## Future improvements without the user explicitly confirming the work is out of scope.

レビュー

まだレビューはありません。使ってみた感想をお寄せください。

コメント

ログインなしで書き込めます。使ってみた感想、質問、動かなかった環境などを気軽にどうぞ。

まだコメントはありません。最初のコメントを書いてみませんか。

送信するとすぐに公開されます。メールアドレスや電話番号などの個人情報は書かないでください。URL は 2 つまでです。

0 / 1000 文字

このフォームは reCAPTCHA で保護されており、Google のプライバシーポリシーと利用規約が適用されます。

同じリポジトリのスキル

bat-adhoc

無料概要あり

実際のAIエージェントからMCPツールを操作する受け入れテストを組み立て、実行結果や失敗内容を確認し、必要に応じてブランチ間の動作を比較するスキルです。

  • PRのMCPツール変更を検証したいとき
  • エージェント視点で回帰を調べたいとき
  • ClaudeやGeminiで一連の動作を試したいとき
homeassistant-ai/ha-mcp5,3512026年10月29日 更新

bat-story-eval

無料概要あり

MCPツールの変更前後を、既存と独自のストーリーで複数のエージェントから検証し、実行結果やツール選択、コストの差を比較するスキルです。

  • リリース版と変更中の動作を比較したいとき
  • 変更箇所に合うテストストーリーを選びたいとき
  • 未カバーの回帰シナリオを作りたいとき
homeassistant-ai/ha-mcp5,3512026年10月29日 更新

contrib-pr-review

無料概要あり

外部からのGitHub PRを安全性、テスト状況、変更規模、目的との整合性から確認し、レビュー結果と投稿前のコメント案をまとめるスキルです。

  • 外部コントリビューターのPRをレビューしたいとき
  • 変更コードのテスト状況を確認したいとき
  • PRと関連Issueの整合性を見たいとき
homeassistant-ai/ha-mcp5,3512026年10月29日 更新

contributors-update

無料概要あり

READMEの貢献者一覧を確認し、更新以降にマージされたPRから未掲載の執筆者を探して、承認後に追加するスキルです。

  • PR執筆者の掲載漏れを探したいとき
  • 貢献者一覧の追加案を作りたいとき
  • READMEの貢献者欄を更新したいとき
homeassistant-ai/ha-mcp5,3512026年10月29日 更新

issue-analysis

無料概要あり

GitHub Issueに関連するコードを調べ、実装の選択肢や難易度、設計上の影響を整理して、ラベルと分析コメント案を作成します。

  • Issueの難易度を実装前に把握したいとき
  • 実装方針の選択肢を比較したいとき
  • Issueの分析コメント案を作成したいとき
homeassistant-ai/ha-mcp5,3512026年10月29日 更新

my-pr-checker

無料概要あり

自分が作成したGitHub PRのCI、レビューコメント、未解決スレッドを確認し、指摘の修正から再チェックまで進めるスキルです。

  • 自分のPRのCI状況を確認したいとき
  • レビュー指摘を整理して修正したいとき
  • 修正後にレビュー項目を解決したいとき
homeassistant-ai/ha-mcp5,3512026年10月29日 更新

homeassistant-ai のスキルをすべて見る

このスキルの問題を報告する