| name | new-dotnet-cli |
| description | Use when creating a new .NET CLI/console project from the agent-harness template ("new cli tool", "new console app", "new dotnet project"). Scaffolds, stamps provenance, and verifies guardrails. |
New .NET CLI Project
Scaffold a .NET 10 console solution by delegating to the standalone new-project CLI
(the single source of truth for scaffold -> stamp -> setup -> verify).
Inputs
- Name (required): PascalCase solution name, e.g.
MyTool. Ask if not given.
- Destination (optional): defaults to
<cwd>/<Name>.
Steps
- Resolve the harness repo:
$repo = & "${CLAUDE_PLUGIN_ROOT}/scripts/resolve-repo.ps1" | Select-Object -Last 1
- Run the CLI (omit
-Destination when defaulted):
& "$repo/new-project.ps1" dotnet-cli <Name> -Destination <dir>
This installs the templates, scaffolds, stamps provenance, runs setup, and verifies
(dotnet build + dotnet test). If it prints a git-identity error, relay the fix and
stop until the user configures git, then re-run.
- Report what the CLI printed: the project path, the development lifecycle from the
project's CLAUDE.md (issue -> feat branch -> commit -> PR), and that analyzers fire at
error severity.
Never hand-edit .harness.json — the CLI writes it.