Logo vun Pr Comments

Pr Comments

Communautéit
domengabrovsek
pr-comments

Watches an open PR for reviewer comments and addresses them: fixes the code, replies inline to bots, and drafts replies to humans for the user to post. Use after opening a PR, when the user says 'address the comments' or 'check the PR comments', or when a reviewer comments.

Iwwersiicht

Editeurdomengabrovsek
Repositoryagent-config
Skill-Nummpr-comments
Stären
22
Forks
4
Matgeliwwert Fichieren
1
Linken
  • Instruktiounen am Markdown-Format

    Eng SKILL.md-Datei, déi de Modell bei Bedarf luet, soudatt nëmmen Token ufalen, wann eng Ufro tatsächlech dozou passt.

  • Funktionéiert mat all LLM

    KI-Skills si reng Markdown, keen ubidderspezifesche Code. Dofir funktionéiert dëse Skill mat GPT, Claude, Gemini, Grok oder engem lokale Modell.

  • 1 matgeliwwert Dateien

    Skripten, Virlagen a Referenzen, déi de Modell beim Schaffe liese kann. D'Dateie kënnen nëmme gelies ginn a ginn ni ausgeféiert.

  • Open Source

    Vum domengabrovsek op GitHub verëffentlecht. Liest de Quelltext, ier Dir de Skill installéiert.

Installatioun

Installéiert de KI-Skill Pr Comments an TypingMind, fir e mat all LLM ze benotzen, oder füügt en an en anere KI-Agent an, deen SKILL.md liest.

1

An TypingMind installéieren

TypingMind installéiert e Skill direkt aus sengem GitHub-Dossier — dobäi gëtt SKILL.md gelies, d'Ressourcedateie gi gebëndelt an d'Resultat gëtt lokal gespäichert.

  1. Maacht d'App op a gitt op Plugins → Skills.
  2. Wielt „Vun GitHub installéieren“.
  3. Pecht d'URL vum Skill-Dossier hei drënner an a bestätegt.
    https://github.com/domengabrovsek/agent-config/tree/main/skills/pr-comments
  4. Aktivéiert de Skill an all Chat, an deem Dir e benotze wëllt.
Plugins → Skills → Skill afügen → Vu GitHub-URL, pecht dann d'URL vum Dossier an a klickt op Weider.
2

An engem anere KI-Agent installéieren

All KI-Agent, deen d'Format Agent Skills liest, kann dëse Skill benotzen — kopéiert den Dossier an de Skill-Verzeechnes vun deem KI-Agent.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/domengabrovsek/agent-config.git /tmp/agent-config
mkdir -p .claude/skills
cp -r /tmp/agent-config/skills/pr-comments .claude/skills/pr-comments
Start Claude Code nom Kopéieren nei, fir datt den neie Skill erkannt gëtt.

An TypingMind benotzen

Aktivéiert Pr Comments an engem Chat vun TypingMind, an de Modell iwwerhëlt de Rescht. Den Numm an d'Beschreiwung stinn am System-Prompt. Soubal eng Ufro dozou passt, luet de Modell déi komplett Instruktioune selwer — Dir musst de Skill ni manuell opruffen, an et fale keng Token un, bis en tatsächlech benotzt gëtt.

De Modell luet Pr Comments automatesch, soubal eng Ufro dozou passt.

Funktionéiert mat all KI-Modell

KI-Skills si reng Markdown-Instruktiounen amplaz vun ubidderspezifeschem Code. Dofir ass Pr Comments net un de Modell gebonnen, fir deen de Skill geschriwwe gouf. Installéiert en eemol an TypingMind a benotzt e mat GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama oder engem lokale Modell, deen Dir selwer bedreift — alles mat Ären eegenen API-Keys.

  • Gëtt nëmme gelueden, wann et néideg ass

    De System-Prompt enthält nëmmen den Numm an d'Beschreiwung. D'Instruktioune gi bei der éischter passender Ufro gelueden, soudatt en onbenotzte Skill näischt kascht.

  • De Modell am lafende Chat wiesselen

    Well de Skill aus Instruktiounen amplaz vu Code besteet, funktionéiert en och no engem Modellwiessel — den nächste Modell liest déi selwecht SKILL.md-Datei.

Skill-Instruktiounen

Dëst ass den Inhalt vu SKILL.md, deen de Modell luet. Liest e virun der Installatioun — e Skill besteet aus Instruktiounen, déi Äre Modell befollegt.

Address PR Review Comments

Watch and address comments on: $ARGUMENTS (default: the current branch's PR)

Workflow

why-no-hook: skill workflow guidance; each step requires understanding the surrounding context (repo, task shape, prior state).

  1. Start a Monitor with bash scripts/gh-comments-monitor.sh [pr-number], resolved inside this skill's own directory. Use timeout_ms: 1800000 and the description "PR comments on " (review-time: see section note)
  2. React to each line: (review-time: see section note)
    • comment|<kind>|<id>|<author>|<bot|human>|<url>: handle the comment as below
    • Monitor expiry: re-arm the same script. Seen IDs persist, so nothing repeats (review-time: see section note)
    • pr-closed|<state> or no-pr|<branch>: report and stop (review-time: see section note)
    • error|persistent-failure: report and stop (review-time: see section note)
  3. Read the comment and its thread: gh api repos/{owner}/{repo}/pulls/comments/<id> for inline, .../pulls/<n>/reviews/<id> for a review, .../issues/comments/<id> for conversation (review-time: see section note)
  4. Judge it against the code: valid, partly valid, or not applicable. Check the claim in the source before agreeing or disagreeing (review-time: see section note)
  5. Fix valid points, bot or human: make the change, run npm run verify:fast once per batch when package.json declares it, otherwise /verify-done. Commit, push. Batch comments that arrive together into one commit when they touch the same code (review-time: see section note)
  6. Reply by author type: (review-time: see section note)
    • Bot: post the reply yourself. Inline comments get a thread reply: gh api repos/{owner}/{repo}/pulls/<n>/comments/<id>/replies -f body=.... A review body or conversation comment gets a conversation comment that quotes the line it answers (review-time: see section note)
    • Human: never post. Add the draft to .claude/state/runs/<branch-slug>/reply-drafts.md with the comment URL, and show the user the URL and the draft. hooks/pre-pr-reply-gate.sh blocks inline replies to humans (hook)
  7. Update the PR body with gh pr edit when a fix changes what the PR does (review-time: see section note)

Reply voice

Write as the engineer who owns the PR.

  • One to three sentences. Name the change and its commit, or the reason for leaving the code as it is (review-time: see section note)
  • No thanks-openers, no "Great catch", no "You're right", no apologies, no emoji (review-time: see section note)
  • End every reply you post with a blank line, then <sub>Posted by <agent> on behalf of @<login></sub> on its own line. Name your host (Claude Code, Codex, pi), and take the login from gh api user --jq .login. Mention the agent nowhere else, and leave the footer off drafts the user posts. hooks/pre-pr-reply-gate.sh blocks a posted comment without it (hook)
  • Disagree with evidence: the file and line, or the test that covers the case (review-time: see section note)
  • Run write-plain on each reply before posting or drafting (review-time: see section note)

Examples:

  • A fix, with the footer on its own line:

    markdown
    Fixed in a1b2c3d. The retry now stops after the third attempt.
    
    <sub>Posted by Claude Code on behalf of @octocat</sub>
  • "Leaving this as is. parseDate already rejects empty input, see src/date.ts:42 and the test in date.test.ts."

Rules

  • Never resolve a human reviewer's thread. The reviewer resolves it (review-time: see section note)
  • Never dismiss a review or re-request review without the user asking (review-time: see section note)
  • A comment asking for a change outside the PR's scope gets a reply naming the follow-up, not a fix (review-time: see section note)
  • The same bot comment failing the same fix twice escalates to the user (review-time: see section note)

Matgeliwwert Fichieren

De Modell liest dës Dateie bei Bedarf, wärend de Skill gelueden ass. Si ginn als liesbar Dateie bereetgestallt a ginn ni ausgeféiert.

Heefeg gestallte Froen

Wat mécht de KI-Skill Pr Comments?

Watches an open PR for reviewer comments and addresses them: fixes the code, replies inline to bots, and drafts replies to humans for the user to post. Use after opening a PR, when the user says 'address the comments' or 'check the PR comments', or when a reviewer comments.

Firwat Pr Comments op TypingMind benotzen?

Well Dir en eemol installéiert a mat all Modell benotze kënnt. Pr Comments besteet aus einfachem Markdown amplaz vun ubidderspezifeschem Code. Dee selwechte Skill funktionéiert also mat GPT-5, Claude, Gemini, Grok oder engem lokale Modell – an Dir kënnt de Modell matzen am Chat wiesselen, ouni datt de Skill ophält ze funktionéieren. TypingMind benotzt Är eegen API-Schlësselen, sou datt Dir d'Ubidder direkt bezuelt amplaz vun engem Abonnement pro Benotzerplaz. Är Skills a Chats bleiwen an Ärem eegene Späicher.

Wéi installéieren ech Pr Comments an TypingMind?

Maacht an TypingMind Plugins → Skills → Vu GitHub installéieren op a setzt https://github.com/domengabrovsek/agent-config/tree/main/skills/pr-comments an. TypingMind liest d'Datei SKILL.md, bündelt déi zougehéiereg Dateien an installéiert dat Ganzt als Skill, deen Dir pro Chat aktivéiere kënnt.

Wéi eng KI-Modeller kënnen Pr Comments benotzen?

All Modell, deen Dir an TypingMind verbënnt. KI-Skills sinn einfach Markdown-Instruktiounen an net ubidderspezifesche Code. Dofir kënne GPT, Claude, Gemini, Grok a lokal Modeller dëse Skill lueden, wann eng Ufro dozou passt.

Wéi vill KI-Modeller kann ech mat Pr Comments benotzen?

Esou vill Dir wëllt. Soulaang e Modell Skills ënnerstëtzt, kënnt Dir Pr Comments domat benotzen – GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama a méi – alles op TypingMind mat Ären eegenen API-Schlësselen.

Ass de KI-Skill Pr Comments gratis?

De Skill gëtt vum domengabrovsek op GitHub publizéiert. Kuckt am Repository no de Lizenzbedéngungen. Dir bezuelt nëmmen Ären eegene KI-Ubidder fir d'Token, déi Dir benotzt.

Wat si KI-Skills?

E KI-Skill ass e weiderverwendbaart Pak vun Instruktiounen, dat engem KI-Modell bäibréngt, wéi en eng bestëmmt Aufgab erfëllt. E follegt dem oppenen Agent Skills-Format: eng Datei SKILL.md mat engem Numm an enger Beschreiwung, plus all Scripten, Virlagen oder Referenzdateien, déi de Modell eventuell brauch. De Modell liest d'Instruktiounen eréischt, wann Är Ufro zum Skill passt. En installéierte Skill kascht also näischt, bis e benotzt gëtt.

Wéi ënnerscheede sech KI-Skills vu Plugins oder MCP-Serveren?

E Plugin oder MCP-Server gëtt engem Modell nei Tools, déi en opruffe kann – Code, deen iergendwou leeft an e Resultat zeréckgëtt. E KI-Skill gëtt dem Modell dogéint Wëssen an eng Virgoensweis: wéi en eng Aufgab ugeet, wéi eng Schrëtt en nokënnt a wéi eng gutt Ausgab ausgesäit. Skills bestinn aus einfachem Markdown, brauche kee Server, keen API-Schlëssel a keng Lafzäitëmfeld a funktionéiere mat all Modell.

All weisen

Elo Ären eegene KI-Workspace ariichten

Abonnéiert Iech op eisen Newsletter, fir iwwer nei Funktiounen an zukünfteg Gewënnspiller informéiert ze ginn 👇