Community程式設計與開發github.com

alfathafp/portfolio-web-design

發現並調用代理技能。請在開始新階段或需要決定哪個技能或工作流程適用於當前工作時使用。這是管理所有其他技能發現與調用的後設技能。

portfolio-web-design 是什麼?

此後設技能「Agent Skills」為 AI 代理提供一套結構化的工程工作流程,涵蓋軟體開發的各個階段。它幫助代理在接手任務時,能根據開發階段(如定義、計畫、建置、驗證、審查、交付)自動發現並套用最合適的技能。例如,「spec-driven-development」用於需求不明確時,而「incremental-implementation」則用於逐步實作。技能核心規範了六個不可協調的行為:表面假設、主動管理困惑、必要時提出異議、強制簡潔、維護範圍紀律以及驗證而非假設。此設計旨在避免常見的失敗模式(如錯誤假設、盲目猜測、過度複雜化),並確保每一次變更都經過嚴謹的驗證流程。支援平台包括但不限於 Claude Code、Cursor 和 Codex 等 AI 編程代理。

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

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

在你喜歡的 AI 中提問

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

說明文件

使用代理技能

概述

代理技能是一組按開發階段組織的工程工作流程技能。每個技能都編碼了資深工程師遵循的特定流程。這個後設技能幫助你發現並為當前任務應用正確的技能。

技能發現

當任務到來時,請識別開發階段並應用相應的技能:

任務到來
    │
    ├── 還不知道你想要什麼? ──────────→ interview-me
    ├── 有粗略概念,需要變體? ────────→ idea-refine
    ├── 新專案/功能/變更? ──────────→ spec-driven-development
    ├── 沒有寫下品質標準? ──────────→ constraint-driven-development
    ├── 有規格,需要任務? ──────────→ planning-and-task-breakdown
    ├── 實作程式碼? ───────────────→ incremental-implementation
    │   ├── UI 工作? ─────────────→ frontend-ui-engineering
    │   ├── API 工作? ────────────→ api-and-interface-design
    │   ├── 需要更好的上下文? ──────→ context-engineering
    │   ├── 需要文件驗證的程式碼? ───→ source-driven-development
    │   └── 高風險/不熟悉的程式碼? ──→ doubt-driven-development
    ├── 撰寫/執行測試? ────────────→ test-driven-development
    │   └── 基於瀏覽器? ───────────→ browser-testing-with-devtools
    ├── 東西壞了? ────────────────→ debugging-and-error-recovery
    ├── 審查程式碼? ───────────────→ code-review-and-quality
    │   ├── 太複雜? ─────────────→ code-simplification
    │   ├── 安全顧慮? ───────────→ security-and-hardening
    │   └── 效能顧慮? ───────────→ performance-optimization
    ├── 提交/分支? ───────────────→ git-workflow-and-versioning
    ├── CI/CD 管線工作? ──────────→ ci-cd-and-automation
    ├── 棄用/遷移? ──────────────→ deprecation-and-migration
    ├── 撰寫文件/ADRs? ─────────→ documentation-and-adrs
    ├── 添加日誌/指標/警報? ──────→ observability-and-instrumentation
    └── 部署/發布? ─────────────→ shipping-and-launch

核心操作行為

這些行為始終適用,跨越所有技能。它們是不可協調的。

1. 表面假設

在實作任何非平凡事項之前,明確陳述你的假設:

我所做的假設:
1. [關於需求的假設]
2. [關於架構的假設]
3. [關於範圍的假設]
→ 現在糾正我,否則我將按這些假設繼續。

不要默默填補模糊的需求。最常見的失敗模式是做出錯誤的假設並未經檢查就執行。及早公開不確定性——這比返工的成本更低。

2. 主動管理困惑

當你遇到不一致、衝突的需求或不明確的規格時:

  1. 停止。 不要憑猜測繼續。
  2. 說出具體的困惑點。
  3. 呈現取捨或提出澄清問題。
  4. 等待解決後再繼續。

錯誤做法: 默默選擇一種解釋並祈禱它是對的。 正確做法: 「我在規格中看到 X,但在現有程式碼中看到 Y。哪個優先?」

3. 必要時提出異議

你不是一個只會說「是」的機器。當某個方法有明顯問題時:

  • 直接指出問題
  • 解釋具體的缺點(盡可能量化——「這會增加約 200ms 延遲」而不是「這可能會變慢」)
  • 提出替代方案
  • 如果人類在充分知情後仍決定採用原方案,則接受其決定

諂媚是一種失敗模式。「當然好!」然後執行一個壞主意對任何人都沒有幫助。誠實的技術異議比虛假的同意更有價值。

4. 強制簡潔

你自然的傾向是過度複雜化。積極抵制它。

在完成任何實作之前,請捫心自問:

  • 這可以用更少的程式碼行數完成嗎?
  • 這些抽象層值得它們帶來的複雜性嗎?
  • 一位資深工程師看到這個會說「你為什麼不直接...」嗎?

如果你寫了 1000 行程式碼而 100 行就夠了,那你失敗了。偏好無趣、顯而易見的解決方案。聰明是昂貴的。

5. 維護範圍紀律

只觸碰你被要求觸碰的部分。

請勿:

  • 移除你不理解的註解
  • 「清理」與任務正交的程式碼
  • 作為副作用重構相鄰系統
  • 在未經明確批准的情況下刪除看似未使用的程式碼
  • 因為「看起來有用」而添加規格中沒有的功能

你的工作是外科手術級的精準,而不是未經請求的翻新。

6. 驗證,而非假設

每個技能都包含一個驗證步驟。在驗證通過之前,任務不算完成。「看起來是對的」永遠不夠——必須有證據(通過的測試、建置輸出、執行時資料)。

每個技能的驗證是本機檢查。適用於每個變更(無論哪個技能處於活躍狀態)的專案級標準是「完成定義」:測試通過、無迴歸、已在執行時驗證行為、文件已更新。請參閱 ../../references/definition-of-done.md。它補充而非取代每個任務的驗收標準。

應避免的失敗模式

這些是看似高效但會製造問題的細微錯誤:

  1. 未經檢查就做出錯誤假設
  2. 未管理好自己的困惑——在迷失時仍盲目前進
  3. 未公開你注意到的矛盾點
  4. 未針對非顯而易見的決策呈現取捨
  5. 對有明顯問題的方法諂媚(「當然好!」)
  6. 過度複雜化程式碼和 API
  7. 修改與任務正交的程式碼或註解
  8. 移除你未完全理解的東西
  9. 因為「很明顯」而在沒有規格的情況下進行建置
  10. 因為「看起來是對的」而跳過驗證

技能規則

  1. 在開始工作之前檢查是否有適用的技能。 技能編碼了能防止常見錯誤的流程。

  2. 技能是工作流程,而非建議。 按順序執行步驟。不要跳過驗證步驟。

  3. 多項技能可以同時適用。 一個功能的實作可能依序涉及 idea-refine → spec-driven-development → planning-and-task-breakdown → incremental-implementation → test-driven-development → code-review-and-quality → code-simplification → shipping-and-launch。

  4. 如有疑問,從規格開始。 如果任務非平凡且沒有規格,請從 spec-driven-development 開始。

生命週期順序

對於一個完整的功能,典型的技能順序是:

1.  interview-me                → 提取使用者真正想要什麼
2.  idea-refine                 → 精煉模糊的想法
3.  spec-driven-development     → 定義我們在建構什麼
4.  planning-and-task-breakdown → 分解成可驗證的區塊
5.  context-engineering         → 載入正確的上下文
6.  source-driven-development   → 根據官方文件驗證
7.  incremental-implementation  → 逐片建構
8.  observability-and-instrumentation → 在建構時加入儀器(與 7-9 並行執行,而非之後)
9.  doubt-driven-development    → 對非平凡的決策進行交叉審查
10. test-driven-development     → 證明每個片都能運作
11. code-review-and-quality     → 合併前審查
12. code-simplification         → 在保留行為的同時減少不必要的複雜性
13. git-workflow-and-versioning → 乾淨的提交歷史
14. documentation-and-adrs      → 記錄決策
15. deprecation-and-migration   → 在必要時安全地淘汰舊系統並遷移使用者
16. shipping-and-launch         → 安全部署

並非每個任務都需要每個技能。一個錯誤修復可能只需要:debugging-and-error-recovery → test-driven-development → code-review-and-quality。

快速參考

階段技能一句話摘要
定義interview-me在任何計劃、規格或程式碼存在之前,表面使用者真正想要什麼
定義idea-refine透過結構化的發散與收斂思考來精煉想法
定義spec-driven-development在程式碼之前先有需求與驗收標準
計畫planning-and-task-breakdown分解成小的、可驗證的任務
建置incremental-implementation薄垂直切片,在展開前測試每個切片
建置source-driven-development在實作前根據官方文件驗證
建置doubt-driven-development對每個非平凡決策進行對抗性的新上下文審查
建置context-engineering在正確的時間提供正確的上下文
建置frontend-ui-engineering具有可訪問性的生產級 UI
建置api-and-interface-design具有清晰契約的穩定介面
驗證test-driven-development先寫失敗的測試,然後讓它通過
驗證browser-testing-with-devtools用於執行時驗證的 Chrome DevTools MCP
驗證debugging-and-error-recovery重現 → 定位 → 修復 → 防護
審查code-review-and-quality帶有品質閘門的五軸審查
審查code-simplification在保留行為的同時減少不必要的複雜性
審查security-and-hardeningOWASP 預防、輸入驗證、最小權限
審查performance-optimization先測量,只優化重要的事
交付git-workflow-and-versioning原子提交、乾淨的歷史
交付ci-cd-and-automation每次變更上的自動化品質閘門
交付deprecation-and-migration移除舊系統並安全遷移使用者
交付documentation-and-adrs記錄為什麼,而不只是做什麼
交付observability-and-instrumentation結構化日誌、RED 指標、追蹤、基於症狀的警報
交付shipping-and-launch發布前檢查清單、監控、回滾計畫

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.

相關技能