SuperAPI AI 工具集

ln-751-command-templates

智能体与模型

查看项目

更新于 10-16 06:23

技能介绍

用途:ln-751-command-templates 是 Claude Code Skills 中的 L3 Worker,属于 7XX Project Bootstrap 分类,父级为 ln-750-commands-generator。它从模板生成单个 .claude/commands 命令文件,输入为模板名称与来自 ln-750 的变量值,输出为 .claude/commands/{command}.md。

主要能力:按模板进行变量替换并生成命令文件。可用模板包括: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,有数据库时)。

使用方式:接收 ln-750 传来的模板名称与变量,从 references/{template}.md 加载模板,替换全部 {{VARIABLE}} 占位符后写入 .claude/commands/ 目录,并向协调器报告成功或失败。变量采用 Handlebars 风格 {{VARIABLE_NAME}},常见变量含 PROJECT_NAME、FRONTEND_ROOT、BACKEND_ROOT、FRONTEND_PORT、BACKEND_PORT、TECH_STACK。路径(shared/、references/、../ln-*)相对于 skills 仓库根目录;若当前工作目录找不到,需定位 SKILL.md 所在目录并上溯一级作为仓库根。

限制与规则:仅由模板驱动生成,不做自由编写;必须完成全部变量替换,存在未解析占位符则失败;输出只能写入 .claude/commands/;references/ 中模板为只读,不得修改,仅写输出文件。资料未提供收费、价格或其他实现细节。