dnp-api-scaffolder

dnp-api-scaffolder is an agent for Claude Code from zdanovichnick/dotnet-pilot. It costs 32 tokens per session (628 once invoked), scanned A, original, MIT.

An API scaffolding agent for .NET projects. It creates endpoints in the style the project already uses, such as controllers or minimal APIs.

In plain words
What is it for?
Use it when adding create, read, update, or other API operations for an entity such as a user.
Why use it?
It removes the repetitive work of creating request and response data structures, validation, dependency-injection setup, and API documentation details.

Agent for Claude Code

Written for Claude Code: effort in frontmatter. Also seen: model in frontmatter.

Part of the dotnet-pilot plugin β€” 16 skills, 15 agents, 3 hooks, 1 MCP server shipped together

Good fit Use it when adding create, read, update, or other API operations for an entity such as a user.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/zdanovichnick/dotnet-pilot/dnp-api-scaffolder
Install

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.

Clone the repo
git clone --depth 1 https://github.com/zdanovichnick/dotnet-pilot

Made for: Claude Code.

Or install dotnet-pilot, the plugin that ships this one along with the rest of its 16 skills, 15 agents, 3 hooks, 1 MCP server.

Wrote 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.

agentmods badge for dnp-api-scaffolder

README.md
[![agentmods](https://agentmods.dev/badge/agents/zdanovichnick/dotnet-pilot/dnp-api-scaffolder.svg)](https://agentmods.dev/agents/zdanovichnick/dotnet-pilot/dnp-api-scaffolder)
Your own site
<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>
Per session 32 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 628 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file β€” not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce 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

Measured 7d ago against content hash 26317761de55, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-07, from the pricing page.

Security

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.

agents/dnp-api-scaffolder.md Β· 93 lines

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:

  1. Controller-based: Look for [ApiController] attribute in existing files
  2. Minimal API: Look for app.MapGet/MapPost patterns in Program.cs
  3. Carter: Look for ICarterModule implementations
  4. 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

  1. DTOs (in Application or Api project, match convention):

    • CreateUserRequest.cs β€” properties with validation attributes
    • UpdateUserRequest.cs β€” properties with validation attributes
    • UserResponse.cs β€” response DTO
  2. 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 */
        }
    }
    
  3. Mapping profile (if AutoMapper/Mapster present):

    • UserMappingProfile.cs
  4. Validation (if FluentValidation present):

    • CreateUserRequestValidator.cs
    • UpdateUserRequestValidator.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();
    }
}

Read the full file on GitHub Β· 93 lines

Changes

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.

  1. 7d ago First seen Β· 93 lines Β· 32 tokens per session scan A 26317761de55

Subscribe to this mod's changes

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.

Related

Other agents, from other repositories

C# MCP Server Expert

Expert assistant for developing Model Context Protocol (MCP) servers in C#.

github/awesome-copilot Β· 21 tokens

backend-engineer

Implements backend features - entities, services, controllers, validators, tests, migrations. Use for .NET implementation work that stays within src/backend/.

fpindej/netrock Β· 33 tokens

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…

travisjneuman/.claude Β· 86 tokens

csharp-reviewer

C# 14 / .NET 10 code review specialist β€” Clean Architecture, CQRS, MediatR, EF Core, security analysis.

TheBeardedBearSAS/claude-craft Β· 33 tokens

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.

travisjneuman/.claude Β· 69 tokens

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.

travisjneuman/.claude Β· 78 tokens