Agent skill · Backend & API

innozverse-api-style

Follow API development conventions including RESTful design, Fastify patterns, Zod validation, error handling, and versioning. Use when building API endpoints, adding routes, or working with API code.

majiayu000github.com/majiayu000GitHub ↗
claude-codeMIT
Install
npx skills add majiayu000/claude-skill-registry --skill api-style --agent claude-code

Same command for any agent — swap --agent for codex, cursor, copilot.

Facts
Files in the skill folder: 2
SKILL.md size: 8 KB
Bundled scripts: none
Path: skills/api/api-style/SKILL.md
Open the folder on GitHub →
Where it comes from
Stars: 534
Language: HTML

Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.

From the SKILL.md

# innozverse API Development Style When developing API endpoints for innozverse, follow these patterns and conventions. ## Fastify Basics ### Route Registration ```typescript // apps/api/src/routes/v1/users.ts import { FastifyInstance } from 'fastify'; export async function usersRoutes(fastify: FastifyInstance) { fastify.get('/users', async (request, reply) => { return { users: [] }; }); fastify.get('/users/:id', async (request, reply) => { const { id } = request.params as { id: string }; return { user: { id } }; }); fastify.post('/users', async (request, reply) => { const body = request.body; return reply.code(201).send({ user: body }); }); } ``` ### Register in Index ```typescript // apps/api/src/index.ts import { usersRoutes } from './routes/v1/users'; fastify.register(usersRoutes, { prefix: '/v1' }); ``` ## Response Patterns ### Success Response ```typescript return reply.code(200).send({ status: 'ok', data: { /* ... */ } }); ``` ### Created Response ```typescript return reply.code(201).send({ status: 'created', data: { id: newId } }); ``` ### Error Response ```typescript return reply.code(400).send({ error: 'ValidationError', message: 'Invalid input', statusCode: 400 }); ``` #

What's inside
Steps it walks through
  1. Fastify Basics
  2. Route Registration
  3. Register in Index
  4. Response Patterns
  5. Success Response
  6. Created Response
  7. Error Response
  8. Type Safety
  9. Define Types in @innozverse/shared
  10. Use in API
  11. Validation with Zod
  12. Define Schema in @innozverse/shared
  13. Error Handling
  14. Global Error Handler
Ships with 1 file
  • metadata.json
More from claude-skill-registry
All skills →
About this skill
What does the innozverse-api-style skill do?

Follow API development conventions including RESTful design, Fastify patterns, Zod validation, error handling, and versioning. Use when building API endpoints, adding routes, or working with API code.

How do I install it?

Run `npx skills add majiayu000/claude-skill-registry --skill api-style --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.

Where does this skill come from?

From majiayu000/claude-skill-registry, a repository with 534 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.

Is a popular skill a good skill?

Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.

Keep going