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.
Current TypeScript configuration, migration, module, runtime, typing, and tooling guidance.
$ npx skills add shepherdjerred/monorepo --skill typescript-helper -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install shepherdjerred/monorepo typescript-helper --agent claude-codeProject scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).
$ 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-srcUse ~/.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/
Install the "typescript-helper" agent skill from https://github.com/shepherdjerred/monorepo/tree/main/packages/dotfiles/dot_agents/skills/typescript-helper into .claude/skills/typescript-helper/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "typescript-helper", then confirm the skill loads.Claude Code copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$skill-installer install https://github.com/shepherdjerred/monorepo/tree/main/packages/dotfiles/dot_agents/skills/typescript-helperType this inside Codex. $skill-installer <name> installs a curated skill from openai/skills. The installer writes to $CODEX_HOME/skills (default ~/.codex/skills). Restart Codex if the skill does not show up.
$ npx skills add shepherdjerred/monorepo --skill typescript-helper -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install shepherdjerred/monorepo typescript-helper --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/shepherdjerred/monorepo.git skills-src && mkdir -p .agents/skills && cp -r skills-src/packages/dotfiles/dot_agents/skills/typescript-helper .agents/skills/typescript-helper && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "typescript-helper" agent skill from https://github.com/shepherdjerred/monorepo/tree/main/packages/dotfiles/dot_agents/skills/typescript-helper into .agents/skills/typescript-helper/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "typescript-helper", then confirm the skill loads.Codex copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add shepherdjerred/monorepo --skill typescript-helper -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install shepherdjerred/monorepo typescript-helper --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/shepherdjerred/monorepo.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/packages/dotfiles/dot_agents/skills/typescript-helper .cursor/skills/typescript-helper && rm -rf skills-srcUse ~/.cursor/skills/ instead of .cursor/skills for a personal install.
Cursor skills documentation · loads skills from .cursor/skills/, .agents/skills/, .claude/skills/, .codex/skills/
Install the "typescript-helper" agent skill from https://github.com/shepherdjerred/monorepo/tree/main/packages/dotfiles/dot_agents/skills/typescript-helper into .cursor/skills/typescript-helper/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "typescript-helper", then confirm the skill loads.Cursor copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gemini skills install https://github.com/shepherdjerred/monorepo.git --path packages/dotfiles/dot_agents/skills/typescript-helper--scope user (default) or --scope workspace; --path is the subfolder of the repo that holds the skill; --consent skips the security confirmation prompt.
$ npx skills add shepherdjerred/monorepo --skill typescript-helper -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install shepherdjerred/monorepo typescript-helper --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/shepherdjerred/monorepo.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/packages/dotfiles/dot_agents/skills/typescript-helper .gemini/skills/typescript-helper && rm -rf skills-srcUse ~/.gemini/skills/ instead of .gemini/skills for a personal install, then run /skills reload.
Gemini CLI skills documentation · loads skills from .gemini/skills/, .agents/skills/
Install the "typescript-helper" agent skill from https://github.com/shepherdjerred/monorepo/tree/main/packages/dotfiles/dot_agents/skills/typescript-helper into .gemini/skills/typescript-helper/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "typescript-helper", then confirm the skill loads.Gemini CLI copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gh skill install shepherdjerred/monorepo typescript-helperInstalls for Copilot at project scope by default; add --scope user for a personal install. Preview a skill first with gh skill preview. Needs GitHub CLI 2.90.0 or later (public preview).
$ npx skills add shepherdjerred/monorepo --skill typescript-helper -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/shepherdjerred/monorepo.git skills-src && mkdir -p .github/skills && cp -r skills-src/packages/dotfiles/dot_agents/skills/typescript-helper .github/skills/typescript-helper && rm -rf skills-srcUse ~/.copilot/skills/ instead of .github/skills for a personal install. Commit .github/skills so cloud agent and code review can use it.
GitHub Copilot skills documentation · loads skills from .github/skills/, .claude/skills/, .agents/skills/
Install the "typescript-helper" agent skill from https://github.com/shepherdjerred/monorepo/tree/main/packages/dotfiles/dot_agents/skills/typescript-helper into .github/skills/typescript-helper/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "typescript-helper", then confirm the skill loads.GitHub Copilot copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add shepherdjerred/monorepo --skill typescript-helper -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install shepherdjerred/monorepo typescript-helper --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/shepherdjerred/monorepo.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/packages/dotfiles/dot_agents/skills/typescript-helper .opencode/skills/typescript-helper && rm -rf skills-srcUse ~/.config/opencode/skills/ instead of .opencode/skills for a personal install.
OpenCode skills documentation · loads skills from .opencode/skills/, .claude/skills/, .agents/skills/
Install the "typescript-helper" agent skill from https://github.com/shepherdjerred/monorepo/tree/main/packages/dotfiles/dot_agents/skills/typescript-helper into .opencode/skills/typescript-helper/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "typescript-helper", then confirm the skill loads.OpenCode copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
typescript-helperCurrent 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. 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.
Read from SKILL.md and the folder at commit da14ae9. It shows what the files ask for, not the result of running them.
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.
Shell commands in SKILL.md call:
tscbunxFrom the folder's file list and the shell code blocks in SKILL.md.
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.
Names no API keys, tokens, secrets or passwords.
From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.
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.
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.
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.
The full file from shepherdjerred/monorepo at commit da14ae9, republished under its GPL-3.0 licence (© shepherdjerred). 1,012 words, ~2,469 tokens.
.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.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.
Verified 2026-08-03.
| Line | Status | Important boundary |
|---|---|---|
| TypeScript 7.0 | Current stable native compiler and language server | No programmatic API in 7.0; tools that import or embed TypeScript may still require 6.x |
| TypeScript 6.x | JavaScript-codebase compatibility bridge | Use it to expose migration issues and stabilize type ordering before 7.0 |
typescript@next | Nightly builds | Preview 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:
cd packages/<package-that-declares-typescript-native>
PATH=node_modules/@typescript/native/bin:$PATH tsc --version
PATH=node_modules/@typescript/native/bin:$PATH tsc --showConfigRead 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.
Type-check through the project configuration or build graph:
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 -bPassing 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:
bunx turbo run typecheck --filter=<package>| Host | Compiler model | Execution boundary |
|---|---|---|
| Modern Node | module: "nodenext" | Node's built-in TypeScript ignores tsconfig and directly runs only erasable syntax |
| Node 20 contract | module: "node20" | Fixed Node 20 behavior; use only when deliberately targeting it |
| Bundler or Bun application | module: "preserve" or "esnext", moduleResolution: "bundler" | The runtime/bundler resolves and transforms modules; type-check separately |
| Multi-project library | Project references and tsc -b | Referenced 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.
Start with strict; add checks that reflect the project's boundary and indexing risks. The exact set enabled by strict can grow between releases.
{
"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.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.Static annotations do not validate JSON, environment variables, HTTP bodies, database rows, cache values, or deserialized files. Keep these values unknown until parsed.
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.
Use control-flow checks, discriminants, typeof, instanceof, Array.isArray, property checks, or a runtime schema. Avoid non-null assertions and unchecked casts.
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.
unknown to any at an untyped boundary, then narrow it.readonly blocks reassignment during checking; it is not deep runtime immutability.string, number, and boolean types, not boxed String, Number, and Boolean.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.
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.
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.
skipLibCheck.© 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
SKILL.md and 5 other files (references) in packages/dotfiles/dot_agents/skills/typescript-helper of shepherdjerred/monorepo.
Open the folder on GitHubat commit da14ae9
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.
| Skill | Stars | Used in | Tokens | Auto-check | Licence | Repo updated |
|---|---|---|---|---|---|---|
| Typescript Helper this skillshepherdjerred/monorepo | 112 | — | ~2.5k | Automated safety check: Pass | GPL-3.0 | |
| Typescript Advanced Typesrolling-scopes/rsschool-app | 10k | 25 repos | ~4.2k | Automated safety check: Pass | MPL-2.0 | |
| Code Review ChecklistshareAI-lab/learn-claude-code | 78k | 5 repos | ~1.1k | Automated safety check: Pass | MIT | |
| Nx Importnrwl/nx | 29k | 6 repos | ~3.5k | Automated safety check: Pass | MIT | |
| Install Anti-Slop Oxlint Rulesdmmulroy/anti-slop | 5.3k | 1 repos | ~2.2k | Automated safety check: Pass | MIT | |
| OpenTUI Terminal Interfacescline/cline | 70k | — | ~1.9k | Automated safety check: Pass | Apache-2.0 |
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.
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.
nrwl/nx
Import, merge, or combine repositories into an Nx workspace using nx import.
dmmulroy/anti-slop
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.
cline/cline
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.
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.
shepherdjerred/monorepo
Bun runtime APIs and current operational patterns for files, processes, modules, networking, databases, tests, and deployment.
shepherdjerred/monorepo
Current Bun test runner guidance for discovery, isolation, parallelism, sharding, changed tests, mocks, timers, snapshots, coverage, DOM Testing Library, and integration teardown.
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…
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…
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"…
shepherdjerred/monorepo
Current Fish shell scripting, functions, abbreviations, completions, variables, events, configuration, plugins, testing, and safety guidance.
Works with
Categories
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.
Typescript Helper fits situations like: reviewing TypeScript; selecting tsconfig settings; migrating TypeScript versions; resolving module/runtime mismatches.
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.
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.
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.
Going by SKILL.md and its folder, Typescript Helper needs the command-line tools its instructions call (tsc and bunx).
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.
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.
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.
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.
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.
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.