add-endpoint

Add GET and POST/PUT/DELETE API endpoints across Application, Contracts, Controller, Refit client, and ServiceClient.

Updated Mar 30, 2026
One-click install
npx skills add https://github.com/geobarteam/github-copilot-configs --skill add-endpoint-geobarteam
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: add-endpoint
Source: https://github.com/geobarteam/github-copilot-configs/tree/main/skills/add-endpoint
Command: npx skills add https://github.com/geobarteam/github-copilot-configs --skill add-endpoint-geobarteam

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill provides a structured approach to adding new API endpoints to an existing feature without introducing a new domain entity or database change.

Core Features & Use Cases

  • Adds both query (GET) and command (POST/PUT/DELETE) endpoints to an existing vertical slice, spanning Application, Contracts, Controller, Refit client, and ServiceClient.
  • Enforces a test-first workflow: write tests first, run through the failure/green cycle, and verify end-to-end via the BFF/controller path.
  • Aligns with established patterns: DI wiring, repository interactions, and consistent audit/logging and error-handling.

Quick Start

Describe the endpoint you want to add and follow the workflow to implement it.

Frequently Asked Questions about add-endpoint

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

FAQPage Schema
How do I add a new API endpoint to an existing C# controller without creating a new domain entity?

To add an API endpoint without a new domain entity, extend the existing vertical slice by updating the Application, Contracts, Controller, Refit client, and ServiceClient layers. This approach modifies current features rather than introducing new database changes.

What is the best way to implement a test-first workflow for a new dotnet API endpoint?

A test-first workflow for a dotnet API endpoint requires writing tests before implementation, running them through the failure and green cycle, and verifying end-to-end via the BFF or controller path to ensure the new route functions correctly.

How do I wire up dependency injection for a new GET or POST endpoint in an existing feature?

Wiring dependency injection for a new GET or POST endpoint involves aligning with established DI patterns and repository interactions within the existing vertical slice to ensure services are correctly resolved and audit or logging conventions are met.

Does this approach support adding both query and command endpoints across the Refit client and ServiceClient?

Yes, this approach supports adding both query endpoints like GET and command endpoints like POST, PUT, and DELETE. It spans the Application, Contracts, Controller, Refit client, and ServiceClient to maintain full vertical slice consistency.

When should I avoid adding a new API endpoint to an existing feature slice?

You should avoid adding a new API endpoint to an existing feature if your requirements demand a new domain entity or database change, as this workflow is specifically designed to extend current features without altering the underlying domain schema.