ln-750-commands-generator

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese

ln-750-commands-generator

ln-750-commands-generator

Type: L2 Domain Coordinator Category: 7XX Project Bootstrap Parent: ln-700-project-bootstrap
Generates
.claude/commands/
with project-specific Claude Code commands.

类型: L2 域协调器 分类: 7XX 项目初始化 父级: ln-700-project-bootstrap
生成包含项目专属Claude Code命令的
.claude/commands/
目录。

Overview

概述

AspectDetails
InputProject structure, tech stack
Output.claude/commands/*.md files
Workerln-751-command-templates

方面详情
输入项目结构、技术栈
输出.claude/commands/*.md 文件
执行组件ln-751-command-templates

Workflow

工作流程

  1. Analyze project structure and detect tech stack
  2. Extract variables (paths, ports, frameworks)
  3. Delegate to ln-751 with template name and variables
  4. Verify generated commands exist

  1. 分析项目结构并检测技术栈
  2. 提取变量(路径、端口、框架)
  3. 委托给ln-751,传入模板名称和变量
  4. 验证生成的命令是否存在

Generated Commands

生成的命令

CommandPurposeCondition
refresh_context.mdRestore project contextAlways
refresh_infrastructure.mdRestart servicesAlways
build-and-test.mdFull verificationAlways
ui-testing.mdUI tests with PlaywrightIf Playwright detected
deploy.mdDeployment workflowIf CI/CD config exists
database-ops.mdDatabase operationsIf database detected

命令用途触发条件
refresh_context.md恢复项目上下文始终生成
refresh_infrastructure.md重启服务始终生成
build-and-test.md完整验证始终生成
ui-testing.md使用Playwright进行UI测试检测到Playwright时生成
deploy.md部署工作流存在CI/CD配置时生成
database-ops.md数据库操作检测到数据库时生成

Variables Extracted

提取的变量

VariableSourceExample
{{PROJECT_NAME}}
package.json / .csproj"my-app"
{{TECH_STACK}}
Auto-detected"React + .NET + PostgreSQL"
{{FRONTEND_ROOT}}
Directory scan"src/frontend"
{{BACKEND_ROOT}}
Directory scan"src/MyApp.Api"
{{FRONTEND_PORT}}
vite.config / package.json"3000"
{{BACKEND_PORT}}
launchSettings.json"5000"
Templates and full variable list: see
ln-751-command-templates/references/

变量来源示例
{{PROJECT_NAME}}
package.json / .csproj"my-app"
{{TECH_STACK}}
自动检测"React + .NET + PostgreSQL"
{{FRONTEND_ROOT}}
目录扫描"src/frontend"
{{BACKEND_ROOT}}
目录扫描"src/MyApp.Api"
{{FRONTEND_PORT}}
vite.config / package.json"3000"
{{BACKEND_PORT}}
launchSettings.json"5000"
模板及完整变量列表:请查看
ln-751-command-templates/references/

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

Detection Logic

Frontend: vite.config.ts, package.json (react/vue/angular) Backend: *.csproj with Web SDK, or express/fastapi in deps Database: docker-compose.yml postgres/mysql, or connection strings Playwright: playwright.config.ts or @playwright/test in deps CI/CD: .github/workflows/, azure-pipelines.yml, Dockerfile

Version: 2.0.0 Last Updated: 2026-01-10