Skip to content
Back to skills

Typescript Modeling

ASecurity

Model TypeScript domains with unions, readonly data, satisfies, and useful generics.

  • 3 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added September 3, 2026
developmenttypescriptexpressapi

Works with

  • api

Security analysis

A100/100

Scanned September 3, 2026

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

Installs into .claude/skills of the current project.

Are you the author of Typescript Modeling?

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

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

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-modeling
description: Model TypeScript domains with unions, readonly data, satisfies, and useful generics.
---

# TypeScript modeling

Use the type system to express relationships that matter at runtime.

## Shapes

Choose `type` or `interface` for local semantics and ecosystem fit, not dogma. Use discriminated
unions for variants and exhaustive switches where missing cases would be a bug.

## Contracts

Annotate exported APIs and external boundaries. Let inference handle obvious locals. Use `satisfies`
when a value should be checked against a contract without widening away useful literal information.

## Mutability and generics

Mark data `readonly` when mutation is not part of the contract. Use generics only when they express
a real relationship between inputs and outputs; avoid type puzzles that make maintenance harder.

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…