AI студия Владимира Ломтева
УСЛУГИПРОЕКТЫСТАТЬИБАЗА ЗНАНИЙМаркетплейсПолезные сервисы

Оставьте заявку,
чтобы обсудить проект

Напишите ваш вопрос, не забудьте указать телефон. Мы перезвоним и все расскажем.

Контакты

Москва

Работаем по всей России
и миру (онлайн)

+7 (999) 760-24-41

Ежедневно с 9:00 до 21:00

lamooof@gmail.com

По вопросам сотрудничества

TelegramWhatsApp

Есть предложение?

Напишите нам в мессенджеры

© 2025 AI студия Владимира Ломтева

Политика конфиденциальностиСогласие на обработку ПДн|ИНН 623412173261
    Fastify Best Practices — Скилл для ИИ-агентов | AI Рассвет

    Fastify Best Practices

    Guides development of Fastify Node.js backend servers and REST APIs using TypeScript or JavaScript. Use when building, configuring, or debugging a Fastify application — including defining routes, implementing plugins, setting up JSON Schema validation, handling errors, optimising performance, managing authentication, configuring CORS and security headers, integrating databases, working with WebSockets, and deploying to production. Covers the full Fastify request lifecycle (hooks, serialization, logging with Pino) and TypeScript integration via strip types. Trigger terms: Fastify, Node.js server, REST API, API routes, backend framework, fastify.config, server.ts, app.ts.

    Скиллы для разработки#GitHub#mcollina/skills#skills.sh
    Скачивания
    0
    В избранном
    0
    Комментарии
    0
    Просмотры
    1

    Установить скилл

    Добавьте инструмент одной командой или скачайте проверенный архив версии.

    npx skills add mcollina/skills --skill fastify-best-practices
    Скачать ZIP
    Версия
    1.0.0+856efd268ae8
    Автор
    Владимир Ломтев
    Репозиторий
    mcollina/skills
    GitHub: mcollina/skills

    Как установить

    1. 1Скопируйте команду из блока установки.
    2. 2Запустите её в терминале из каталога проекта.

    Документация

    When to use

    Use this skill when you need to:

    • Develop backend applications using Fastify
    • Implement Fastify plugins and route handlers
    • Get guidance on Fastify architecture and patterns
    • Use TypeScript with Fastify (strip types)
    • Implement testing with Fastify's inject method
    • Configure validation, serialization, and error handling

    Quick Start

    A minimal, runnable Fastify server to get started immediately:

    import Fastify from 'fastify'
    
    const app = Fastify({ logger: true })
    
    app.get('/health', async (request, reply) => {
      return { status: 'ok' }
    })
    
    const start = async () => {
      await app.listen({ port: 3000, host: '0.0.0.0' })
    }
    start()
    

    Recommended Reading Order for Common Scenarios

    • New to Fastify? Start with plugins.md → routes.md → schemas.md
    • Adding authentication: plugins.md → hooks.md → authentication.md
    • Improving performance: schemas.md → serialization.md → performance.md
    • Setting up testing: routes.md → testing.md
    • Going to production: logging.md → configuration.md → deployment.md

    How to use

    Read individual rule files for detailed explanations and code examples:

    • rules/plugins.md - Plugin development and encapsulation
    • rules/routes.md - Route organization and handlers
    • rules/schemas.md - JSON Schema validation
    • rules/error-handling.md - Error handling patterns
    • rules/hooks.md - Hooks and request lifecycle
    • rules/authentication.md - Authentication and authorization
    • rules/testing.md - Testing with inject()
    • rules/performance.md - Performance optimization
    • rules/logging.md - Logging with Pino
    • rules/typescript.md - TypeScript integration
    • rules/decorators.md - Decorators and extensions
    • rules/content-type.md - Content type parsing
    • rules/serialization.md - Response serialization
    • rules/cors-security.md - CORS and security headers
    • rules/websockets.md - WebSocket support
    • rules/database.md - Database integration patterns
    • rules/configuration.md - Application configuration
    • rules/deployment.md - Production deployment
    • rules/http-proxy.md - HTTP proxying and reply.from()

    Core Principles

    • Encapsulation: Fastify's plugin system provides automatic encapsulation
    • Schema-first: Define schemas for validation and serialization
    • Performance: Fastify is optimized for speed; use its features correctly
    • Async/await: All handlers and hooks support async functions
    • Minimal dependencies: Prefer Fastify's built-in features and official plugins

    Требования и возможности

    Источник пакета
    https://github.com/mcollina/skills/tree/856efd268ae85482d882f3d0bed869fd020b5c06/skills/fastify

    Файлы версии

    ПутьРазмерSHA256
    SKILL.md3775d1d90340de01fe4b...
    rules/authentication.md135913820b452deca8bd4...
    rules/configuration.md5464f045835db75309c6...
    rules/content-type.md901146c40b5a40c4aebf...
    rules/cors-security.md97103599c3583fefb934...

    Частые вопросы

    Как установить Fastify Best Practices?
    Используйте команду npx skills add mcollina/skills --skill fastify-best-practices или скачайте ZIP-архив.
    Можно ли скачать Fastify Best Practices бесплатно?
    Да, опубликованную версию можно скачать из маркетплейса бесплатно.

    Похожие инструменты

    Смотреть все
    React DoctorUse when finishing a feature, fixing a bug, before committing React code, or when the user types `/doctor`, asks to scan, triage, or clean up React diagnostics. Covers lint, accessibility, bundle size, architecture. Includes a regression check and a full local-triage workflow that fetches the canonical playbook.Argent Android Emulator SetupSet up and connect to an Android emulator using argent MCP tools. Use when starting a new session on Android, booting an emulator, getting a device serial, or before any UI interaction task.Fireworks Tech GraphCreate technical diagrams such as software architecture, data flow, flowcharts, sequence diagrams, C4 reviews, cloud deployments, event streams, observability investigations, agent/memory systems, UML, ER, network topology, timelines, and technical concept maps, then export SVG, PNG, focused semantic SVG-to-GIF motion, or offline interactive HTML. Treat direct requests such as "Generate a GIF", "生成 GIF", or "制作 GIF" as motion requests, and use this skill when the user asks to visualize a system or engineering concept. Do not use for photos, raster artwork, or quantitative data charts.
    Комментарии

    Войдите, чтобы оставить комментарий.

    Комментариев пока нет.

    Установить скилл

    Добавьте инструмент одной командой или скачайте проверенный архив версии.

    npx skills add mcollina/skills --skill fastify-best-practices
    Скачать ZIP
    Версия
    1.0.0+856efd268ae8
    Автор
    Владимир Ломтев
    Репозиторий
    mcollina/skills
    GitHub: mcollina/skills
    Modern Web GuidanceSearch tool for modern web development best practices. MANDATORY: Execute FIRST for all HTML/CSS and clientside JS tasks. Do NOT skip — web APIs evolve rapidly and training weights contain obsolete patterns.