add-api-endpoint-tassadar2499-novatune
Add a new minimal API endpoint to NovaTune with service, models, and tests
Best use case
add-api-endpoint-tassadar2499-novatune is best used when you need a repeatable AI agent workflow instead of a one-off prompt.
Add a new minimal API endpoint to NovaTune with service, models, and tests
Teams using add-api-endpoint-tassadar2499-novatune should expect a more consistent output, faster repeated execution, less prompt rewriting.
When to use this skill
- You want a reusable workflow that can be run more than once with consistent structure.
When not to use this skill
- You only need a quick one-off answer and do not need a reusable workflow.
- You cannot install or maintain the underlying files, dependencies, or repository context.
Installation
Claude Code / Cursor / Codex
Manual Installation
- Download SKILL.md from GitHub
- Place it in
.claude/skills/add-api-endpoint-tassadar2499-novatune/SKILL.mdinside your project - Restart your AI agent — it will auto-discover the skill
How add-api-endpoint-tassadar2499-novatune Compares
| Feature / Agent | add-api-endpoint-tassadar2499-novatune | Standard Approach |
|---|---|---|
| Platform Support | Not specified | Limited / Varies |
| Context Awareness | High | Baseline |
| Installation Complexity | Unknown | N/A |
Frequently Asked Questions
What does this skill do?
Add a new minimal API endpoint to NovaTune with service, models, and tests
Where can I find the source code?
You can find the source code on GitHub using the link provided at the top of the page.
SKILL.md Source
# Add API Endpoint Skill
Add a new minimal API endpoint to NovaTune.
## Steps
### 1. Create/Update Request and Response Models
Location: `src/NovaTuneApp/NovaTuneApp.ApiService/Models/`
```csharp
// Models/Requests/CreateTrackRequest.cs
public record CreateTrackRequest(
string Title,
string? Description);
// Models/Responses/TrackResponse.cs
public record TrackResponse(
Guid Id,
string Title,
string? Description,
DateTimeOffset CreatedAt);
```
### 2. Create/Update Service
Location: `src/NovaTuneApp/NovaTuneApp.ApiService/Services/`
```csharp
public interface ITrackService
{
Task<Track> CreateAsync(CreateTrackRequest request, CancellationToken ct);
}
public class TrackService : ITrackService
{
private readonly IDocumentSession _session;
public TrackService(IDocumentSession session)
{
_session = session;
}
public async Task<Track> CreateAsync(CreateTrackRequest request, CancellationToken ct)
{
var track = new Track
{
Title = request.Title,
Description = request.Description,
CreatedAt = DateTimeOffset.UtcNow
};
await _session.StoreAsync(track, ct);
await _session.SaveChangesAsync(ct);
return track;
}
}
```
### 3. Create Endpoint Group
Location: `src/NovaTuneApp/NovaTuneApp.ApiService/Endpoints/`
```csharp
public static class TrackEndpoints
{
public static void MapTrackEndpoints(this IEndpointRouteBuilder app)
{
var group = app.MapGroup("/api/tracks")
.WithTags("Tracks")
.WithOpenApi();
group.MapPost("/", CreateTrack)
.WithName("CreateTrack")
.RequireAuthorization();
group.MapGet("/{id:guid}", GetTrack)
.WithName("GetTrack");
}
private static async Task<IResult> CreateTrack(
CreateTrackRequest request,
ITrackService trackService,
CancellationToken ct)
{
var track = await trackService.CreateAsync(request, ct);
return TypedResults.Created($"/api/tracks/{track.Id}", track.ToResponse());
}
private static async Task<IResult> GetTrack(
Guid id,
ITrackService trackService,
CancellationToken ct)
{
var track = await trackService.GetByIdAsync(id, ct);
return track is null
? TypedResults.NotFound()
: TypedResults.Ok(track.ToResponse());
}
}
```
### 4. Register in Program.cs
```csharp
// Register service
builder.Services.AddScoped<ITrackService, TrackService>();
// Map endpoints (after app.Build())
app.MapTrackEndpoints();
```
### 5. Add Tests
Unit test: `src/unit_tests/TrackServiceTests.cs`
Integration test: `src/NovaTuneApp/NovaTuneApp.Tests/TrackEndpoints.IntegrationTests.cs`
## Conventions
- Use minimal APIs with `MapGroup`
- Return `TypedResults` for proper OpenAPI schema
- Use `WithTags` and `WithOpenApi` for Scalar documentation
- Add `RequireAuthorization()` for protected endpoints
- Use `CancellationToken` in all async methods
- PascalCase for endpoint names
## Response Status Codes
| Operation | Success | Error |
|-----------|---------|-------|
| Create | 201 Created | 400 Bad Request |
| Get | 200 OK | 404 Not Found |
| Update | 200 OK / 204 No Content | 404 Not Found |
| Delete | 204 No Content | 404 Not Found |
| List | 200 OK | - |
## API Documentation
Access Scalar UI at `/scalar/v1` when running the API.Related Skills
add-api-endpoint
Create API layer components for a new entity. Includes usecase interactors (internal/usecase/), proto definitions (schema/proto/), gRPC handlers (internal/infrastructure/grpc/), and DI registration. Use when adding CRUD endpoints or Step 3 of CRUD workflow (after add-domain-entity).
Add Admin API Endpoint
Add a new endpoint or endpoints to Ghost's Admin API at `ghost/api/admin/**`.
add-trpc-endpoint
Scaffold new tRPC API endpoints for the dealflow-network project with proper Zod validation, middleware, database functions, and client hooks. Use when adding new API routes, creating CRUD operations, or extending existing routers.
add-auth-endpoint
Add authentication endpoints (register, login, refresh, logout) to NovaTune
whisper-transcribe
Transcribes audio and video files to text using OpenAI's Whisper CLI, enhanced with contextual grounding from local markdown files for improved accuracy.
grail-miner
This skill assists in setting up, managing, and optimizing Grail miners on Bittensor Subnet 81, handling tasks like environment configuration, R2 storage, model checkpoint management, and performance tuning.
lets-go-rss
A lightweight, full-platform RSS subscription manager that aggregates content from YouTube, Vimeo, Behance, Twitter/X, and Chinese platforms like Bilibili, Weibo, and Douyin, featuring deduplication and AI smart classification.
thor-skills
An entry point and router for AI agents to manage various THOR-related cybersecurity tasks, including running scans, analyzing logs, troubleshooting, and maintenance.
tech-blog
Generates comprehensive technical blog posts, offering detailed explanations of system internals, architecture, and implementation, either through source code analysis or document-driven research.
ux
This AI agent skill provides comprehensive guidance for creating professional and insightful User Experience (UX) designs, covering user research, information architecture, interaction design, visual guidance, and usability evaluation. It aims to produce actionable, user-centered solutions that avoid generic AI aesthetics.
vly-money
Generate crypto payment links for supported tokens and networks, manage access to X402 payment-protected content, and provide direct access to the vly.money wallet interface.
chrome-debug
This skill empowers AI agents to debug web applications and inspect browser behavior using the Chrome DevTools Protocol (CDP), offering both collaborative (headful) and automated (headless) modes.