Model TypeScript domains with unions, readonly data, satisfies, and useful generics.
Scanned 9/3/2026
Install to Claude Code
npx -y skills add Andersseen/agentyx --skill typescript-modeling --agent claude-codeInstalls into .claude/skills of the current project.
Are you the author of Typescript Modeling?
Add the live security badge to your README — it updates automatically with every re-scan.
[](https://www.skillsdirectory.com/skills/andersseen-typescript-modeling)More formats (shields.io, HTML) on the badges page.
---
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.
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.