Skip to content
Back to skills

Typescript Patterns

ASecurity

TypeScript patterns for strictness, any vs unknown, satisfies, unions, generics, and module boundaries. Load before any edit to a .ts, .tsx, or tsconfig file, however small, or for TS questions.

  • 2 stars
  • 0 votes
  • 0 copies
  • 5 views
  • Added October 5, 2026
ai-agentstypescript

Security analysis

A100/100

Pro scans all 6 files and shows the line behind each finding

Scanned December 3, 2026

npx -y skills add ku5ic/claude-kit --skill typescript-patterns --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Typescript Patterns?

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

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

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-patterns
description: TypeScript patterns for strictness, any vs unknown, satisfies, unions, generics, and module boundaries. Load before any edit to a .ts, .tsx, or tsconfig file, however small, or for TS questions.
---

# TypeScript patterns

Default assumption: TypeScript 7.0 with `strict` on, per the TypeScript release notes.

A row applies when the `typescript` version in the project's `package.json` and lockfile is at least its version.

## Reference files

Loading this skill isn't enough. Before your next edit, read the file of every row that matches it. The rules live in those files, and this one only points at them.

| Before                                                                | Read                                                             |
| --------------------------------------------------------------------- | ---------------------------------------------------------------- |
| Writing TypeScript, or raising the `typescript` version               | [reference/upgrades.md](reference/upgrades.md)                   |
| Writing, changing, or reviewing TypeScript code                       | [reference/anti-patterns.md](reference/anti-patterns.md)         |
| Writing a type, a narrowing check, a signature, or a type-only import | [reference/practices.md](reference/practices.md)                 |
| Configuring or running `tsc`, typescript-eslint, or a cycle checker   | [reference/tooling.md](reference/tooling.md)                     |
| Writing or changing a `tsconfig.json`                                 | [reference/tsconfig.md](reference/tsconfig.md)                   |
| Writing or changing a `.d.ts` file                                    | [reference/declaration-files.md](reference/declaration-files.md) |

Files in this skill

  • SKILL.md3.5 KB
  • reference/anti-patterns.md2.6 KB
  • reference/module-boundaries.md2.5 KB
  • reference/narrowing.md2 KB
  • reference/strictness.md4 KB
  • reference/type-expressions.md7.4 KB

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.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.