Gh Address Commentsのロゴ

Gh Address Comments

コミュニティ
jmagar
gh-address-comments

This skill should be used when addressing GitHub pull request review comments systematically with mandatory resolution tracking. Use when user says "address PR comments", "fix review feedback", "handle PR review", "resolve PR threads", or needs to ensure all review comments are addressed before merging. Fetches comments via gh CLI, creates task checklists, links commits to review threads, and blocks completion if unresolved threads remain.

概要

公開者jmagar
リポジトリclaude-homelab
スキル名gh-address-comments
スター
87
フォーク
11
同梱ファイル
12
ライセンスMIT
リンク
  • Markdown形式の指示

    モデルが必要に応じて読み込むSKILL.mdファイルです。関連するリクエストがあったときだけトークンを消費します。

  • どのLLMでも利用可能

    AIスキルはプロバイダー固有のコードではなく、通常のMarkdownなので、GPT、Claude、Gemini、Grok、ローカルモデルで利用できます。

  • 12個の同梱ファイル

    モデルが作業中に読み取れるスクリプト、テンプレート、参考資料です。ファイルは読み取り専用で、実行されることはありません。

  • オープンソース

    jmagarがGitHubで公開しています。インストールする前にソースを確認してください。

インストール

AIスキル「Gh Address Comments」をTypingMindにインストールすれば、どのLLMでも利用できます。SKILL.mdを読み取れる別のAIエージェントに追加することもできます。

1

TypingMindにインストール

TypingMindはGitHubフォルダから直接スキルをインストールします。SKILL.mdを読み取り、リソースファイルをまとめてローカルに保存します。

  1. アプリを開き、「プラグイン」→「スキル」に移動します。
  2. 「GitHubからインストール」を選択します。
  3. 以下のスキルフォルダのURLを貼り付けて確定します。
    https://github.com/jmagar/claude-homelab/tree/main/skills/gh-address-comments
  4. スキルを利用したいチャットごとに、そのスキルを有効にしてください。
「プラグイン」→「スキル」→「スキルを追加」→「GitHubのURLから」を選択し、フォルダのURLを貼り付けて「続行」を押します。
2

別のAIエージェントにインストール

Agent Skills形式を読み取れるAIエージェントなら、このスキルを利用できます。フォルダをそのAIエージェントのスキルディレクトリにコピーしてください。

Claude Code — .claude/skills
git clone --depth 1 https://github.com/jmagar/claude-homelab.git /tmp/claude-homelab
mkdir -p .claude/skills
cp -r /tmp/claude-homelab/skills/gh-address-comments .claude/skills/gh-address-comments
コピー後、新しいスキルを読み込むためにClaude Codeを再起動してください。

TypingMindで使用

TypingMindのチャットでGh Address Commentsを有効にするだけで、あとはモデルが対応します。名前と説明がシステムプロンプトに含まれ、関連するリクエストがあると、モデルが指示の全文を自動で読み込みます。手動で呼び出す必要はなく、実際に使用されるまでトークンを消費しません。

関連するリクエストがあるとすぐに、モデルが自動的にGh Address Commentsを読み込みます。

どのAIモデルでも利用可能

AIスキルはプロバイダー固有のコードではなく、通常のMarkdownで書かれた指示です。そのため、Gh Address Commentsは作成時に想定されたモデルに縛られません。TypingMindに一度インストールすれば、ご自身のAPIキーを使って、GPT-5、Claude、Gemini、Grok、DeepSeek、Mistral、Llama、またはご自身で実行するローカルモデルで利用できます。

  • 必要なときだけ読み込み

    システムプロンプトには名前と説明だけが含まれます。関連するリクエストが初めてあったときに指示を取得するため、スキルを使わない間は指示の読み込みにトークンを消費しません。

  • チャットの途中でモデルを切り替え

    スキルはコードではなく指示なので、モデルを切り替えてもそのまま使えます。次のモデルも同じSKILL.mdを読み込みます。

スキルの指示

モデルが読み込むSKILL.mdの内容です。スキルはモデルが従う指示なので、インストールする前に確認してください。

PR Comment Handler with Resolution Tracking

⚠️ MANDATORY SKILL INVOCATION ⚠️

YOU MUST invoke this skill (NOT optional) when the user mentions ANY of these triggers:

  • "address PR comments", "fix review feedback", "handle PR review"
  • "resolve PR threads", "respond to review", "work through comments"
  • "address the feedback", "mark threads resolved", "clear review comments"
  • Any mention of systematically handling GitHub pull request review comments

Failure to invoke this skill when triggers occur violates your operational requirements.

Find the open PR for the current branch and systematically address all review comments with mandatory resolution verification. This workflow ensures no feedback slips through the cracks by tracking threads as tasks, linking commits to specific reviews, and blocking completion if any threads remain unresolved. Run all gh commands with elevated network access.

Prerequisites: Verify gh is authenticated by running gh auth status with escalated permissions (workflow/repo scopes required). If not authenticated, run gh auth login --scopes repo,workflow. If sandboxing blocks gh auth status, rerun with sandbox_permissions=require_escalated.

Workflow

1) Fetch all PR comments

Run python3 $HOME/.claude/skills/gh-address-comments/scripts/fetch_comments.py to fetch all comments and review threads on the PR. Store output for later verification.

Example:

bash
python3 $HOME/.claude/skills/gh-address-comments/scripts/fetch_comments.py > /tmp/pr_comments.json

2) Create tracking checklist

Parse the fetched comments and create a task checklist using TaskCreate for each review thread. Each task should:

  • Include the thread number, file path, line number, and comment summary
  • Have status pending initially
  • Store the thread ID in task metadata for later resolution

Task format:

  • Subject: Address comment #N: [file]:[line]
  • Description: Comment author, body preview, and what needs to be done
  • Metadata: {"thread_id": "PRRT_kwDOABC...", "file": "path/to/file.ts", "line": 42}

3) Ask user which comments to address

Present all numbered review threads with summaries. Ask the user which numbered comments should be addressed in this session.

Display format:

Review Threads:
  1. src/api/users.ts:45 (@reviewer): Add input validation for email field...
     Thread ID: PRRT_kwDOABCDEF1234567
     Status: Unresolved

  2. src/utils/auth.ts:128 (@reviewer): Extract this logic into a helper function...
     Thread ID: PRRT_kwDOABCDEF7654321
     Status: Unresolved

4) Apply fixes with commit linking

For each selected comment:

  1. Update task status to in_progress using TaskUpdate
  2. Apply code changes using standard tools (Edit, Write)
  3. Commit with message that references the comment number and thread ID:
    fix: address PR comment #1 - add email validation
    
    Resolves review thread PRRT_kwDOABCDEF1234567
    - Added Zod schema validation for email field
    - Added error handling for invalid formats
    
    Co-authored-by: @reviewer
  4. Update task status to completed using TaskUpdate

Commit message format:

  • First line: fix: address PR comment #N - [brief description]
  • Blank line
  • Resolves review thread [THREAD_ID]
  • Bullet points explaining the changes
  • Co-authored-by: @reviewer if substantial changes based on feedback

5) Mark threads as resolved

After committing fixes, mark the corresponding review threads as resolved using:

bash
python3 $HOME/.claude/skills/gh-address-comments/scripts/mark_resolved.py <thread_id_1> [thread_id_2] ...

Example:

bash
python3 $HOME/.claude/skills/gh-address-comments/scripts/mark_resolved.py \
  PRRT_kwDOABCDEF1234567 \
  PRRT_kwDOABCDEF7654321

6) Verify complete resolution (MANDATORY - BLOCKS IF SKIPPED)

Before declaring the PR review complete, verify all threads are addressed:

bash
python3 $HOME/.claude/skills/gh-address-comments/scripts/fetch_comments.py | \
  python3 $HOME/.claude/skills/gh-address-comments/scripts/verify_resolution.py

Exit behavior:

  • Exit 0: All threads resolved/outdated → safe to proceed
  • Exit 1: Unresolved threads found → BLOCKED until addressed

IMPORTANT: Do NOT skip this verification step. If unresolved threads are found:

  1. Ask user to explicitly acknowledge which threads to defer
  2. Create follow-up tasks for deferred threads
  3. Only proceed after user confirms understanding of what remains unresolved

Error Handling

Authentication issues: If gh hits auth/rate issues mid-run, prompt the user to re-authenticate with gh auth login, then retry.

Thread resolution failures: If mark_resolved.py fails for specific threads:

  1. Check the thread ID is correct (from fetch_comments.py output)
  2. Verify you have write permissions on the PR
  3. Ensure the thread still exists (not deleted by reviewer)

Verification failures: If verify_resolution.py reports unresolved threads:

  1. Review the listed thread IDs
  2. Either address remaining threads OR get explicit user approval to defer
  3. Document deferred threads in follow-up tasks

Notes

  • Review threads marked as "outdated" (code changed since comment) are considered addressed
  • Conversation comments (non-threaded) don't block completion but should be acknowledged
  • Always link commits to thread IDs for traceability
  • Use TaskList to track overall progress across all review threads

Additional Resources

For detailed information, see:

  • Resolution workflow deep dive: references/resolution-workflow.md
  • Command cheatsheet: references/quick-reference.md
  • GitHub API details: references/api-endpoints.md
  • Common issues: references/troubleshooting.md

同梱ファイル

スキルが読み込まれている間、モデルは必要に応じてこれらを読み取ります。読み取り可能なファイルとして提供され、実行されることはありません。

よくある質問

AIスキル「Gh Address Comments」では何ができますか?

This skill should be used when addressing GitHub pull request review comments systematically with mandatory resolution tracking. Use when user says "address PR comments", "fix review feedback", "handle PR review", "resolve PR threads", or needs to ensure all review comments are addressed before merging. Fetches comments via gh CLI, creates task checklists, links commits to review threads, and blocks completion if unresolved threads remain.

TypingMindでGh Address Commentsを使うメリットは何ですか?

一度インストールすれば、どのモデルでも使えるからです。Gh Address Commentsはプロバイダー固有のコードではなく、通常のMarkdownで記述されているため、同じスキルをGPT-5、Claude、Gemini、Grok、ローカルモデルで利用できます。チャットの途中でモデルを切り替えても、そのまま使い続けられます。TypingMindは自分のAPIキーで動作するため、シート単位のサブスクリプションではなく、プロバイダーに直接料金を支払います。スキルとチャットは自分のストレージに保持されます。

TypingMindにGh Address Commentsをインストールするにはどうすればよいですか?

TypingMindで「プラグイン」→「スキル」→「GitHubからインストール」を開き、https://github.com/jmagar/claude-homelab/tree/main/skills/gh-address-commentsを貼り付けてください。TypingMindがSKILL.mdを読み込み、関連ファイルをまとめて、チャットごとに有効にできるスキルとしてインストールします。

Gh Address Commentsを使えるAIモデルはどれですか?

TypingMindに接続したどのモデルでも利用できます。AIスキルはプロバイダー固有のコードではなく、通常のMarkdownで書かれた指示です。そのため、GPT、Claude、Gemini、Grok、ローカルモデルのいずれも、リクエストの内容がこのスキルの用途に合ったときに、このスキルを読み込めます。

Gh Address Commentsで使えるAIモデルの数に制限はありますか?

数に制限はありません。スキルに対応したモデルであれば、GPT、Claude、Gemini、Grok、DeepSeek、Mistral、Llamaなど、どのモデルでもGh Address Commentsを利用できます。すべてTypingMind上で、自分のAPIキーを使って利用できます。

AIスキル「Gh Address Comments」は無料ですか?

はい。jmagarがMITライセンスのもとでGitHubに公開しています。ご利用のAIプロバイダーに支払うのは、使用したトークンの料金だけです。

AIスキルとは何ですか?

AIスキルは、特定のタスクの実行方法をAIモデルに教える、再利用可能な指示のセットです。オープンなAgent Skills形式に従い、名前と説明を含むSKILL.mdファイルに加え、モデルが必要とするスクリプト、テンプレート、参照ファイルで構成されます。モデルはリクエストがスキルに合致したときだけ指示を読み込むため、インストール済みのスキルも、使うまでは費用がかかりません。

AIスキルは、プラグインやMCPサーバーとどう違いますか?

プラグインやMCPサーバーは、モデルが呼び出せる新しいツールを提供します。ツールとは、どこかで実行され、結果を返すコードです。一方、AIスキルは、タスクへの取り組み方、従うべき手順、望ましい出力の例といった知識や進め方をモデルに伝えます。スキルは通常のMarkdownで記述されているため、サーバー、APIキー、実行環境は不要で、どのモデルでも利用できます。

すべて見る

今すぐ自分専用のAIワークスペースを作成

ニュースレターに登録すると、新機能や今後のプレゼント企画のお知らせが届きます👇