Use TypeScript strictness, narrowing, and validation for safe boundaries.
Scanned 9/3/2026
Install to Claude Code
npx -y skills add Andersseen/agentyx --skill typescript-strict --agent claude-codeInstalls into .claude/skills of the current project.
Are you the author of Typescript Strict?
Add the live security badge to your README — it updates automatically with every re-scan.
[](https://www.skillsdirectory.com/skills/andersseen-typescript-strict)More formats (shields.io, HTML) on the badges page.
---
name: typescript-strict
description: Use TypeScript strictness, narrowing, and validation for safe boundaries.
---
# TypeScript strictness
Keep strict mode valuable by treating escapes as design decisions.
## Unknown data
Use `unknown` for untrusted values, then narrow with control flow, discriminants, predicates, or a
schema validator. Validate external input at the boundary before it enters domain code.
## Avoid unsafe escapes
Avoid `any`, unsafe casts, and non-null assertions. If a value can be absent, model that possibility
and handle it. Prefer checks that prove the value exists over assertions that silence the compiler.
## Optional semantics
When exact optional behavior matters, distinguish an omitted property from a property whose value is
`undefined`. Do not use optional fields as a substitute for a clear variant model.
Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.
No comments yet. Be the first to comment!
Use this skill when developing or maintaining browser extension code in the `browser/` directory, including Chrome/Firefox/Edge compatibility, content scripts, background scripts, or i18n updates.