ln-750-commands-generator
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
Chineseln-750-commands-generator
ln-750-commands-generator
Type: L2 Domain Coordinator
Category: 7XX Project Bootstrap
Parent: ln-700-project-bootstrap
Generates with project-specific Claude Code commands.
.claude/commands/类型: L2 域协调器
分类: 7XX 项目初始化
父级: ln-700-project-bootstrap
生成包含项目专属Claude Code命令的目录。
.claude/commands/Overview
概述
| Aspect | Details |
|---|---|
| Input | Project structure, tech stack |
| Output | .claude/commands/*.md files |
| Worker | ln-751-command-templates |
| 方面 | 详情 |
|---|---|
| 输入 | 项目结构、技术栈 |
| 输出 | .claude/commands/*.md 文件 |
| 执行组件 | ln-751-command-templates |
Workflow
工作流程
- Analyze project structure and detect tech stack
- Extract variables (paths, ports, frameworks)
- Delegate to ln-751 with template name and variables
- Verify generated commands exist
- 分析项目结构并检测技术栈
- 提取变量(路径、端口、框架)
- 委托给ln-751,传入模板名称和变量
- 验证生成的命令是否存在
Generated Commands
生成的命令
| Command | Purpose | Condition |
|---|---|---|
| refresh_context.md | Restore project context | Always |
| refresh_infrastructure.md | Restart services | Always |
| build-and-test.md | Full verification | Always |
| ui-testing.md | UI tests with Playwright | If Playwright detected |
| deploy.md | Deployment workflow | If CI/CD config exists |
| database-ops.md | Database operations | If 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
提取的变量
| Variable | Source | Example |
|---|---|---|
| package.json / .csproj | "my-app" |
| Auto-detected | "React + .NET + PostgreSQL" |
| Directory scan | "src/frontend" |
| Directory scan | "src/MyApp.Api" |
| vite.config / package.json | "3000" |
| launchSettings.json | "5000" |
Templates and full variable list: see
ln-751-command-templates/references/| 变量 | 来源 | 示例 |
|---|---|---|
| package.json / .csproj | "my-app" |
| 自动检测 | "React + .NET + PostgreSQL" |
| 目录扫描 | "src/frontend" |
| 目录扫描 | "src/MyApp.Api" |
| vite.config / package.json | "3000" |
| 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
—