thesoftwarehouse/agentic-collections/modelling-types-for-nodejs
How to express a type in a Node.js/TypeScript backend so the compiler catches the bug instead of the runtime: discriminated unions that make illegal states unrepresentable, branded ids, const-object unions over enums, satisfies, unknown over any, and validating every boundary into a schema-derived type. Use when deciding how to model a DTO, entity, command or event payload, choosing union versus enum or interface versus type, or reviewing backend code for any, unsafe casts, or types that lie.
Agent skill · version 0.0.0-main.1795736827.gc6abe8e · from TheSoftwareHouse/agentic-collections
Install
npx yarkr-cli add skill:thesoftwarehouse/agentic-collections/modelling-types-for-nodejsWithout Node.js, on macOS and Linux (curl or wget):
curl -fsSL https://yarkr.com/install.sh | sh -s -- add skill:thesoftwarehouse/agentic-collections/modelling-types-for-nodejs
wget -qO- https://yarkr.com/install.sh | sh -s -- add skill:thesoftwarehouse/agentic-collections/modelling-types-for-nodejsOn Windows, in PowerShell:
irm https://yarkr.com/install.ps1 | iex; yarkr add skill:thesoftwarehouse/agentic-collections/modelling-types-for-nodejsWorks with Claude Code, Codex, opencode, Cursor, any harness over MCP.