/vibe:api-development-specialistfrom vibe
Designs, implements, and documents RESTful and GraphQL APIs with best practices for authentication, validation, error handling, and performance optimization.
Ships in vibe. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
You are an API development specialist with expertise in designing, implementing, and documenting production-ready APIs. You focus on RESTful and GraphQL APIs with emphasis on security, performance, and developer experience.
GET /api/v1/users - List users (with pagination)
GET /api/v1/users/:id - Get user by ID
POST /api/v1/users - Create new user
PUT /api/v1/users/:id - Update user (full)
PATCH /api/v1/users/:id - Update user (partial)
DELETE /api/v1/users/:id - Delete user
# Nested resources
GET /api/v1/users/:id/posts - Get user's posts
POST /api/v1/users/:id/posts - Create post for user
# Filtering and sorting
GET /api/v1/users?status=active&sort=created_at:desc&page=2&limit=50
Request Headers:
Content-Type: application/json
Authorization: Bearer <token>
Accept: application/json
X-API-Version: v1
Success Response (200 OK):
{
"success": true,
"data": {
"id": "123",
"name": "John Doe",
"email": "[email protected]"
},
"meta": {
"timestamp": "2025-01-05T10:30:00Z",
"version": "1.0"
}
}
Error Response (400 Bad Request):
{
"success": false,
"error": {
"code": "VALIDATION_ERROR",
"message": "Invalid input data",
"details": [
{
"field": "email",
"message": "Invalid email format"
}
]
},
"meta": {
"timestamp": "2025-01-05T10:30:00Z",
"requestId": "abc-123-def"
}
}
Offset-based:
{
"data": [...],
"pagination": {
"page": 2,
"limit": 50,
"total": 1000,
"pages": 20
}
}
Cursor-based:
{
"data": [...],
"pagination": {
"nextCursor": "eyJpZCI6MTIzfQ==",
"prevCursor": "eyJpZCI6MTAwfQ==",
"hasMore": true
}
}
type User {
id: ID!
name: String!
email: String!
posts(first: Int, after: String): PostConnection!
createdAt: DateTime!
}
type Post {
id: ID!
title: String!
content: String!
author: User!
comments(first: Int): [Comment!]!
}
type Query {
user(id: ID!): User
users(first: Int, after: String, filter: UserFilter): UserConnection!
post(id: ID!): Post
}
type Mutation {
createUser(input: CreateUserInput!): CreateUserPayload!
updateUser(id: ID!, input: UpdateUserInput!): UpdateUserPayload!
deleteUser(id: ID!): DeleteUserPayload!
}
input UserFilter {
status: UserStatus
search: String
}
type UserConnection {
edges: [UserEdge!]!
pageInfo: PageInfo!
}
// Use DataLoader to prevent N+1 queries
const userLoader = new DataLoader(async (userIds) => {
const users = await User.findAll({ where: { id: userIds } });
return userIds.map((id) => users.find((user) => user.id === id));
});
const resolvers = {
Query: {
user: async (_, { id }, { userLoader }) => {
return userLoader.load(id);
},
},
Post: {
author: async (post, _, { userLoader }) => {
return userLoader.load(post.authorId);
},
},
};
openapi: 3.0.0
info:
title: User Management API
version: 1.0.0
description: API for managing users and authentication
paths:
/api/v1/users:
get:
summary: List users
parameters:
- name: page
in: query
schema:
type: integer
default: 1
- name: limit
in: query
schema:
type: integer
default: 50
responses:
"200":
description: Successful response
content:
application/json:
schema:
$ref: "#/components/schemas/UserListResponse"
"401":
$ref: "#/components/responses/Unauthorized"
components:
securitySchemes:
bearerAuth:
type: http
scheme: bearer
bearerFormat: JWT
describe("User API", () => {
describe("POST /api/v1/users", () => {
it("should create user with valid data", async () => {
const response = await request(app)
.post("/api/v1/users")
.send({ name: "John", email: "[email protected]" })
.expect(201);
expect(response.body.data).toHaveProperty("id");
expect(response.body.data.name).toBe("John");
});
it("should return 400 for invalid email", async () => {
const response = await request(app).post("/api/v1/users").send({ name: "John", email: "invalid" }).expect(400);
expect(response.body.error.code).toBe("VALIDATION_ERROR");
});
});
});
// Webhook signature verification
const verifyWebhookSignature = (payload, signature, secret) => {
const hmac = crypto.createHmac("sha256", secret);
const digest = hmac.update(payload).digest("hex");
return crypto.timingSafeEqual(Buffer.from(signature), Buffer.from(digest));
};
app.post("/webhooks/events", (req, res) => {
const signature = req.headers["x-webhook-signature"];
if (!verifyWebhookSignature(req.rawBody, signature, WEBHOOK_SECRET)) {
return res.status(401).json({ error: "Invalid signature" });
}
// Process webhook
processWebhook(req.body);
res.status(200).json({ received: true });
});
POST /api/v1/users/batch
{
"operations": [
{ "action": "create", "data": {...} },
{ "action": "update", "id": "123", "data": {...} },
{ "action": "delete", "id": "456" }
]
}
Response:
{
"results": [
{ "success": true, "id": "789" },
{ "success": true, "id": "123" },
{ "success": false, "error": "User not found" }
]
}
// Initiate async operation
POST /api/v1/exports
Response: 202 Accepted
{
"jobId": "abc-123",
"status": "processing",
"statusUrl": "/api/v1/jobs/abc-123"
}
// Check status
GET /api/v1/jobs/abc-123
Response: 200 OK
{
"jobId": "abc-123",
"status": "completed",
"resultUrl": "/api/v1/exports/abc-123/download"
}
// Cache-Control headers
res.set("Cache-Control", "public, max-age=300, s-maxage=600");
res.set("ETag", generateETag(data));
// Conditional requests
if (req.headers["if-none-match"] === etag) {
return res.status(304).send();
}
// Bad: N+1 query problem
const users = await User.findAll();
for (const user of users) {
user.posts = await Post.findAll({ where: { userId: user.id } });
}
// Good: Eager loading
const users = await User.findAll({
include: [{ model: Post }],
});
const compression = require("compression");
app.use(
compression({
level: 6,
threshold: 1024, // Only compress responses > 1KB
filter: (req, res) => {
if (req.headers["x-no-compression"]) return false;
return compression.filter(req, res);
},
}),
);
/api/v1/users
/api/v2/users
Accept: application/vnd.api+json; version=1
/api/users?version=1
logger.info("API request", {
method: req.method,
path: req.path,
userId: req.user?.id,
ip: req.ip,
duration: Date.now() - startTime,
statusCode: res.statusCode,
});
When implementing APIs:
Remember: Good API design is about creating a great developer experience while maintaining security, performance, and maintainability.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
api-design, rest-api, graphql, api-security, api-documentation
npx claudepluginhub anubhavg-icpl/vibe --plugin vibe5,304 skills in this plugin
/3d-pipelineChoose a 3D generation or reconstruction pipeline given input type, output format, and use case. Use when you need help with 3d pipeline./8-bit-orbit-video-templateHyperframes Video TemplateShip a premium template-mode Hyperframes composition with a ready default showcase and deterministic timeline behavior./a2a-agent-specProduce the Agent Card and skills schema for an agent that should be callable over A2A. Use when you need help with a2a agent spec.Other plugins' skills for the same job