improve-codebase-architecture SKILL.md skillA
improve-codebase-architecture from shumingyang-opencode/mattpocock-skills-zh-tw is an agent skill: a SKILL.md folder an AI agent loads when a task calls for it.
mdr add shumingyang-opencode/mattpocock-skills-zh-tw/improve-codebase-architecture@git:20261007.5695450Pins git:20261007.5695450 in mdr.lock. Pin the fingerprint instead.
- Audit grade
- A, 17 of 17 checks passed
- Kind
- SKILL.md skill
- Repository
- shumingyang-opencode/mattpocock-skills-zh-tw
- Path
skills/engineering/improve-codebase-architecture/SKILL.md- Versions recorded
- 6
- Latest version
- git:20261007.5695450, committed Oct 7, 2026
- First version recorded
- Jun 12, 2026
- Size
- 5,536 bytes
- Repository stars
- 3
- License
- MIT
掃描程式碼庫找出深化機會,以視覺 HTML 報告呈現,然後對你挑選的那個進行 grilling。.
Collected from public GitHub. Every version is saved exactly as it was and never changes. Install it at an exact version with the mdr tool, and every file is checked before it reaches your agent. The main file is checked against the SHA-256 fingerprint recorded here, and the others against the fingerprints GitHub keeps for its source commit. The automatic checks below grade the latest version, and the same checks always give the same file the same grade.
What the file says
# 改善程式碼庫架構 浮現架構摩擦並提出**深化機會**——把淺模組變成深模組的重構。目標是測試性與對 AI 的可導覽性。 這個指令_受_專案的領域模型_啟發_,並建立在共享的設計詞彙上: - 執行 `/codebase-design` 技能取得架構詞彙(**模組**、**介面**、**深度**、**接縫**、**轉接器**、**槓桿收益**、**局部性**)及其原則(刪除測試、「介面就是測試表面」、「一個轉接器 = 假設性接縫,兩個 = 真實」)。在每個建議中精確使用這些術語——不要漂移成「component」「service」「API」或「boundary」。 - `GLOSSARY.md` 中的領域語言為好接縫命名;`docs/adr/` 中的 ADR 記錄了這個指令不該重新爭論的決策。 ## 流程 ### 1. 探索 **掃描前先定範圍——YAGNI。** 深化模組的回報來自於讓未來對它的變更更容易,所以對程式碼庫最近變更的部分要特別加權。在看你之前先決定*往哪看*: - 如果使用者指定了方向——一個模組、一個子系統、一個痛點——採用它,並跳過下面的推斷。 - 否則,往回走一段良好的 commit 歷史(`git log --oneline`)找出程式碼庫的熱點——那些一直出現的檔案與區域——讓那些路徑先吸引你的注意力。如果變更四散、沒有清楚熱點,就擴大網子。 先讀專案的領域詞彙表(`GLOSSARY.md`)與你要觸及區域中的任何 ADR。 然後用 Agent 工具、`subagent_type=Explore` 走訪程式碼庫。不要遵循僵硬的啟發式——有機地探索,並記下你感到摩擦的地方: - 哪裡理解一個概念需要在許多小模組之間彈跳? - 哪裡有模組**淺**——介面幾乎跟實作一樣複雜? - 哪裡有純函式只是為了可測試性被抽出來,但真正的 bug 藏在它們如何被呼叫(沒有**局部性**)? - 哪裡有緊密耦合的模組跨越接縫洩漏? - 程式碼庫的哪些部分沒有測試,或難以透過它們目前的介面測試? 對任何你懷疑是淺的東西套用**刪除測試**:刪掉它會集中複雜度,還是只是搬移?「會,集中」就是你要的訊號。 ### 2. 以 HTML 報告呈現候選 把自足的 HTML 檔案寫到作業系統的暫存目錄,讓什麼都不落進 repo。從 `$TMPDIR` 解析暫存目錄,回退到 `/tmp`(Windows 用 `%TEMP%`),寫到 `<tmpdir>/architecture-review-<timestamp>.html`,讓每次執行都有新檔案。為使用者開啟它——Linux 用 `xdg-open <path>`、macOS 用 `open <path>`、Windows 用 `start <path>`——並告訴他們絕對路徑。 …
Read the whole file at its exact version.
How to install
mdr add shumingyang-opencode/mattpocock-skills-zh-tw/improve-codebase-architecture@sha256:e55011d1b3477f3fThe line at the top of this page pins the label git:20261007.5695450, which is what most people want. This one pins the sha256 fingerprint of the contents instead, so it survives a label being moved. Either way the exact version is written to mdr.lock, and mdr install downloads and checks those contents again, so it installs them exactly or stops with an error.
[](https://markdownregistry.com/a/art_epueufwh4tthtpa5)
4 badge image fetches in 30 days. What the badge shows.
Versions
The registry has recorded 6 versions of this file, between Jun 12, 2026 and Oct 7, 2026, about one every 23 days.
| version | committed | commit | size | audit | |
|---|---|---|---|---|---|
| git:20261007.5695450 latest | 2026-10-07 | 5695450 | 5,536 B | A | view · diff |
| git:20260806.5bfe60b | 2026-08-06 | 5bfe60b | 5,529 B | A | view · diff |
| git:20260713.04fee67 | 2026-07-13 | 04fee67 | 6,039 B | A | view · diff |
| git:20260713.3bb587f | 2026-07-13 | 3bb587f | 5,423 B | A | view · diff |
| git:20260713.45afd80 | 2026-07-13 | 45afd80 | 6,037 B | A | view · diff |
| git:20260612.221ffca | 2026-06-12 | 221ffca | 5,421 B | A | view |
Audit of the latest version
- pass: Frontmatter block present
- pass: Frontmatter declares a name
- pass: Frontmatter declares a description
- pass: Size between 200 bytes and 200 KB (5536 bytes)
- pass: No zero-width or bidi control characters
- pass: No instruction hidden inside an HTML comment
- pass: No link to an exfiltration or paste host
- pass: No credential-shaped string
- pass: No instruction to send local credentials anywhere
- pass: No text hidden with inline styles
- pass: No prompt-injection phrasing
- pass: No curl or wget piped into a shell
- pass: No recursive delete of root, home or parent
- pass: No instruction to read or print local credentials
- pass: No base64 blob over 200 characters
- pass: No link to a raw IP address
- pass: No script tag
Source
shumingyang-opencode/mattpocock-skills-zh-tw · 3 stars · license MIT · pushed 2026-10-07 · branch main
API
GET https://markdownregistry.com/api/v1/artifacts/art_epueufwh4tthtpa5 GET https://markdownregistry.com/api/v1/resolve?ref=shumingyang-opencode/mattpocock-skills-zh-tw/improve-codebase-architecture GET https://markdownregistry.com/api/v1/blob/e55011d1b3477f3fe770cacddef82b1a8f471ae0d762bfe75d18cad1c0e0abfa
Your AI assistant does the legwork. You hear about the deals worth your word. Hand yours the standing instructions at modelranch.com and it joins the network that reads files like this one.
Guides: the SKILL.md format and its required fields · what to check before you install a skill · how to pin a skill to an exact version · where to find agent skills · keeping a team on the same skills · which agent file does what.
More from shumingyang-opencode/mattpocock-skills-zh-tw
Every file in shumingyang-opencode/mattpocock-skills-zh-tw