architecture-improvement
以 Git hotspot 縮小分析範圍,使用 deletion test 篩選改善候選並產出架構改善報告。
Skill by CloudyWing
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-architecture-improvement
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: testing
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/architecture-improvement
What's inside
- Skill name
architecture-improvement- Description
- 以 Git hotspot 縮小分析範圍,使用 deletion test 篩選改善候選並產出架構改善報告。
- License
- MIT
- Instructions
- 70 lines in SKILL.md · view on GitHub
Files (1)
- SKILL.md
SKILL.md (first lines)
# Architecture Improvement ## 使用時機 使用者希望改善模組邊界、Interface、依賴方向、耦合程度或大型模組的變更成本時,使用本 Skill。此流程先提供可驗證的候選清單,再由使用者決定是否進入實作。 ## 分析範圍 ### 1. 以 Git hotspot 限定範圍 先取得固定基準: ```powershell git rev-parse HEAD ``` 依固定基準檢查近期變更頻率、變更檔案數與同一檔案的重複變更。使用 `git log --stat`、`git log --name-only` 或指定檔案的歷史資料建立證據。分析結果必須列出: - 候選檔案或目錄。 - 變更次數與統計期間。 - 反覆變更的功能群組或責任線索。 - 目前可觀察到的依賴方向與測試影響。 只把具有 Git 證據且能對應到具體程式碼的範圍列為候選。大型目錄、整個 solution 或單純命名不一致的項目,不得直接視為改善目標。 ### 2. 使用 deletion test 篩選候選 對每個候選提出刪除測試。假設移除該模組、Interface、Adapter 或依賴後,逐項檢查: 1. 是否仍有編譯時參考、註冊或反射呼叫。 2. 是否破壞公開 API、跨模組契約或資料流。 3. 是否造成測試失去必要的 seam,或讓測試只能依賴實作細節。 4. 是否能以較小的模組、單一方向的依賴或既有抽象承擔原本責任。 刪除測試只用來判斷候選的 leverage 與 locality,不在使用者確認前直接刪除或重構程式碼。與 `codebase-design` Skill 的 module、interface、seam、adapter、depth 詞彙保持一致。 ## 交付流程 1. 掃描 Git hotspot 與候選程式碼。 2. 對每個候選執行 deletion test,保留檢查證據。 3. 先產出候選清單、影響範圍、風險與建議順序。 4. 先從呼叫端取得 `LineContext`,驗證 `lineSlug` 符合 `^[a-z0-9]+(?:-[a-z0-9]+)*$`,並確認 `<work-root>/.local/ai-sessions/handoff/<lineSlug>/line.json` 的 `line-slug` 欄位相符。缺少有效 `LineContext` 或 manifest 時停止報告寫入。 5. 將報告寫入 `<work-root>/.local/ai-sessions/report/<lineSlug>/architecture-review.md`。 6. 等使用者選定候選與改動範圍後,才進入設計或實作階段。 報告至少包含以下標題: ```markdown # Architecture Review ## 分析基準 ## Git Hotspot ## Deletion Test 候選 ## 需要使用者決定 ``` 若報告已存在,先保留既有報告,再以本次任務的備份規範處理覆寫。報告只呈現可由 Git、程式碼或測試引用驗證的事實;無法確認的反射、執行期註冊或外部契約列為需手動確認。 ## 邊界 - 本 Skill 不取代 `Refactorer`。`Refactorer` 處理語法現代化、死程式碼與既有規範清理。 - 本 Skill 不直接決定模組拆分、公開 API 變更或資料流改造。 - 未取得使用者選定範圍前,不修改程式碼與專案設定。 - 不使用外部網頁產生報告,候選依據限定為目標 repository 的 Git、程式碼與測試。 ## 派遣分界 - 可派遣段:Git hotspot 掃描與 deletion test 篩選,產出候選清單與證據。 - Claude 端段:改善候選的取捨與是否進入設計或實作的決定。
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
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 - 0.520score
codebase-design
CloudyWing
Use when 設計或審查模組邊界、Interface、Adapter、依賴方向與可測試性時。
SkillBFreshness: BClaude Code +9
Signals
- Stars
- 0
- Forks
- 0
- Open issues
- 0
- Last commit (this folder)
- Oct 10, 2026 (19 days 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
architecture-improvement skill. Agent Mart. https://agentmart.dev/skills/cloudywing-architecture-improvement (last updated 2026-10-24)