api-implementer
БесплатноБез исполняемых скриптовНе проверенImplements API endpoints, routes, controllers, and request/response handling. Use when implementing REST APIs, GraphQL APIs, or other API endpoints. Handles…
от diegosouzapw★ 68 звёзд на GitHubОб этом скилле
API Implementer Skill
Instructions
- Analyze API requirements from task
- Review API specifications (endpoints, request/response formats)
- Implement API endpoints with proper routing
- Add request validation
- Implement error handling
- Format responses correctly
- Return implementation with:
- Route definitions
- Controller/handler functions
- Validation logic
- Error handling
- Response formatting
Examples
Input: "Implement POST /api/tasks endpoint" Output:
// routes/tasks.js
router.post('/api/tasks', authenticate, validateTaskInput, async (req, res) => {
try {
const task = await createTask({
title: req.body.title,
description: req.body.description,
userId: req.user.id
});
res.status(201).json(task);
} catch (error) {
res.status(400).json({ error: error.message });
}
});
// middleware/validation.js
function validateTaskInput(req, res, next) {
if (!req.body.title || req.body.title.trim().length === 0) {
return res.status(400).json({ error: 'Title is required' });
}
if (req.body.title.length > 255) {
return res.status(400).json({ error: 'Title must be 255 characters or less' });
}
next();
}
API Implementation Areas
- Route Definition: HTTP method, path, middleware
- Request Handling: Parse request body, query params, headers
- Validation: Input validation, data sanitization
- Business Logic: Core functionality implementation
- Error Handling: Proper error responses, status codes
- Response Formatting: Consistent response structure
- Authentication: Auth middleware, token validation
- Authorization: Permission checks, role-based access
Best Practices
- RESTful Design: Follow REST conventions
- Consistent Responses: Standard response format
- Proper Status Codes: Use appropriate HTTP status codes
- Error Handling: Comprehensive error handling
- Validation: Validate all inputs
- Documentation: Document endpoints and parameters
Установить api-implementer в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл api-implementer?
Implements API endpoints, routes, controllers, and request/response handling. Use when implementing REST APIs, GraphQL APIs, or other API endpoints. Handles routing, validation, error handling, and response formatting.
Как установить скилл api-implementer?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл api-implementer запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
mcp-builder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
от Anthropicclaude-api
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
от Anthropicalgorithmic-art
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
от Anthropicmcp-integration
This 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…
от Anthropic