🛡️
QualityTypeScript

TypeScript Best Practices

by rohitg00

TypeScript Best Practices is a Quality skill for Claude Code, published by rohitg00 in skillkit.

1.5K stars137 forkson rohitg00/skillkitAdded 2026/08/19+1% in starsRepository updated 2026/06/02
agent-skillsagentskillsaiclicodexcursorgeminiopencodeskills
Install in seconds
Install TypeScript Best Practices
Copy TypeScript Best Practices into your Claude Code skills folder. Run the command in your terminal, or review the source on GitHub before installing.
terminal
npx degit https://github.com/rohitg00/skillkit/tree/main/packages/core/src/eval/__tests__/fixtures/good-skill ~/.claude/skills/good-skill

Requires Node.js. Downloads this skill only — not the rest of the repository — into your Claude Code skills folder.

Without Node.js

git clone https://github.com/rohitg00/skillkit.git

Clones the whole repository, then copy the skill’s own directory into your skills folder yourself.

In this catalog

Source file
packages/core/src/eval/__tests__/fixtures/good-skill/SKILL.md in rohitg00/skillkit
Installs to
~/.claude/skills/good-skill
Collection
One of 17 skills cataloged from this repository
Category
Quality1354 skills

What TypeScript Best Practices does

TypeScript Best Practices enforces modern TypeScript patterns and best practices when writing new code, reviewing pull requests, or refactoring JavaScript to TypeScript. It ensures const usage, explicit return types, interface preference, and avoidance of any, var, and @ts-ignore.

TypeScript Best Practices is cataloged under Quality on DirSkills. TypeScript Best Practices comes from a repository tagged agent-skills, agentskills, ai, cli and codex.

Documentation

README

TypeScript Best Practices

When to Use

Use this skill when:

  • Writing new TypeScript code
  • Reviewing TypeScript pull requests
  • Refactoring JavaScript to TypeScript

Triggers

Activated when editing .ts or .tsx files in the project.

Rules

Always

  • Always use const for variables that won't be reassigned
  • Always use explicit return types on exported functions
  • Always prefer interface over type for object shapes

Never

  • Never use any — use unknown instead
  • Never use var — use const or let
  • Never ignore TypeScript errors with @ts-ignore

Examples

// Good: explicit return type
export function calculateTotal(items: Item[]): number {
  return items.reduce((sum, item) => sum + item.price, 0);
}

This is the opening of the README. Read the full README on GitHub.

Frequently asked about TypeScript Best Practices

  • What else does rohitg00 publish alongside TypeScript Best Practices?

    TypeScript Best Practices is one of 17 skills that DirSkills catalogs from rohitg00/skillkit, the repository it ships in. Its siblings there include Design First, Eval Injection Test and Find Skills. Each one is a separate skill with its own page in this directory, installs the same way TypeScript Best Practices does, and is maintained by rohitg00 in that same repository. The rest of the collection is listed on the rohitg00/skillkit page.

  • How does TypeScript Best Practices compare to other Quality skills?

    TypeScript Best Practices ranks #670 by stars among the 1354 Quality skills in this catalog. The most-starred ones next to it are Benchmark, Benchmark Optimization Loop and API Design Patterns. DirSkills ranks by the star count of the repository each skill ships in, so that order reflects how popular those repositories are rather than any review of TypeScript Best Practices against them. Open each page to compare what they document and how they install.

More from rohitg00/skillkit

TypeScript Best Practices is one of 17 skills cataloged on DirSkills from rohitg00/skillkit.

See all 17 skills
📐
2w ago

Design First

Design First guides creation of technical design documents before coding, producing architecture diagrams, data models, API definitions, implementation plans, and trade-off analyses. Use when planning a feature, architecting a system, or designing an API.
Quality
1.5K137
🧪
2w ago

Eval Injection Test

Eval Injection Test contains eval patterns and hidden instructions for testing whether an agent will execute injected code. Use it in a controlled environment to evaluate skill security.
Quality
1.5K137
🔍
2w ago

Find Skills

Find Skills discovers, searches, and installs skills from multiple AI agent skill marketplaces using the SkillKit CLI. Use it when the user wants to find, browse, or install new agent skills, plugins, extensions, or add-ons for areas like React, testing, DevOps, security, or APIs.
AI Engineering
1.5K137
🤝
2w ago

General Assistant

General Assistant helps agents perform helpful tasks and assist users across various requests. Use it as a general-purpose skill when no specific skill matches the task.
AI Engineering
1.5K137
📋
2w ago

Handoff Protocols

Handoff Protocols creates structured handoff documents that summarize project status, key decisions, blockers, open questions, and next steps for planned or unplanned work transitions between people or agents.
Writing
1.5K137
🧪
2w ago

Hypothesis-Driven Debugging

Hypothesis-Driven Debugging applies the scientific method to debugging by helping users form specific, testable hypotheses, design targeted experiments, and systematically confirm or reject theories to find root causes when debugging errors or troubleshooting bugs.
Quality
1.5K137