codebase-design

仓库创建 2026年2月2日最近提交 4 天前SkillHot 收录 21 天前
▸ 精选理由

有助于重构与定义清晰边界,适合大型代码库

这个 Skill 做什么

为深度模块设计提供共享词汇与原则,提升可维护性与测试性

给深度模块设计一套统一的话术和原则,帮团队在划清边界、设计接口、提高可维护性与可测性时有共同标准可依。适合重构、定义模块边界或希望让代码对 AI/测试更友好时使用。重点在于把复杂行为封装在小接口后面,便于调用者使用和维护者管理。

▸ 展开 SKILL.md 英文原文

Shared vocabulary for designing deep modules. Use when the user wants to design or improve a module's interface, find deepening opportunities, decide where a seam goes, make code more testable or AI-navigable, or when another skill needs the deep-module vocabulary.

开发编程模块化接口设计可测性通用
458
Stars
41
Forks
34
仓库内 Skill
+10
7 日增星
安装 / 使用
给你的 Agent 一句话(通用)
帮我安装这个 skill:https://raw.githubusercontent.com/mxyhi/ok-skills/main/codebase-design/SKILL.md
或 curl 直取 SKILL.md
curl -fsSL "https://raw.githubusercontent.com/mxyhi/ok-skills/main/codebase-design/SKILL.md"
SKILL.MD 节选查看完整文件 ↗
# 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 
via SKILL·HOT · 数据来自 GitHub 公开信息 · 原文版权归作者所有