Template selector
Skill morning-start/agent-skills/process/doc-orchestrator/skills/doc-phase-planning/template-selector
Use when the user needs to choose the right documentation template for a document type or project context.From its SKILL.md
npx -y skills add morning-start/agent-skills --skill template-selectorAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
2 things to look at
- no licenseNo license file was found in the repository. Code published without one is not open source by default, so using it at work is a question for whoever answers licensing questions where you are.
- 1 stars1 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.
SKILL.md
1.7 KB, 436 tokens by cl100k_base, as published. Nobody here has run it
Template Selector
职责
- 根据文档类型从模板库选择对应模板
- 根据项目类型选择平台特定的模板变体
- 初始化模板变量
- 输出模板路径和变量映射
输入
- 文档清单(来自 doc-planner)
- 项目 profile(project-profile.yaml)
输出
template_mappings:
REQ-001:
path: templates/requirements/srs.md
variables:
project_name: "..."
version: "1.0.0"
platforms: ["web"]
REQ-002:
path: templates/requirements/prd.md
variables:
project_name: "..."
user_personas: [...]
选择规则
| 文档类型 | 默认模板 | 平台变体 |
|---|---|---|
| requirement/srs | templates/requirements/srs.md | game → templates/requirements/srs-game.md |
| requirement/prd | templates/requirements/prd.md | mobile → templates/requirements/prd-mobile.md |
| architecture/sad | templates/architecture/sad.md | web/mobile/desktop/game |
| api | templates/api/endpoint.md | rest/graphql/grpc |
| data/database | templates/data/database.md | mysql/postgresql/mongodb |
| quality/test | templates/quality/test-strategy.md | frontend/backend/mobile |
变量初始化规则
- 从 project-profile.yaml 提取公共变量
- 从 requirement-parser 提取业务变量
- 未定义的变量标记为
{{?variable_name}}(可选)待后续补充
注意事项
- 模板不存在时,使用最接近的模板并标注 warning
- 变量名必须与模板中的占位符完全匹配
- 支持模板继承和覆盖
What ships with it
Read from the repository
Just SKILL.md. No reference files, no scripts.