api-versioning
API versioning strategies for ASP.NET Core. Covers Asp.Versioning library, URL segment, header, and query string strategies,…
Interactive project initialization. Detects project type (web API, Blazor, worker, console, CLI tool, desktop, library), asks the right questions, and generates a customized CLAUDE.md — no manual template copying. Use when: "init project", "setup project", "initialize", "new
Claude Code
$ npx -y skills add codewithmukesh/dotnet-claude-kit --skill dotnet-init --agent claude-code
Codex
$ npx skills add codewithmukesh/dotnet-claude-kit --skill dotnet-init -a codex -y
Cursor
$ npx skills add codewithmukesh/dotnet-claude-kit --skill dotnet-init -a cursor -y
Gemini CLI
$ npx skills add codewithmukesh/dotnet-claude-kit --skill dotnet-init -a gemini-cli -y
GitHub Copilot
$ npx skills add codewithmukesh/dotnet-claude-kit --skill dotnet-init -a github-copilot -y
OpenCode
$ npx skills add codewithmukesh/dotnet-claude-kit --skill dotnet-init -a opencode -y
Windsurf
$ npx skills add codewithmukesh/dotnet-claude-kit --skill dotnet-init -a windsurf -y
name: dotnet-init description: > Interactive project initialization. Detects project type (web API, Blazor, worker, console, CLI tool, desktop, library), asks the right questions, and generates a customized CLAUDE.md — no manual template copying. Use when: "init project", "setup project", "initialize", "new project setup", "generate CLAUDE.md", "configure for dotnet-claude-kit", or starting Claude Code on a fresh or existing .NET codebase.
Interactively initializes a .NET project for use with dotnet-claude-kit. Detects the project type, asks targeted questions about architecture and tech stack, then generates a fully customized `CLAUDE.md` in the project root.
**No manual template copying required.**
Analyze the current directory to determine if this is an existing or greenfield project:
→ Look for .slnx / .sln files, then classify each .csproj:
- Microsoft.NET.Sdk.Web → web-api or blazor-app
- Microsoft.NET.Sdk.Worker → worker-service
- UseWPF / UseWindowsForms / UseMaui = true, or Avalonia package → desktop-app
- Microsoft.NET.Sdk + OutputType Exe → console-cli
(PackAsTool or System.CommandLine reference → CLI tool; else console utility)
- Microsoft.NET.Sdk without OutputType Exe → class-library
- Multiple projects with inter-module references → modular-monolith
- If ambiguous, ask the user
→ If NO solution/project found (greenfield), ask "What are you building?":
- REST API / microservice → web-api - Blazor application → blazor-app
- Background worker → worker-service - Multi-module system → modular-monolith
- Console app / CLI tool → console-cli - NuGet package / library → class-library
- Desktop app → desktop-app (then ask: Avalonia, WPF, WinForms, or MAUI?)
- Ask "Project name?", then scaffold: dotnet new sln -n ProjectName --format slnx, then the matching
template (webapi / worker / console / classlib / wpf / winforms / maui;
Avalonia: dotnet new install Avalonia.Templates → avalonia.mvvm),
Directory.Build.props with .NET 10 defaults, src/ and tests/ folders**Web API / Blazor / Worker / Modular Monolith** — load `architecture-advisor`:
1. **Domain complexity** — CRUD-heavy, moderate business rules, or rich domain? 2. **Team size** — Solo, small team, or large team? 3. **Module boundaries** — Single deployable or multiple bounded contexts? 4. **Existing patterns** — (existing projects only) Detect conventions via `convention-learner` skill
→ Recommend: VSA, Clean Architecture, DDD, or Modular Monolith with rationale.
**Console / CLI tool** — skip web architecture questions; load `console-cli`:
**Desktop** — skip web architecture questions; load `desktop-mvvm` (+ `avalonia` for Avalonia):
**Library** — public API surface, target frameworks, AOT compatibility (`IsAotCompatible`).
Load the appropriate template from `templates/` as a base, then customize:
**Before writing, check for an existing `CLAUDE.md`. Never overwrite it silently.**
→ If ./CLAUDE.md does NOT exist:
- Write the generated content to ./CLAUDE.md
→ If ./CLAUDE.md ALREADY exists:
- Read it and identify hand-written / custom sections
(anything not produced by a kit template)
- Ask: "You already have a CLAUDE.md. How should I proceed?"
- Merge (recommended) → keep the user's custom sections, add or refresh the
kit's architecture, tech-stack, and convention sections in place
- Overwrite → replace it entirely with the freshly generated file
- Keep → leave it untouched; print the generated content for manual copying
- For Merge and Overwrite: back the original up to ./CLAUDE.md.bak first.
Never discard user content without a .bak backup.→ Confirm .mcp.json exists or create it (for Roslyn MCP server)
→ For existing projects:
- Verify the solution file is discoverable
- Run a quick health check to establish baseline
- Report: "Project initialized. Run /health-check to see your baseline."
→ For greenfield projects:
- Verify dotnet build succeeds on the scaffolded solution
- Report: "Project created. Run /scaffold to add your first feature."
(console/desktop: "Add your first command / view model.")**Skills invoked:** `project-setup`, `architecture-advisor`, `convention-learner`; console/desktop: `console-cli`, `desktop-mvvm`, `avalonia`, `native-aot` **Agent:** `dotnet-architect` (web, worker, library) · `app-engineer` (console, CLI, desktop)
User: /dotnet-init Claude: Detected: - Solution: MyApp.slnx (3 projects) - SDK: Microsoft.NET.Sdk.Web → Web API -
API versioning strategies for ASP.NET Core. Covers Asp.Versioning library, URL segment, header, and query string strategies,…
Architecture conformance check: verifies an existing codebase against its declared architecture (VSA, Clean Architecture, DDD,…
Architecture selection advisor for .NET applications. Asks structured questions about domain complexity, team size, system…
.NET Aspire for cloud-native orchestration. Covers AppHost configuration, service defaults, resource configuration, service…
Authentication and authorization for ASP.NET Core. Covers JWT bearer tokens, OpenID Connect, ASP.NET Identity, authorization…
Avalonia UI 12 for cross-platform .NET desktop apps: compiled bindings (x:DataType, on by default in 12),…
You MUST use this before any creative work - creating features, building components, adding functionality, modifying behavior, or…
Ask which skill or flow fits your situation. A router over the skills in this repo.