Prefer const for values that are never reassigned.
Use interface for public object shapes, type for unions and primitives.
Never use any in public function signatures; use unknown and narrow.
Avoid default exports in library code.
Use import type { Foo } from 'bar' for type-only imports.
1---2name: typescript-style3description: TypeScript Style4---5# TypeScript Style67- Prefer `const` for values that are never reassigned.8- Use `interface` for public object shapes, `type` for unions and primitives.9- Never use `any` in public function signatures; use `unknown` and narrow.10- Avoid default exports in library code.11- Use `import type { Foo } from 'bar'` for type-only imports.
Run npx skillmds@latest add itaywol/typescript-style in your terminal (requires Node.js), paste this page's agent-chat prompt into Claude, Cursor, or any MCP-connected agent, or download the SKILL.md file and copy it into your agent's skills directory.
TypeScript Style It is listed under Coding & Dev Tools on SkillMD.
This skill has not completed SkillMD's automated safety review yet. SkillMD never runs a skill's scripts for you; review the SKILL.md before installing.
This skill is tagged as working with Claude Code, Claude.ai, OpenAI Codex. SKILL.md is an open format, so most agents that read a skills directory can load it too.
Yes. Installing skills from SkillMD is free, and the skill stays under its author's original license.
itaywol (@itaywol) published this skill. Their other Agent Skills are listed on their SkillMD profile.