api-generating
Generate REST API endpoints following project conventions. Activate when user asks to create a new API endpoint, add a route, or build a new API resource with…
от PacktPublishing★ 24 звезды на GitHub
Установить api-generating в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
API Endpoint Generator
Generate REST API endpoints following the project's established patterns.
Before Generating
- Read existing route files to understand the project's patterns
- Check for validation library usage (Zod, Joi, etc.)
- Identify the architecture pattern (layered, MVC, etc.)
Generation Template
For each new resource, create:
Route file (
src/routes/{resource}.ts)- Zod validation schemas
- Route handlers that parse and delegate
- NO business logic in routes
Service file (
src/services/{resource}Service.ts)- Business rules and validation
- Orchestration of repo calls
- Domain error throwing
Repo file (
src/repos/{resource}Repo.ts)- Data access only
- Prisma operations
- NO business logic
Test file (
tests/{resource}.test.ts)- Happy path tests
- Edge case tests
- Error handling tests
Naming Conventions
- Files: camelCase (
orderService.ts) - Classes: PascalCase (
OrderService) - Routes: kebab-case (
/api/order-items) - Database: snake_case (handled by Prisma)
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
- 01
Read - 02
Edit - 03
Write - 04
Bash - 05
Grep - 06
Glob
Вложенные файлы
- templates/route.ts.template
FAQ
Что делает скилл api-generating?
Generate REST API endpoints following project conventions. Activate when user asks to create a new API endpoint, add a route, or build a new API resource with CRUD operations.
Как установить скилл api-generating?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл api-generating запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
mcp-builder
AnthropicGuide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
claude-api
AnthropicReference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
algorithmic-art
AnthropicCreating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
mcp-integration
AnthropicThis skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…