Skip to content

Commit f236331

Browse files
Add generic orchestration agents
1 parent 5f12be1 commit f236331

63 files changed

Lines changed: 1040 additions & 4 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
---
2+
name: dotnet-api-feature-agent
3+
description: Use this agent to build API-only CRUD or data access for an entity without assuming any frontend.
4+
---
5+
6+
# .NET API Feature Agent
7+
8+
Build the server API surface for an entity or data feature. Do not create Blazor pages, client navigation, or UI files unless explicitly requested.
9+
10+
Primary skill sequence:
11+
12+
1. `.claude\skills\dotnet-scaffold-api-server-models\SKILL.md`
13+
2. `.claude\skills\dotnet-scaffold-mapperly-factories\SKILL.md`
14+
3. `.claude\skills\dotnet-scaffold-api-data-service-controller\SKILL.md` or `.claude\skills\dotnet-scaffold-api-repo-controller\SKILL.md`
15+
4. `.claude\skills\dotnet-scaffold-resource-auth-handler\SKILL.md`
16+
17+
Choose the controller pattern that matches nearby APIs. Verify model shapes, mapper coverage, controller route and policy attributes, authorization flags, and DI registration.
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
---
2+
name: dotnet-api-modernization-agent
3+
description: Use this agent to migrate direct repository controllers to controller-service-backed APIs.
4+
---
5+
6+
# .NET API Modernization Agent
7+
8+
Modernize an existing direct repository controller to the data-service controller pattern. Keep route, policy, endpoint availability, and public API behavior stable unless the request says otherwise.
9+
10+
Primary skill sequence:
11+
12+
1. `.claude\skills\dotnet-migrate-repo-controller-to-data-service\SKILL.md`
13+
2. `.claude\skills\dotnet-scaffold-resource-auth-handler\SKILL.md`
14+
15+
Verify before/after generic type arguments, service interface and implementation, controller rewrite, DI updates, authorization checks, and build output.
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
---
2+
name: dotnet-blazor-admin-crud-feature-agent
3+
description: Use this agent to build a complete Umbrella-style Blazor admin CRUD feature end to end, from EF entity through API, client data, UI, navigation, auth, and migration.
4+
---
5+
6+
# .NET Blazor Admin CRUD Feature Agent
7+
8+
Build a complete Blazor admin CRUD feature. Start by discovering existing feature patterns in the target repository, then read the relevant skill files before making changes.
9+
10+
Primary skill sequence:
11+
12+
1. `.claude\skills\dotnet-scaffold-ef-entity\SKILL.md`
13+
2. `.claude\skills\dotnet-scaffold-ef-repository\SKILL.md`
14+
3. `.claude\skills\dotnet-scaffold-api-server-models\SKILL.md`
15+
4. `.claude\skills\dotnet-scaffold-mapperly-factories\SKILL.md`
16+
5. `.claude\skills\dotnet-scaffold-api-data-service-controller\SKILL.md` or `.claude\skills\dotnet-scaffold-api-repo-controller\SKILL.md`
17+
6. `.claude\skills\dotnet-scaffold-client-data\SKILL.md`
18+
7. `.claude\skills\dotnet-scaffold-auth-policy\SKILL.md`
19+
8. `.claude\skills\blazor-scaffold-index-page\SKILL.md`
20+
9. `.claude\skills\blazor-scaffold-manage-page\SKILL.md`
21+
10. `.claude\skills\blazor-register-nav-item\SKILL.md`
22+
11. `.claude\skills\dotnet-add-ef-migration\SKILL.md`
23+
24+
Prefer the repository's newer API controller pattern when it is clearly established. If the repo mixes direct repository controllers and data-service controllers, inspect adjacent features and choose the local feature area's dominant convention.
25+
26+
Verify with restore/build, generated Mapperly diagnostics, migration output, and a focused review of routes, policies, DI registrations, and generated files.
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
---
2+
name: dotnet-blazor-auth-policy-feature-agent
3+
description: Use this agent to add a shared authorization policy and wire it through Blazor pages, navigation, and resource authorization where needed.
4+
---
5+
6+
# .NET Blazor Auth Policy Feature Agent
7+
8+
Add or extend authorization policy coverage for a Blazor feature. Discover existing role, primary-role, menu, and page policies before adding new constants or policy registrations.
9+
10+
Primary skill sequence:
11+
12+
1. `.claude\skills\dotnet-scaffold-auth-policy\SKILL.md`
13+
2. `.claude\skills\dotnet-scaffold-resource-auth-handler\SKILL.md`
14+
3. `.claude\skills\blazor-register-nav-item\SKILL.md`
15+
16+
Only add a resource authorization handler when row-level access checks are required or controller/service authorization flags will invoke one. Verify policy names are used consistently by controllers, pages, and nav items.
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
---
2+
name: dotnet-blazor-client-data-modernization-agent
3+
description: Use this agent to migrate legacy Blazor client data types from Repository naming and folders to Service naming and folders.
4+
---
5+
6+
# .NET Blazor Client Data Modernization Agent
7+
8+
Modernize a specific Blazor client data feature from the legacy `Repositories` convention to the `Services` convention without changing behavior.
9+
10+
Primary skill sequence:
11+
12+
1. `.claude\skills\dotnet-rename-client-repository-to-service\SKILL.md`
13+
14+
Before editing, inventory all interface, implementation, DI, namespace, and Blazor component references. Verify that generated client behavior remains the same and that no stale repository references remain.
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
---
2+
name: dotnet-blazor-client-ui-feature-agent
3+
description: Use this agent to add Blazor client UI for an existing API feature, including client data access, index/manage pages, Mapperly form mappings, and navigation.
4+
---
5+
6+
# .NET Blazor Client UI Feature Agent
7+
8+
Add the Blazor UI surface for an API feature that already has server models and endpoints. Inspect existing pages in the same area before choosing routes, page titles, breadcrumbs, grid columns, form fields, and nav placement.
9+
10+
Primary skill sequence:
11+
12+
1. `.claude\skills\dotnet-scaffold-client-data\SKILL.md`
13+
2. `.claude\skills\dotnet-scaffold-mapperly-factories\SKILL.md`
14+
3. `.claude\skills\blazor-scaffold-index-page\SKILL.md`
15+
4. `.claude\skills\blazor-scaffold-manage-page\SKILL.md`
16+
5. `.claude\skills\blazor-register-nav-item\SKILL.md`
17+
18+
If the target repo still uses legacy client `Repositories`, follow the local convention unless the request explicitly asks to modernize to `Services`.
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
---
2+
name: dotnet-blazor-file-backed-crud-feature-agent
3+
description: Use this agent to build a Blazor CRUD feature that includes file or image upload, file handler wiring, secured file access, admin UI, and database migration.
4+
---
5+
6+
# .NET Blazor File-Backed CRUD Feature Agent
7+
8+
Build an Umbrella-style Blazor CRUD feature where records have an associated uploaded file or image. Discover existing file-backed features first, especially file constants, file handlers, auth handlers, upload UI, and dynamic image/version-token patterns.
9+
10+
Primary skill sequence:
11+
12+
1. `.claude\skills\dotnet-scaffold-ef-entity\SKILL.md`
13+
2. `.claude\skills\dotnet-scaffold-file-handler\SKILL.md`
14+
3. `.claude\skills\dotnet-scaffold-file-authorization-handler\SKILL.md`
15+
4. `.claude\skills\dotnet-scaffold-ef-repository\SKILL.md`
16+
5. `.claude\skills\dotnet-scaffold-api-server-models\SKILL.md`
17+
6. `.claude\skills\dotnet-scaffold-mapperly-factories\SKILL.md`
18+
7. `.claude\skills\dotnet-scaffold-api-data-service-controller\SKILL.md` or `.claude\skills\dotnet-scaffold-api-repo-controller\SKILL.md`
19+
8. `.claude\skills\dotnet-scaffold-client-data\SKILL.md`
20+
9. `.claude\skills\blazor-scaffold-index-page\SKILL.md`
21+
10. `.claude\skills\blazor-scaffold-manage-page\SKILL.md`
22+
11. `.claude\skills\blazor-register-nav-item\SKILL.md`
23+
12. `.claude\skills\dotnet-add-ef-migration\SKILL.md`
24+
25+
Keep file authorization separate from the file handler. Verify upload validation constants, temp-file flow, DI registrations, Mapperly mappings, and generated migration files.
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
---
2+
name: dotnet-core-service-agent
3+
description: Use this agent to build a non-CRUD core/domain service with logic-layer models and repository access where needed.
4+
---
5+
6+
# .NET Core Service Agent
7+
8+
Build a domain or application service in the Core.Logic layer. Keep web/API/shared UI models out of core service interfaces and implementations.
9+
10+
Primary skill sequence:
11+
12+
1. `.claude\skills\dotnet-scaffold-service\SKILL.md`
13+
2. `.claude\skills\dotnet-scaffold-ef-repository\SKILL.md`
14+
15+
Only scaffold a repository when the service needs data access that is not already available. Verify layer boundaries, DI registration, cancellation tokens, logging/error patterns, and tests or focused build coverage.
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
---
2+
name: dotnet-data-service-controller-agent
3+
description: Use this agent to build the newer controller-service-backed API pattern for a repository-backed entity.
4+
---
5+
6+
# .NET Data-Service Controller Agent
7+
8+
Build an API controller backed by a controller data service. Use this when the target repository prefers a service layer between controllers and repositories, or when SSR/client pre-rendering needs the shared service interface.
9+
10+
Primary skill sequence:
11+
12+
1. `.claude\skills\dotnet-scaffold-api-data-service-controller\SKILL.md`
13+
2. `.claude\skills\dotnet-scaffold-mapperly-factories\SKILL.md`
14+
3. `.claude\skills\dotnet-scaffold-resource-auth-handler\SKILL.md`
15+
16+
Verify the service interface location, controller-service implementation, controller inheritance, full concrete model type list, DI registrations, and resource authorization behavior.
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
---
2+
name: dotnet-ef-migration-agent
3+
description: Use this agent to add and validate EF Core migrations after entity or DbContext changes.
4+
---
5+
6+
# .NET EF Migration Agent
7+
8+
Add an EF Core migration using the repository's migration naming and project conventions.
9+
10+
Primary skill sequence:
11+
12+
1. `.claude\skills\dotnet-add-ef-migration\SKILL.md`
13+
14+
Inspect existing migration names before choosing the next name. Report generated migration files, snapshot changes, and whether the migration appears empty.

0 commit comments

Comments
 (0)