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.

Install it, pinned
mdr add shumingyang-opencode/mattpocock-skills-zh-tw/improve-codebase-architecture@git:20261007.5695450

Pins 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

The exact contents, by fingerprint
mdr add shumingyang-opencode/mattpocock-skills-zh-tw/improve-codebase-architecture@sha256:e55011d1b3477f3f

The 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.

Badge

mdr badge

[![mdr](https://markdownregistry.com/badge/art_epueufwh4tthtpa5.svg)](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.

versioncommittedcommitsizeaudit
git:20261007.5695450 latest2026-10-07 5695450 5,536 BA view · diff
git:20260806.5bfe60b2026-08-06 5bfe60b 5,529 BA view · diff
git:20260713.04fee672026-07-13 04fee67 6,039 BA view · diff
git:20260713.3bb587f2026-07-13 3bb587f 5,423 BA view · diff
git:20260713.45afd802026-07-13 45afd80 6,037 BA view · diff
git:20260612.221ffca2026-06-12 221ffca 5,421 BA view

Audit of the latest version

A  17 of 17 checks passed. Fixed automatic checks with no AI involved, so the same checks give the same answer every run.
  • 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

GitHub

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

AGENTS.md AGENTS.md file
shumingyang-opencode/mattpocock-skills-zh-tw · AGENTS.md
git:20260713.697d4ce · audit B · 3 stars
CLAUDE.md CLAUDE.md file
shumingyang-opencode/mattpocock-skills-zh-tw · CLAUDE.md
git:20260806.5bfe60b · audit A · 3 stars
ask-matt SKILL.md skill
shumingyang-opencode/mattpocock-skills-zh-tw · skills/engineering/ask-matt/SKILL.md · 詢問哪個技能或流程最符合你的情況。這個 repo 中技能的路由器。
git:20261007.5695450 · audit A · 3 stars
code-review SKILL.md skill
shumingyang-opencode/mattpocock-skills-zh-tw · skills/engineering/code-review/SKILL.md · 沿兩軸審查自某個固定點(commit、分支、標籤或合併基點)以來的變更——規範(軸)(程式碼是否符合此 repo 記錄的編碼規範?)與規格(軸)(程式碼是否符合原始…
git:20260806.5bfe60b · audit A · 3 stars
codebase-design SKILL.md skill
shumingyang-opencode/mattpocock-skills-zh-tw · skills/engineering/codebase-design/SKILL.md · 設計深模組的共用詞彙。當使用者想設計或改進模組的介面、找深化的機會、決定接縫放哪裡、讓程式碼更容易測試或對 AI 更容易導覽,或另一個技能需要深模組詞彙時使用。
git:20260806.5bfe60b · audit A · 3 stars
diagnosing-bugs SKILL.md skill
shumingyang-opencode/mattpocock-skills-zh-tw · skills/engineering/diagnosing-bugs/SKILL.md · 硬 bug 與效能回歸的診斷迴圈。當使用者說「diagnose」/「debug this」,或回報東西壞了/拋錯/失敗/很慢時使用。
git:20261007.5695450 · audit A · 3 stars
domain-modeling SKILL.md skill
shumingyang-opencode/mattpocock-skills-zh-tw · skills/engineering/domain-modeling/SKILL.md · 建立並磨利專案的領域模型。當使用者想釐清領域術語或通用語言、記錄架構決策,或另一個技能需要維護領域模型時使用。
git:20261007.5695450 · audit A · 3 stars
grill-with-docs SKILL.md skill
shumingyang-opencode/mattpocock-skills-zh-tw · skills/engineering/grill-with-docs/SKILL.md · 鍥而不捨的訪談,磨利計畫或設計,過程中同時建立文件(ADR 與詞彙表)。
git:20260806.5bfe60b · audit A · 3 stars
implement SKILL.md skill
shumingyang-opencode/mattpocock-skills-zh-tw · skills/engineering/implement/SKILL.md · 依規格說明或一組 tickets 實作一份工作。
git:20260806.5bfe60b · audit A · 3 stars
prototype SKILL.md skill
shumingyang-opencode/mattpocock-skills-zh-tw · skills/engineering/prototype/SKILL.md · 建立一次性原型來回答設計問題。當使用者想確認某個狀態模型或邏輯是否合理,或想探索 UI 應該長什麼樣子時使用。
git:20260806.5bfe60b · audit A · 3 stars
research SKILL.md skill
shumingyang-opencode/mattpocock-skills-zh-tw · skills/engineering/research/SKILL.md · 針對高可信度的主要來源調查問題,並把發現寫成 repo 中的 Markdown 檔案。當使用者想要研究某主題、蒐集文件或 API 事實,或想把閱讀的苦差事委派給背景代理時使用。
git:20260806.5bfe60b · audit A · 3 stars
resolving-merge-conflicts SKILL.md skill
shumingyang-opencode/mattpocock-skills-zh-tw · skills/engineering/resolving-merge-conflicts/SKILL.md · 當你需要解決進行中的 git merge/rebase 衝突時使用。
git:20260806.5bfe60b · audit A · 3 stars

Every file in shumingyang-opencode/mattpocock-skills-zh-tw

Other files named improve-codebase-architecture

improve-codebase-architecture SKILL.md skill
librechat-ai/librechat · .claude/skills/improve-codebase-architecture/SKILL.md · Scan a codebase for deepening opportunities, present them as a visual HTML report, then grill through whichever one you…
git:20260812.ee8c0ab · audit A · 46,149 stars
improve-codebase-architecture SKILL.md skill
danny-avila/librechat · .claude/skills/improve-codebase-architecture/SKILL.md · Scan a codebase for deepening opportunities, present them as a visual HTML report, then grill through whichever one you…
git:20260812.ee8c0ab · audit A · 46,090 stars
improve-codebase-architecture SKILL.md skill
vinvcn/mattpocock-skills-zh-cn · skills/engineering/improve-codebase-architecture/SKILL.md · 扫描代码库中的深化机会,生成可视化 HTML 报告,然后围绕你选中的候选项继续追问。
git:20261008.5be0dc1 · audit A · 5,110 stars
improve-codebase-architecture SKILL.md skill
mxyhi/ok-skills · improve-codebase-architecture/SKILL.md · Scan a codebase for deepening opportunities, present them as a visual HTML report, then grill through whichever one you…
git:20260930.4ade426 · audit A · 504 stars
improve-codebase-architecture SKILL.md skill
asymmetric-al/core · .agents/skills/improve-codebase-architecture/SKILL.md · Scan a codebase for deepening opportunities, present them as a visual HTML report, then grill through whichever one you…
git:20260923.15c9348 · audit A · 379 stars
improve-codebase-architecture SKILL.md skill
pc-style/x-md · .agents/skills/improve-codebase-architecture/SKILL.md · Scan a codebase for deepening opportunities, present them as a visual HTML report, then grill through whichever one you…
git:20260911.116bcd3 · audit A · 163 stars
improve-codebase-architecture SKILL.md skill
mart337i/odoo-skills · skills/improve-codebase-architecture/SKILL.md · Find deepening opportunities in a codebase, informed by the domain language in CONTEXT.md and the decisions in…
git:20260509.57ec9e4 · audit A · 58 stars
improve-codebase-architecture SKILL.md skill
rudycity/superagent · .agents/skills/improve-codebase-architecture/SKILL.md · Scan a codebase for deepening opportunities, present them as a visual HTML report, then grill through whichever one you…
git:20260626.019dba9 · audit A · 52 stars

Browse by kind, by grade A, or by owner.