Communityコーディング&開発github.com

コードレビュー受付

コードレビューのフィードバックを受け取った際、特に不明瞭または技術的に疑問がある場合に、提案を実装する前に使用します。技術的厳密さと検証が必要であり、形だけの同意や盲目的な実装は避けます。

コードレビュー受付 とは?

このスキルは、開発者がコードレビューのフィードバックを処理するための体系的なアプローチを提供します。主な目的は、技術的正確性を感情的なパフォーマンスよりも優先し、検証と理解に基づいた実装を促進することです。 具体的には、フィードバックを受け取った際の6ステップの応答パターン(読み取り→理解→検証→評価→応答→実装)を定義し、「絶対にあなたの言う通りです!」などの形だけの同意や感謝表現を禁止します。代わりに、技術的な要求の言い換え、明確化の質問、技術的根拠に基づく反論を推奨します。 また、不明瞭なフィードバックへの対処法、外部レビューアからの提案を検証するチェックリスト、YAGNI原則に基づく「プロフェッショナルな機能」の評価、実装の優先順位、そして必要に応じた適切な反論方法まで網羅しています。GitHubのインラインレビューコメントへの返信方法も含まれています。 このスキルはClaude CodeなどのAIエージェントと人間の開発者が協働する環境を想定しており、技術的な健全性を保ちながら効率的かつ誠実なコードレビュープロセスを実現します。

対応~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/alfathafp/portofolio-web-design/tree/HEAD/.agents/skills/receiving-code-review

Installed? Explore more コーディング&開発 skills: steipete/bluebubbles, steipete/eightctl, steipete/blucli · View all 6 →

お気に入りのAIに質問する

このエージェントスキルを事前に読み込んだ状態で新しいチャットを開きます。

ドキュメント

コードレビュー受付 は何をしますか?

概要

コードレビューには、感情的なパフォーマンスではなく、技術的な評価が必要です。

基本原則: 実装前に検証する。推測する前に質問する。社会的な心地よさよりも技術的な正しさを優先する。

応答パターン

コードレビューのフィードバックを受け取った場合:

1. 読む: 反応せずにフィードバック全体を読む
2. 理解する: 要求を自分の言葉で言い換える(または質問する)
3. 検証する: コードベースの現実と照合する
4. 評価する: このコードベースにとって技術的に健全か?
5. 応答する: 技術的な承認または合理的な反論
6. 実装する: 1項目ずつ、各項目をテストする

禁止されている応答

絶対にしないこと:

  • 「あなたの言う通りです!」(明示的な指示ファイル違反)
  • 「良い指摘です!」/「素晴らしいフィードバックです!」(形だけのパフォーマンス)
  • 「今すぐ実装します」(検証前)

代わりに:

  • 技術的な要求を言い換える
  • 明確化のための質問をする
  • 間違っている場合は技術的根拠で反論する
  • ただ作業を始める(言葉より行動)

不明瞭なフィードバックの処理

項目が不明瞭な場合:
  停止する - まだ何も実装しない
  不明瞭な項目について明確化を求める

なぜか: 項目は関連している可能性がある。部分的な理解 = 間違った実装。

例:

あなたの人間パートナー: 「1〜6を修正して」
あなたは1、2、3、6を理解。4、5が不明瞭。

❌ 間違い: 1、2、3、6を今すぐ実装し、4、5については後で質問する
✅ 正しい: 「1、2、3、6は理解しました。4と5について、先に進む前に明確化が必要です。」

ソース別の処理

あなたの人間パートナーから

  • 信頼済み - 理解した上で実装する
  • それでも質問する 範囲が不明瞭な場合
  • 形だけの同意はしない
  • 行動または技術的な承認に移る

外部レビューアから

実装前に:
  1. 確認: このコードベースにとって技術的に正しいか?
  2. 確認: 既存の機能を壊さないか?
  3. 確認: 現在の実装の理由は?
  4. 確認: すべてのプラットフォーム/バージョンで動作するか?
  5. 確認: レビューアは全体のコンテキストを理解しているか?

提案が間違っていると思われる場合:
  技術的根拠で反論する

簡単に検証できない場合:
  そう伝える: 「[X]なしでは検証できません。[調査/質問/進める]べきでしょうか?」

あなたの人間パートナーの以前の決定と矛盾する場合:
  まずあなたの人間パートナーと話し合って停止する

あなたの人間パートナーのルール: 「外部フィードバックには懐疑的であれ、しかし注意深く確認せよ」

「プロフェッショナルな」機能に対するYAGNIチェック

レビューアが「適切に実装する」と提案した場合:
  コードベースをgrepして実際の使用状況を確認する

  使用されていない場合: 「このエンドポイントは呼び出されていません。削除しますか(YAGNI)?」
  使用されている場合: その後適切に実装する

あなたの人間パートナーのルール: 「あなたとレビューアはどちらも私に報告しています。この機能が必要ないなら、追加しないでください。」

実装順序

複数項目のフィードバックの場合:
  1. 最初に不明瞭な項目をすべて明確にする
  2. その後、以下の順序で実装する:
     - ブロッキング問題(破壊的変更、セキュリティ)
     - 単純な修正(タイポ、インポート)
     - 複雑な修正(リファクタリング、ロジック)
  3. 各修正を個別にテストする
  4. リグレッションがないことを確認する

反論すべき場合

以下の場合に反論する:

  • 提案が既存の機能を壊す
  • レビューアに全体のコンテキストが不足している
  • YAGNIに違反する(未使用の機能)
  • このスタックにとって技術的に正しくない
  • レガシー/互換性の理由がある
  • あなたの人間パートナーのアーキテクチャ上の決定と矛盾する

反論の方法:

  • 技術的根拠を用い、防御的にならない
  • 具体的な質問をする
  • 動作するテスト/コードを参照する
  • アーキテクチャ上の問題であれば人間パートナーを巻き込む

声に出して反論することに抵抗がある場合: その緊張感を名指しし、あなたが見た問題についてパートナーに伝えてください。彼らはあなたの正直さを評価するでしょう。

正しいフィードバックの承認

フィードバックが正しい場合:

✅ 「修正しました。[変更内容の簡単な説明]」
✅ 「良い発見です - [具体的な問題]。[場所]で修正しました。」
✅ [単に修正し、コードで示す]

❌ 「あなたの言う通りです!」
❌ 「良い指摘です!」
❌ 「気づいてくれてありがとうございます!」
❌ 「[何か]ありがとうございます」
❌ いかなる感謝の表現

なぜ感謝してはいけないのか: 行動が語る。ただ修正すればよい。コード自体がフィードバックを聞いたことを示す。

「ありがとう」と書きかけていることに気づいた場合: それを削除し、代わりに修正内容を述べよ。

反論を優雅に修正する

反論して間違っていた場合:

✅ 「あなたが正しかったです - [X]を確認したところ、[Y]でした。今すぐ実装します。」
✅ 「検証したところ、あなたが正しいことがわかりました。私の最初の理解は[理由]で間違っていました。修正します。」

❌ 長い謝罪
❌ 反論した理由を擁護する
❌ 過剰な説明

修正を事実に基づいて述べ、先に進む。

よくある間違い

間違い修正方法
形だけの同意要件を述べるか、ただ行動する
盲目的な実装最初にコードベースで検証する
バッチ処理してテストしない一度に1つ、各項目をテストする
レビューアが正しいと決めつける壊れるものがないか確認する
反論を避ける技術的正確性 > 心地よさ
部分的な実装最初にすべての項目を明確にする
検証できずにそのまま進める制限を述べ、指示を仰ぐ

実際の例

形だけの同意(悪い例):

レビューア: 「レガシーコードを削除してください」
❌ 「あなたの言う通りです!すぐに削除します...」

技術的検証(良い例):

レビューア: 「レガシーコードを削除してください」
✅ 「確認中...ビルドターゲットは10.15+、このAPIは13+が必要です。後方互換性のためにレガシーが必要です。現在の実装ではバンドルIDが間違っています - 修正するか、pre-13のサポートを落としますか?」

YAGNI(良い例):

レビューア: 「データベース、日付フィルター、CSVエクスポートを備えた適切なメトリクス追跡を実装してください」
✅ 「コードベースをgrepしました - このエンドポイントを呼び出しているものはありません。削除しますか(YAGNI)?それとも、私が見逃している使用法がありますか?」

不明瞭な項目(良い例):

あなたの人間パートナー: 「項目1〜6を修正して」
あなたは1、2、3、6を理解。4、5が不明瞭。
✅ 「1、2、3、6は理解しました。実装前に4と5について明確化が必要です。」

GitHubスレッドへの返信

GitHubのインラインレビューコメントに返信する場合、PRのトップレベルのコメントとしてではなく、コメントスレッド(gh api repos/{owner}/{repo}/pulls/{pr}/comments/{id}/replies)で返信してください。

Individual skills in this repo

This repo contains 20 individual skills — each has its own dedicated page.

alfathafp/portofolio-web-design

You MUST use this before any creative work - creating features, building components, adding functionality, modifying behavior, or planning anything new, in software or out of it (a talk, a business, a renovation).

alfathafp/portofolio-web-design

Tests in real browsers via Chrome DevTools MCP. Use when building or debugging anything that runs in a browser. Use when you need to inspect the DOM, capture console errors, analyze network requests, profile performance, or verify visual output with real runtime data. Requires the chrome-devtools MCP server to be configured.

alfathafp/portofolio-web-design

Automates CI/CD pipeline setup. Use when setting up or modifying build and deployment pipelines. Use when you need to automate quality gates, configure test runners in CI, or establish deployment strategies.

alfathafp/portofolio-web-design

Conducts multi-axis code review. Use before merging any change. Use when reviewing code written by yourself, another agent, or a human. Use when you need to assess code quality across multiple dimensions before it enters the main branch. Use when asked to review a diff or a pull request, even when the diff is pasted inline.

alfathafp/portofolio-web-design

Simplifies code for clarity. Use when refactoring code for clarity without changing behavior. Use when code works but is harder to read, maintain, or extend than it should be. Use when reviewing code that has accumulated unnecessary complexity.

alfathafp/portofolio-web-design

Establishes a project's quality bar as a written contract and stops agents quietly lowering it. Interviews the user on which dimensions matter, supplies sane default thresholds when they have no number in mind, records everything in CONSTRAINTS.md, and watches the diff for a weakened bar — new @ts-ignore or eslint-disable suppressions, skipped or deleted tests, assertions stripped out, unimplemented stubs, thresholds edited down. Use when no quality bar is written down, when the user says "set up constraints" or "define our standards", when the user wants dimensions they care about — accessibility, web performance, coverage — set up as enforced constraints, when an agent keeps silencing checks or skipping tests to get to green, when you need a coverage or performance threshold and don't know what number to pick, or when an agent writes more code than anyone will read.

alfathafp/portofolio-web-design

Optimizes agent context setup. Use when starting a new session, when agent output quality degrades, when switching between tasks, or when you need to configure rules files and context for a project.

alfathafp/portofolio-web-design

Guides systematic root-cause debugging. Use when tests fail, builds break, something that worked yesterday broke, behavior doesn't match expectations, or you encounter any unexpected error. Use when you need to figure out what broke and why — a systematic approach to finding and fixing the root cause rather than guessing.

alfathafp/portofolio-web-design

Deploy applications and websites to Vercel. Use when the user requests deployment actions like "deploy my app", "deploy and give me the link", "push this live", or "create a preview deployment".

alfathafp/portofolio-web-design

Manages deprecation and migration. Use when removing old systems, APIs, or features. Use when migrating users from one implementation to another. Use when migrating a database schema in production, such as renaming or dropping a column without downtime (expand/contract). Use when deciding whether to maintain or sunset existing code.

alfathafp/portofolio-web-design

Use when a superpowers session went wrong and your human partner wants to know why — repeated work, ignored plans, stumbles, poor results, a skill that didn't fire, "it took too long", "why is it so expensive", "what is it doing" — or wants to build a bug report for the superpowers maintainers, for the current session or a past one identified by id or path, on any harness.

alfathafp/portofolio-web-design

Use when facing 2+ independent tasks that can be worked on without shared state or sequential dependencies

alfathafp/portofolio-web-design

Records decisions and documentation. Use when you need to document an architecture decision (ADR) or the reasoning behind a design choice, when changing public APIs, shipping features, or when you need to record context that future engineers and agents will need to understand the codebase.

alfathafp/portofolio-web-design

Subjects every non-trivial decision to a fresh-context adversarial review before it stands. Use when you want every assumption cross-examined before proceeding, when stress-testing a plan for hidden failure modes, when correctness matters more than speed, when working in unfamiliar code, when stakes are high (production auth, security-sensitive logic, a high-stakes migration, irreversible operations), or any time a confident output would be cheaper to verify now than to debug later.

alfathafp/portofolio-web-design

Use when executing an implementation plan in the current session as the implementer yourself — your human partner chose inline execution, or no subagent tool is available

alfathafp/portofolio-web-design

Use when implementation is complete, all tests pass, and you need to decide how to integrate the work

alfathafp/portofolio-web-design

Builds production-quality, accessible, responsive user-facing UIs. Use when building or modifying interfaces and pages, creating components, implementing layouts, meeting WCAG accessibility requirements, managing state, or when the output needs to look and feel production-quality rather than AI-generated.

alfathafp/portofolio-web-design

Structures git workflow practices. Use when making any code change. Use when committing, branching, resolving conflicts, splitting uncommitted work in a messy working tree into clean atomic commits, opening or reviewing a pull request (PR), pushing to a remote, or when you need to organize work across multiple parallel streams. Use when cutting a release, choosing a semantic version bump, tagging, or writing a changelog.

alfathafp/portofolio-web-design

Refines raw ideas into sharp, actionable concepts through structured divergent and convergent thinking. Use when an idea is still vague, when you need to stress-test assumptions before committing to a plan, or when you want to expand options before converging on one. Triggers on "ideate", "refine this idea", or "stress-test my plan".

alfathafp/portofolio-web-design

Guides stable API and interface design. Use when designing APIs, module boundaries, or any public interface. Use when creating REST or GraphQL endpoints, defining type contracts between modules, or establishing boundaries between frontend and backend.

関連スキル