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 AmariahAK/atlarix-skills --skill typescriptgit clone --depth 1 https://github.com/AmariahAK/atlarix-skillsWrote 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/amariahak/atlarix-skills/typescript)<a href="https://agentmods.dev/skills/amariahak/atlarix-skills/typescript"><img src="https://agentmods.dev/badge/skills/amariahak/atlarix-skills/typescript.svg" alt="Measured on agentmods" height="20"></a>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.00003 | $0.01110 |
| Opus 5 | $0.00002 | $0.00555 |
| Sonnet 5 | $0.00001 | $0.00222 |
| Haiku 4.5 | $0.00000 | $0.00111 |
Grade A, and why
TypeScript Patterns 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 4d 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 — 163 lines — stays where its author put it; the contents beside it link to each section on GitHub.
TypeScript Patterns (Strict)
When to use this skill
Use this skill when working in a strict TypeScript codebase and you want reliable patterns for modeling data, narrowing, generics, and configuration—without papering over errors with as casts.
Core patterns
Strict mode is the baseline
Prefer strict: true and keep these on unless you have a strong reason:
noUncheckedIndexedAccessexactOptionalPropertyTypesnoImplicitOverride(when using classes)
Treat any relaxation as a conscious decision with a documented reason.
unknown over any
Use unknown at boundaries:
- JSON parsing
- tool outputs
- external SDK payloads
Then narrow:
function isRecord(x: unknown): x is Record<string, unknown> {
return typeof x === "object" && x !== null;
}
Narrowing patterns
Use the built-in primitives:
typeoffor primitivesinstanceoffor classes/errors"in"for structural checks- discriminated unions for complex state
type Result =
| { ok: true; value: string }
| { ok: false; error: string };
function handle(r: Result) {
if (!r.ok) return r.error;
return r.value;
}
Discriminated unions for UI state
Avoid boolean soup (isLoading, hasError, isEmpty …).
Prefer:
type LoadState =
| { kind: "idle" }
| { kind: "loading" }
| { kind: "error"; message: string }
| { kind: "ready"; items: string[] };
Utility types (use them deliberately)
Useful:
Pick,Omitfor DTO shapingReturnType,Parametersfor typed wrappersPartialonly for “patch” objects (not for real domain models)
Anti-pattern:
Partial<Model>to “get around” missing required fields
satisfies > type assertions
Prefer:
const routes = {
home: "/",
settings: "/settings",
} satisfies Record<string, string>;
Avoid:
as Record<string, string>(it can lie)
as const for literal preservation
Use as const to keep literals and readonly tuples:
const roles = ["admin", "user"] as const;
type Role = (typeof roles)[number];
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.
- 4d ago First seen · 163 lines · 3 tokens per session scan A 9e41b3de9bf0
TypeScript Patterns is a skill published in the GitHub repository AmariahAK/atlarix-skills (2 stars, last pushed yesterday), licensed Apache-2.0. It adds 3 tokens to every session and 1,110 once invoked, about $0.0000 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
typescript-docs
Comprehensive TypeScript reference covering all language features, type system, generics, narrowing, classes, modules, utility types, TSConfig, and advanced patterns. Use whenever the user mentions TypeScript, types, interfaces, generics, type inference, TSConfig, type guards, decorators, or needs help with any…
typescript-project
Modern TypeScript project architecture guide for 2025. Use when creating new TS projects, setting up configurations, or designing project structure. Covers tech stack selection, layered architecture, and best practices.
typescript-best-practices
TypeScript/Node.js best practices. Use when writing or reviewing TypeScript code. Covers type safety, async patterns, and error handling.
typescript_mastery
Curated Knowledge API for AI Agents — 68 MCP tools, 200+ skill packs, 46K chunks, semantic search over 670K vectors, 5-layer validation pipeline. Works with Claude Code, Cursor, Cline, Windsurf.
migrate-to-shoehorn
Migrate test files from as type assertions to @total-typescript/shoehorn. Use when user mentions shoehorn, wants to replace as in tests, or needs partial test data.
typescript
TypeScript strict mode with eslint and jest.