Elephant goldfish
Skill ldsAS/elephant-goldfish-skill/.agent-skills/elephant-goldfish
執行大象金魚模式(Elephant & Goldfish Pattern)的 SDLC 協作流程。適用於重大功能開發、架構重構與測試驗證。強制執行四角色分離(Coordinator、Coder、Reviewer、Tester)與 CUJ(Critical User Journey)驅動測試。當使用者提到「大象金魚」、「CUJ開發」、「大象模式」或進行複雜專案開發時觸發。From its SKILL.md
npx -y skills add ldsAS/elephant-goldfish-skill --skill elephant-goldfishAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
2 things to look at
- 22 days oldThe repository was created 22 days ago. New is not bad, but a brand new repository carrying a familiar-sounding name is the shape a typosquat arrives in, and there has been no time for anyone else to find a problem with it.
- 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
4.4 KB, ~1.8k tokens by cl100k_base, as published. Nobody here has run it
🐘🐟 大象金魚開發模式 (Elephant & Goldfish Pattern)
📌 Overview
本 Skill 實現了規範化 AI 軟體工程的「大象金魚模式」。 透過將任務嚴格拆分為 大象(Coordinator,具備全貌記憶與協調能力) 與 金魚(Coder/Reviewer/Tester,無上下文包袱、執行單一任務的無記憶 Sub-Agent),確保軟體開發的高品質與客觀驗證。
🔲 職責邊界
本 Skill 負責大象金魚機制本身,不涵蓋整個開發生命週期。 以下為原始方法論的五個階段,以及本 Skill 的涵蓋範圍:
| 階段 | 本 Skill | 說明 |
|---|---|---|
| ① 定義需求 | 邊界外 | 人類職責 |
| ② 需求釐清 | 邊界外(定義契約) | 各工具自行搭配,見 cuj-workflow.md 步驟 2 對照表 |
| ③ 產生 CUJ | ✅ 核心 | CUJ 範本 + validate_cuj.py 客觀驗證 |
| ④ 開發 | ✅ 核心 | 四角色分離 + 派發 prompt 範本 |
| ⑤ Post-mortem | 邊界外 | 各工具原生機制(如 Claude Code 的 memory) |
這樣切分是刻意的:一個 Skill 只做一件事。 需求釐清、學習沉澱都有成熟的獨立 skill 可搭配,重造沒有價值。
⚙️ 前置需求
| 項目 | 需求 |
|---|---|
執行 scripts/validate_cuj.py | Python 3.12+ |
執行 scripts/install.py | Python 3.12+ |
| 執行 Skill 自我測試 | pytest |
⚠️ 上述為 Skill 本身的執行需求,與使用本 Skill 的專案技術棧無關。
🎯 核心原則
- 金魚測試標準:一個全新的子代理(金魚),僅憑 CUJ 文件,就能獨立完成 說明 → 實作 → 測試 全流程。
- 角色嚴格分離:寫程式的人(Coder)不能批改自己的考卷(Tester/Reviewer)。
- 規格 + 測試:CUJ 定義「要什麼」,測試證明「拿到了」。兩者缺一,CUJ 就退化成寫給人看的文件,而非金魚的可執行契約。
- 信任 Script,不只信任 Markdown:使用獨立腳本(
scripts/validate_cuj.py)進行客觀的自動化檢查。
🚀 流程與導引
當本 Skill 被觸發時,請依序執行以下步驟:
Step 1: 閱讀詳細規範 (按需讀取 Level 3 參考資料)
- references/role-separation.md — 四角色權責邊界、跨工具子代理對照表、Anti-Rationalization 表
- references/cuj-workflow.md — CUJ 驅動開發 8 大步驟與釐清階段契約
- references/dispatch-prompts.md — 三份派發 prompt 範本(派發前必讀)
Step 2: 創建 CUJ 文件
- 使用 assets/cuj-template.md 格式在專案
cuj/目錄下建立 CUJ 檔(如cuj/cuj-001-login.md)。 - 參考 assets/cuj-001-user-login.md 了解合格 CUJ 的標準。
Step 3: 驗證 CUJ 文件品質
- 執行驗證腳本:
python .agent-skills/elephant-goldfish/scripts/validate_cuj.py <cuj-filepath-or-dir> - exit code 0 才可進入下一步;非 0 表示 CUJ 尚未達到金魚可用的標準。
- ⚠️ 摘要行的
跳過不等於通過,請確認通過的數字。
Step 4: 召喚金魚 Sub-Agents 執行開發與測試
派發前務必先讀 references/dispatch-prompts.md 的「❌ 不可包含」清單。
- 派發 Coder 進行程式碼實作。
- 派發獨立的 Tester 進行 pytest / 單元測試驗證。
- 派發獨立的 Reviewer 進行審查。
🛑 Anti-Rationalization & Red Flags
- ❌ 絕對禁止 Coordinator(主 Agent)親自編寫超過 10 行的改動或親自執行測試命令。
- ❌ 絕對禁止 將 Coder 的實作脈絡直接複製給 Tester,Tester 必須在乾淨上下文下依據 CUJ 驗收標準進行獨立測試。
- ❌ 絕對禁止 因為驗證腳本印出 ✅ 就認定通過 —— 請確認摘要行的
passed數,skipped不等於通過。
What ships with it: 15 files
67.0 KB alongside SKILL.md, 3 of them executable
assets/
- agents-md-snippet.md6.1 KB
- cuj-001-user-login.md3.9 KB
- cuj-template.md2.4 KB
references/
- cuj-workflow.md5.2 KB
- dispatch-prompts.md6.7 KB
- role-separation.md6.8 KB
scripts/
- install.pyruns8.4 KB
- validate_cuj.pyruns15.3 KB