typescript-strict

typescript-strict is a skill for Claude Code from WrongStack/WrongStack. It costs 92 tokens per session (1,689 once invoked), scanned A, original, MIT.

A set of rules for writing and reviewing TypeScript with strict type checking enabled. It covers ways to represent different data shapes and safely handle values that may be missing.

In plain words
What is it for?
Use it when adding or reviewing TypeScript code, especially code that handles external input, arrays, objects, exported functions, or several possible data shapes.
Why use it?
It helps catch type mistakes before they become runtime bugs, without hiding errors through unsafe type casts or non-null assumptions.

Skill for Claude Code

Written for Claude Code: paths in frontmatter.

Good fit Use it when adding or reviewing TypeScript code, especially code that handles external input, arrays, objects, exported functions, or several possible data shapes.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/wrongstack/wrongstack/typescript-strict
Install

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.

Any agent
npx skills add WrongStack/WrongStack --skill typescript-strict
Clone the repo
git clone --depth 1 https://github.com/WrongStack/WrongStack

Made for: Claude Code.

Wrote 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.

agentmods badge for typescript-strict

README.md
[![agentmods](https://agentmods.dev/badge/skills/wrongstack/wrongstack/typescript-strict/github.svg)](https://agentmods.dev/skills/wrongstack/wrongstack/typescript-strict)
Your own site
<a href="https://agentmods.dev/skills/wrongstack/wrongstack/typescript-strict"><img src="https://agentmods.dev/badge/skills/wrongstack/wrongstack/typescript-strict/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.

agentmods 80×15 button for typescript-strict

Your own site · 80×15
<a href="https://agentmods.dev/skills/wrongstack/wrongstack/typescript-strict"><img src="https://agentmods.dev/badge/skills/wrongstack/wrongstack/typescript-strict.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 92 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,689 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce invoked
Fable 5.1 $0.00092 $0.01689
Opus 5.5 $0.00037 $0.00676
Sonnet 5.5 $0.00018 $0.00338
Haiku 4.5 $0.00009 $0.00169

Measured today against content hash 8d2120c99722, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

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 today.

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.

packages/core/skills/typescript-strict/SKILL.md · 159 lines

How it starts

The opening of the file, as written. The whole thing — 159 lines — stays where its author put it; the contents beside it link to each section on GitHub.

TypeScript Strict

Selection card

  • Task: TypeScript contracts and narrowing without any.
  • Start: Locate the affected route/component and its runtime/lockfile.
  • Finish: apply the acceptance checks below; report observed results and unresolved constraints.

Overview

Target TypeScript 7.0.2, verified from npm on 2026-10-09. Static types protect compile-time contracts; external data still needs runtime validation. Work within the project strictness and module-resolution contract.

Rules

  1. Pre-flight: Inspect repo tsconfig.json & live TypeScript version first. Check package.json for the installed typescript version and inspect the project's tsconfig.json. Query registry.npmjs.org/typescript/latest before recommending modern compiler flags (e.g. isolatedDeclarations in TS 5.5+, satisfies in TS 4.9+) to ensure compiler compatibility.
  2. Respect the project's tsconfig. Write code that passes the flags it has. Tightening flags repo-wide is a separate, requested change — it can surface hundreds of errors.
  3. Fix type errors, don't silence them. No as any, no as unknown as T, no @ts-ignore; a @ts-expect-error needs a comment explaining why.
  4. Choose satisfies when validating an inferred expression without replacing its inferred type; keep intentional annotations/widening where the contract needs them.
  5. Validate at trust boundaries. JSON, network responses, environment, and user input arrive as unknown and are narrowed by Zod, TypeBox, or explicit type guards.
  6. Prefer narrowing to assertion. A non-null ! or an as cast is acceptable only where the invariant is locally obvious and a check would be noise.
  7. Model finite states as discriminated unions, and end exhaustive switches with a never check so a new variant fails to compile.
  8. Always handle potential undefined safely when noUncheckedIndexedAccess is active.
  9. Annotate the return types of exported functions (isolatedDeclarations compliance); inference is fine inside private helpers.

Read the full file on GitHub · 159 lines

Files

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.

Changes

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.

  1. today Changed · +1 lines 8d2120c99722
  2. 10d ago Changed cc85b7975382
  3. 11d ago Changed · +26 lines d97a4ae09792
  4. 1mo ago Changed · -141 lines · +29 tokens per session 41a34e04ba74
  5. 1mo ago First seen · 273 lines · 63 tokens per session scan A 82c56593ca13

Subscribe to this mod's changes

typescript-strict is a skill published in the GitHub repository WrongStack/WrongStack (388 stars, last pushed today), licensed MIT. It adds 92 tokens to every session and 1,689 once invoked, about $0.0004 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.