Logo di Gh Address Comments

Gh Address Comments

Community
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.

Panoramica

Autorejmagar
Repositoryclaude-homelab
Nome della skillgh-address-comments
Stelle
87
Fork
11
File inclusi
12
LicenzaMIT
Link
  • Istruzioni in Markdown

    Un file SKILL.md che il modello carica quando serve, consumando token solo quando una richiesta è effettivamente pertinente.

  • Funziona con qualsiasi LLM

    Le skill IA sono in semplice Markdown, non in codice specifico di un fornitore, quindi funzionano con GPT, Claude, Gemini, Grok o un modello locale.

  • 12 file inclusi

    Script, modelli di documento e riferimenti che il modello può leggere mentre lavora. I file sono di sola lettura e non vengono mai eseguiti.

  • Open source

    Pubblicata da jmagar su GitHub. Leggi i sorgenti prima di installarla.

Installazione

Installa la skill IA Gh Address Comments in TypingMind per usarla con qualsiasi LLM, oppure copiala in un altro agente in grado di leggere SKILL.md.

1

Installa in TypingMind

TypingMind installa una skill direttamente dalla sua cartella GitHub: legge SKILL.md, raccoglie i file delle risorse e salva il risultato in locale.

  1. Apri l'app e vai su Plugin → Skill.
  2. Scegli "Installa da GitHub".
  3. Incolla l'URL della cartella della skill riportato qui sotto e conferma.
    https://github.com/jmagar/claude-homelab/tree/main/skills/gh-address-comments
  4. Attiva la skill in ogni chat in cui vuoi averla a disposizione.
Plugin → Skill → Nuova skill → Da URL GitHub, poi incolla l'URL della cartella e premi Continua.
2

Installa in un altro agente

Qualsiasi agente che legge il formato Agent Skills può usare questa skill: copia la cartella nella cartella delle skill di quell'agente.

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
Dopo la copia, riavvia Claude Code per caricare la nuova skill.

Usala in TypingMind

Attiva Gh Address Comments in qualsiasi chat di TypingMind e al resto pensa il modello. Il nome e la descrizione della skill sono nel prompt di sistema e, non appena arriva una richiesta pertinente, il modello carica da solo le istruzioni complete: non devi mai richiamarla manualmente e non consuma token finché non viene effettivamente usata.

Il modello carica automaticamente Gh Address Comments non appena riceve una richiesta pertinente.

Funziona con qualsiasi modello IA

Le skill IA sono semplici istruzioni in Markdown, non codice specifico di un fornitore, quindi Gh Address Comments non è vincolata al modello per cui è stata scritta. Installala una sola volta in TypingMind e usala con GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama o un modello locale che esegui tu, sempre con le tue chiavi API.

  • Caricata solo quando serve

    Il prompt di sistema contiene solo il nome e la descrizione. Le istruzioni vengono recuperate alla prima richiesta pertinente, quindi una skill inutilizzata non costa nulla.

  • Cambia modello durante la chat

    Poiché la skill è composta da istruzioni e non da codice, continua a funzionare anche se cambi modello: il nuovo modello legge lo stesso file SKILL.md.

Istruzioni della skill

Questo è il contenuto di SKILL.md che il modello carica. Leggilo prima dell'installazione: una skill è un insieme di istruzioni che il tuo modello seguirà.

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

File inclusi

Il modello legge questi file quando servono, mentre la skill è caricata. Sono accessibili in sola lettura e non vengono mai eseguiti.

Domande frequenti

Cosa fa la skill IA 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.

Perché usare Gh Address Comments su TypingMind?

Perché la installi una volta e la usi con qualsiasi modello. Gh Address Comments è scritta in semplice Markdown anziché in codice specifico di un fornitore, quindi la stessa skill funziona con GPT-5, Claude, Gemini, Grok o un modello locale, e puoi cambiare modello durante la chat senza che smetta di funzionare. TypingMind usa le tue chiavi API, quindi paghi direttamente i fornitori anziché un abbonamento per posto utente, e le tue skill e chat restano nel tuo spazio di archiviazione.

Come installo Gh Address Comments in TypingMind?

Apri Plugin → Skill → Installa da GitHub in TypingMind e incolla https://github.com/jmagar/claude-homelab/tree/main/skills/gh-address-comments. TypingMind legge il file SKILL.md, include i file associati e installa la skill, che puoi abilitare per ogni singola chat.

Quali modelli IA possono usare Gh Address Comments?

Qualsiasi modello che colleghi in TypingMind. Le skill IA sono semplici istruzioni in Markdown anziché codice specifico di un fornitore, quindi GPT, Claude, Gemini, Grok e i modelli locali possono tutti caricare questa skill quando una richiesta corrisponde al suo scopo.

Quanti modelli IA posso usare con Gh Address Comments?

Quanti ne vuoi. Se un modello supporta le skill, puoi usarlo con Gh Address Comments: GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama e molti altri, tutti su TypingMind con le tue chiavi API.

La skill IA Gh Address Comments è gratuita?

Sì. È pubblicata su GitHub da jmagar con licenza MIT. Paghi solo il tuo fornitore IA per i token che usi.

Cosa sono le skill IA?

Una skill IA è un pacchetto di istruzioni riutilizzabili che insegna a un modello IA come svolgere un'attività specifica. Segue il formato aperto Agent Skills: un file SKILL.md con un nome e una descrizione, più eventuali script, modelli o file di riferimento di cui il modello potrebbe aver bisogno. Il modello legge le istruzioni solo quando la tua richiesta corrisponde alla skill, quindi una skill installata non comporta costi finché non viene usata.

In cosa si differenziano le skill IA dai plugin o dai server MCP?

Un plugin o un server MCP fornisce a un modello nuovi strumenti da richiamare: codice che viene eseguito da qualche parte e restituisce un risultato. Una skill IA, invece, fornisce al modello conoscenze e procedure: come affrontare un'attività, quali passaggi seguire e quali caratteristiche deve avere un buon output. Le skill sono semplici istruzioni in Markdown, quindi non richiedono server, chiavi API né ambienti di esecuzione e funzionano con qualsiasi modello.

Vedi tutti

Crea subito la tua area di lavoro IA

Iscriviti alla nostra newsletter per ricevere aggiornamenti sulle nuove funzionalità e sulle prossime iniziative a premi 👇