Community程式設計與開發github.com

alfathafp/portofolio-web-design

在完成任務、實作主要功能或合併前使用,以確認工作符合需求

portofolio-web-design 是什麼?

此技能提供一個結構化的程式碼審查流程,讓開發人員可以派遣一個專門的子代理程式來評估程式碼變更,而不是自己手動審查 diff。它專注於在問題擴大之前及早發現問題,支援 Git SHA 比較並生成精確的上下文,避免浪費會話歷史記錄。該技能適用於任何支援子代理派遣的 AI 平台(如 Claude Code、Cursor 或 Codex),並強制要求在每次子代理驅動開發任務、主要功能完成或合併到主分支之前進行審查。它還附帶常見的合理化藉口(例如「我自己審查 diff」)以及紅旗警示,確保團隊遵循紀律並以高品質標準交付。

相容平台~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/alfathafp/portofolio-web-design/tree/HEAD/.agents/skills/requesting-code-review

Installed? Explore more 程式設計與開發 skills: steipete/bluebubbles, steipete/eightctl, steipete/blucli · View all 6 →

在你喜歡的 AI 中提問

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

說明文件

請求程式碼審查

派遣一個程式碼審查子代理程式,在問題擴散之前抓住它們。審查者會獲得精確建構的評估上下文,絕不會是你會話的歷史記錄。

核心原則:及早審查,經常審查。

何時請求審查

強制:

  • 在子代理驅動開發的每個任務之後
  • 完成主要功能之後
  • 合併到主分支之前

可選但有價值:

  • 卡住時(獲得新視角)
  • 重構之前(基線檢查)
  • 修復複雜錯誤之後

如何請求

1. 取得 Git SHA:

BASE_SHA=$(git rev-parse HEAD~1)  # 或:git merge-base origin/main HEAD
HEAD_SHA=$(git rev-parse HEAD)

2. 派遣程式碼審查子代理程式:

派遣一個 general-purpose 子代理程式,填入 code-reviewer.md 的範本。

佔位符:

  • {DESCRIPTION} - 你所建構內容的簡短摘要
  • {PLAN_OR_REQUIREMENTS} - 它應該要做什麼
  • {BASE_SHA} - 起始提交
  • {HEAD_SHA} - 結束提交

3. 針對反饋採取行動:

  • 立即修復嚴重問題
  • 在繼續之前修復重要問題
  • 記錄次要問題以備後續處理
  • 如果審查者錯誤,請推回(附帶理由)

範例

[剛完成任務 2:新增驗證函式]

你:讓我在繼續之前請求程式碼審查。

BASE_SHA=$(git log --oneline | grep "Task 1" | head -1 | cut -d' ' -f1)
HEAD_SHA=$(git rev-parse HEAD)

[派遣程式碼審查子代理程式]
  DESCRIPTION:新增 verifyIndex() 與 repairIndex(),包含 4 種問題類型
  PLAN_OR_REQUIREMENTS:文件 docs/superpowers/plans/deployment-plan.md 中的任務 2
  BASE_SHA:a7981ec
  HEAD_SHA:3df7661

[子代理程式回傳]:
  優點:清晰的架構、真實的測試
  問題:
    重要:缺少進度指示器
    次要:報告間隔的幻數 (100)
  評估:可以繼續

你:[修復進度指示器]
[繼續到任務 3]

常見合理化藉口

藉口現實
「我會自己審查 diff,而不是派遣審查者」你是協調者——內嵌審查 diff 會消耗你繼續推動工作所需的上下文視窗。派遣一個審查子代理程式:diff 和評估存在於它的上下文中,只有結果回到你這裡。
「審查者需要我整個會話歷史才能理解這個變更」給它精確建構的上下文,絕不會是你會話的歷史記錄。這讓審查者專注於工作產出,而不是你的思考過程。

紅旗警示

絕對不要:

  • 因為「它很簡單」就跳過審查
  • 忽略嚴重問題
  • 在重要問題未修復的情況下繼續
  • 與有效的技術反饋爭論

如果審查者錯了:

  • 用技術理由推回
  • 顯示證明它有效的程式碼/測試
  • 請求釐清

請參閱範本:code-reviewer.md

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.

相關技能