适用于设计或优化模块接口、决定 seam、提升模块深度与可测试性。Use when designing or improving module interfaces, deciding where a seam belongs, deepening a module, or improving testability and AI navigability. 中文关键词:代码库设计、模块设计、接口设计、模块边界、依赖边界、可测试性、代码重构。.
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
# Codebase Design
Design **deep modules**: a lot of behaviour behind a small interface, placed at a clean seam, testable through that interface. Use this language and these principles wherever code is being designed or restructured. The aim is leverage for callers, locality for maintainers, and testability for everyone.
## 输出语言
默认使用简体中文与用户沟通,并以简体中文编写设计说明。用户明确指定其他语言或既有文档语言另有约定时,遵从该约定;代码、命令、产品名和必须保持原文的引用不强行翻译。
## Glossary
Use these terms exactly — don't substitute "component," "service," "API," or "boundary." Consistent language is the whole point.
**Module** — anything with an interface and an implementation. Deliberately scale-agnostic: a function, class, package, or tier-spanning slice. _Avoid_: unit, component, service.
**Interface** — everything a caller must know to use the module correctly: the type signature, but also invariants, ordering constraints, error modes, required configuration, and performance characteristics. _Avoid_: API, signature (too narrow — they refer only to the type-level surface).
…
The line at the top of this page pins the label git:20260624.2d5338c, 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.
GET https://markdownregistry.com/api/v1/artifacts/art_23nrl3ophosrl6oo
GET https://markdownregistry.com/api/v1/resolve?ref=madnpc/skills/codebase-design
GET https://markdownregistry.com/api/v1/blob/0d54d747aa35b7556db3c45923c57386b2494a83e7daacd483c0b05b6ae06e16
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.
madnpc/skills · skills/brainstorming/SKILL.md · 适用于编写代码前,当需求或方向仍不清楚时,梳理模糊想法、比较方案并形成轻量设计文档。Use before implementation when the request is ambiguous or the direction is…
madnpc/skills · skills/diagnosing-bugs/SKILL.md · 适用于根因不明确、反复出现、不稳定、跨组件或性能退化的故障。Use when a bug, test failure, runtime error, unexpected behavior, or performance…
madnpc/skills · skills/domain-modeling/SKILL.md · 适用于构建或完善项目领域模型、统一代码库术语、创建或编辑 CONTEXT.md,以及记录或更新 ADR。Build and sharpen a project's domain model. Use when discussing…
madnpc/skills · skills/grilling/SKILL.md · 适用于用户想对计划、设计、决策或想法进行高强度压力测试,或明确要求 grill、拷问、追问到底、深挖问题时。Relentlessly interview the user about a plan, design, decision…
madnpc/skills · skills/handoff/SKILL.md · 适用于将未完成任务及其上下文移交给新的代理或会话。Use when handing an unfinished task or its context to a fresh agent or a new session…
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…
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…
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…
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…
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…
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…
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…