Fastify Rest Api
БесплатноБез исполняемых скриптовНе проверенFastify is a high-performance Node.js web framework focused on speed and low overhead, featuring built-in schema validation and serialization, enabling…
от diegosouzapw★ 68 звёзд на GitHubОб этом скилле
Fastify Rest Api
Skill Profile
(Select at least one profile to enable specific modules)
- DevOps
- Backend
- Frontend
- AI-RAG
- Security Critical
Overview
Fastify is a high-performance Node.js web framework focused on speed and low overhead, featuring built-in schema validation and serialization, enabling developers to create production-ready APIs quickly.
Fastify consists of:
- High Performance: 2x faster than Express
- JSON Schema Validation: Built-in validation with JSON Schema
- Fast Serialization: Optimized JSON serialization
- TypeScript Support: First-class TypeScript support
- Plugin System: Extensible plugin architecture
- Low Overhead: Minimal request overhead
Why This Matters
- Enhance Performance: Fastify can enhance API performance by 2-3x
- Reduce Infrastructure Cost: Higher throughput reduces infrastructure cost
- Increase Developer Experience: Built-in validation and serialization improve DX
- Reduce Bugs: Type-safe validation reduces bugs
- Improve Scalability: High-performance framework improves scalability
Core Concepts & Rules
1. Core Principles
- Follow established patterns and conventions
- Maintain consistency across codebase
- Document decisions and trade-offs
2. Implementation Guidelines
- Start with the simplest viable solution
- Iterate based on feedback and requirements
- Test thoroughly before deployment
Inputs / Outputs / Contracts
- Inputs:
- API requirements
- JSON schemas
- Plugin requirements
- Authentication requirements
- Entry Conditions:
- Node.js 16+ is available
- Fastify is installed
- TypeScript is configured
- API design is defined
- Outputs:
- Fastify application
- JSON schemas
- Route handlers
- Plugins
- Artifacts Required (Deliverables):
- Application setup
- JSON schemas
- Route definitions
- Plugin implementations
- Hook implementations
- Acceptance Evidence:
- API endpoints work correctly
- Validation is automatic
- Serialization is fast
- Plugins work correctly
- Success Criteria:
- API is functional
- Performance is high
- Validation is robust
- Plugins are modular
Skill Composition
- Depends on: error-handling, validation
- Compatible with: middleware, nodejs-api
- Conflicts with: express-rest (alternative framework)
- Related Skills: api-design, monitoring-observability
Quick Start / Implementation Example
- Review requirements and constraints
- Set up development environment
- Implement core functionality following patterns
- Write tests for critical paths
- Run tests and fix issues
- Document any deviations or decisions
# Example implementation following best practices
def example_function():
# Your implementation here
pass
Assumptions / Constraints / Non-goals
- Assumptions:
- Development environment is properly configured
- Required dependencies are available
- Team has basic understanding of domain
- Constraints:
- Must follow existing codebase conventions
- Time and resource limitations
- Compatibility requirements
- Non-goals:
- This skill does not cover edge cases outside scope
- Not a replacement for formal training
Compatibility & Prerequisites
- Supported Versions:
- Python 3.8+
- Node.js 16+
- Modern browsers (Chrome, Firefox, Safari, Edge)
- Required AI Tools:
- Code editor (VS Code recommended)
- Testing framework appropriate for language
- Version control (Git)
- Dependencies:
- Language-specific package manager
- Build tools
- Testing libraries
- Environment Setup:
.env.examplekeys:API_KEY,DATABASE_URL(no values)
Test Scenario Matrix (QA Strategy)
| Type | Focus Area | Required Scenarios / Mocks |
|---|---|---|
| Unit | Core Logic | Must cover primary logic and at least 3 edge/error cases. Target minimum 80% coverage |
| Integration | DB / API | All external API calls or database connections must be mocked during unit tests |
| E2E | User Journey | Critical user flows to test |
| Performance | Latency / Load | Benchmark requirements |
| Security | Vuln / Auth | SAST/DAST or dependency audit |
| Frontend | UX / A11y | Accessibility checklist (WCAG), Performance Budget (Lighthouse score) |
Technical Guardrails & Security Threat Model
1. Security & Privacy (Threat Model)
- Top Threats: Injection attacks, authentication bypass, data exposure
- Data Handling: Sanitize all user inputs to prevent Injection attacks. Never log raw PII
- Secrets Management: No hardcoded API keys. Use Env Vars/Secrets Manager
- **Au
Установить Fastify Rest Api в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл Fastify Rest Api?
Fastify is a high-performance Node.js web framework focused on speed and low overhead, featuring built-in schema validation and serialization, enabling developers to create production-ready APIs quick
Как установить скилл Fastify Rest Api?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл Fastify Rest Api запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
mcp-builder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
от Anthropicclaude-api
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
от Anthropicalgorithmic-art
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
от Anthropicmcp-integration
This skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…
от Anthropic