dankosik/fastify-backend-skills/fastify-routes
Claude Code and agent skill by dankosik/fastify-backend-skills
- community
Checking that the SKILL.md file is still in the repository.
Use to implement or review Fastify HTTP contracts: request validation, hooks, response serialization, status and errors.
Install
npx vskill@latest install dankosik/fastify-backend-skills/fastify-routesSKILL.md
The same SKILL.md was published earlier as dankosik/fastify-backend-skills/fastify-routes.
Fastify Routes
Contract. Start from accepted input, status, headers, response shape, and failure behavior. Honor the requested outcome and preserve settled choices outside the requested change.
Keep runtime validation and TypeScript inference aligned through the project's existing schema library, compiler, and type provider. A type assertion does not validate a request. Treat compiled schemas as trusted application code; caller-supplied schemas cannot safely enter that compilation path.
Reason about what the validator actually does: coercion, defaults, unknown properties, and absent versus null values affect the contract. Ensure validation covers the content types the parser accepts. Keep database lookups and other business checks after structural validation, outside schema compilation and initial validation.
Return intentional public data and use response schemas where the contract calls for them. Serialization can filter or transform output; it does not replace authorization. Preserve the established error format and appropriate status; conceal internal exception details.
Choose hooks by when their inputs exist and what remains changeable. Keep one owner for sending the response. Use the scoped error handler for translation; onError observes failures and cannot send a replacement response.
For review, identify the route or hook, triggering request and resulting contract violation without editing. Check the actual scoped schema and error path before treating a handler-only concern as an HTTP defect. When changing route behavior, exercise it through Fastify, normally with injection, including the meaningful invalid-input or failure case. Observe the changed serialization or application effect; a direct handler call cannot prove validation, serialization, or hooks. Use real transport only for transport-dependent claims and report unverified boundaries without expanding to a whole-application audit.
Security
- Security scanPassed, 95 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/fastify-routes/SKILL.md
Popularity
- 7-day trend score
- 0
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
[](https://verified-skill.com/skills/dankosik/fastify-backend-skills/fastify-routes)