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/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/amariahak/atlarix-skills/typescript"><img src="https://agentmods.dev/badge/skills/amariahak/atlarix-skills/typescript.svg" alt="Reviewed on agentmods" width="80" 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.5 | $0.00001 | $0.00444 |
| Sonnet 5.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 2mo 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.
- 2mo 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 (0 stars, last pushed 2mo ago), licensed Apache-2.0. It adds 3 tokens to every session and 1,110 once invoked, about $0.0000 per session on Opus 5.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.
TypeScript Patterns compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| TypeScript PatternsAmariahAK/atlarix-skills | Skill | 0 | 2mo ago | Apache-2.0 | A | 3 | Claude Code, Codex |
| typescript-docspledgeandgrow/pledge-skills | Skill | 11 | 4mo ago | MIT | A | 79 | Claude Code, Codex |
| nodejs-backendiliaal/ai-skills | Skill | 46 | 2d ago | MIT | A | 69 | Claude Code |
| architecture-auditorg2AI/ORG2 | Skill | 2.5k | 27d ago | AGPL-3.0 | A | 70 | Claude Code, Codex |
| typescript-expertpersonamanagmentlayer/pcl | Skill | 46 | 1mo ago | Apache-2.0 | A | 40 | Claude Code |
| effect-patterns-concurrencyPaulJPhilp/EffectPatterns | Skill | 807 | 5mo ago | MIT | A | 25 | Claude Code |
| effect-patterns-making-http-requestsPaulJPhilp/EffectPatterns | Skill | 807 | 5mo ago | MIT | A | 30 | Claude Code |