Skip to content
Back to skills

Api Implementer

ASecurity

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.

  • 666 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added September 2, 2026
developmentjavascriptjavaapidocumentation

Works with

  • api

Security analysis

A100/100

Scanned September 2, 2026

npx -y skills add majiayu000/claude-skill-registry --skill api-implementer --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Api Implementer?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Api Implementer
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/majiayu000-api-implementer-claude-skill-registry/badge)](https://www.skillsdirectory.com/skills/majiayu000-api-implementer-claude-skill-registry)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: api-implementer
description: 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 Skill

## Instructions

1. Analyze API requirements from task
2. Review API specifications (endpoints, request/response formats)
3. Implement API endpoints with proper routing
4. Add request validation
5. Implement error handling
6. Format responses correctly
7. Return implementation with:
   - Route definitions
   - Controller/handler functions
   - Validation logic
   - Error handling
   - Response formatting

## Examples

**Input:** "Implement POST /api/tasks endpoint"
**Output:**
```javascript
// 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

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.