Skip to content
Back to skills

Typescript Strict

ASecurity

Use TypeScript strictness, narrowing, and validation for safe boundaries.

  • 3 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added September 3, 2026
developmenttypescriptrust

Security analysis

A100/100

Scanned September 3, 2026

npx -y skills add Andersseen/agentyx --skill typescript-strict --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Typescript Strict?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Typescript Strict
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/andersseen-typescript-strict/badge)](https://www.skillsdirectory.com/skills/andersseen-typescript-strict)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
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.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…