typescript

typescript is a skill for Claude Code, Codex from andresquirogadev/skillsense. It costs 0 tokens per session (545 once invoked), scanned A, original, MIT.

A set of strict conventions for TypeScript, JavaScript with a compile-time type system. It covers compiler settings, object types, unions, unknown values, and utility types.

In plain words
What is it for?
Use it when configuring, writing, or reviewing TypeScript code, including Node.js projects, state models, object definitions, and code that handles unknown input.
Why use it?
It catches more mistakes before the code runs and reduces unclear or unsafe type assumptions, especially around missing values and dynamic data.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it when configuring, writing, or reviewing TypeScript code, including Node.js projects, state models, object definitions, and code that handles unknown input.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/andresquirogadev/skillsense/typescript
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add andresquirogadev/skillsense --skill typescript
Clone the repo
git clone --depth 1 https://github.com/andresquirogadev/skillsense

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for typescript

README.md
[![agentmods](https://agentmods.dev/badge/skills/andresquirogadev/skillsense/typescript/github.svg)](https://agentmods.dev/skills/andresquirogadev/skillsense/typescript)
Your own site
<a href="https://agentmods.dev/skills/andresquirogadev/skillsense/typescript"><img src="https://agentmods.dev/badge/skills/andresquirogadev/skillsense/typescript/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for typescript

Your own site · 80×15
<a href="https://agentmods.dev/skills/andresquirogadev/skillsense/typescript"><img src="https://agentmods.dev/badge/skills/andresquirogadev/skillsense/typescript.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 0 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 545 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00000 $0.00545
Opus 5.5 $0.00000 $0.00218
Sonnet 5.5 $0.00000 $0.00109
Haiku 4.5 $0.00000 $0.00055

Measured 1mo ago against content hash 2c04b4674cba, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

typescript scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

packages/catalog/skills/typescript/SKILL.md · 47 lines

How it starts

The opening of the file, as written. The whole thing — 47 lines — stays where its author put it; the contents beside it link to each section on GitHub.

TypeScript Skill

You are working in a TypeScript codebase. Apply strict TypeScript practices.

Compiler Settings

  • Enable "strict": true — this activates strictNullChecks, noImplicitAny, and others.
  • Enable "noUncheckedIndexedAccess": true — array/object index access returns T | undefined.
  • Enable "exactOptionalPropertyTypes": true — distinguishes { x?: string } from { x: string | undefined }.
  • Use "moduleResolution": "NodeNext" for Node.js projects with ESM.

Type Definitions

  • Prefer interface for objects that can be extended; use type for unions, intersections, and aliases.
  • Use discriminated unions for state machines: type State = { status: 'loading' } | { status: 'error'; error: Error } | { status: 'success'; data: Data }.
  • Avoid any — use unknown when the type is genuinely unknown, then narrow with type guards.
  • Use satisfies to validate an expression matches a type without widening it.
  • Use as const for literal types and tuple inference.

Utility Types

  • Partial<T> — all properties optional
  • Required<T> — all properties required
  • Readonly<T> — immutable
  • Pick<T, K> / Omit<T, K> — select or exclude properties
  • ReturnType<typeof fn> — infer return type of a function
  • Parameters<typeof fn> — infer parameter tuple type
  • Awaited<T> — unwrap a Promise type

Narrowing

  • Use typeof x === 'string', Array.isArray(x), x instanceof Date for runtime narrowing.
  • Write type predicates: function isUser(x: unknown): x is User { return … }.
  • Use in operator for discriminated union narrowing on string literal fields.

Common Pitfalls

  • Object.keys(obj) returns string[], not (keyof typeof obj)[] — cast when needed.
  • JSON.parse() returns any — always validate with Zod or another schema parser.
  • Date comparisons: use .getTime() or convert to number for reliable comparison.
  • Optional chaining (?.) and nullish coalescing (??) are your friends for safe access.

Imports

Read the full file on GitHub · 47 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 1mo ago First seen · 47 lines · 0 tokens per session scan A 2c04b4674cba

Subscribe to this mod's changes

typescript is a skill published in the GitHub repository andresquirogadev/skillsense (2 stars, last pushed 6mo ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 545 tokens. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

codegen

Use for .NET code generation work with Roslyn, Microsoft.OpenApi, Razor templates, DTO/manager/controller generation, REST API generation, C# HttpClient generation, Angular/Axios TypeScript request clients, generated formatting, and deterministic output.

AterDev/Perigon.CLI · 53 tokens

cli-builder

Guide for building TypeScript CLIs with Bun. Use when creating command-line tools, adding subcommands to existing CLIs, or building developer tooling. Covers argument parsing, subcommand patterns, output formatting, and distribution.

joelhooks/swarm-tools · 47 tokens

effect

Work with Effect v4 / effect-smol TypeScript code in this repo.

shobcoder/shob · 17 tokens

agents-sdk-typescript

Use when any code imports @microsoft/agents-hosting, @microsoft/agents-hosting-express, or related Agents SDK packages, or when the user is building, configuring, or asking questions about a Microsoft 365 Agents SDK agent in TypeScript. Trigger on questions about environment variables, connection configuration…

microsoft/Agents · 111 tokens

agents-sdk-typescript-debugging

Use when troubleshooting an agent built with the Microsoft Agents SDK (@microsoft/agents-hosting and related packages). Trigger on any of these symptoms: build or TypeScript errors, crashes on startup, 401 or auth errors on incoming requests, the bot not responding to messages, .env configuration problems, Azure AD…

microsoft/Agents · 125 tokens

dd-code-generation

Use pup CLI for immediate Datadog operations or generate code for integration into applications.

DataDog/pup · 16 tokens