代码库模块设计
原名:codebase-design
梳理模块边界、对外接口和内部实现深度。
中文 Skills 技能说明
适合模块职责混乱、接口过多或测试困难的代码库。它会先画清边界,再减少调用方需要知道的细节,并用真实用例验证设计,不为抽象而抽象。
上游能力依据
上游原始适用说明: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.
上游 SKILL.md 主要章节(保留原文标题):
- Glossary
- Deep vs shallow
- Principles
- Designing for testability
- Relationships
- Rejected framings
- Going deeper
使用边界
先读取项目约定、依赖版本和现有测试,再提出最小改动。写文件、运行脚本、提交代码或发布前应检查差异并保留回退路径。
作者、翻译与许可证
- 原作者
- mattpocock
- 中文翻译
- CEOFans翻译
- 许可证
- MIT
- 上游来源
- https://github.com/mattpocock/skills/tree/main/skills/engineering/codebase-design
适用范围
平台:linux、macos、windows;标签:Architecture、Design、Codebase
安全提示
基础静态扫描不等于绝对安全。技能可能调用命令、浏览器、云服务或本地文件,请在最小权限环境中使用,高风险操作必须人工确认。
如发现侵权、许可证或安全问题,可在本页前台提交投诉,管理员复核后可立即下架。