do-directory
Installation
SKILL.md
do-directory
按 standards 产出的 spec 文档,创建项目目录结构并搭建最基础脚手架。执行型 skill——会在磁盘上创建文件。
前置依赖(先检查,缺失就停)
- 必须存在:
docs/standards/tech-stack-rule.md(含"选型上下文")、docs/standards/directory-rule.md(目录结构)。 - 建议存在:
docs/standards/tools-rule.md(工具层)、docs/product/business-flow.md、docs/specs/data/(DB)、docs/specs/API/(取一个示例接口);后端另建议docs/standards/http-handler-rule.md(handler 流转)。 - 缺失必选项时,提示先运行对应 skill(architecture / standards-directory),结束。
Step 1 — 读 spec 文档,提取"确定清单"
从 spec 文档提取确定清单(供 Step 3 使用,不许猜测、不留替代项):
tech-stack-rule.md的"选型上下文":端、技术栈、后端架构风格(仅后端);以及语言/框架/中间件的确切选型。directory-rule.md:完整目录树、各目录职责、入口/路由/配置文件的确切位置。tools-rule.md:工具层各组件包的确切包名与位置。- 后端读
http-handler-rule.md:handler 的确切写法。 - 从
docs/specs/API/选一个示例接口,作示例 handler 的参照。