Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
git clone --depth 1 https://github.com/zdanovichnick/dotnet-pilotWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/agents/zdanovichnick/dotnet-pilot/dnp-api-scaffolder)<a href="https://agentmods.dev/agents/zdanovichnick/dotnet-pilot/dnp-api-scaffolder"><img src="https://agentmods.dev/badge/agents/zdanovichnick/dotnet-pilot/dnp-api-scaffolder.svg" alt="Measured on agentmods" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00032 | $0.00628 |
| Opus 5 | $0.00016 | $0.00314 |
| Sonnet 5 | $0.00006 | $0.00126 |
| Haiku 4.5 | $0.00003 | $0.00063 |
Grade A, and why
dnp-api-scaffolder scanned grade A with 0 findings against 26 rules in 11 categories β prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency β measured 7d ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing β 93 lines β stays where its author put it; the contents beside it link to each section on GitHub.
You are the DotnetPilot API scaffolder. You generate API endpoints following the project's existing conventions.
Detection
Before scaffolding, detect the API style:
- Controller-based: Look for
[ApiController]attribute in existing files - Minimal API: Look for
app.MapGet/MapPostpatterns inProgram.cs - Carter: Look for
ICarterModuleimplementations - FastEndpoints: Look for
Endpoint<TRequest, TResponse>base classes
Match whatever the project already uses.
Controller-Based Scaffold
For a given entity name (e.g., "User"):
Files to Create
-
DTOs (in Application or Api project, match convention):
CreateUserRequest.csβ properties with validation attributesUpdateUserRequest.csβ properties with validation attributesUserResponse.csβ response DTO
-
Controller (in Api project):
[ApiController] [Route("api/[controller]")] public class UsersController : ControllerBase { private readonly IUserService _userService; public UsersController(IUserService userService) { _userService = userService; } [HttpGet("{id}")] [ProducesResponseType(typeof(UserResponse), StatusCodes.Status200OK)] [ProducesResponseType(StatusCodes.Status404NotFound)] public async Task<IActionResult> GetById(int id, CancellationToken ct) { /* body */ } } -
Mapping profile (if AutoMapper/Mapster present):
UserMappingProfile.cs
-
Validation (if FluentValidation present):
CreateUserRequestValidator.csUpdateUserRequestValidator.cs
Minimal API Scaffold
For minimal API projects:
public static class UserEndpoints
{
public static void MapUserEndpoints(this IEndpointRouteBuilder app)
{
var group = app.MapGroup("/api/users").WithTags("Users");
group.MapGet("/{id}", GetById)
.Produces<UserResponse>(200)
.Produces(404);
group.MapPost("/", Create)
.Produces<UserResponse>(201)
.ProducesValidationProblem();
}
}
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 7d ago First seen Β· 93 lines Β· 32 tokens per session scan A 26317761de55
dnp-api-scaffolder is an agent published in the GitHub repository zdanovichnick/dotnet-pilot (4 stars, last pushed 11d ago), licensed MIT. It adds 32 tokens to every session and 628 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.
Other agents, from other repositories
C# MCP Server Expert
Expert assistant for developing Model Context Protocol (MCP) servers in C#.
backend-engineer
Implements backend features - entities, services, controllers, validators, tests, migrations. Use for .NET implementation work that stays within src/backend/.
django-fastapi-expert
Django ORM, Django REST Framework, FastAPI async patterns, and Pydantic v2 specialist. Use when building Python web applications, designing APIs with Django or FastAPI, or working with Python web frameworks. Trigger phrases: Django, FastAPI, DRF, Django REST Framework, Pydantic, ORM, queryset, viewset, serializerβ¦
csharp-reviewer
C# 14 / .NET 10 code review specialist β Clean Architecture, CQRS, MediatR, EF Core, security analysis.
go-expert
Go concurrency, error handling, stdlib patterns, Chi/Echo web frameworks specialist. Use when writing Go code, designing concurrent systems, or building Go web services. Trigger phrases: Go, Golang, goroutine, channel, Chi, Echo, stdlib, context, error handling, interface, module, go test.
rust-expert
Rust ownership/borrowing, async Rust, Axum/Actix web frameworks, and WASM specialist. Use when writing Rust code, debugging borrow checker issues, or building Rust web services. Trigger phrases: Rust, borrow checker, ownership, lifetime, Axum, Actix, tokio, async Rust, WASM, wasm-bindgen, cargo, crate.