agentsclimarketplace

Architecture

Skill TinyWugaga/fe-dev-workflow/skills/architecture

前端開發 SOP 的架構設計階段。產出 feature doc(需求、驗收條件、資料流、模組邊界、 影響範圍)與必要的 ADR。 觸發門檻:改動涉及「新資料模型、新模組、或跨模組介面」時必經; 不涉及以上三者的改動不走本階段,直接 implement。 Use when: 規劃新功能、設計資料模型、定義模組邊界、評估架構取捨、 「這個功能怎麼設計」「先規劃一下」「寫需求文件」, designing a feature, data model, or module interface before implementation.From its SKILL.md

Install
npx -y skills add TinyWugaga/fe-dev-workflow --skill architecture

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

2 things to look at

  • no licenseNo license file was found in the repository. Code published without one is not open source by default, so using it at work is a question for whoever answers licensing questions where you are.
  • 0 stars0 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.

SKILL.md

3.3 KB, as published. Nobody here has run it

Architecture Skill

在寫 code 之前把「做什麼、怎麼拆、怎麼驗」寫成文件。產出的 feature doc 是貫穿 ui-design → implement → acceptance 的單一真相源——「開工前寫驗收條件」不是額外負擔,acceptance 拿同一份逐條驗。

觸發門檻

涉及新資料模型、新模組、跨模組介面任一者 → 必經本階段。 都不涉及 → 明講「本次跳過 architecture,因為不涉及新資料模型/新模組/跨模組介面」,直接 implement。

流程

Step 1: 載入專案層

依 Project Layer Protocol 載入;architecture 重點:conventions/architecture.md(專案架構原則)、既有 docs/adr/(歷史決策,避免重複討論或牴觸)、project context skill。

Step 2: 釐清需求

與使用者對齊:要解決什麼問題、誰用、成功長什麼樣。需求有兩種以上合理解讀且產出差異大 → 停下來問,附選項與建議,不要猜。

Step 3: 產出 feature doc

寫入 docs/features/<feature>.md,固定包含:

  1. 需求:問題、目標、非目標(明確排除的範圍)。
  2. 驗收條件:逐條、可驗證。每條寫成「可觀察的行為」而非實作描述——之後 acceptance 會逐條分流為「可程式驗證」與「👤 人工驗收」,寫的時候就往可驗證的方向寫(✅「過期食材在清單顯示紅色標記」;❌「正確處理過期」)。
  3. 資料流:資料從哪來、經過誰、存到哪;新資料模型附型別定義草稿。
  4. 模組邊界:新模組的職責與介面;與既有模組的互動點。
  5. 影響範圍:會動到的檔案/模組清單、對已同步資料或既有行為的影響。

有畫面改動時,UI spec 由 /fe-dev-workflow:ui-design 併入同一份 feature doc,不另開檔案。

Step 4: 架構層取捨 → ADR

過程中出現專案級的架構取捨(選型、資料模型方向、同步策略等)→ 引導產出 ADR 存 docs/adr/NNN-<slug>.md:決策、理由、否決方案三段。設計層面可參閱 Architecture Review Guide(SOLID、耦合/內聚、依賴方向)。

Step 5: 規範衝突處理

發現設計與 conventions/ 衝突、或暴露規範缺漏 → 列出建議與 diff 詢問使用者後才回寫;本 skill 絕不自行修改規範文件。

Step 6: 確認與交棒

feature doc 經使用者確認後才算定稿。交棒提示:有畫面改動 → /fe-dev-workflow:ui-design;否則 → /fe-dev-workflow:implement。

驗證

  • feature doc 五節齊全,驗收條件逐條可驗證
  • 架構取捨已落 ADR(如有)
  • 與 conventions/ 無未處理的衝突
  • 使用者已確認文件內容

Keep looking

Skills are one crate of 607,533. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.