codebase-design SKILL.md skillA

codebase-design 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/codebase-design@git:20260806.5bfe60b

Pins git:20260806.5bfe60b 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/codebase-design/SKILL.md
Versions recorded
3
Latest version
git:20260806.5bfe60b, committed Aug 6, 2026
First version recorded
Jun 12, 2026
Size
6,171 bytes
Repository stars
3
License
MIT

設計深模組的共用詞彙。當使用者想設計或改進模組的介面、找深化的機會、決定接縫放哪裡、讓程式碼更容易測試或對 AI 更容易導覽,或另一個技能需要深模組詞彙時使用。.

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

# 程式碼庫設計

設計**深模組**:小介面背後有大量行為、放在乾淨的接縫上、可以透過那個介面測試。在任何程式碼被設計或重構的地方使用這套語言與這些原則。目標是讓呼叫者獲得槓桿收益、維護者獲得局部性、所有人獲得可測試性。

## 詞彙表

精確使用這些術語——不要替換成「component」「service」「API」或「boundary」。一致的語言就是重點。

**模組**——任何有介面與實作的東西。刻意地與規模無關:一個函式、類別、套件,或橫跨層級的切片。_Avoid_: unit、component、service。

**介面**——呼叫者要正確使用模組所需知道的一切:型別簽名,也包括不變量、順序約束、錯誤模式、必要的設定,與效能特徵。_Avoid_: API、signature(太窄——它們只指型別層級的表面)。

**實作**——模組裡面的東西,它的程式碼本體。與**轉接器**區別:一個東西可以是小轉接器配大實作(Postgres repo),或大轉接器配小實作(記憶體中的假物件)。當主題是接縫時用「轉接器」;其他情況用「實作」。

**深度**——介面上的槓桿收益:呼叫者(或測試)每學習一單位介面所能行使的行為量。當大量行為藏在一個小介面後面時,模組是**深的**;當介面幾乎跟實作一樣複雜時是**淺的**。

**接縫** _(Michael Feathers)_——一個你可以不用在原地編輯就能改變行為的地方;模組介面所在的*位置*。接縫放哪裡本身是一個設計決策,與放在它後面的是什麼是兩回事。_Avoid_: boundary(與 DDD 的 bounded context 過載)。

**轉接器**——在接縫處滿足某個介面的具體東西。描述*角色*(它填補什麼槽位),不是實體(裡面是什麼)。

**槓桿收益**——呼叫者從深度得到的:每學習一單位介面獲得更多能力。一份實作在 N 個呼叫點與 M 個測試之間回本。

**局部性**——維護者從深度得到的:變更、bug、知識與驗證集中在一個地方,而不是散落在呼叫者之間。修一次,處處修好。

## 深 vs 淺

**深模組** = 小介面 + 大量實作:

```
┌─────────────────────┐
│   Small Interface   │  ← Few methods, simple params
├─────────────────────┤
│                     │
│  Deep Implementation│  ← Complex logic hidden
│                     │
└─────────────────────┘
```

**淺模組** = 大介面 + 少許實作(避免):

```
…

Read the whole file at its exact version.

How to install

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

The line at the top of this page pins the label git:20260806.5bfe60b, 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_hq3wek6q4ijgsd6t.svg)](https://markdownregistry.com/a/art_hq3wek6q4ijgsd6t)

4 badge image fetches in 30 days. What the badge shows.

Versions

The registry has recorded 3 versions of this file, between Jun 12, 2026 and Aug 6, 2026, about one every 27 days.

versioncommittedcommitsizeaudit
git:20260806.5bfe60b latest2026-08-06 5bfe60b 6,171 BA view · diff
git:20260617.ee8bae42026-06-17 ee8bae4 6,488 BA view · diff
git:20260612.221ffca2026-06-12 221ffca 6,647 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 (6171 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_hq3wek6q4ijgsd6t
GET https://markdownregistry.com/api/v1/resolve?ref=shumingyang-opencode/mattpocock-skills-zh-tw/codebase-design
GET https://markdownregistry.com/api/v1/blob/ec713af0a6332c1f43ed775f9228df3998f777d3e565a1adad49643ab2be7e5a

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
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
improve-codebase-architecture SKILL.md skill
shumingyang-opencode/mattpocock-skills-zh-tw · skills/engineering/improve-codebase-architecture/SKILL.md · 掃描程式碼庫找出深化機會,以視覺 HTML 報告呈現,然後對你挑選的那個進行 grilling。
git:20261007.5695450 · 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 codebase-design

codebase-design SKILL.md skill
librechat-ai/librechat · .claude/skills/codebase-design/SKILL.md · Shared vocabulary for designing deep modules. Use when the user wants to design or improve a module's interface, find…
git:20260812.ee8c0ab · audit A · 46,149 stars
codebase-design SKILL.md skill
danny-avila/librechat · .claude/skills/codebase-design/SKILL.md · Shared vocabulary for designing deep modules. Use when the user wants to design or improve a module's interface, find…
git:20260812.ee8c0ab · audit A · 46,090 stars
codebase-design SKILL.md skill
vinvcn/mattpocock-skills-zh-cn · skills/engineering/codebase-design/SKILL.md · 用于设计深模块的共享词汇。适用于用户想设计或改进模块接口、寻找深化机会、决定 seam 放在哪里、让代码更容易测试或更适合 AI 导航,或其他技能需要深模块词汇时。
git:20261008.5be0dc1 · audit A · 5,110 stars
codebase-design SKILL.md skill
dcouple/pane · main/src/services/paneChatBundle/skills/codebase-design/SKILL.md · Shared vocabulary for designing deep modules. Use when the user wants to design or improve a module's interface, find…
git:20260924.17234b5 · audit A · 577 stars
codebase-design SKILL.md skill
greenfield-inc/pane · main/src/services/paneChatBundle/skills/codebase-design/SKILL.md · Shared vocabulary for designing deep modules. Use when the user wants to design or improve a module's interface, find…
git:20260924.17234b5 · audit A · 575 stars
codebase-design SKILL.md skill
kunolu/640-skills · sbtd-workflow-onboard/assets/external-skills/stable/skills/codebase-design/SKILL.md · Shared vocabulary for designing deep modules. Use when the user wants to design or improve a module's interface, find…
git:20260827.561ec6a · audit A · 555 stars
codebase-design SKILL.md skill
mxyhi/ok-skills · codebase-design/SKILL.md · Shared vocabulary for designing deep modules. Use when the user wants to design or improve a module's interface, find…
git:20260831.e7f2564 · audit A · 504 stars
codebase-design SKILL.md skill
asymmetric-al/core · .agents/skills/codebase-design/SKILL.md · Shared vocabulary for designing deep modules. Use when the user wants to design or improve a module's interface, find…
git:20260923.15c9348 · audit A · 379 stars

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