/dotnet-agent-kit:dotnet-initfrom dotnet Agent Kit
Interactively initializes a .NET project for dotnet-agent-kit: detects project type, asks architecture questions, generates CLAUDE.md, and copies kit rules.
Ships in dotnet Agent Kit. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description, though model invocation is off: only you can start it.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Interactively initializes a .NET project for use with dotnet-agent-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:
instinct-system skill→ Recommend modular slices (the default for business apps) unless the answers point to single-project VSA, Clean Architecture, or DDD; give the rationale.
Console / CLI tool — skip web architecture questions; load console-cli:
PackAsTool), Native AOT binary per OS (native-aot), or file-based script?Desktop — skip web architecture questions; load desktop-mvvm (its references/avalonia.md for Avalonia):
Library — public API surface, target frameworks, AOT compatibility (IsAotCompatible).
Load the matching template as a base (templates/<name>/CLAUDE.md in the plugin, two levels up from this skill's base directory), then customize:
[ProjectName], set the chosen architecture (or app type), configure the tech stack<!-- kit:... --> marker lines; they only keep the kit's templates in syncweb-api, blazor-app, worker-service, modular-monolith, class-library, console-cli, desktop-appBefore 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.
Plugins cannot ship always-loaded rules. The kit's session hook adds a short digest in .NET repos, but the full rules (with examples) load only from the project. Ask: "Copy the kit's 8 rules into .claude/rules/? (recommended)"
→ Source: .claude/rules/*.md in the plugin (two levels up from this skill's base directory)
→ Target: ./.claude/rules/ (create it if missing)
→ A file that already exists and differs: never overwrite silently; show the diff and ask
→ Report which rules were copied, skipped or left as they were
→ The plugin already registers the Roslyn MCP server (dotnet dnx, no install).
Don't add a project .mcp.json for it; just check `dotnet --version` is 10 or later
→ For existing projects:
- Verify the solution file is discoverable
- Run a quick health check to establish baseline
- Report: "Project initialized. Run /verify health 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: architecture-advisor, instinct-system; console/desktop: console-cli, desktop-mvvm, native-aot
Agents: none (the skills above carry the guidance)
User: /dotnet-init
Claude: Detected:
- Solution: MyApp.slnx (3 projects)
- SDK: Microsoft.NET.Sdk.Web → Web API
- Database: PostgreSQL (from connection string)
- Auth: JWT (from appsettings)
1. Domain complexity? [CRUD-heavy / Moderate / Rich domain]
> Moderate
2. Team size? [Solo / Small / Large]
> Small
Recommendation: modular slices (one module per business area)
Generated: ./CLAUDE.md (MyApp + modular slices + PostgreSQL + JWT)
Copy the kit's 8 rules into .claude/rules/? > Yes → 8 copied
Run /verify health to see your baseline.
User: /dotnet-init
Claude: No .sln or .csproj found. Let's set up a new project.
1. What are you building? [REST API / Blazor / Worker / Console-CLI / Desktop / Library / Modular Monolith]
> REST API
2. Project name?
> OrderService
3. Domain complexity? [CRUD-heavy / Moderate / Rich domain]
> CRUD-heavy
Recommendation: Vertical Slice Architecture
Creating solution...
→ dotnet new sln -n OrderService --format slnx
→ dotnet new webapi -n OrderService.Api -o src/OrderService.Api
→ dotnet new xunit3 -n OrderService.Tests -o tests/OrderService.Tests
→ Directory.Build.props with .NET 10 defaults
→ Generated: ./CLAUDE.md (OrderService + VSA + scaffold-ready)
Run /scaffold to add your first feature.
/spec — Spec and plan before building features/verify health — Assess project health after init/scaffold — Scaffold features using the chosen architectureWhat SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
37 skills in this plugin
/api-hardeningProduction hardening for ASP.NET Core 10 APIs: HSTS, forwarded headers behind a proxy (KnownIPNetworks), strict CORS, body and upload limits, security headers, no detailed errors. Use for "HSTS", "forwarded headers", "behind nginx", "CORS", "request size limit", "security headers", "harden for production". Do NOT use for auth (use authentication) or throttling (use rate-limiting).
/architecture-advisorArchitecture selection for new or restructured .NET solutions: asks about domain, team and compliance, then recommends modular slices (default), vertical slice, Clean Architecture or DDD. Use for "which architecture", "new solution", "restructure", "DDD", "project structure", "tech stack". Do NOT use for adding features to a modular-slices codebase (modular-slices), scaffolding (scaffold), or CLAUDE.md (dotnet-init).
/npx claudepluginhub codewithmukesh/dotnet-agent-kit --plugin dotnet-agent-kitOther plugins' skills for the same job