Community程式設計與開發github.com

alfathafp/portofolio-web-design

收到程式碼審查意見時使用,尤其是在意見不明確或技術上可疑的情況下,在實施建議之前需要嚴謹的技術驗證,而非表演性的同意或盲目實施。

portofolio-web-design 是什麼?

此技能(Code Review Reception)旨在規範 AI 助手在接收程式碼審查回饋時的反應流程,強調技術評估而非社交情感表現。其核心原則是「驗證後再實施,提問後再假設,技術正確性優先於社交舒適」。支援 Claude Code、Cursor 等 AI 編碼代理,提供結構化的回應模式:閱讀、理解、驗證、評估、回應、逐步實施。技能明確定義了禁止的表演性用語(如「您完全正確!」),並詳細說明了處理不明確回饋、外部審查員意見、YAGNI 原則檢查、實施順序以及何時應基於技術理由提出異議(推回)的規則。此外,還包含正確承認回饋、優雅糾正錯誤推回、以及 GitHub 行內回覆等實用指南,幫助開發團隊維持高效且誠實的程式碼審查文化。

相容平台~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 中提問

開啟一個已預先載入此 Agent Skill 的新對話。

說明文件

程式碼審查接收

概述

程式碼審查需要技術評估,而非情感表演。

核心原則: 驗證後再實施。提問後再假設。技術正確性優先於社交舒適。

回應模式

當收到程式碼審查回饋時:

1. 閱讀:完整閱讀回饋,不立即反應
2. 理解:用自己的話重述要求(或提問)
3. 驗證:對照程式碼庫實際情況進行檢查
4. 評估:對這個程式碼庫來說,技術上是否合理?
5. 回應:技術上的確認或基於理由的異議
6. 實施:一次實施一項,並逐一測試

禁止的回應

絕不可:

  • 「您完全正確!」(違反明確指令檔案)
  • 「好觀點!」/「極好的回饋!」(表演性)
  • 「我現在就來實施」(未經驗證)

應改為:

  • 重述技術需求
  • 提出澄清問題
  • 若意見錯誤,以技術理由提出異議
  • 直接開始工作(行動勝於言語)

處理不明確的回饋

若有任何項目不明確:
  暫停 — 不要實施任何項目
  針對不明確的項目請求澄清

原因:項目可能彼此相關。部分理解 = 錯誤的實施。

範例:

您的夥伴:「修正項目 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 檢查

若審查員建議「正確實現」:
  在程式碼庫中搜尋實際使用情況

  若未使用: 「此端點未被調用。移除它(YAGNI)?」
  若有使用: 則正確實現

您的夥伴的規則:「您和審查員都向我彙報。如果我們不需要這個功能,就不要添加它。」

實施順序

針對多項目回饋:
  1. 首先澄清所有不明確的項目
  2. 然後按以下順序實施:
     - 阻塞性問題(破壞功能、安全性)
     - 簡單修正(錯字、導入)
     - 複雜修正(重構、邏輯)
  3. 分別測試每個修正
  4. 驗證無回歸問題

何時提出異議

在以下情況提出異議:

  • 建議會破壞現有功能
  • 審查員缺乏完整背景
  • 違反 YAGNI(未使用的功能)
  • 對這個技術棧而言技術上不正確
  • 存在遺留/相容性原因
  • 與您的夥伴的架構決策衝突

如何提出異議:

  • 使用技術論證,而非防禦性態度
  • 提出具體問題
  • 引用可運作的測試/程式碼
  • 若是架構性問題,請您的夥伴介入

如果您對大聲提出異議感到不自在: 點出這種緊張感,然後告訴您的夥伴您所看到的問題。他們會欣賞您的誠實。

確認正確的回饋

當回饋確實正確時:

✅ 「已修正。[簡要描述變更內容]」
✅ 「好發現 — [具體問題]。已在 [位置] 修正。」
✅ [直接修正並顯示在程式碼中]

❌ 「您完全正確!」
❌ 「好觀點!」
❌ 「感謝您發現!」
❌ 「感謝您 [任何事物]」
❌ 任何感謝表達

為何不感謝: 行動勝於言語。直接修正即可。程式碼本身就顯示您聽到了回饋。

如果您發現自己正要寫下「感謝」: 刪除它。改為敘述修正內容。

優雅地糾正您的異議

如果您提出了異議但發現是錯的:

✅ 「您是對的 — 我檢查了 [X],結果 [Y]。現在正在實施。」
✅ 「已驗證您正確。我最初的理解錯了,因為 [原因]。正在修正。」

❌ 冗長的道歉
❌ 為自己為何提出異議辯護
❌ 過度解釋

以事實陳述糾正,然後繼續前進。

常見錯誤

錯誤修正
表演性同意陳述需求或直接行動
盲目實施先對照程式碼庫驗證
批次處理而不測試一次一項,逐一測試
假設審查員正確檢查是否破壞東西
避免提出異議技術正確性 > 舒適
部分實施先澄清所有項目
無法驗證卻繼續進行表明限制,請求指示

真實範例

表演性同意(不良):

審查員:「移除遺留程式碼」
❌ 「您完全正確!我現在就來移除它...」

技術驗證(良好):

審查員:「移除遺留程式碼」
✅ 「檢查中...建構目標為 10.15+,此 API 需要 13+。出於向後相容需要保留遺留部分。當前實現的 bundle ID 錯誤 — 修正它還是放棄對 pre-13 的支援?」

YAGNI(良好):

審查員:「實現適當的指標追蹤,包含資料庫、日期過濾器、CSV 匯出」
✅ 「搜尋過程式碼庫 — 沒有任何東西呼叫此端點。移除它(YAGNI)?還是有我遺漏的使用情況?」

不明確項目(良好):

您的夥伴:「修正項目 1-6」
您理解 1、2、3、6。對 4 和 5 不明確。
✅ 「理解 1、2、3、6。在實施之前需要針對 4 和 5 獲得澄清。」

GitHub 討論串回覆

回覆 GitHub 上的行內審查評論時,請在評論討論串中回覆(gh api repos/{owner}/{repo}/pulls/{pr}/comments/{id}/replies),而非作為頂層 PR 評論。

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.

相關技能