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.
npx skills add nimadorostkar/Claude-Skills-collection --skill typescriptgit clone --depth 1 https://github.com/nimadorostkar/Claude-Skills-collectionWrote 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.
[](https://agentmods.dev/skills/nimadorostkar/claude-skills-collection/typescript)<a href="https://agentmods.dev/skills/nimadorostkar/claude-skills-collection/typescript"><img src="https://agentmods.dev/badge/skills/nimadorostkar/claude-skills-collection/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.
<a href="https://agentmods.dev/skills/nimadorostkar/claude-skills-collection/typescript"><img src="https://agentmods.dev/badge/skills/nimadorostkar/claude-skills-collection/typescript.svg" alt="Reviewed on agentmods" width="80" height="20"></a>- NVIDIA SkillSpector pass
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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00042 | $0.01040 |
| Opus 5 | $0.00021 | $0.00520 |
| Sonnet 5 | $0.00008 | $0.00208 |
| Haiku 4.5 | $0.00004 | $0.00104 |
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 8d 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.
How it starts
The opening of the file, as written. The whole thing — 118 lines — stays where its author put it; the contents beside it link to each section on GitHub.
TypeScript
Purpose
Use the type system to make invalid states unrepresentable. This skill covers strict-mode TypeScript, the advanced type features worth reaching for, and the discipline of validating untrusted data exactly once — at the boundary.
When to Use
- Starting a TypeScript project or tightening
tsconfig.json. - Removing
anyand unchecked casts from an existing codebase. - Modeling a domain with discriminated unions and exhaustive matching.
- Writing a typed API client or SDK.
- Debugging inference failures in generic code.
Capabilities
- Strict compiler configuration and incremental adoption paths.
- Discriminated unions, template literal types, conditional and mapped types.
- Generic constraints, inference control, and
satisfies. - Runtime schema validation with Zod, wired to inferred static types.
- Type-safe error handling with
Result-style unions.
Inputs
- Source files and the current
tsconfig.json. - Runtime target (Node, browser, edge, Deno, Bun).
- External data shapes: API responses, environment variables, user input.
Outputs
- Source that compiles under
strict: truewith zeroany. - Schemas for every trust boundary, with static types derived from them.
- A
tsconfig.jsonreflecting the target runtime.
Workflow
- Set the gate — Enable
strict,noUncheckedIndexedAccess, andexactOptionalPropertyTypes. Everything else follows from the compiler's complaints. - Type the boundaries — Define schemas for every input that crosses into your program: HTTP payloads, env vars, config files, message queues.
- Model the domain — Replace boolean flags and optional grab-bags with discriminated unions.
- Implement inward — Internal code trusts its types because the boundary already validated them.
- Verify —
tsc --noEmitand lint with@typescript-eslint,no-explicit-anyset to error.
Best Practices
- Never use
asto silence the compiler. It is an assertion, not a check; it lies at runtime. - Prefer
unknownoveranyat every boundary, then narrow. - Derive types from schemas (
z.infer), never maintain both by hand. - Use
satisfiesto validate an object literal against a type while preserving its narrow inferred type. - Add an exhaustiveness check (
never) to every union switch — it turns a future missing case into a compile error. - Do not export types you do not intend to support. A public type is an API contract.
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.
- 8d ago First seen · 118 lines · 42 tokens per session scan A 728d43bc7898
typescript is a skill published in the GitHub repository nimadorostkar/Claude-Skills-collection (26 stars, last pushed 24d ago), licensed MIT. It adds 42 tokens to every session and 1,040 once invoked, about $0.0002 per session on Opus 5. 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-09-03.
Other skills, from other repositories
solana-kit
Complete guide for @solana/kit - the modern, tree-shakeable, zero-dependency JavaScript SDK from Anza. Covers RPC connections, signers, transaction building with pipe, signing, sending, and account fetching with full TypeScript support.
solana-kit-migration
Helps developers understand when to use @solana/kit vs @solana/web3.js (v1), provides migration guidance, API mappings, and handles edge cases for Solana JavaScript SDK transitions.
neo-typescript
Use this skill when writing, reviewing, debugging, or architecting TypeScript code. Trigger for tsconfig/compiler options, strict mode, generics, conditional/mapped/template literal types, structural typing, ESM/CJS interop, decorators, library typing, or TypeScript runtime boundary issues.
developing-genkit-js
Develop AI-powered applications using Genkit in Node.js/TypeScript. Use when the user asks about Genkit, AI agents, flows, or tools in JavaScript/TypeScript, or when encountering Genkit errors, validation issues, type errors, or API problems.
nestjs-expert
Creates and configures NestJS modules, controllers, services, DTOs, guards, and interceptors for enterprise-grade TypeScript backend applications. Use when building NestJS REST APIs or GraphQL services, implementing dependency injection, scaffolding modular architecture, adding JWT/Passport authentication, integrating…
adk
Use this skill when you've got questions about the Botpress Agent Development Kit (ADK) - like when you're building a feature that involves tables, actions, tools, workflows, conversations, files, knowledge bases, triggers, or Zai.