AGENT SKILL

drin-api-endpoint-scaffold

Rapid scaffolding for new API endpoints following project-specific standards.

适用职业开发工程师
使用场景后端与接口
License 许可
MIT
最近更新
2026-04-11
Stars
★ 12
Forks
1

01 前言 Front Matter

name
drin-api-endpoint-scaffold
status
production
description
Rapid scaffolding for new API endpoints following project-specific standards.

03 SKILL.md 正文

API Endpoint Scaffold

Purpose

To accelerate development while ensuring every endpoint follows security and quality standards.

Components Generated

  1. Route Definition: URL path, method, and auth requirements.
  2. Schema/DTO: Validation for request body and query params (Zod/Pydantic).
  3. Controller/Handler: The logic entry point.
  4. Service: Business logic isolation.
  5. Test: Basic unit test for the new endpoint.

Rules

  • Enforce auth middleware by default.
  • Always include standard error handling.
  • Documentation must be included in the scaffold.

04 同仓库更多 Skills