ホーム / Skills / 開発効率化 / コードレビューの受け止め方(Receiving Code Review)
開発効率化

コードレビューの受け止め方(Receiving Code Review)

Jesse VincentMITSkill の言語: 英語
ライセンス確認済みスクリプトなし中リスク
デモ実行記録 · claude-sonnet-5-5 · 2026年10月
Using the receiving-code-review skill, here is feedback a reviewer left on my pull request: 1) rename the variable tmp to pendingOrders, 2) add a proper metrics system with a database, date filters and CSV export to the /stats endpoint, 3) fix the off-by-one in the pagination, 4) "make the error handling better", 5) remove the legacy v1 date parser. The /stats endpoint is not called anywhere in the codebase, and the v1 parser is still used by our mobile app on older OS versions. How do you respond and in what order do you work?
Skill: receiving-code-review

I'd hold off on implementing anything until item 4 is clarified, because the items may be related. Here is how I'd respond and in what order I'd work.

Response to the reviewer

  1. tmp → pendingOrders: Agreed. I'll make this change.
  2. Metrics system for /stats: "Nothing in the codebase calls /stats, so I don't see a need for a database, date filters or CSV export. Should we remove the endpoint (YAGNI) instead? Is there a caller outside this repo that I'm missing?"
  3. Pagination off-by-one: Agreed. I'll fix it and add a boundary test.
  4. "Make the error handling better": "Which paths do you mean? What's the failure you want handled (swallowed exceptions, missing status codes, retries, error messages)? I'd rather not guess."
  5. Remove the v1 date parser: "I can't remove this yet. Our mobile app on older OS versions still uses it, so removing it would break those clients. Can we drop it once that OS version is out of our support window, or add a deprecation note and a usage metric now?"

Order of work

  1. Clarify first. Ask about items 2, 4 and 5 and wait for answers. Item 4 is blocking because it's vague. Items 2 and 5 are pushback and need a decision.
  2. Verify. Before sending the pushback, I'd grep for /stats callers and for v1 parser usage, so I'm not relying only on what I remember. I'd also check how the mobile clients reach the parser.
  3. Implement the agreed items one at a time, testing each:
    • Item 3, the pagination fix. It's a logic bug, so it comes first, with a test.
    • Item 1, the rename. It's a simple, low-risk change. I'd run the tests afterward to confirm nothing else referenced tmp.
    • Item 4, once clarified.
    • Items 2 and 5 only after the reviewer or you decide. For item 2 that means removing the endpoint if you agree. For item 5 it means leaving the parser in place.
  4. Check for regressions with the full test run, then reply on each review thread with what changed (or the reasoning for not changing it).

Real run in an isolated folder with only this skill installed. Only the Skill and Read tools were enabled, so no command was run and no file was written. The example is fictional. The pull request feedback is invented.

できること

レビューコメントへの対応パターンです。指摘をすべて読み、各要件を言い直し、実際のコードベースと照合し、このプロジェクトで妥当かを判断し、技術的な了承または理由つきの反論で応じ、1 件ずつ実装してそのたびにテストします。分からない項目が 1 つでもあれば、項目同士が関連しているかもしれないため、何も実装せずに止まって質問します。あなた自身からの指摘は信頼しつつ、範囲が不明なら確認し、外部のレビュアーには健全な懐疑を持ちます。提案がこのコードベースで正しいか、既存の挙動を壊さないか、現在の設計に理由があるか、対応するすべてのプラットフォームで動くかを確かめます。さらに、YAGNI のチェック(「きちんと実装する」前に実際の利用を検索する)、作業の順序(ブロックする問題、簡単な修正、複雑な修正)、反論すべき場面、反論が誤りだったときの訂正の仕方も示します。「おっしゃる通りです!」のような見せかけの同意や感謝の言葉は禁じています。

向いている場面

プルリクエストの指摘を、すべてを鵜呑みにせず一つずつ片づけたいとき。

補足とリスク

中リスク:指摘への対応を頼むとコードを編集します。ガイダンスには `gh api` コマンドで GitHub のレビュースレッドに返信する方法が含まれ、これはあなたのアカウントで投稿されるため、送信前に必ず内容を確認し、依頼したときだけ投稿させてください。口調には主張があり、感謝の表現や長い謝罪を禁じていて、好まないチームもあります。コードと照合できない判断は引き続きあなたに依存します。架空のレビューコメントで 1 回試用し、曖昧な項目の確認を先に求め、2 件の提案に反論しました。