一键导入
api-endpoint
Quick workflow for adding a single API endpoint. Use when implementing a specific REST endpoint with its command/query, handler, validator, and test.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Quick workflow for adding a single API endpoint. Use when implementing a specific REST endpoint with its command/query, handler, validator, and test.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
| name | api-endpoint |
| description | Quick workflow for adding a single API endpoint. Use when implementing a specific REST endpoint with its command/query, handler, validator, and test. |
backend-feature when Domain entities already existCreate in backend/src/Convy.Application/Features/{Feature}/Commands/ or Queries/:
public record {Action}{Entity}Command(...) : IRequest<Result<{ReturnType}>>;
In the same folder:
public class {Action}{Entity}CommandValidator : AbstractValidator<{Action}{Entity}Command>
{
public {Action}{Entity}CommandValidator()
{
RuleFor(x => x.Title).NotEmpty().MaximumLength(200);
}
}
public class {Action}{Entity}CommandHandler : IRequestHandler<{Action}{Entity}Command, Result<{ReturnType}>>
{
// Inject repository, implement logic
}
In Features/{Feature}/DTOs/ — immutable records.
In backend/src/Convy.API/:
app.MapPost("/api/v1/{resource}", async (IMediator mediator, {Command} command) =>
{
var result = await mediator.Send(command);
return result.IsSuccess ? Results.Ok(result.Value) : Results.BadRequest(result.Error);
}).RequireAuthorization();
Convy.Application.TestsConvy.API.Testsdotnet build backend/Convy.slnx && dotnet test backend/Convy.slnx
End-to-end workflow for implementing a backend feature in Convy. Use when adding new functionality that spans Domain, Application, Infrastructure, and API layers. Covers entity creation, CQRS handlers, validators, repository implementation, API endpoints, and tests.
Structured code review workflow. Use when reviewing code changes for SOLID violations, security issues, architecture compliance, performance problems, and code smells.
Workflow for creating EF Core database migrations. Use when adding tables, columns, indexes, or modifying the database schema. Includes validation and rollback testing.
Workflow for designing a mobile screen using Stitch MCP. Use when creating UI mockups, screen layouts, or design variants for Convy screens.
Setup and verification checklist for Firebase Authentication in Convy. Use when implementing auth features, onboarding, or when Firebase configuration needs to be verified.
Workflow for creating a new screen in the Convy mobile app. Use when adding a new screen or view with Compose Multiplatform and MVI architecture. Covers state modeling, store creation, composable UI, navigation wiring, and previews.