skills/methodology-writing/SKILL.md
方法論撰寫指南。Use for: (1) 撰寫新方法論, (2) 改寫冗長的舊方法論, (3) 檢查方法論品質
npx skillsauth add tarrragon/claude methodology-writingInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
讀者已經知道方法論內容,只是忘記細節。
你的任務:幫讀者找回記憶,不是教導或說服。
禁止:
一個方法論必須在 30 秒內可讀完。
超出部分 → reference 到其他方法論或 SKILL
專注於:檢查和複習,不是完整說明
| 類型 | 定位 | 內容 | |-----|------|-----| | SKILL | 完整實作指南 | 設計邏輯、實作細節、範例、錯誤處理 | | 方法論 | 30 秒快速複習 | 核心概念、檢查清單、reference 連結 |
# [方法論名稱]
## 核心概念
[1-2 句話定義]
## 執行步驟
1. [步驟]
2. [步驟]
3. [步驟]
## 檢查清單
- [ ] [檢查項]
- [ ] [檢查項]
## Reference
- [相關方法論]
層級限制:最多 H1 → H2 → H3,禁止 H4 以下
| 刪除對象 | 理由 | |---------|------| | 「XXX 不是什麼」 | 讀者知道,不需要提醒 | | 重複的範例 | 保留 1 個代表性範例 | | 反模式章節 | 已在正向規則中說明 | | 冗長的背景說明 | 讀者是專家 | | 空洞的結論 | 沒有新資訊 |
| 保留對象 | 理由 | |---------|------| | 核心定義(1-2 句) | 快速回憶 | | 執行步驟(3-5 步) | 可操作 | | 檢查清單 | 驗證完成度 | | Reference 連結 | 深入查閱 |
[FAIL] 禁止
### 註解不是什麼
- 不是程式碼解釋器
- 不是 API 文件
- 不是 TODO 列表
[OK] 直接說
### 核心概念
註解是需求保護器,記錄業務決策和修改約束。
[FAIL] 禁止(同概念講 4 次)
2.3: 選擇1 vs 選擇2
2.4: 對比表
3.3: 詳細對比
3.5: 對比總結
[OK] 直接說
## Sociable vs Solitary
| 面向 | Sociable | Solitary |
|-----|----------|----------|
| Unit | Module | Class |
| Mock | 外部依賴 | 所有協作者 |
[FAIL] 禁止(每個規則都有完整範例)
規則一範例:20 行程式碼
規則二範例:25 行程式碼
規則三範例:15 行程式碼
[OK] 直接說
## 執行步驟
1. 判斷錯誤類型
2. 程式錯誤 → 改程式
3. 架構變更 → 先更新文件
詳細範例見 [SKILL 名稱](./path/to/skill.md)
改寫舊方法論時,除了精簡內容,還需處理「引用完整性」。
# 搜尋所有引用該方法論的文件
grep -r "方法論檔名" .claude/
建立「引用→章節」對照表:
| 引用者 | 引用次數 | 實際引用內容 | |-------|---------|-------------| | file-a.md | 3 次 | 第二章五層定義 | | file-b.md | 1 次 | 第六章檢查機制 |
拆分標準:
| 條件 | 決策 | |-----|------| | 章節可完全獨立 | 拆分為衛星文件 | | 章節有高複用性 | 拆分為獨立方法論 | | 章節是核心定義 | 保留在主文件 | | 章節是範例/FAQ | 拆分或刪除 |
是否需要 SKILL:
對每個引用者判斷:
| 引用者 | 原引用 | 新引用 | 動作 |
|-------|-------|-------|-----|
| file-a.md | 主文件 | 主文件 | 不變 |
| file-b.md | 主文件 | 衛星文件 | 更新 |
| file-c.md | 主文件 | 主文件 + 衛星 | 更新 |
觸發條件:完成 2 個以上方法論改寫後(批量改寫必須執行)
檢查項目:
| 檢查項目 | 問題 | 判斷標準 | |---------|------|---------| | 主題重疊 | 多個方法論講同一件事? | 核心概念相似度 > 70% | | 職責模糊 | 讀者會困惑該看哪個? | 使用場景無法區分 | | 內容重複 | 相同檢查清單或步驟? | 步驟重複 > 50% |
| 情況 | 處理 | 範例 | |-----|------|------| | 完全重疊 | 刪除其一,更新引用 | A 和 B 講同一件事 → 刪除 B | | 部分重疊 | 合併為一,各自精簡 | A 有 80% 和 B 重疊 → 合併 | | 互補關係 | 保留,加入交叉引用 | A 講概念,B 講實作 → 互相 reference | | 無重疊 | 維持現狀 | 各自獨立 |
Last Updated: 2026-03-02 Version: 1.0.0
development
Use when the user wants to design, redesign, shape, critique, audit, polish, clarify, distill, harden, optimize, adapt, animate, colorize, extract, or otherwise improve a frontend interface. Covers websites, landing pages, dashboards, product UI, app shells, components, forms, settings, onboarding, and empty states. Handles UX review, visual hierarchy, information architecture, cognitive load, accessibility, performance, responsive behavior, theming, anti-patterns, typography, fonts, spacing, layout, alignment, color, motion, micro-interactions, UX copy, error states, edge cases, i18n, and reusable design systems or tokens. Also use for bland designs that need to become bolder or more delightful, loud designs that should become quieter, live browser iteration on UI elements, or ambitious visual effects that should feel technically extraordinary. Not for backend-only or non-UI tasks.
development
Claude Code release notes 框架影響評估工具。比對 last-reviewed 版本篩出新版本,逐項分類(對框架有幫助 / 需評估 / 無影響 / 不適用),對採用項引導建 ANA + WRAP + spawn 落地。Use when: 執行 /release-notes 看到新版本、定期檢查 CC 更新、評估新功能對專案框架的影響時。Triggers: release notes, release-notes, CC 更新, claude code 更新, 版本更新評估, 新功能評估, 框架影響評估。
development
Assertion design judgment framework for flaky and design-quality issues. Use when writing tests, reviewing assertions, diagnosing flaky tests, or deciding if a timing/float/cache assertion is appropriate. Do NOT use for API syntax or refactoring.
tools
Chrome Extension 實機測試與 debug 工作流,以 chrome-devtools-mcp 為核心工具。Use when: (1) 完成功能後實機驗證 / manual test / 試看看 / 跑看看 / verify feature, (2) extension debug / popup 不作動 / content script 不注入 / service worker 報錯 / background 出問題, (3) 安裝 unpacked extension / load unpacked / 載入未封裝, (4) 看 console / 看 network / 看 log / view console / inspect requests, (5) 功能更新後重新載入 extension / rebuild reload / reload extension。涵蓋 Manifest V3 service worker / content script / popup / options page 的 chrome-devtools-mcp 工具呼叫流程。不取代 Puppeteer / Playwright 自動化 E2E(CI 用),定位為開發期手動驗證與 LLM-assisted debug。