garochee33/dsh/api-gateway-designer

Claude Code and agent skill by garochee33/dsh

Trust tier 3
  • community
Source check pending

Checking that the SKILL.md file is still in the repository.

Design and implement scalable API gateways, RESTful APIs, GraphQL endpoints, WebSocket handlers, and microservice communication patterns. Use when creating API routes, designing endpoints, implementing middleware, or setting up service mesh architectures.

Install

npx vskill@latest install garochee33/dsh/api-gateway-designer

SKILL.md

The same SKILL.md was published earlier as garochee33/dsh/api-gateway-designer.

API Gateway Designer

REST API Patterns

Resource-Oriented Endpoints
typescript
router.get('/api/users', requireAuth, async (req, res) => {
const users = await userService.list(req.query);
res.json({ data: users, meta: { total: users.length } });
});
router.post('/api/users', requireAuth, async (req, res) => {
const user = await userService.create(req.body);
res.status(201).json({ data: user });
});
router.get('/api/users/:id', requireAuth, async (req, res) => {
const user = await userService.getById(req.params.id);
if (!user) throw new NotFoundError('User not found');
res.json({ data: user });
});
Query Builder with Pagination
typescript
class QueryBuilder<T> {
build() {
let q = db.select().from(this.table);
if (this.query.filter) {
q = q.where(and(...conditions));
}
q = q.limit(this.query.limit).offset((this.query.page - 1) * this.query.limit);
return q;
}
}

GraphQL Schema

typescript
builder.prismaObject('User', {
fields: (t) => ({
id: t.exposeID('id'),
email: t.exposeString('email'),
posts: t.relation('posts'),
})
});
builder.queryType({
fields: (t) => ({
user: t.prismaField({
type: 'User',
args: { id: t.arg.id({ required: true }) },
resolve: (query, _, args) => db.user.findUnique({ ...query, where: { id: args.id } })
})
})
});

WebSocket Handler

typescript
export class WebSocketManager {
broadcast(channel: string, payload: unknown) {
this.clients.forEach(client => {
if (client.subscriptions.has(channel)) {
client.send(JSON.stringify({ channel, payload }));
}
});
}
}

Middleware

typescript
export const rateLimitMiddleware = async (req, res, next) => {
try {
await rateLimiter.consume(req.user?.id || req.ip);
next();
} catch {
res.status(429).json({ error: 'Too many requests' });
}
};

Protocol

  1. Assess — Understand the specific requirement and context
  2. Plan — Determine the approach based on the guidance above
  3. Execute — Apply the api gateway designer methodology
  4. Verify — Validate the output against expected standards
  5. Report — Document results and any issues encountered

Security

  • Security scanPassed, 98 of 100Pattern checks on the skill's files.
  • Model reviewPassed

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

7-day trend score
5

Not refreshed yet.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/garochee33/dsh/api-gateway-designer/badge)](https://verified-skill.com/skills/garochee33/dsh/api-gateway-designer)

Something wrong with this skill or its page? Tell us.