antifragiletech/antifragile-claude-code/add-typescript-best-practices

Claude Code and agent skill by antifragiletech/antifragile-claude-code

Trust tier 3
  • community
Source check pending

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

Setup TypeScript best practices and code style rules in CLAUDE.md

Install

npx vskill@latest install antifragiletech/antifragile-claude-code/add-typescript-best-practices

SKILL.md

The same SKILL.md was published earlier as gabrielmoreira/agent-skills-mirror/add-typescript-best-practices.

Setup TypeScript Best Practices

Create or update CLAUDE.md in with following content, <critical>write it strictly as it is<critical>, do not summaraise or introduce and new additional information:

markdown
## Code Style Rules
### General Principles
-**TypeScript**: All code must be strictly typed, leverage TypeScript's type safety features
### Code style rules
-Interfaces over types - use interfaces for object types
-Use enum for constant values, prefer them over string literals
-Export all types by default
-Use type guards instead of type assertions
### Best Practices
#### Library-First Approach
-Common areas where libraries should be preferred:
-Date/time manipulation → date-fns, dayjs
-Form validation → joi, yup, zod
-HTTP requests → axios, got
-State management → Redux, MobX, Zustand
-Utility functions → lodash, ramda
#### Code Quality
-Use destructuring of objects where possible:
-Instead of `const name = user.name` use `const { name } = user`
-Instead of `const result = await getUser(userId)` use `const { data: user } = await getUser(userId)`
-Instead of `const parseData = (data) => data.name` use `const parseData = ({ name }) => name`
-Use `ms` package for time related configuration and environment variables, instead of multiplying numbers by 1000

Security

  • Security scanPassed, 90 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
5

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/antifragiletech/antifragile-claude-code/add-typescript-best-practices/badge)](https://verified-skill.com/skills/antifragiletech/antifragile-claude-code/add-typescript-best-practices)

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