dankosik/fastify-backend-skills/typescript-design
Claude Code and agent skill by dankosik/fastify-backend-skills
- community
Checking that the SKILL.md file is still in the repository.
Use when deciding or reviewing TypeScript backend responsibilities, domain boundaries, or abstractions for a concrete change.
Install
npx vskill@latest install dankosik/fastify-backend-skills/typescript-designSKILL.md
The same SKILL.md was published earlier as dankosik/fastify-backend-skills/typescript-design.
TypeScript Design
Cohesion. Give a business decision one natural home and keep the knowledge its callers need small. Honor the requested outcome and preserve settled choices outside the requested change.
Trace the behavior through the existing implementation before introducing a pattern. Place invariants where every relevant caller encounters them. Separate pure decisions from effects when that makes the operation clearer, while preserving the actual transaction and resource boundaries.
Choose functions, object values, classes, and factories for the responsibility they express. A service does not need an interface/class pair merely because it has dependencies. Fastify plugin composition can provide an existing construction boundary; another dependency-injection layer needs a concrete benefit.
Evaluate an abstraction through its callers. Keep it when it hides meaningful policy, variation, or lifecycle ownership. Collapse it when it forwards the same knowledge through another layer. Prefer domain vocabulary over generic repositories, handler factories, or type machinery that obscures a simple operation.
Keep public contracts deliberate. Structural compatibility does not make two domain values interchangeable, and a shared shape does not make two operations share semantics. Preserve meaningful distinctions without branding or wrapping every value by habit.
For analysis or review, separate unmet requirements from design tradeoffs. Tie a responsibility concern to concrete callers or an invariant; a named code smell alone is not a defect. Explain the smallest justified change without editing files, and do not invent findings to fill a review. For requested refactoring, compare returned data, mutation, failure behavior, asynchronous ordering, and effects. Finish when the changed responsibility is clearer, retained boundaries earn their cost, and focused checks preserve the affected behavior. Report actual verification rather than extending the task to redesign adjacent modules.
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/typescript-design/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/typescript-design)