From claude-library
Implement inference endpoints consistently. Use when adding new API endpoints, building REST APIs, or implementing inference routes with consistent patterns for models, errors, logging, and config.
How this skill is triggered — by the user, by Claude, or both
Slash command
/claude-library:api-development-api-implThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
**Purpose**: Implement inference endpoints consistently
Purpose: Implement inference endpoints consistently
Use when:
When implementing an inference endpoint:
Ask for required information:
Ensure implementation includes:
Provide deliverables:
End with "how to test locally" commands
## API Implementation: [Route]
### Specification
- **Route**: [METHOD /path]
- **Request**: [schema summary]
- **Response**: [schema summary]
- **Latency budget**: [target]
### Models
```python
# Request model
class [Name]Request(BaseModel):
...
# Response model
class [Name]Response(BaseModel):
...
@router.[method]("[path]")
async def [handler_name](...):
...
def test_[name]_success():
...
def test_[name]_validation_error():
...
[Any documentation changes needed]
# Start server
[command]
# Test endpoint
curl -X [METHOD] http://localhost:8000/[path] ...
---
## Example Usage
/api_development_api_impl Route: /predict/sentiment Request: {"text": str} Response: {"sentiment": str, "confidence": float} Latency: <200ms p95
Or:
/api_development_api_impl Route: POST /api/v1/embeddings Request: {"texts": list[str], "model": str} Response: {"embeddings": list[list[float]]} Latency: <500ms for batch of 10
npx claudepluginhub tabers77/claude_experimentsGenerates REST or GraphQL API endpoints with request validation, error handling, tests, and authentication middleware. Activated when user says "add endpoint", "create API", or "new route".
Builds production-ready REST API endpoints with validation, error handling, authentication, and documentation. Activated when users ask to create or build APIs, endpoints, routes, or CRUD operations.
Guides FastAPI ML endpoint setup, model serving, and production deployment with step-by-step instructions and best practices.