with one click
modular-arch
管理模块间语义层级依赖关系。注册模块、声明依赖方向、定义接口契约,支持环检测、跨层违规检查和并行开发分组。
Install with Codex or Claude Copy this prompt, paste it into Codex, Claude, or another assistant, and let it review the skill page and install it for you.
Menu
管理模块间语义层级依赖关系。注册模块、声明依赖方向、定义接口契约,支持环检测、跨层违规检查和并行开发分组。
Install with Codex or Claude Copy this prompt, paste it into Codex, Claude, or another assistant, and let it review the skill page and install it for you.
Based on SOC occupation classification
当你需要按用户 prompt 片段从本机 Codex CLI JSONL 会话里定位最近一次相关会话,并导出为可读的 user/assistant Markdown 对话稿时使用。
使用 draw.io CLI 绘制项目架构依赖图,支持中英文标签,导出 SVG/PNG/PDF 预览,并将图片插入 Markdown 文档。
管理和读取工作区目录文档。使用该技能可了解文件/目录用途、读取 agent 专用备注,或在创建/修改文件后更新文档。
自动工作工具箱入口。用于按需加载架构设计、重构迁移、质量门禁和会话留痕能力;默认只读取本入口,再根据任务打开对应 references 或下游 skill。
用于大规模重构。冻结 old db 作为基线观察,使用 new db 持续建设新结构,并通过 migration_plan.md 管理旧模块到新模块的迁移设计、进度和退出条件。
记录 Agent 会话日志。捕获用户原始 prompt、LLM 理解摘要和执行上下文摘要,用于追溯和复盘。
| name | modular-arch |
| description | 管理模块间语义层级依赖关系。注册模块、声明依赖方向、定义接口契约,支持环检测、跨层违规检查和并行开发分组。 |
基于 SQLite 的模块依赖图管理工具,与 workspace-docs(节点说明)正交互补,专注于模块间的关系图谱。
modular-arch/modular_arch.db。docs/modular_arch.db。check 命令验证新增依赖是否会引入循环或跨层违规。所有操作通过 mod_arch.py 脚本完成。
python3 .agents/skills/modular-arch/scripts/mod_arch.py register <name> \
-p <relative_path> -l <layer> -d "描述"
# layer: frontend / backend / shared / infra
python3 .agents/skills/modular-arch/scripts/mod_arch.py depend <from> <to> \
-t <dep_type> -d "说明"
# dep_type: imports / calls_api / implements / extends
python3 .agents/skills/modular-arch/scripts/mod_arch.py undepend <from> <to>
python3 .agents/skills/modular-arch/scripts/mod_arch.py interface <module> <iface_name> \
-s "签名" -d "说明"
python3 .agents/skills/modular-arch/scripts/mod_arch.py show <name>
python3 .agents/skills/modular-arch/scripts/mod_arch.py graph
# 输出 Mermaid 格式的依赖图
python3 .agents/skills/modular-arch/scripts/mod_arch.py check
python3 .agents/skills/modular-arch/scripts/mod_arch.py parallel