workflow-template-seeder
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseWorkflow: Template Seeder (Skills → Templates)
工作流:模板生成器(技能→模板)
Goal: Turn a short template spec into a runnable, documented template under .
templates/This workflow is skills-first:
- Use skills as the primary execution engine
- Treat templates as “frozen outputs” (examples + regression references), not the mainline product
目标:将简短的模板规格转换为templates/目录下可运行、带文档的模板。
此工作流以技能为核心:
- 以技能作为主要执行引擎
- 将模板视为“冻结的输出”(示例+回归参考),而非主线产品
Input (pass paths only)
输入(仅传递路径)
- : Ship Faster repository root (where
repo_rootlives)templates/ - :
run_dirruns/template-seeder/active/<run_id>/ - : One-page spec (what it is, target user, core pages, required integrations)
template_spec.md
- : Ship Faster 仓库根目录(
repo_root所在位置)templates/ - :
run_dirruns/template-seeder/active/<run_id>/ - : 单页规格文档(包含模板定义、目标用户、核心页面、所需集成)
template_spec.md
Output (persisted)
输出(持久化内容)
03-plans/template-plan.md05-final/template-summary.md- A new template directory: containing:
templates/<NNN>-<slug>/- (5‑minute runnable)
README.md - (keys only)
.env.local.example metadata.json
03-plans/template-plan.md05-final/template-summary.md- 新的模板目录:,包含:
templates/<NNN>-<slug>/- (5分钟即可运行)
README.md - (仅含密钥名称)
.env.local.example metadata.json
Workflow
工作流
0) Initialize
0) 初始化
- Create .
run_dir - Determine:
- from spec (kebab-case)
<slug> - as the next available number under
<NNN>(001, 002, …)templates/
- Write for this workflow:
01-input/context.jsonentry_type: idearepo_root: <path-to-new-template-dir>- (templates should not auto-deploy)
need_deploy: false - Enable only the integrations required by the spec (DB/billing/SEO)
- 创建目录。
run_dir - 确定:
- 从规格文档中提取(短横线命名格式)
<slug> - 为
<NNN>下的下一个可用编号(001、002……)templates/
- 从规格文档中提取
- 为此工作流编写:
01-input/context.jsonentry_type: idearepo_root: <path-to-new-template-dir>- (模板不应自动部署)
need_deploy: false - 仅启用规格文档要求的集成(数据库/计费/SEO)
1) Generate the template baseline (prefer clean + minimal)
1) 生成模板基线(优先简洁+最小化)
Preferred path:
- Create a clean Next.js baseline in the new template directory, then run the same “Ship Faster chain” against it.
Execution order (recommended):
- (optional if spec is already complete)
workflow-project-intake - with the template directory as
workflow-ship-fasterrepo_root - If any steps are skipped (e.g., no DB/billing), record why in /
00-index.md05-final/template-summary.md
推荐路径:
- 在新模板目录中创建一个干净的Next.js基线,然后对其运行相同的“快速交付(Ship Faster)”技能链。
推荐执行顺序:
- (如果规格文档已完整,可省略)
workflow-project-intake - 以模板目录作为运行
repo_rootworkflow-ship-faster - 如果跳过任何步骤(如无数据库/计费),请在/
00-index.md中记录原因05-final/template-summary.md
2) Template hardening (shareable output)
2) 模板加固(可共享输出)
Must do:
- Remove secrets; only keep env key names in
.env.local.example - Ensure includes:
README.md- Node version
- install + dev
- required env keys
- optional integrations notes
- Ensure is accurate and generic (no private branding unless intended)
metadata.json
必须执行:
- 移除敏感信息;仅在中保留环境变量密钥名称
.env.local.example - 确保包含:
README.md- Node 版本
- 安装与开发指令
- 所需环境变量密钥
- 可选集成说明
- 确保准确且通用(除非有明确需求,否则不包含私有品牌信息)
metadata.json
3) Verification
3) 验证
At minimum (document results in ):
05-final/template-summary.md- install works
- starts
dev - succeeds (if the template requires external credentials, document the minimal required keys)
build
至少完成以下操作(结果记录在中):
05-final/template-summary.md- 安装可正常完成
- 命令可启动服务
dev - 命令执行成功(如果模板需要外部凭证,请记录所需的最小密钥集合)
build
Constraints
约束条件
- Do not create a “kitchen sink” template.
- Avoid large refactors; prefer small, clean baselines that are easy to adapt.
- Never commit secrets.
- 不要创建“大而全”的模板。
- 避免大规模重构;优先选择易于调整的小型、简洁基线。
- 绝对不要提交敏感信息。