ln-751-command-templates

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese

ln-751-command-templates

ln-751-命令模板

Type: L3 Worker Category: 7XX Project Bootstrap Parent: ln-750-commands-generator
Generates Claude Code commands from templates with variable substitution.

类型: L3 Worker 分类: 7XX 项目引导 父级: ln-750-命令生成器
通过变量替换从模板生成Claude Code命令。

Overview

概述

AspectDetails
InputTemplate name, variable values from ln-750
Output
.claude/commands/{command}.md
file
TemplatesLocated in
references/
directory

方面详情
输入模板名称,来自ln-750的变量值
输出
.claude/commands/{command}.md
文件
模板位置位于
references/
目录下

Available Templates

可用模板

TemplateOutput FileRequired
refresh_context_template.md
refresh_context.mdAlways
refresh_infrastructure_template.md
refresh_infrastructure.mdAlways
build_and_test_template.md
build-and-test.mdAlways
ui_testing_template.md
ui-testing.mdIf Playwright
deploy_template.md
deploy.mdIf CI/CD
database_ops_template.md
database-ops.mdIf Database

模板输出文件适用条件
refresh_context_template.md
refresh_context.md始终需要
refresh_infrastructure_template.md
refresh_infrastructure.md始终需要
build_and_test_template.md
build-and-test.md始终需要
ui_testing_template.md
ui-testing.md当使用Playwright时
deploy_template.md
deploy.md当使用CI/CD时
database_ops_template.md
database-ops.md当涉及数据库时

Workflow

工作流程

  1. Receive template name and variables from ln-750
  2. Load template from
    references/{template}.md
  3. Substitute all
    {{VARIABLE}}
    placeholders
  4. Write to
    .claude/commands/
    directory
  5. Report success/failure to coordinator

  1. 接收 来自ln-750的模板名称和变量
  2. 加载
    references/{template}.md
    中的模板
  3. 替换 所有
    {{VARIABLE}}
    占位符
  4. 写入
    .claude/commands/
    目录
  5. 上报 成功/失败状态给协调器

Variable Syntax

变量语法

All templates use Handlebars-style syntax:
{{VARIABLE_NAME}}
Common variables:
  • {{PROJECT_NAME}}
    — Project name
  • {{FRONTEND_ROOT}}
    — Frontend source path
  • {{BACKEND_ROOT}}
    — Backend source path
  • {{FRONTEND_PORT}}
    — Frontend dev server port
  • {{BACKEND_PORT}}
    — Backend API port
  • {{TECH_STACK}}
    — Technology stack summary
See individual templates in
references/
for full variable lists.

Version: 2.0.0 Last Updated: 2026-01-10
所有模板使用Handlebars风格的语法:
{{VARIABLE_NAME}}
常见变量:
  • {{PROJECT_NAME}}
    — 项目名称
  • {{FRONTEND_ROOT}}
    — 前端源码路径
  • {{BACKEND_ROOT}}
    — 后端源码路径
  • {{FRONTEND_PORT}}
    — 前端开发服务器端口
  • {{BACKEND_PORT}}
    — 后端API端口
  • {{TECH_STACK}}
    — 技术栈概述
查看
references/
目录下的各个模板以获取完整变量列表。

版本: 2.0.0 最后更新: 2026-01-10