Skip to content
Skill

TypeScript

Applies TypeScript and React coding conventions when writing or reviewing TSX code

TypeScript is an open-source agent skill for developer tools. It is available on Claude Code.

Scripts
None
Platforms
Claude Code
GitHub stars
31
Last commit
License
MIT
Listing updated

Similar skills

About TypeScript

This skill gives the agent a set of TypeScript conventions to follow when editing or reviewing TypeScript and TSX code. It covers preferences for type declarations, such as favoring type aliases over interfaces, using discriminated unions and string literal unions, and strict-mode type safety with type guards and unknown instead of any. It also sets naming rules for files, types, variables, constants and booleans.

For React work, the guidance covers functional components, hook usage with SWR for server data and react-hook-form for forms, custom hooks, and Next.js App Router patterns such as defaulting to server components. Error handling, async style and import conventions are included, along with common styling approaches for Chakra UI and Vanilla Extract.

The skill is guidance only: it ships no scripts or reference files, and it states that project-specific conventions such as a CLAUDE.md or style guide take priority over its defaults.

When your agent uses it

This skill should be used when writing or reviewing TypeScript or TSX code, or when the project uses "TypeScript", "React", "tsx", "SWR", "Vite", "Next.js", or TypeScript type patterns. Provides TypeScript coding conventions, React patterns, and best practices. Project-specific conventions always take priority.

From the skill's SKILL.md. Your agent reads this description to decide when to load the skill.

What it can access

From a static check of its 1 file (4 KB) on GitHub on 4 December 2026. Nothing was run. Read the files before you install a skill: it can tell your agent to run anything its tools allow.

Check another skill before you install it.

Install

This skill ships in the sorah-guides plugin. In Claude Code, add the marketplace and install the plugin (it may include other skills too):

/plugin marketplace add sorah/config
/plugin install sorah-guides@sorah-marketplace

Or copy only this skill to ~/.claude/skills/typescript:

tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/sorah/config.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/typescript &&
cp -R "$tmp/claude/marketplace/plugins/sorah-guides/skills/typescript" ~/.claude/skills/typescript &&
rm -rf "$tmp"

For one project only, put the folder in .claude/skills/typescript inside it instead.

Claude Code docs on skills

Copy the skill folder to ~/.agents/skills/typescript to use it in every repository:

tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/sorah/config.git "$tmp" &&
mkdir -p ~/.agents/skills &&
rm -rf ~/.agents/skills/typescript &&
cp -R "$tmp/claude/marketplace/plugins/sorah-guides/skills/typescript" ~/.agents/skills/typescript &&
rm -rf "$tmp"

For one repository only, put the folder in .agents/skills/typescript inside it instead.

Codex docs on skills

Copy the skill folder to ~/.cursor/skills/typescript to use it in every project:

tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/sorah/config.git "$tmp" &&
mkdir -p ~/.cursor/skills &&
rm -rf ~/.cursor/skills/typescript &&
cp -R "$tmp/claude/marketplace/plugins/sorah-guides/skills/typescript" ~/.cursor/skills/typescript &&
rm -rf "$tmp"

For one project only, put the folder in .cursor/skills/typescript inside it instead.

Cursor docs on skills

Run in a terminal (add --scope workspace to install it for the current workspace only):

gemini skills install https://github.com/sorah/config.git --path claude/marketplace/plugins/sorah-guides/skills/typescript

Or copy the folder to ~/.gemini/skills/typescript yourself.

Gemini CLI docs on skills

For GitHub Copilot in VS Code, copy the skill folder to ~/.copilot/skills/typescript:

tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/sorah/config.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/typescript &&
cp -R "$tmp/claude/marketplace/plugins/sorah-guides/skills/typescript" ~/.copilot/skills/typescript &&
rm -rf "$tmp"

For one project only, put the folder in .github/skills/typescript inside it instead.

VS Code docs on skills

Get the folder:

git clone --depth 1 https://github.com/sorah/config.git

Then copy config/claude/marketplace/plugins/sorah-guides/skills/typescript into your agent's skills folder as typescript. Agents that support SKILL.md read one folder per skill.

The SKILL.md format

What it does

Type definition rules
Guidance on choosing type aliases, discriminated unions and string literal unions over enums.
Strict type safety
Advice on strict mode, type guard functions, unknown over any, and type-only imports.
Naming conventions
Rules for naming files, types, variables, constants and boolean values.
React component patterns
Functional components, named exports, and server versus client component choices in Next.js.
Data fetching and hooks
Preferred use of SWR, react-hook-form, useState, Context and custom hooks.
Error handling guidance
Discriminated union results for API responses, custom error classes and route-level error boundaries.

Good for

  • Review a TSX component for type safety and naming issues
  • Refactor interfaces into type aliases in a TypeScript module
  • Add SWR data fetching to a React page
  • Write a type guard for a union of string values
  • Structure a Next.js App Router page with server and client components

TypeScript FAQ

Does TypeScript run any scripts or tools?

No. It ships only a SKILL.md file with no scripts, and no tools are restricted or listed.

What happens when a project has its own coding rules?

The skill states that project-specific conventions such as CLAUDE.md or style guides always take priority over its guidance.

When does the skill get used?

It is meant for writing or reviewing TypeScript or TSX code, or when a project uses TypeScript, React, SWR, Vite, Next.js or TypeScript type patterns.

How do I install TypeScript in Claude Code?

Copy the skill folder from GitHub to ~/.claude/skills/typescript to use it in all your projects, or to .claude/skills/typescript in one project. Or install the sorah-guides plugin, which includes it: /plugin marketplace add sorah/config, then /plugin install sorah-guides@sorah-marketplace.

Does TypeScript run scripts?

No. It is instructions only, with no scripts. This comes from a static check of the files on GitHub; nothing was run. Read the files before you install it.

Which AI agents can use TypeScript?

Claude Code. It reads skills in the SKILL.md format; the install steps on this page show where to put the folder.

What are the best alternatives to TypeScript?

The closest alternatives to TypeScript are Marco code style, TypeScript best practices, Coding standards, Coding standards and Coding standards.

Where this comes from

  • Description: from the skill's own SKILL.md.

More from sorah/config

  1. Guides an agent through maintaining sorah's aptly-managed APT repositories and their

    • Open source
    • 31 GitHub stars
    • Cloud and infrastructure
  2. Runs a chief-of-staff session that watches your coding agents and keeps work on track

    • Open source
    • 31 GitHub stars
    • Developer tools
  3. Applies language-agnostic coding conventions to code writing and review

    • Open source
    • 31 GitHub stars
    • Developer tools
  4. Guides the agent to write git commit messages and PR titles in a concise house style

    • Open source
    • 31 GitHub stars
    • Developer tools
  5. Guides an agent through building and testing Rails apps on Aurora DSQL

    • Open source
    • 31 GitHub stars
    • Developer tools
  6. Writes English text in the author's terse, direct technical voice for GitHub and email

    • Open source
    • 31 GitHub stars
    • Developer tools