Agent skill

Typescript Helper

by shepherdjerred in shepherdjerred/monorepo

Current TypeScript configuration, migration, module, runtime, typing, and tooling guidance.

GPL-3.0Auto-check passedDevelopment

Install Typescript Helper

skills CLI
$ npx skills add shepherdjerred/monorepo --skill typescript-helper -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install shepherdjerred/monorepo typescript-helper --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/shepherdjerred/monorepo.git skills-src && mkdir -p .claude/skills && cp -r skills-src/packages/dotfiles/dot_agents/skills/typescript-helper .claude/skills/typescript-helper && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
typescript-helper
GitHub stars
112
Token cost
~2.5k tokens
SKILL.md length
1,012 words
Files
6 (incl. references)
Skills in repo
63
Repo updated
First seen
Licence
GPL-3.0

At a glance

Current TypeScript configuration, migration, module, runtime, typing, and tooling guidance.

  • Reviewing TypeScript
  • SKILL.md covers Current status, Project-safe commands, Model the runtime and Strict baseline, plus 7 more sections
  • Calls tsc and bunx
  • Selecting tsconfig settings

What it does

Typescript Helper is an agent skill from shepherdjerred/monorepo. Current TypeScript configuration, migration, module, runtime, typing, and tooling guidance. Use when writing or reviewing TypeScript, selecting tsconfig settings, migrating TypeScript versions, resolving module/runtime mismatches, or designing safe typed boundaries.

Its SKILL.md is about 2.5k tokens, which your agent loads only when the skill is triggered. The skill folder holds 6 other files, including reference files (for example `references/configuration.md`, `references/modules-and-runtimes.md` and `references/releases-and-migration.md`).

It sits in Development. It works with TypeScript. The repository describes itself as: Monorepo for all of my projects. The licence is GPL-3.0.

When your agent uses it

  • Reviewing TypeScript
  • Selecting tsconfig settings
  • Migrating TypeScript versions
  • Resolving module/runtime mismatches

Example prompts

  • “/typescript-helper”

What it can do on your machine

Read from SKILL.md and the folder at commit da14ae9. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Shell commands in SKILL.md call:

    • tsc
    • bunx

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md. Its commands use bunx, which can reach the network depending on how they are called.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Typescript Helper loads about 2.5k tokens when it runs, and up to ~6.2k if it reads all its reference files. Until then it costs about 71 tokens; SKILL.md has 1,012 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~71
When it runs · the whole SKILL.md, loaded when a task matches
~2.5k
With references · SKILL.md plus every file in references/, read only if the agent opens them
~6.2k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from shepherdjerred/monorepo at commit da14ae9, republished under its GPL-3.0 licence (© shepherdjerred). 1,012 words, ~2,469 tokens.

Download SKILL.mdSave it as .claude/skills/typescript-helper/SKILL.md (or your agent's skills folder). This skill also uses 5 other files; get the full folder from GitHub.
name
typescript-helper
description
Current TypeScript configuration, migration, module, runtime, typing, and tooling guidance. Use when writing or reviewing TypeScript, selecting tsconfig settings, migrating TypeScript versions, resolving module/runtime mismatches, or designing safe typed boundaries.

TypeScript Helper

Use TypeScript to make program contracts explicit, then validate data where static types end. Choose compiler and module settings from the actual runtime or bundler instead of applying one universal configuration.

Current status

Verified 2026-08-03.

LineStatusImportant boundary
TypeScript 7.0Current stable native compiler and language serverNo programmatic API in 7.0; tools that import or embed TypeScript may still require 6.x
TypeScript 6.xJavaScript-codebase compatibility bridgeUse it to expose migration issues and stabilize type ordering before 7.0
typescript@nextNightly buildsPreview only; do not silently use it in production

TypeScript reports typical 8–12x full-build improvements for the native 7.0 compiler. Treat that as an official benchmark range, not a universal guarantee. The experimental --checkers and --builders controls trade memory for concurrency; do not make them default without measuring the project.

Always inspect the selected toolchain. A bare tsc on PATH can resolve to the 6.x compatibility bridge even when a package also has the native compiler installed; run from the package that declares @typescript/native, then use the explicit native-compiler path when both are present. This matters with isolated workspace linkers because the repository root may not own the package's compiler dependency. This monorepo's scripts/checks/compliance-check.ts enforces the same PATH=node_modules/@typescript/native/bin:$PATH tsc form:

bash
cd packages/<package-that-declares-typescript-native>
PATH=node_modules/@typescript/native/bin:$PATH tsc --version
PATH=node_modules/@typescript/native/bin:$PATH tsc --showConfig

Read references/releases-and-migration.md before a TypeScript 6 or 7 upgrade. Read references/configuration.md when creating or reviewing a tsconfig. Read references/modules-and-runtimes.md for Node, Bun, bundler, ESM, and CommonJS decisions. Read references/type-safety.md for narrowing, generics, validation, and exhaustiveness. Read references/tooling.md for ESLint and execution tooling.

Project-safe commands

Type-check through the project configuration or build graph:

bash
cd packages/<package-that-declares-typescript-native>
PATH=node_modules/@typescript/native/bin:$PATH tsc -p tsconfig.json --noEmit
PATH=node_modules/@typescript/native/bin:$PATH tsc -b

Passing source filenames to tsc bypasses project configuration historically. TypeScript 7 errors when a config is present unless that bypass is made explicit with --ignoreConfig. Do not use tsc file.ts as the normal project check.

In this monorepo, prefer its focused Turbo task over invoking a different compiler configuration:

bash
bunx turbo run typecheck --filter=<package>

Model the runtime

HostCompiler modelExecution boundary
Modern Nodemodule: "nodenext"Node's built-in TypeScript ignores tsconfig and directly runs only erasable syntax
Node 20 contractmodule: "node20"Fixed Node 20 behavior; use only when deliberately targeting it
Bundler or Bun applicationmodule: "preserve" or "esnext", moduleResolution: "bundler"The runtime/bundler resolves and transforms modules; type-check separately
Multi-project libraryProject references and tsc -bReferenced projects require composite

Do not rank Node, Bun, tsx, or ts-node as universally fastest. Select based on runtime semantics, transformation support, type-checking needs, and repository conventions.

Strict baseline

Start with strict; add checks that reflect the project's boundary and indexing risks. The exact set enabled by strict can grow between releases.

json
{
  "compilerOptions": {
    "strict": true,
    "noUncheckedIndexedAccess": true,
    "exactOptionalPropertyTypes": true,
    "noUncheckedSideEffectImports": true,
    "types": []
  }
}
  • noUncheckedIndexedAccess adds undefined to undeclared index-signature lookups.
  • exactOptionalPropertyTypes distinguishes absence from a present undefined value.
  • An explicit types list prevents accidental global-type inclusion and is required during the TypeScript 7 migration because 7.0 defaults it to [].
  • skipLibCheck is a deliberate compatibility and performance trade-off, not a correctness baseline. Do not use it to hide an upgrade failure.

Validate external data

Static annotations do not validate JSON, environment variables, HTTP bodies, database rows, cache values, or deserialized files. Keep these values unknown until parsed.

typescript
import { z } from "zod";

const User = z.object({
  id: z.string().uuid(),
  email: z.string().email(),
});

type User = z.infer<typeof User>;

async function fetchUser(id: string): Promise<User> {
  const response = await fetch(`/api/users/${encodeURIComponent(id)}`);
  if (!response.ok) {
    throw new Error(`User request failed: ${response.status}`);
  }
  return User.parse(await response.json());
}

Do not assign response.json() directly to a domain type. Do not use a type assertion to manufacture a branded ID; validate and construct it through a schema or omit the brand.

Narrow instead of asserting

Use control-flow checks, discriminants, typeof, instanceof, Array.isArray, property checks, or a runtime schema. Avoid non-null assertions and unchecked casts.

typescript
type State =
  | { kind: "idle" }
  | { kind: "loading" }
  | { kind: "loaded"; count: number }
  | { kind: "failed"; message: string };

function describe(state: State): string {
  switch (state.kind) {
    case "idle":
      return "Idle";
    case "loading":
      return "Loading";
    case "loaded":
      return `${state.count} records`;
    case "failed":
      return state.message;
    default:
      return assertNever(state);
  }
}

function assertNever(value: never): never {
  throw new Error(`Unhandled state: ${JSON.stringify(value)}`);
}

A reducer that returns the old state from a default branch hides newly added actions. Exhaustive never handling makes the missing case fail during checking.

Show full SKILL.md (429 more words)Show less

Type design

  • Let inference handle obvious local values and return types when the public contract remains clear.
  • Use generics when a type parameter relates two or more values; do not introduce a type parameter used only once.
  • Prefer unknown to any at an untyped boundary, then narrow it.
  • readonly blocks reassignment during checking; it is not deep runtime immutability.
  • Interfaces and type aliases overlap. Use interfaces when declaration merging or reopenable object contracts are desired; use aliases for unions, primitives, tuples, and type composition.
  • Optional callback parameters mean the callback may be invoked without that argument. They do not mean the consumer may ignore a required argument.
  • Use primitive string, number, and boolean types, not boxed String, Number, and Boolean.

Modules and imports

module and moduleResolution jointly model emitted syntax and how the host resolves imports. node10 and classic resolution are obsolete for new projects.

Use import type and export type when an import exists only for types. With verbatimModuleSyntax, value imports remain and explicit type-only imports are erased.

rewriteRelativeImportExtensions rewrites only static relative .ts, .tsx, .mts, and .cts specifiers. It does not resolve path aliases, package imports or exports, dependency specifiers, or computed dynamic imports. Keep it distinct from allowImportingTsExtensions.

Migration discipline

Do not mass-rename a JavaScript tree. Official migration guidance starts with allowJs and a separate output directory, then tightens checks and converts modules incrementally. Rename imports and configuration deliberately, exclude generated or vendor code by design, and verify each package through its real build graph.

For TypeScript 6 → 7, first make the project clean on 6.x with stableTypeOrdering, then address the removed and changed options listed in references/releases-and-migration.md. Confirm whether framework tooling embeds the TypeScript programmatic API before selecting 7.0.

Tooling

Current typescript-eslint setup uses flat eslint.config.mjs. Typed linting uses type-aware configurations and parserOptions.projectService: true. Keep the project compiler check separate from runtime execution: Node or Bun running a .ts file does not prove it type-checks.

Do not duplicate a generic Vite, Webpack, test-runner, or framework setup in this skill. Load the matching tool skill and use its current official configuration.

Review checklist

  • Confirm the installed TypeScript version and whether consumers need its programmatic API.
  • Invoke the project config or build graph, not a source-file bypass.
  • Match module settings to Node, Bun, or the actual bundler.
  • Validate every external value before assigning a domain type.
  • Replace assertions and non-null promises with narrowing or schemas.
  • Make discriminated unions exhaustive.
  • Use strict checks intentionally and do not hide dependency errors with skipLibCheck.
  • Keep runtime execution, transpilation, and type-checking as separate claims.
  • Read migration notes for every version crossed.

© shepherdjerred, GPL-3.0. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 5 other files (references) in packages/dotfiles/dot_agents/skills/typescript-helper of shepherdjerred/monorepo.

  • SKILL.md
  • references/configuration.md
  • references/modules-and-runtimes.md
  • references/releases-and-migration.md
  • references/tooling.md
  • references/type-safety.md

Open the folder on GitHubat commit da14ae9

Compare with similar skills

Typescript Helper next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Typescript Helper compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Typescript Helper this skillshepherdjerred/monorepo112—~2.5kAutomated safety check: PassGPL-3.0
Typescript Advanced Typesrolling-scopes/rsschool-app10k25 repos~4.2kAutomated safety check: PassMPL-2.0
Code Review ChecklistshareAI-lab/learn-claude-code78k5 repos~1.1kAutomated safety check: PassMIT
Nx Importnrwl/nx29k6 repos~3.5kAutomated safety check: PassMIT
Install Anti-Slop Oxlint Rulesdmmulroy/anti-slop5.3k1 repos~2.2kAutomated safety check: PassMIT
OpenTUI Terminal Interfacescline/cline70k—~1.9kAutomated safety check: PassApache-2.0

Similar skills

  • Typescript Advanced Types

    rolling-scopes/rsschool-app

    Master TypeScript's advanced type system including generics, conditional types, mapped types, template literals, and utility types for building type-safe applications.

    10k GitHub starsUsed in 25 repos~4.2k tokens
    DevelopmentAuto-check passed
  • Code Review Checklist

    shareAI-lab/learn-claude-code

    Reviews code against a five-part checklist covering security, correctness, performance, maintainability and testing, and reports findings in a fixed format.

    78k GitHub starsUsed in 5 repos~1.1k tokens
    DevelopmentAuto-check passed
  • Nx Import

    nrwl/nx

    Import, merge, or combine repositories into an Nx workspace using nx import.

    29k GitHub starsUsed in 6 repos~3.5k tokens
    DevelopmentAuto-check passed
  • Installs, updates or migrates the vendored anti-slop Oxlint plugin in a repository, keeping local rule changes and the plugin's license and provenance files.

    5.3k GitHub starsUsed in 1 repo~2.2k tokens
    DevelopmentAuto-check passed
  • Helps build terminal user interfaces with OpenTUI using its core imperative API or its React and Solid reconcilers, with references for layout, keyboard, animation and testing.

    70k GitHub stars~1.9k tokensUpdated today
    DevelopmentAuto-check passed
  • Frontend Code Review

    langgenius/dify

    Reviews frontend changes under `web/` or `packages/dify-ui/` for concrete defects and broken project contracts, using routed rule packs and a severity scale for findings.

    158k GitHub stars~938 tokensUpdated today
    DevelopmentAuto-check passed

More from shepherdjerred/monorepo

All 63 skills in this repo
  • Bun Runtime Best Practices

    shepherdjerred/monorepo

    Bun runtime APIs and current operational patterns for files, processes, modules, networking, databases, tests, and deployment.

    112 GitHub stars~2k tokensUpdated today
    Auto-check passed
  • Bun Test Patterns

    shepherdjerred/monorepo

    Current Bun test runner guidance for discovery, isolation, parallelism, sharding, changed tests, mocks, timers, snapshots, coverage, DOM Testing Library, and integration teardown.

    112 GitHub stars~2k tokensUpdated today
    Auto-check passed
  • Bun Workspaces

    shepherdjerred/monorepo

    Current Bun workspace guidance for isolated and hoisted linkers, catalogs, filters, scripts, dependency classes, lockfiles, lifecycle trust, caches, publishing, TypeScript package exports, and…

    112 GitHub stars~2.2k tokensUpdated today
    Auto-check passed
  • Deep Research

    shepherdjerred/monorepo

    This skill should be used when the user asks to "deep research", "research this topic", "investigate thoroughly", "do a deep dive on", "comprehensive research on", "find everything about", "survey…

    112 GitHub stars~4.7k tokensUpdated today
    Auto-check: notes
  • Figma Use

    shepherdjerred/monorepo

    This skill should be used when the user asks to "create a Figma design", "design in Figma", "make a Figma mockup", "create an app icon", "design UI", "render JSX to Figma", "export from Figma"…

    112 GitHub stars~946 tokensUpdated today
    Auto-check passed
  • Fish Helper

    shepherdjerred/monorepo

    Current Fish shell scripting, functions, abbreviations, completions, variables, events, configuration, plugins, testing, and safety guidance.

    112 GitHub stars~2k tokensUpdated today
    Auto-check passed

Works with

Categories

Questions about Typescript Helper

What does Typescript Helper do?

Current TypeScript configuration, migration, module, runtime, typing, and tooling guidance. Typescript Helper is an agent skill from shepherdjerred/monorepo. Current TypeScript configuration, migration, module, runtime, typing, and tooling guidance.

When should I use Typescript Helper?

Typescript Helper fits situations like: reviewing TypeScript; selecting tsconfig settings; migrating TypeScript versions; resolving module/runtime mismatches.

How do I install Typescript Helper in Claude Code?

Run `npx skills add shepherdjerred/monorepo --skill typescript-helper -a claude-code`. Or copy the skill folder (packages/dotfiles/dot_agents/skills/typescript-helper in shepherdjerred/monorepo) into .claude/skills/typescript-helper in your project. Claude Code loads it when a task matches its description.

How do I install Typescript Helper in Codex?

Run `npx skills add shepherdjerred/monorepo --skill typescript-helper -a codex`. Or copy the skill folder (packages/dotfiles/dot_agents/skills/typescript-helper in shepherdjerred/monorepo) into .agents/skills/typescript-helper in your project. Codex loads it when a task matches its description.

Can I use Typescript Helper in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add shepherdjerred/monorepo --skill typescript-helper -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/typescript-helper, .gemini/skills/typescript-helper, .github/skills/typescript-helper and .opencode/skills/typescript-helper in your project.

What does Typescript Helper need to run?

Going by SKILL.md and its folder, Typescript Helper needs the command-line tools its instructions call (tsc and bunx).

Does Typescript Helper access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Typescript Helper safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Typescript Helper use?

Typescript Helper is published under the GPL-3.0 licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Typescript Helper use?

About 2.5k tokens (SKILL.md is roughly 9.9k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 3.7k tokens, read only when the agent opens those files.

What are the alternatives to Typescript Helper?

Skills that share tags, products or a category with Typescript Helper: Typescript Advanced Types (rolling-scopes/rsschool-app, 10k stars), Code Review Checklist (shareAI-lab/learn-claude-code, 78k stars), Nx Import (nrwl/nx, 29k stars) and Install Anti-Slop Oxlint Rules (dmmulroy/anti-slop, 5.3k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Typescript Helper?

shepherdjerred (a GitHub user) maintains it in shepherdjerred/monorepo, which has 112 GitHub stars. The repository holds 63 skills in this directory. The repository was last updated on October 8, 2026.

Source: shepherdjerred/monorepo on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.