new-endpoint

Generate .NET API endpoints with controller actions, DTOs, mappers, and validators.

230|29|Updated Dec 25, 2025
One-click install
npx skills add https://github.com/fpindej/netrock --skill new-endpoint-fpindej
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: new-endpoint
Source: https://github.com/fpindej/netrock/tree/main/.claude/skills/new-endpoint
Command: npx skills add https://github.com/fpindej/netrock --skill new-endpoint-fpindej

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes assets (resource) components.

What problem does it solve?

This Skill automates the process of adding new API endpoints to an existing .NET application, reducing boilerplate code and ensuring consistency.

Core Features & Use Cases

  • Endpoint Generation: Creates controller actions, DTOs, mappers, and validators for new API endpoints.
  • Contextual Inference: Infers necessary details like feature, operation, HTTP method, and authentication from the project context.
  • Use Case: You need to add a new endpoint to manage user profiles in your .NET application. This Skill will generate all the necessary C# code files and tests to implement the GET /users/{id} endpoint.

Quick Start

Use the new-endpoint skill to add a GET endpoint for retrieving user details within the 'Users' feature.

Frequently Asked Questions about new-endpoint

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I add a new RESTful API endpoint to my .NET application?

To add a RESTful API endpoint to a .NET application, this Skill generates controller actions, DTOs, mappers, and FluentValidation validators. It infers the feature, HTTP method, route, and authentication requirements from the project context.

What is the best way to generate boilerplate C# code for a CRUD endpoint?

Generating boilerplate C# code for a CRUD endpoint is automated by creating controllers, DTOs, and validators. This approach ensures consistency by inferring operation shapes and authentication needs while supporting create, update, delete, and retrieve resource operations.

Can I use FluentValidation and mappers when creating a new .NET controller action?

Yes, you can use FluentValidation and mappers when creating a new .NET controller action. The endpoint generation process automatically produces these validators and mapping components alongside the controller and DTOs.

Does this endpoint generation process include integrated testing and Docker build considerations?

Yes, the endpoint generation process includes integrated testing and Docker build considerations. It produces the necessary C# code files for the API endpoint while accounting for these testing and deployment requirements.

How does contextual inference work when creating a new API endpoint in a .NET app?

Contextual inference for creating an API endpoint works by analyzing the project context to determine the feature, operation, HTTP method, route, shapes, and authentication requirements. This reduces manual configuration.

What C# files do I need to create a GET endpoint for retrieving user profiles?

To create a GET endpoint for retrieving user profiles, you need controller actions, DTOs, mappers, and validators. The Skill generates these C# files and tests to implement the endpoint automatically.