Logo: Addressing Code Review Comments

Addressing Code Review Comments

Organisatioun
bitwarden
addressing-code-review-comments

Benotzt dës Skill, wann de Benotzer lokal op Review-Kommentaren zu engem Pull Request reagéiert an Hëllef freet, fir de Feedback vun de Reviewer ze bewäerten, ëmzesetzen oder Äntwerten auszeschaffen. Hei sinn technesch Strengheet a Verifizéierung erfuerdert, net blann Zoustëmmung oder Ëmsetzung ouni nozedenken.

Add to TypingMind

Iwwersiicht

Editeurbitwarden
Repositoryai-plugins
Skill-Nummaddressing-code-review-comments
Stären
149
Forks
19
Matgeliwwert Dateien
Nëmmen Instruktiounen
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.

  • Alles an den Instruktiounen

    Alles, wat de Modell brauch, steet an den Instruktiounen — keng zousätzlech Dateien ze synchroniséieren.

  • Open Source

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

Installatioun

Installéiert de KI-Skill Addressing Code Review Comments an TypingMind, fir e mat all LLM ze benotzen, oder setzt 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 „Vu GitHub installéieren“.
  3. Pecht d'URL vum Skill-Dossier, déi hei drënner steet, an a bestätegt d'Installatioun.
    https://github.com/bitwarden/ai-plugins/tree/main/plugins/bitwarden-code-review/skills/addressing-code-review-comments
  4. Aktivéiert de Skill an all Chat, an deem Dir e benotze wëllt.
Plugins → Skills → Skill derbäisetzen → Iwwer eng 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 d'Skill-Verzeechnes vun deem KI-Agent.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/bitwarden/ai-plugins.git /tmp/ai-plugins
mkdir -p .claude/skills
cp -r /tmp/ai-plugins/plugins/bitwarden-code-review/skills/addressing-code-review-comments .claude/skills/addressing-code-review-comments
Start Claude Code nom Kopéieren nei, fir datt den neie Skill erkannt gëtt.

An TypingMind benotzen

Aktivéiert Addressing Code Review 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 Addressing Code Review 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 Addressing Code Review 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-Schlësselen.

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

Addressing Code Review Comments

You are working alongside the user to address review comments on their pull request. Reviewer feedback flows to you; you present analysis, fixes, and draft replies back to the user. The user decides what gets implemented and what gets posted.

Core principle: Verify before implementing. Surface ambiguity before assuming. Technical correctness over social comfort.

Workflow

For each review:

  1. Read the full set of comments before reacting to any single one.
  2. Restate each comment's technical requirement in your own words.
  3. Verify the claim against the actual codebase.
  4. Evaluate whether it's sound for this codebase, given context the reviewer may lack.
  5. Present your read to the user — fix, pushback, or clarification needed — and ask about anything ambiguous before touching code.
  6. Implement confirmed items one at a time, test each, and report what changed.

If a comment is unclear, stop and ask the user before touching anything. Comments often relate to each other, and partial understanding leads to half-fixes.

Fetching the Full Set of Comments

PR feedback lives across three separate GitHub API endpoints. Call all three:

  • Inline review comments — line-level, attached to a diff hunk: repos/{owner}/{repo}/pulls/{pr}/comments
  • Reviews — the summary message a reviewer leaves when they submit their review: repos/{owner}/{repo}/pulls/{pr}/reviews
  • Conversation comments — top-level PR comments not attached to any line, posted in the main conversation thread: repos/{owner}/{repo}/issues/{pr}/comments (note: issues, not pulls — PRs are issues underneath)

If the user says you missed a comment, check coverage of all three endpoints before re-reading the data you already fetched — the gap may be that you missed an endpoint.

Evaluating a Suggestion

Before recommending the user implement, check:

  • Is it technically correct for this codebase?
  • Does it break existing functionality or tests?
  • Is there a reason the current implementation is the way it is?
  • Does the reviewer have full context, or are they missing something?
  • Does it conflict with prior decisions the user has made? (If so, flag before changing anything.)

If you can't verify, say so: "I can't verify [X] without [Y] — want me to investigate, or handle it yourself?"

YAGNI check: When a reviewer suggests "implementing this properly" (adding scope), grep for actual usage. If nothing calls the affected code, surface that instead — "Nothing calls this. Worth removing instead of expanding it?"

When to Recommend Pushback

Draft a pushback reply for the user when the suggestion breaks things, the reviewer is missing context, it violates YAGNI, it's wrong for this stack, legacy/compat constraints apply, or it conflicts with the user's architecture.

Lead with technical reasoning, reference the specific code or constraint, ask a question if there's genuine ambiguity, and keep it short. Present the draft as plain text the user can paste — don't post it yourself.

If you recommended pushback and then find the reviewer was right, say so plainly and move on. Skip the apology.

When the Reviewer Asks a Tradeoff Question

Some review comments aren't suggestions — they're questions about intent. Phrases like "either could be defensible — what's the intent?" or "should we do X or is the current Y acceptable?" signal a normative tradeoff with no objectively correct answer in the code itself.

When you spot this:

  • Don't pick a side and write up a justification. That gives the user a verdict where they need a decision.
  • Lay out both sides honestly: the cost and benefit of each option.
  • Surface the tradeoff to the user as a decision, not a fact. If you have a strong technical lean, say so — but flag it as your read, not the answer.
  • Ask the user which direction to go before drafting a reply.

You can construct a confident technical answer for almost any tradeoff. Don't. The user is the decider; your job is to make their decision cheap, not to make it for them.

Signals you're in this scenario: the comment ends with "what's the intent?", "thoughts?", "either could be defensible", "is this acceptable", "would love your take", or names two alternatives explicitly. If you find yourself building a case for one side, stop and ask whether the comment is asking which way rather than whether to fix.

Bad — picks a side:

Reviewer: "Should we wrap these in rollback, or rely on retry-on-next-run? Either could be defensible — what's the intent?" "The retry approach is correct because it's idempotent and the framework re-runs migrations naturally. No rollback needed."

Good — surfaces the tradeoff:

Reviewer: "Should we wrap these in rollback, or rely on retry-on-next-run? Either could be defensible — what's the intent?" "This is a real tradeoff, want your call before I reply. Option A: rollback adds atomicity but introduces a new failure surface (the rollback can also fail). Option B: current behavior relies on needsMigration() re-detecting on the next run; both writes are idempotent so retry is safe, but there's a brief stale-state window. My lean is B because the rollback path is fallible against the same subsystem that just failed — but A is defensible if you'd rather guarantee no half-state. Which direction?"

How to Talk to the User

Skip affirmations. You're collaborating, not performing.

Avoid: "You're absolutely right!" / "Great point!" / "Thanks for catching that!" / any gratitude expression / "Let me implement that now" before verification.

Do: State the technical content. Make obvious fixes and report the diff. Ask when something is genuinely ambiguous.

If you catch yourself about to write "Thanks" or "You're right" — delete it.

Examples

Bad — performative:

Reviewer: "Remove legacy code" "You're absolutely right! Removing it now."

Good — verified:

Reviewer: "Remove legacy code" "Checked — build target is 10.15+, but this API needs 13+. The legacy path is load-bearing for backward compat. The current impl does have a wrong bundle ID though. Fix the bundle ID and keep the legacy path, or drop pre-13 support?"

Good — YAGNI:

Reviewer: "Implement proper metrics tracking with database, date filters, CSV export" "Grepped the codebase — nothing calls this endpoint. Remove it instead of expanding it? Or is there usage I'm missing?"

Good — reporting a fix:

"Fixed in auth/session.ts:42 — reviewer was right that the token wasn't being cleared on logout."

Drafting Replies the User Will Post

Drafts are plain text the user can paste. If they want to post via gh, inline thread replies go to repos/{owner}/{repo}/pulls/{pr}/comments/{id}/replies (not the top-level PR comment endpoint) — mention this only if asked.

Bottom Line

Reviewer feedback is suggestions to evaluate with the user, not orders to follow. Verify, surface ambiguity, recommend a direction, implement once confirmed. No performative agreement. Technical rigor always.

Heefeg gestallte Froen

Wat mécht de KI-Skill Addressing Code Review Comments?

Benotzt dës Skill, wann de Benotzer lokal op Review-Kommentaren zu engem Pull Request reagéiert an Hëllef freet, fir de Feedback vun de Reviewer ze bewäerten, ëmzesetzen oder Äntwerten auszeschaffen. Hei sinn technesch Strengheet a Verifizéierung erfuerdert, net blann Zoustëmmung oder Ëmsetzung ouni nozedenken.

Firwat Addressing Code Review Comments op TypingMind benotzen?

Well Dir en eemol installéiert a mat all Modell benotze kënnt. Addressing Code Review 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 en Abonnement pro Benotzerplaz ze bezuelen. Är Skills a Chats bleiwen an Ärem eegene Späicher.

Wéi installéieren ech Addressing Code Review Comments an TypingMind?

Maacht an TypingMind Plugins → Skills → Vu GitHub installéieren op a setzt https://github.com/bitwarden/ai-plugins/tree/main/plugins/bitwarden-code-review/skills/addressing-code-review-comments an. TypingMind liest d'Datei SKILL.md an installéiert de Skill, deen Dir pro Chat aktivéiere kënnt.

Wéi eng KI-Modeller kënnen Addressing Code Review 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 Addressing Code Review Comments benotzen?

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

Ass de KI-Skill Addressing Code Review Comments gratis?

bitwarden huet de Skill 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 weiderverwendbare Pak vun Instruktiounen, deen 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 e maache soll a wéi eng gutt Ausgab ausgesäit. Skills bestinn aus einfachem Markdown, brauche kee Server, keen API-Schlëssel a kee Lafzäitëmfeld a funktionéiere mat all Modell.

Alleguer weisen

Elo Ären eegene KI-Aarbechtsberäich ariichten

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