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 ndisisnd/cook --skill typescriptgit clone --depth 1 https://github.com/ndisisnd/cookWrote 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/ndisisnd/cook/typescript)<a href="https://agentmods.dev/skills/ndisisnd/cook/typescript"><img src="https://agentmods.dev/badge/skills/ndisisnd/cook/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/ndisisnd/cook/typescript"><img src="https://agentmods.dev/badge/skills/ndisisnd/cook/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.00051 | $0.01465 |
| Opus 5.5 | $0.00020 | $0.00586 |
| Sonnet 5.5 | $0.00010 | $0.00293 |
| Haiku 4.5 | $0.00005 | $0.00146 |
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.
How it starts
The opening of the file, as written. The whole thing — 143 lines — stays where its author put it; the contents beside it link to each section on GitHub.
TypeScript Standards
Target: TypeScript 6.x; avoid anything TypeScript 7.0 removed (every 6.0 deprecation is a hard error in 7.0).
Default load: this file only. Pull refs/tooling.md, refs/testing.md, or refs/security.md only when the task explicitly needs that depth.
Priority: P0 — Type Correctness
Type Annotations
- Explicit params and return types on all public declarations. Infer locals.
- Avoid
any. Preferunknown, generics, or a narrowly-scoped escape hatch with a comment when interop forces it. - Never use the
Functiontype. Use a typed signature:() => void.
Interfaces vs Types
interfacefor object shapes that describe APIs — supports declaration merging.typefor unions, intersections, mapped types, and conditional types.
Strict Mode
- TypeScript 6.0 defaults
stricttotrue. Keep it on; never set"strict": falsein a new project. - Existing repo that upgrades from 5.x without strict: set
"strict": falseexplicitly, then enable sub-flags one at a time (strictNullChecks→noImplicitAny→strictFunctionTypes) before removing the override. - Avoid non-null assertion (
!). Use narrowing (typeof,instanceof, if-checks) instead.
Erasable Syntax Only
- Write only syntax that type stripping can erase: no
enum, nonamespacewith runtime code, no constructor parameter properties, noimport x = require(). Node.js type stripping anderasableSyntaxOnlyreject these. - Use literal unions or
as constobjects instead ofenum:
export const Status = { Active: 'active', Disabled: 'disabled' } as const;
export type Status = (typeof Status)[keyof typeof Status];
Generics, Guards, Utility Types
- Constrain generics with
extendswhere appropriate. - Narrow with
typeof,instanceof, and predicate functions (x is T). - Prefer built-in utility types (
Partial,Required,Pick,Omit,Record,Readonly,NonNullable). - Prefer
satisfiesfor object literals that must conform to a contract without widening the inferred type.
What ships with it
4 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
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.
- 1mo ago Changed · -33 lines · +5 tokens per session 08c8c7ad1df9
- 3mo ago First seen · 176 lines · 46 tokens per session scan A 41e60de7d7b0
typescript is a skill published in the GitHub repository ndisisnd/cook (2 stars, last pushed 1mo ago), licensed MIT. It adds 51 tokens to every session and 1,465 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-08-31.
typescript compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| typescriptndisisnd/cook | Skill | 2 | 1mo ago | MIT | A | 51 | Claude Code, Codex |
| nestjs-expertJeffallan/claude-skills | Skill | 13k | today | MIT | A | 107 | Claude Code |
| typescript-proJeffallan/claude-skills | Skill | 13k | today | MIT | A | 69 | Claude Code |
| electron-devjamditis/claude-skills-journalism | Skill | 469 | 5d ago | MIT | A | 34 | Claude Code, Codex |
| react-component-generatorOneWave-AI/claude-skills | Skill | 454 | 1mo ago | MIT | A | 35 | Claude Code, Codex |
| kyselyMindrally/skills | Skill | 323 | 1mo ago | Apache-2.0 | A | 26 | Claude Code |
| deno-typescriptMindrally/skills | Skill | 323 | 1mo ago | Apache-2.0 | A | 26 | Claude Code |