/dotnet-agent-kit:specfrom dotnet Agent Kit
Turns vague ideas into agreed specifications and implementation plans. Guides structured questioning across nine dimensions, writes versioned spec files, and produces architecture-aware plans. Use for features, requirements, PRDs, or user stories.
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: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
One workflow in two phases. Phase 1 converts an idea into a written, versioned specification that the developer and Claude explicitly agree on. Phase 2 turns the approved spec into an architecture-aware implementation plan. No code before both. The contract:
docs/specs/<NNN>-<slug>.md
and survives the session. The plan, tests, and commits reference it./spec, re-planSkip the spec phase (go straight to a short plan) when the task fits in one sentence. Skip both for bug fixes, typos, config tweaks, and single-endpoint CRUD where the entity is obvious.
Take the raw idea and restate it in one paragraph: what Claude understood, in its own words. End with: "Is this the idea? What did I get wrong?" Do not begin questioning until the developer confirms the restatement — questioning the wrong idea wastes everyone's time.
Work through the nine dimensions in order. Each round: pick the 3–5 most load-bearing unanswered questions (answers that reshape later questions come first). Where the harness supports selectable options, present choices with trade-offs — and a recommendation — but the developer chooses; a recommendation is never silently applied.
| # | Dimension | What to pin down |
|---|---|---|
| 1 | Problem & users | Who hurts today, how they work around it, what success looks like |
| 2 | Scope | What is IN this iteration, what is explicitly OUT, where the MVP line sits |
| 3 | Domain & data | Entities, relationships, lifecycle (create→archive→delete?), retention |
| 4 | API contract | Resources, endpoints, request/response shapes, pagination, versioning |
| 5 | Authorization | Who can do what, role/claim model, tenant boundaries |
| 6 | Edge cases & failure modes | Concurrency, duplicates, idempotency, partial failure, limits |
| 7 | Non-functionals | Expected volume, latency budget, growth assumptions |
| 8 | Integrations | External services, published events, webhooks, side effects |
| 9 | Acceptance criteria | Testable Given/When/Then for every behavior in scope |
Rules of relentless questioning:
Determine the next number from existing files in docs/specs/ (create the
directory if missing). Write docs/specs/<NNN>-<slug>.md:
# Spec NNN: <Title>
**Status:** Draft
**Date:** <today>
## Problem <!-- who hurts, why now -->
## Scope <!-- ### In / ### Out — both explicit -->
## Domain Model <!-- entities, relationships, lifecycle -->
## API Contract <!-- endpoints table: verb, route, request, response, errors -->
## Authorization <!-- who can do what -->
## Edge Cases & Failure Modes
## Non-Functional Requirements
## Integrations
## Acceptance Criteria <!-- Given/When/Then, numbered AC-1, AC-2, ... -->
## Deferred Decisions <!-- decision, chosen fallback, revisit trigger -->
## Open Questions <!-- MUST be empty before approval -->
Set status to In Review. Present the complete spec and ask: "Read this end-to-end. What is wrong, missing, or over-engineered?" Fold corrections in and re-present. Repeat until the developer has no further changes. New answers may spawn new questions — that is the process working, not a failure to converge.
Approval is a deliberate act, never inferred from silence or "looks good" in
passing. Ask explicitly: "Do you approve this spec? After approval, code follows
the spec — changes go through the spec first." On approval, set
**Status:** Approved (<date>).
Use the architecture-advisor skill: check existing markers (folder structure,
project references); if none, run its questionnaire. Load the matching skill
(modular-slices by default; the architecture-advisor references for VSA, Clean Architecture or DDD when
chosen). Then map what the spec touches: projects and folders, cross-cutting
concerns (auth, caching, validation, logging), migrations, and blast radius of
existing code via find_references / find_callers. Without an approved spec
(small task), clarify the task with focused questions first and assume nothing.
Map each acceptance criterion to steps. Order so the foundation lands first.
## Plan: <Title> (spec NNN)
**Architecture:** <detected> **Affected:** <layers/modules> **Steps:** <n>
1. <Step> -- <file/layer> -- <why this order> -- covers AC-1
2. ...
### Open Questions <!-- must be answered before coding -->
### Risks <!-- issue and mitigation -->
Ask: "Does this plan look right, or should I adjust anything?" Revise until the developer confirms; only then implement. Plans are living: if implementation goes sideways, stop and re-plan instead of pushing on.
/scaffold generates the slices the plan calls for/tdd turns acceptance criteria into the first failing tests (AC-n to test name)feat: team workspaces (spec 004)User: /spec users should be able to invite teammates
Claude: Here's what I understood: an existing user can invite another person
to join their... workspace? account? That's already my first gap.
Is this the idea? What did I get wrong?
User: yes, invite to their organization
Claude: Round 1 — Scope & Users:
1. Can invitees be people without an existing account, or only registered users?
2. Who can invite — any member, or only admins/owners?
3. Out of scope check: bulk invites and SSO members — both OUT for now?
User: 1: both. 2: admins only. 3: correct, both out.
Claude: Round 2 — Edge cases (your "both" in Q1 raises these):
1. Inviting an email with a pending invite — error, or resend?
2. Invite expiry — 7 days, 30 days, never?
[…rounds continue until all nine dimensions are exhausted…]
Claude: Spec written to docs/specs/004-team-invitations.md (In Review).
User: looks right. approved.
Claude: Status: Approved (2026-06-12). Mapping AC-1..AC-9 to a plan:
Architecture: modular slices (Identity module). 7 steps ... Does this
plan look right, or should I adjust anything?
/tdd — Acceptance criteria become the first failing tests/scaffold — Generates the slices the plan calls for/verify — Run after implementing the planarchitecture-advisor — Load during Step 6 if the feature forces architectural decisionsWhat 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).
/aspireAspire (17.x, requires .NET 10) orchestration: AppHost, service defaults, resource configuration, service discovery, dashboard. Use for "Aspire", "AppHost", "service defaults", "service discovery", "AddDotnetProject", "AddProject", "WithReference", "aspire run". Do NOT use for Dockerfiles or container images (use docker), CI/CD pipelines (use ci-cd), or OpenTelemetry SDK setup (use opentelemetry).
/authenticationAuthentication and authorization for ASP.NET Core: JWT bearer, OpenID Connect, ASP.NET Identity, policies, role and claim-based authorization, API keys, cookie auth. Use for "JWT", "OIDC", "Identity", "claims", "roles", "RequireAuthorization", "API key". Do NOT use for endpoint design (use minimal-api), security schemes in API docs (use openapi), secrets and options binding (use configuration), or which rows a user may see (use resource-authorization).
/build-fixAutonomous loop that drives a broken .NET build or failing tests to green, with bounded iterations and retry guards (build, parse, fix, rebuild; test-fix variant). Use for "fix the build", "make it compile", "fix failing tests", "keep going until it works", "auto-fix". Do NOT use for cleanup of code that already builds (use de-sloppify), writing new tests (use testing or tdd), or a pre-PR check (use verify).
/cachingCaching for .NET 10: HybridCache (the default), output caching, response caching, distributed cache. Use for "cache", "HybridCache", "Redis", "output cache", "IMemoryCache", "cache invalidation", "stampede protection". Do NOT use for EF Core query tuning or N+1 (use ef-core), retry and timeout policies (use resilience), or Redis as a message broker (use messaging).
npx claudepluginhub codewithmukesh/dotnet-agent-kit --plugin dotnet-agent-kitOther plugins' skills for the same job