Community程式設計與開發github.com

alfathafp/portofolio-web-design

你必須在任何創意工作之前使用此技能——建立功能、構建組件、添加功能、修改行為或規劃任何新事物,無論是軟體還是其他領域(演講、業務、裝修)。

portofolio-web-design 是什麼?

這項技能旨在幫助 AI 代理在開始任何創意或開發工作之前,先深入了解人類夥伴的真正需求與動機。它透過引導性對話、開放式問題和結構化的發現流程,確保 AI 不是僅憑假設就開始建構,而是基於紮實的理解。技能支援所有可進行對話式協作的 AI 平台(如 Claude Code、Cursor 等),並提供一套完整的流程:從初始提問、探索需求、視覺輔助,到最終產出書面設計文件。它能有效避免常見的溝通誤區,例如過早提供選項或未經充分確認就開始實作。核心優勢在於將「瀑布式開發」加速到極致,透過快速原型(Spike)和即時反饋循環,讓 AI 與人類夥伴在最短時間內達成共識,從而產出真正符合使用者期望的成果。

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

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

在你喜歡的 AI 中提問

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

說明文件

腦力激盪

你非常擅長建構。你建構你認為你的人類夥伴想要的東西,但這種信念通常比你想像的還要薄弱。這項技能的目的是在開始任何建構之前,找出他們真正想要的東西以及背後的原因。

人們通常還沒有完全想清楚他們想要什麼。好的問題能幫助他們釐清思路。當你理解「為什麼」時,你就能做出他們從未提及的一百個決定,而且是以他們會做的方式來做。

首先:你實際上知道什麼?

在回覆之前,先問問自己:關於他們想要什麼以及為什麼,我知道些什麼?

  • 所有重要的事情都在請求中(例如「把圖示做成矢車菊藍色」)。這是一個快速、明確的任務。執行它,並說明你做了什麼。
  • 缺少一些非瑣碎的資訊。 開始對話。

你的第一則訊息

你的第一則訊息包含兩件事,按此順序:

  1. 一行文字,讓他們知道如果可以跳過問題,直接讓你開始做,他們可以這麼說。如果他們接受,這項技能的任務就完成了:用一句簡單的話說明任何重要的建構方式選擇(平台、語言、媒介),然後透過正常的流程執行他們的要求。
  2. 一個開放式問題,引導他們開始描述。詢問一個真實的時刻或具體的畫面:「你什麼時候會希望這個東西存在?」或「跟我說說房間裡會有誰。」

這就是整則訊息。

對話

每則訊息都以一個問題結尾:一個句子,不要附帶一串範例答案。使用平實的語言,語氣要比你的人類夥伴稍微高一點點。配合他們的詞彙;永遠不要使用流程術語。

要清晰簡潔。從重要的事情開始。避免行話。當你報告你的發現時,給他們最重要的發現,並提供其餘部分。

引導他們描述。 先問開放式問題。他們自己的話語承載著你的選項無法承載的意圖。只有在他們卡住時才提供一個簡短的選單。當他們說「隨便猜」或「你覺得呢?」時,提出一些具體的建議。

它如何被建構。 每個專案都取決於關於媒介、工具、材料和資源的選擇:應用程式的平台、程式語言和函式庫;藝術品的媒介。及早找出哪些選擇他們想做,哪些要交給你,以及他們已經有什麼可以用的。有強烈看法或技能的人會想討論一下。指望你的人需要合理的預設值,用白話說出來。當已有現有工作時,基於它已經使用的東西來建構。你做的任何選擇都要在設計中標明是你的決定,而不是他們同意的事。

要涵蓋的領域。 這是領地,不是劇本。永遠不要照著這些問題念:

  • 這是什麼類型的東西,以及它的特別之處
  • 為什麼是現在,以及對他們來說成功的樣貌是什麼
  • 目標、非目標和反目標(即使技術上可行,什麼會讓這件事成為失敗)
  • 先前作品:他們在哪裡看過,喜歡或討厭的
  • 當前狀態:現在有什麼,他們嘗試過什麼
  • 他們關心的細節

有效的問題 要錨定在具體事物上:「帶我走一遍上一次……」、「如果它只能把其中一件事做好,是哪一件?」、「如果我搞錯了,什麼會讓你皺眉?」一個他們可以糾正的猜測(「我猜這是因為 X 一直在困擾你?」)通常比一個問題更有效。

提供探查。 一旦你掌握了一些基本資訊,並且查看會有幫助時,主動提出去查看:他們的程式碼庫或專案、他們自己的檔案和資料,或網路。說出你要找什麼。由他們決定你是否去查看。

私下廣泛思考。 在提出任何建議之前,想出幾個點子,然後刪掉不好的,包括任何與他們告訴你的「為什麼」相違背的點子。只有在對他們做決定有幫助時才顯示比較。

展示,不要光說。 在閱讀不如觀看更有幫助時,提供視覺輔助(如下):

  • 他們會看的東西:螢幕、頁面、印刷品、標誌
  • 佈局或安排:螢幕、房間、時間表的安排
  • 流程或步驟順序
  • 看起來會彼此不同的選項
  • 用看的比用讀的更容易理解的結構:圖表、時間線、地圖

一旦他們接受,用它來製作供他們反應的模型、並排選項,以及他們可以點擊的一次性原型。

透過快速原型來試探。 代理式工作是瀑布式的,但非常非常快。一個快速的、可拋棄的建構通常是了解他們想要什麼或某件事是否可行的最便宜方式。當它有幫助時,就提供一個。當他們只想快速原型時,就別擋路。快速原型不需要測試或只需要極少的測試,不必是萬無一失的,並且跳過規劃、實作和審查流程。將快速原型教給你的東西帶回對話中。

複述

邊進行邊複述。一旦你對某個部分有足夠的理解可以描述出來(例如它的用途、服務對象,或某個元件的行為方式),就用大約 200-300 個字描述該部分,然後回到關於下一個部分的問題。複述和問題在整個對話中交替進行;最後一個區塊涵蓋剩下的所有內容。

將你猜測的任何內容標記為你的猜測;只有他們說的話才算他們的。每個區塊結束時,詢問哪些是錯的或遺漏的。

在發送一個區塊之前,檢查一下:它是否描述了他們會看的東西,例如頁面、螢幕、時間表或印刷品?如果是,而且他們還沒有看過視覺輔助的提議,就先發送提議(作為單獨的訊息,如下),並將這個區塊保留到下一則訊息。一旦他們接受,就在描述旁邊放一個模型。

評估工作量

一旦你了解他們想要什麼,選擇一個規模並用白話說出來。他們可以推翻它。

規模完整描述接下來
一個快速、明確的任務請求本身執行它
一個小改動在聊天中透過正常的流程建構它
一個需要書面設計的專案一份書面設計文件一份完整的計畫(對於軟體:superpowers:writing-plans)

如果在中途它變大了,停下來,說明情況,並升級一個規模。

如果這實際上是幾個獨立的專案,說出來,商定一個順序,然後一次腦力激盪一個。

書面設計

對於一個專案,撰寫一份簡單的文件,讓該領域的有才華的建構者可以根據它來規劃,而無需再回去找你的夥伴。涵蓋:

  • 意圖和原因
  • 目標、非目標、反目標
  • 限制條件
  • 他們決定的「如何做」的部分,以及他們如何決定的
  • 留給建構者決定的部分

存放位置: 在軟體儲存庫中,docs/superpowers/specs/YYYY-MM-DD-<主題>-design.md,並提交。否則,問一下。你的人類夥伴的偏好優先於上述兩者。

建構者檢查: 用此目錄中的 builder-check-prompt.md 派遣一個新的子代理。當你告訴你的人類夥伴你正在撰寫文件時,說會有一位審閱者先閱讀,你可能會帶著一些問題回來一次。在檢查結果回來之前,不要交出文件。將建構者問的問題分成三堆:

  • 已回答:對話或專案中已經回答過的:將答案放入文件。
  • 次要的:一個明智的建構者可以在不改變建構內容的情況下自行解決。自行解決,並在文件中標記為你的決定。
  • 他們的:只有你的人類夥伴才能回答,而且答案會改變建構的內容。

用一則訊息呈現「他們的」那堆問題,最重要的優先。用他們的答案更新文件,然後交出文件,並附上一份你做的決定的簡短清單,以便他們在閱讀時可以檢查。這是檢查產生的唯一一輪問題。如果沒有子代理工具,就由你自己扮演那個建構者來閱讀文件。

兩個例外情況。如果他們選擇跳出問題,這項技能的任務就完成了,閘門也隨之消失。他們同意的快速原型可以建構;它仍被標記為可拋棄的,保留它所產生的東西是一個新的請求,必須重新通過這個閘門。

專案文件批准後,下一步是計畫。對於軟體,調用 superpowers:writing-plans,不要調用其他技能。

紅旗

想法現實
「我提供選項來節省他們的力氣」選項會引導。先請他們描述。
「我會填入合理的預設值」很好。把它們說出來。他們沒聽過的預設值就是他們無法拒絕的預設值。
「我應該先解釋流程」問你的問題。流程自然會展現。
「他們對這個想法說『聽起來不錯』」批准只涵蓋你展示給他們的內容。你還沒寫的描述不算批准。
「快速原型可以用,我會繼續在上面建構」保留它是一個新的請求。重新通過閘門。

視覺輔助

一個用於展示模型、圖表和原型的瀏覽器分頁。它是一個工具,不是一種模式:接受它並不意味著每個問題都發送到瀏覽器。

即時提供。 在遇到上述情況之一時第一次提供,而不是一開始就提供。這個提議是一則獨立的訊息,裡面沒有其他內容:

「用展示的方式可能更容易些。要我打開一個瀏覽器分頁放一些模型嗎?」

如果他們拒絕,就保持在文字模式,除非他們主動提起,否則不要再提供。

每個問題都問:他們用看的會不會更好理解? 模型、佈局、圖表和並排設計放在瀏覽器中。需求、範圍、權衡和概念性選擇留在文字中。關於 UI 主題的問題不自動等同於視覺問題。

如果他們接受,在啟動伺服器之前,先閱讀此目錄中的 visual-companion.md。

Individual skills in this repo

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

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

Delivers changes incrementally in thin, verifiable slices. Use when implementing any feature or change that touches more than one file, or when picking up the next task from a plan. Use when rolling a change out behind a feature flag, when you're about to write a large amount of code at once, or when a task feels too big to land in one step.

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.

相關技能