fastify
Guides AI agents to write correct, idiomatic Fastify code using plugins, routes, schemas, and lifecycle hooks.
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
القائمة
Guides AI agents to write correct, idiomatic Fastify code using plugins, routes, schemas, and lifecycle hooks.
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
Guides AI agents to produce accurate, well-structured technical documentation in Markdown with Mermaid diagrams.
Guides AI agents to write idiomatic, correct Node.js JavaScript code.
Guides AI agents to use Pino logging correctly — levels, structured logs, child loggers, and Fastify integration.
Guides AI agents to write secure Fastify/Node.js code — input validation, authentication, injection prevention, and safe error handling.
استنادا إلى تصنيف SOC المهني
| name | fastify |
| description | Guides AI agents to write correct, idiomatic Fastify code using plugins, routes, schemas, and lifecycle hooks. |
| metadata | {"tags":["fastify","nodejs","http","api"]} |
Use this skill when writing or reviewing any Fastify server code: route definitions, plugins, request validation, error handling, or server lifecycle.
onRequest, preHandler, onSend, etc.)fastify-plugin, encapsulation, registration order.$ref.setErrorHandler, httpErrors, and safe error propagation.// Minimal idiomatic server
import Fastify from 'fastify';
const app = Fastify({ logger: true });
app.register(import('./routes/users.js'));
await app.listen({ port: 3000, host: '0.0.0.0' });
// Route with schema
app.post('/users', {
schema: {
body: { $ref: 'CreateUserBody#' },
response: { 201: { $ref: 'User#' } },
},
handler: async (request, reply) => {
const user = await createUser(request.body);
return reply.code(201).send(user);
},
});