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 agentmods add skills/wrongstack/wrongstack/typescript-strictnpx skills add WrongStack/WrongStack --skill typescript-strictgit clone --depth 1 https://github.com/WrongStack/WrongStackWrote 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/wrongstack/wrongstack/typescript-strict)<a href="https://agentmods.dev/skills/wrongstack/wrongstack/typescript-strict"><img src="https://agentmods.dev/badge/skills/wrongstack/wrongstack/typescript-strict.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 | $0.00063 | $0.02307 |
| Opus 5 | $0.00032 | $0.01154 |
| Sonnet 5 | $0.00013 | $0.00461 |
| Haiku 4.5 | $0.00006 | $0.00231 |
Grade A, and why
typescript-strict 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 yesterday.
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 — 273 lines — stays where its author put it; the contents beside it link to each section on GitHub.
TypeScript Strict Mode — WrongStack
Overview
Strict TypeScript patterns for WrongStack: exhaustive switch, branded types, discriminated unions, and noUncheckedIndexedAccess. WrongStack uses strict: true with additional strictness flags.
Rules
- Never silence errors with
as anyor double assertions — validate or narrow values at trust boundaries. - Don't use
!non-null assertion — silence the type checker without explanation. - Always annotate return types on exported functions — hides errors otherwise.
- Use
Promise<unknown>or generics instead ofPromise<any>. - Be specific with types —
FunctionandObjectare too broad. - Enable
noUncheckedIndexedAccess— always handle theundefinedcase on array/object access.
Patterns
Do
// ✅ Exhaustive switch with assertNever
function assertNever(x: never): never {
throw new Error(`Unhandled: ${JSON.stringify(x)}`);
}
switch (block.type) {
case 'text': return renderText(block);
case 'tool_use': return renderToolUse(block);
case 'error': return renderError(block);
default: return assertNever(block);
}
// ✅ Branded types for invariants
type UserId = string & { readonly __brand: 'UserId' };
type SessionId = string & { readonly __brand: 'SessionId' };
// ✅ Discriminated union
type Result =
| { status: 'success'; data: User }
| { status: 'error'; error: Error }
| { status: 'loading' };
// ✅ noUncheckedIndexedAccess — always handle undefined
const first = items.at(0);
if (first) console.log(first.toUpperCase());
Don't
// ❌ Non-null assertion — silences the type checker
console.log(name!.toUpperCase());
// ❌ Promise<any> — loses type safety
async function fetchUser(): Promise<any> { ... }
// ❌ Too broad
const handler: Function = () => {};
const data: Object = {};
// ❌ Missing return type on export
export function processData(data: string) { ... }
Non-negotiable rules
{
"strict": true,
"noUncheckedIndexedAccess": true,
"noImplicitReturns": true,
"exactOptionalPropertyTypes": true
}
What ships with it
1 file 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.
- yesterday First seen · 273 lines · 63 tokens per session scan A 82c56593ca13
typescript-strict is a skill published in the GitHub repository WrongStack/WrongStack (284 stars, last pushed today), licensed MIT. It adds 63 tokens to every session and 2,307 once invoked, about $0.0003 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
ai-provider-anthropic-sdk
Official Anthropic SDK patterns for TypeScript/Node.js — client setup, Messages API, streaming, tool use, vision, extended thinking, structured outputs, prompt caching, batch API, and production best practices.
ai-infrastructure-ollama
Local LLM inference with the Ollama JavaScript client -- chat, streaming, tool calling, vision, embeddings, structured output, model management, and OpenAI-compatible endpoint.
ai-infrastructure-replicate
Replicate SDK patterns for TypeScript/Node.js -- client setup, predictions, streaming, webhooks, file handling, model versioning, deployments, and training.
ai-infrastructure-together-ai
Together AI SDK patterns for TypeScript — client setup, chat completions, streaming, structured output, function calling, embeddings, image generation, fine-tuning, and OpenAI-compatible endpoints.
ai-orchestration-llamaindex
LlamaIndex.TS data framework for RAG, indexing, retrieval, query engines, chat engines, and agentic workflows in TypeScript.
ai-provider-cohere-sdk
Official Cohere TypeScript SDK patterns -- CohereClientV2, chat, embeddings, rerank, RAG with citations, tool use, streaming, and model selection.