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 hoangatg/ai-agent-toolkit --skill typescript-expertgit clone --depth 1 https://github.com/hoangatg/ai-agent-toolkitWrote 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/hoangatg/ai-agent-toolkit/typescript-expert)<a href="https://agentmods.dev/skills/hoangatg/ai-agent-toolkit/typescript-expert"><img src="https://agentmods.dev/badge/skills/hoangatg/ai-agent-toolkit/typescript-expert/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/hoangatg/ai-agent-toolkit/typescript-expert"><img src="https://agentmods.dev/badge/skills/hoangatg/ai-agent-toolkit/typescript-expert.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.00039 | $0.00811 |
| Opus 5.5 | $0.00016 | $0.00324 |
| Sonnet 5.5 | $0.00008 | $0.00162 |
| Haiku 4.5 | $0.00004 | $0.00081 |
Grade A, and why
typescript-expert 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 — 117 lines — stays where its author put it; the contents beside it link to each section on GitHub.
TypeScript Expert
Types are documentation that the compiler enforces.
1. Type System Mastery
Utility Type Selection
| Need | Utility Type |
|---|---|
| Make all optional | Partial<T> |
| Make all required | Required<T> |
| Make all readonly | Readonly<T> |
| Pick specific keys | Pick<T, K> |
| Remove specific keys | Omit<T, K> |
| Extract from union | Extract<T, U> |
| Exclude from union | Exclude<T, U> |
| Get return type | ReturnType<T> |
| Get parameter types | Parameters<T> |
| Non-nullable | NonNullable<T> |
| Get awaited type | Awaited<T> |
2. Advanced Generics
Constrained Generics
| Pattern | Use When |
|---|---|
<T extends object> |
Must be object type |
<T extends string> |
String literal types |
<T extends keyof U> |
Key of another type |
<T extends (...args) => any> |
Must be function |
Generic Inference
| Principle | Application |
|---|---|
| Infer from usage | Let TS infer when possible |
| Constrain, don't assert | Use extends, not as |
| Default types | <T = string> for convenience |
| Multiple generics | <TInput, TOutput> when needed |
3. Conditional Types
Pattern
type Result<T> = T extends string ? StringResult : OtherResult
Common Patterns
| Pattern | Purpose |
|---|---|
T extends infer U ? ... : ... |
Extract nested types |
| Distributive conditionals | Apply to each union member |
| Mapped conditional | Transform object types |
| Template literal types | String manipulation at type level |
4. Type-Safe Patterns
Discriminated Unions
| Component | Purpose |
|---|---|
| Tag field | Common literal field for discrimination |
| Exhaustive check | never for unhandled cases |
| Type narrowing | Automatic narrowing in switch/if |
Branded Types
| Use Case | Pattern |
|---|---|
| Prevent ID mixing | type UserId = string & { _brand: 'UserId' } |
| Unit safety | type Pixels = number & { _brand: 'Pixels' } |
| Validation proof | type ValidEmail = string & { _brand: 'ValidEmail' } |
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 · 117 lines · 39 tokens per session scan A 111d194ac54a
typescript-expert is a skill published in the GitHub repository hoangatg/ai-agent-toolkit (1 stars, last pushed 8mo ago), licensed MIT. It adds 39 tokens to every session and 811 once invoked, about $0.0002 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-expert compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| typescript-experthoangatg/ai-agent-toolkit | Skill | 1 | 8mo ago | MIT | A | 39 | Claude Code, Codex |
| coding-standardsdeepelementlab/jupyter-studio | Skill | 15 | 6mo ago | Apache-2.0 | A | 28 | Claude Code, Codex |
| effective-typescriptbooklib-ai/booklib | Skill | 40 | 7mo ago | MIT | A | 101 | Claude Code, Codex |
| springboot-patternsdeepelementlab/jupyter-studio | Skill | 15 | 6mo ago | Apache-2.0 | A | 36 | Claude Code, Codex |
| golang-patternsdeepelementlab/jupyter-studio | Skill | 15 | 6mo ago | Apache-2.0 | A | 27 | Claude Code, Codex |
| python-patternsdeepelementlab/jupyter-studio | Skill | 15 | 6mo ago | Apache-2.0 | A | 33 | Claude Code, Codex |
| claude-apihashgraph-online/awesome-codex-plugins | Skill | 1.6k | 2d ago | Apache-2.0 | A | 53 | Claude Code, Codex |