Install
Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.
npx agentmarket install skill/cloudywing-codebase-design
Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.
Get the weekly diff
The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.
About
Use cases: design
Reviews
Write a reviewNo reviews yet. Installed it? Reviews come from verified installers only. How reviews work
Permissions
What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.
- Tools
- No tools found
- Secrets
- None asked for
- Install scripts
- None found
Network hosts it talks to 1
codeload.github.com· found in install command
Files it touches
~/.claude/skills/codebase-design
What's inside
- Skill name
codebase-design- Description
- Use when 設計或審查模組邊界、Interface、Adapter、依賴方向與可測試性時。
- License
- MIT
- Instructions
- 51 lines in SKILL.md · view on GitHub
Files (1)
- SKILL.md
SKILL.md (first lines)
# Codebase Design 詞彙與判斷規則 本 Skill 統一描述模組邊界、抽象層與變更影響,讓設計文件、實作與審查使用相同詞彙。 ## 共用詞彙 | 詞彙 | 定義 | 判斷問題 | | --- | --- | --- | | Module | 擁有明確責任、輸入、輸出與相依性的邊界單位 | 這段邏輯能否以單一責任描述? | | Interface | 呼叫端依賴的行為契約與測試替身邊界 | 呼叫端需要承諾哪些行為? | | Depth | 請求或資料穿越的層數,以及每層新增的語意 | 每一層是否轉換了責任或只轉發? | | Seam | 可以替換、觀察或隔離行為的連接點 | 測試或變更能在哪裡切開? | | Adapter | 將一個既有契約轉成另一個契約的實作 | 轉換是否有明確的來源與目標? | | Leverage | 一個變更能影響的使用者、流程或模組範圍 | 這個抽象能減少多少重複變更? | | Locality | 相關規則與實作在程式碼中的鄰近程度 | 修改一項行為需要跨越多少檔案? | Interface 就是測試面。若 Interface 沒有提供可觀察的行為契約,測試只是在驗證具體實作細節。 ## Seam 判斷 一個 adapter 是假接縫,兩個才是真的。單一 Adapter 只有在相同實作上增加轉發層,沒有帶來替換或隔離能力。當至少存在兩個可互換的實作、或一個正式實作加上一個測試替身時,才形成可驗證的 Seam。 判斷 Seam 時確認: - 呼叫端依賴的是 Interface,而非具體類別。 - 每個實作都能遵守同一組輸入、輸出與錯誤契約。 - 替換實作不需要修改呼叫端的業務判斷。 - 測試能在 Seam 上隔離外部 I/O 或非決定性來源。 ## Deletion Test 評估模組、抽象或流程是否必要時,先執行 deletion test。暫時移除目標元素,檢查是否仍有編譯錯誤、契約缺口、行為回歸或無法驗證的外部相依。 - 沒有可觀察影響的元素屬候選刪除項目。 - 只有文件、命名或空殼 Interface 的元素不能以存在本身證明必要性。 - 刪除會破壞契約、替換能力或責任邊界時,保留元素並寫明承擔的責任。 Deletion test 是篩選候選的方法,不直接決定業務範圍。涉及公開契約、資料遷移或不可逆變更時,先列出影響範圍與驗收條件。 ## 變更判斷 設計或審查跨模組變更時,依序確認: 1. Module 是否有單一且可觀察的責任。 2. Interface 是否描述呼叫端真正需要的行為。 3. Depth 是否由必要的責任轉換構成。 4. Seam 是否提供替換、隔離或觀察價值。 5. Leverage 是否足以抵銷新增抽象的維護成本。 6. Locality 是否讓相同規則集中在可追蹤的位置。
From CloudyWing/ai-dotfiles, MIT.
More from CloudyWing/ai-dotfiles
- 0.565score
apply-fact-check
CloudyWing
依據事實校閱報告修改技術文件:以事實層為不可違反的約束,由改檔者負責表達層的措辭與行文連貫。Use when the user asks to apply fact-check results to a document, or to edit a document based on a previously…
SkillAFreshness: AClaude Code +9 - 0.565score
ai-tool-discovery
CloudyWing
Use when the agent is about to explore a project or generate AI support artifacts and needs the local tool inventory or the state and rebuild path of existing…
SkillAFreshness: AClaude Code +9 - 0.564score
ai-context-index
CloudyWing
Use when an agent needs to create or update a project AI context index from the tools declared in AGENTS.md.
SkillAFreshness: AClaude Code +9 - 0.558score
api-smoke
CloudyWing
Web API 煙霧驗證流程。當需要在修改或開發 Web API 端點後驗證 API 行為,或使用者要求呼叫 Swagger、寫腳本測試 API、進行多情境 API 測試時使用。
SkillAFreshness: AClaude Code +9 - 0.558score
browser-smoke
CloudyWing
瀏覽器煙霧驗證流程。當需要在修改 Web UI、頁面、路由、表單、互動、樣式、響應式版面或前端狀態後使用瀏覽器驗證,或使用者明確要求檢查畫面、console/network error、互動行為與 UI 修正結果時使用。
SkillAFreshness: AClaude Code +9 - 0.558score
csharp-background-service
CloudyWing
Background Service 開發規範:BackgroundService、IHostedService、Channel Queue 模式與生命週期管理。當撰寫或審查 .NET 背景工作、排程任務或佇列處理邏輯時自動套用。
SkillAFreshness: AClaude Code +9 - 0.555score
adr
CloudyWing
依決策門檻建立追加式 Architecture Decision Record,管理序號、狀態與被推翻的決策。
SkillAFreshness: AClaude Code +9 - 0.555score
check-markdown
CloudyWing
當要求檢查 Markdown、修正格式或整理文件時使用。依據專案文件平台修正格式與排版問題。
SkillAFreshness: AClaude Code +9 - 0.555score
architecture-improvement
CloudyWing
以 Git hotspot 縮小分析範圍,使用 deletion test 篩選改善候選並產出架構改善報告。
SkillAFreshness: AClaude Code +9 - 0.555score
create-license-and-readme-link
CloudyWing
自動判斷專案屬性並推薦合適的開源授權,建立 LICENSE 檔案並將其連結補入 README.md 中。
SkillAFreshness: AClaude Code +9 - 0.549score
codex-dispatch
CloudyWing
Codex 派工機制:依派工類型建立執行契約、以 codex exec 啟動 Codex、背景等待、取證並回收結果。當需要發動 codex、撰寫派遣單或執行派遣回收判定時使用。
SkillAFreshness: AClaude Code +9 - 0.524score
csharp-docs
CloudyWing
C# 文件與 XML 註解標準:強制使用標準標籤與用詞規範產生類別與方法的說明。Use when writing, reviewing, or generating XML documentation comments (///) in C# files, or when the user asks to add…
SkillBFreshness: BClaude Code +9
Signals
- Stars
- 0
- Forks
- 0
- Open issues
- 0
- Last commit (this folder)
- Aug 16, 2026 (2 months ago)
From GitHub (fetched Oct 24, 2026).
Details
- License
- MIT
- Repository
- github.com/CloudyWing/ai-dotfiles
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
More from CloudyWing
- 0.565score
ai-tool-discovery
CloudyWing
Use when the agent is about to explore a project or generate AI support artifacts and needs the local tool inventory or the state and rebuild path of existing…
SkillAFreshness: AClaude Code +9 - 0.565score
apply-fact-check
CloudyWing
依據事實校閱報告修改技術文件:以事實層為不可違反的約束,由改檔者負責表達層的措辭與行文連貫。Use when the user asks to apply fact-check results to a document, or to edit a document based on a previously…
SkillAFreshness: AClaude Code +9 - 0.564score
ai-context-index
CloudyWing
Use when an agent needs to create or update a project AI context index from the tools declared in AGENTS.md.
SkillAFreshness: AClaude Code +9 - 0.558score
browser-smoke
CloudyWing
瀏覽器煙霧驗證流程。當需要在修改 Web UI、頁面、路由、表單、互動、樣式、響應式版面或前端狀態後使用瀏覽器驗證,或使用者明確要求檢查畫面、console/network error、互動行為與 UI 修正結果時使用。
SkillAFreshness: AClaude Code +9 - 0.558score
api-smoke
CloudyWing
Web API 煙霧驗證流程。當需要在修改或開發 Web API 端點後驗證 API 行為,或使用者要求呼叫 Swagger、寫腳本測試 API、進行多情境 API 測試時使用。
SkillAFreshness: AClaude Code +9 - 0.558score
csharp-background-service
CloudyWing
Background Service 開發規範:BackgroundService、IHostedService、Channel Queue 模式與生命週期管理。當撰寫或審查 .NET 背景工作、排程任務或佇列處理邏輯時自動套用。
SkillAFreshness: AClaude Code +9
Cite this page
codebase-design skill. Agent Mart. https://agentmart.dev/skills/cloudywing-codebase-design (last updated 2026-10-24)