dankosik/fastify-backend-skills/typescript-idiomatic

Claude Code and agent skill by dankosik/fastify-backend-skills

Trust tier 3
  • community
Source check pending

Checking that the SKILL.md file is still in the repository.

Use for TypeScript representation, type-contract, or transformation decisions where runtime semantics or readability need attention.

Install

npx vskill@latest install dankosik/fastify-backend-skills/typescript-idiomatic

SKILL.md

The same SKILL.md was published earlier as dankosik/fastify-backend-skills/typescript-idiomatic.

TypeScript Idiomatic

Contracts. Make runtime values and static types agree. Identify caller-visible absence, identity, mutation, ordering, effects, and failures. Follow repository conventions. Honor the requested outcome and preserve settled choices outside the requested change.

Treat untrusted values as unknown until the existing boundary validates or narrows them. Types disappear at runtime; an assertion, generic argument, or non-null assertion cannot establish a fact. Keep schema-derived types aligned with the schema instead of maintaining competing descriptions.

Prefer inference for local expressions and explicit contracts where they clarify a public boundary. Use discriminated unions for real alternatives and exhaustive handling where the alternatives are closed. Let generics preserve a meaningful relationship; remove parameters that merely decorate a function. Use satisfies to check conformance while retaining useful inference, not as runtime validation.

Reuse. Prefer existing runtime, Fastify, or library operations over handwritten utility logic when their semantics match. Keep wrappers only for domain meaning or adaptation. Use ordinary functions and objects for application logic; classes should own state or invariants. Keep effects and branching readable.

Preserve distinctions between missing, undefined, null, and valid falsy values. Readonly types express access restrictions, not deep immutability. Check aliasing and shallow copies before promising independence.

For review, locate the affected expression, show an input or caller condition that violates the contract, and check relevant narrowing or guards before reporting a defect. Distinguish a preference from a bug; no findings is a valid result. Explain the smallest justified change without editing files. For implementation, verify the affected runtime or type contract with focused checks that would fail for a plausible violation; preserve required project checks and report actual results.

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

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
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/dankosik/fastify-backend-skills/typescript-idiomatic/badge)](https://verified-skill.com/skills/dankosik/fastify-backend-skills/typescript-idiomatic)

Something wrong with this skill or its page? Tell us.