/dobeutech-claude-code-custom:api-design-patternsfrom dobeutech-claude-code-custom
Use when designing or reviewing API contracts — REST resource modeling, GraphQL schemas, gRPC services, versioning schemes, auth flows, pagination, error response shapes, or API documentation.
Ships in dobeutech-claude-code-custom. 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.
Comprehensive patterns for designing robust, scalable APIs across different protocols.
// ✅ Resource-based URLs
GET /api/users # List users
GET /api/users/:id # Get user
POST /api/users # Create user
PUT /api/users/:id # Replace user
PATCH /api/users/:id # Update user
DELETE /api/users/:id # Delete user
// ✅ Nested resources
GET /api/users/:id/posts # User's posts
POST /api/users/:id/posts # Create post for user
// ✅ Filtering, sorting, pagination
GET /api/users?status=active&sort=created_at&limit=20&offset=0
GET /api/users?fields=id,name,email # Field selection
type User {
id: ID!
name: String!
email: String!
posts: [Post!]!
}
type Query {
user(id: ID!): User
users(filter: UserFilter): [User!]!
}
type Mutation {
createUser(input: CreateUserInput!): User!
updateUser(id: ID!, input: UpdateUserInput!): User!
}
// ✅ DataLoader for N+1 query prevention
const userLoader = new DataLoader(async (ids) => {
const users = await db.users.findByIds(ids);
return ids.map(id => users.find(u => u.id === id));
});
service UserService {
rpc GetUser(GetUserRequest) returns (User);
rpc ListUsers(ListUsersRequest) returns (stream User);
rpc CreateUser(CreateUserRequest) returns (User);
}
// ✅ Version in URL path
/api/v1/users
/api/v2/users
// ✅ Version in Accept header
Accept: application/vnd.api+json;version=2
// ✅ Stateless authentication
Authorization: Bearer <token>
// ✅ Key-based authentication
X-API-Key: <api-key>
{
"error": {
"code": "VALIDATION_ERROR",
"message": "Invalid input",
"details": [
{ "field": "email", "message": "Invalid email format" }
]
}
}
// ✅ Rate limit headers
X-RateLimit-Limit: 1000
X-RateLimit-Remaining: 999
X-RateLimit-Reset: 1640995200
/api-design - Generate API specificationsapi-designer - API design specialistWhat SKILL.md sets; muted values are Claude Code's defaults
Claude Code refuses to install this plugin
.claude-plugin/plugin.json: author: Invalid input: expected object, received string, repository: Invalid input: expected string, received object, commands: Invalid input, agents.0: Invalid string: must start with "./", agents.0: Invalid string: must end with ".md", agents.1: Invalid string: must start with "./", agents.1: Invalid string: must end with ".md", agents.2: Invalid string: must start with "./", agents.2: Invalid string: must end with ".md", agents.3: Invalid string: must start with "./", agents.3: Invalid string: must end with ".md", agents.4: Invalid string: must start with "./", agents.4: Invalid string: must end with ".md", agents.5: Invalid string: must start with "./", agents.5: Invalid string: must end with ".md", agents.6: Invalid string: must start with "./", agents.6: Invalid string: must end with ".md", agents.7: Invalid string: must start with "./", agents.7: Invalid string: must end with ".md", agents.8: Invalid string: must start with "./", agents.8: Invalid st…
.claude-plugin/plugin.json: author: Invalid input: expected object, received string, repository: Invalid input: expected string, received object, commands: Invalid input, agents.0: Invalid string: must start with "./", agents.0: Invalid string: must end with ".md", agents.1: Invalid string: must start with "./", agents.1: Invalid string: must end with ".md", agents.2: Invalid string: must start with "./", agents.2: Invalid string: must end with ".md", agents.3: Invalid string: must start with "./", agents.3: Invalid string: must end with ".md", agents.4: Invalid string: must start with "./", agents.4: Invalid string: must end with ".md", agents.5: Invalid string: must start with "./", agents.5: Invalid string: must end with ".md", agents.6: Invalid string: must start with "./", agents.6: Invalid string: must end with ".md", agents.7: Invalid string: must start with "./", agents.7: Invalid string: must end with ".md", agents.8: Invalid string: must start with "./", agents.8: Invalid st…
Checked against Claude Code 2.1.332's install rules. The listing below is what the repository ships; Claude Code cannot install it as published.
Other plugins' skills for the same job
10 skills in this plugin
/backend-patternsUse when building or refactoring server-side code in Node.js, Express, or Next.js API routes — route/controller/service layering, middleware, auth, caching, background jobs, error handling, and database access./clickhouse-ioUse when working with ClickHouse — designing MergeTree tables, partitioning and ordering keys, materialized views, writing or optimizing analytical OLAP queries, or bulk ingest and data-engineering pipelines./coding-standardsUse when writing, reviewing, or refactoring TypeScript, JavaScript, React, or Node.js code and you need the project's baseline conventions — naming, file structure, typing rules, error handling, comments, and code-quality principles.