微单体架构设计
micromonolith
框架无关的微单体(micromonolith)架构——领域隔离、组合根、服务层、防腐层以及授权模型。当用户询问微单体架构、领域模块边界、服务层模式、防腐层,或说「how should we organize the codebase」(我们应该如何组织代码库)时使用。
- License 许可
- MIT
- 最近更新
- 2026-10-24
- Stars
- ★ 0
- Forks
- 0
01 前言 Front Matter
- name
- micromonolith
- description
- Framework-agnostic micromonolith architecture — domain isolation, composition root, service layer, anti-corruption layer, and authorization model. Use when the user asks about micromonolith architecture, domain module boundaries, service layer patterns, anti-corruption layer, or says "how should we organize the codebase".
02 资源文件 3
- 参考文档.managed-skill.md235 B
- 参考文档templates/micromonolith-rule.md5.7 KB
- 其他tools.sdn557 B
03 SKILL.md 正文
MANAGED SKILL — Do not edit this file here. It is managed from an external source repository. To make changes, update the source and run "update my skills" to sync.
Micromonolith
Conventions-only skill that installs the micromonolith architecture as a glob-scoped rule (active on **/*.py). Describes the architectural pattern independently of any framework — domain isolation, composition root, service interfaces, anti-corruption layer, and authorization model.
For framework-specific implementation, see the Pyramid skill family which depends on this one: pyramid-developer (shared conventions), pyramid-app (composition root, tests, pshell), and pyramid-plugin (module anatomy, includeme, service layer, REST endpoints).
Install Actions
1. Generate the glob-scoped rule
Read templates/micromonolith-rule.md and write it to .cursor/rules/micromonolith.mdc in the target project. No placeholder substitution needed — the conventions are the same across all projects following this architecture.
04 同仓库更多 Skills
pytest 测试编写
write-pytest
为任何 Python 代码库编写 pytest 测试。当用户要求编写测试、创建测试、添加测试,或测试某个模块/服务/端点/函数时使用。与框架无关;当检测到相关信号时会路由到框架专用的辅助工具。遵循“先研究—再讨论—后编写”的流程。
会话质量保障检查
quality-assurance
对当前聊天会话执行质量保障检查——任务前验证、任务后清单和代码审查。在完成任务时、提交前或用户要求进行 QA 审查时使用。
Python 开发规范配置
python-developer
Python 开发者总括技能——一次性安装 Python 编码约定,并捆绑配套技能(最佳实践、测试、依赖管理)完成统一配置。当用户要求建立 Python 开发规范、安装 Python 技能,或说“搭建 Python 开发环境”时使用。
Python 编码最佳实践
python-best-practices
全面的 Python 编码约定与最佳实践。当用户询问 Python 约定、编码模式、最佳实践、代码风格、反模式,或“这段 Python 代码应该怎么写”时使用。
Pyramid 扩展库开发
pyramid-library
库开发者角色:开发独立的 Pyramid 扩展(拥有自己的仓库与包),并向外部使用者暴露 includeme。当用户构建可复用的 Pyramid 库、为使用者设计 includeme、注册自定义指令/tween/请求方法,或使用规范的应用程序测试库时使用。
Pyramid 框架开发规范
pyramid-developer
Pyramid 框架开发约定——配置/注册表、基于 includeme 的模块系统、pyramid_services、模型、Cornice REST、ACL 授权以及事务处理。在为一个项目建立 Pyramid 开发规范时使用。