new-endpoint

Generate .NET API endpoints with controllers, services, DTOs, and validators.

1|Updated Mar 9, 2026
One-click install
npx skills add https://github.com/Emmanuelkwaa/NetRockTemplate --skill new-endpoint-emmanuelkwaa
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: new-endpoint
Source: https://github.com/Emmanuelkwaa/NetRockTemplate/tree/main/.claude/skills/new-endpoint
Command: npx skills add https://github.com/Emmanuelkwaa/NetRockTemplate --skill new-endpoint-emmanuelkwaa

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 necessary files for a new API endpoint, including DTOs, service interfaces and implementations, mappers, controllers, and validators.
  • Contextual Inference: Infers feature, operation, HTTP method, route, shapes, and authentication requirements from the project context.
  • Use Case: When you need to add a new POST endpoint to manage user profiles, this Skill will generate all the required C# code and tests following established project patterns.

Quick Start

Use the new-endpoint skill to add a GET endpoint for retrieving user details.

Frequently Asked Questions about new-endpoint

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

FAQPage Schema
How do I generate a new API endpoint in a .NET application?

To generate a new API endpoint in a .NET application, this tool creates controller actions, service methods, DTOs, and validators. It infers project context to determine endpoint specifics like HTTP method and route automatically.

Can I use FluentValidation for request validation when scaffolding CRUD operations?

Yes, you can use FluentValidation for request validation when scaffolding CRUD operations. The endpoint generator integrates with FluentValidation to ensure request data integrity across the newly created DTOs and controllers.

What files are created when adding a REST API endpoint to a project?

When adding a REST API endpoint to a project, the generated files include DTOs, service interfaces, service implementations, mappers, controllers, and validators. This comprehensive code generation ensures architectural consistency.

Does the codegen tool infer authentication requirements for new .NET API endpoints?

Yes, the codegen tool infers authentication requirements for new .NET API endpoints. It analyzes the existing project context to determine the necessary authentication patterns alongside the HTTP method and route configurations.

What's the best way to ensure consistency when adding multiple controller actions?

The best way to ensure consistency when adding multiple controller actions is to use an automated codegen approach. It applies established project patterns uniformly across all generated service methods, DTOs, and validators.