feat: add /new-project command for project bootstrapping
Guides through project creation: path, name, optional dotnet template, runs init-project.ps1 and git init. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
5b1c238395
commit
9ff8454daf
|
|
@ -0,0 +1,21 @@
|
|||
---
|
||||
allowed-tools: Bash(mkdir:*), Bash(powershell:*), Bash(dotnet new:*), Bash(git init:*), Bash(git add:*), Bash(git commit:*), AskUserQuestion
|
||||
description: Bootstrap a new project with claude-meta template and optional dotnet scaffold
|
||||
---
|
||||
|
||||
## Context
|
||||
|
||||
- claude-meta repo: C:\work\claude-meta
|
||||
- Init script: C:\work\claude-meta\scripts\init-project.ps1
|
||||
|
||||
## Your task
|
||||
|
||||
1. Ask user via AskUserQuestion:
|
||||
- Project path (e.g. `C:\work\my-project`)
|
||||
- Project name (e.g. "My Project")
|
||||
- .NET template (console/webapi/blazorserver/none)
|
||||
2. Create project directory if it doesn't exist: `mkdir <path>`
|
||||
3. If .NET template chosen: `dotnet new <template> -o <path>`
|
||||
4. Run init script: `powershell -ExecutionPolicy Bypass -File C:\work\claude-meta\scripts\init-project.ps1 <path> "<name>"`
|
||||
5. Initialize git: `git init` in project directory
|
||||
6. Report what was created and suggest editing CLAUDE.md with project-specific info
|
||||
Loading…
Reference in New Issue