posterus-ltd/yarkr-public/ts-generics
Write TypeScript generics that infer well - when to add a type parameter, constraints, defaults, const type parameters, NoInfer, and avoiding over-generic signatures. Use when designing reusable functions, hooks, or library APIs, when callers must pass explicit type arguments, or when inferred types come out as unknown or too wide.
Agent skill · version 0.0.0-arks-library.1792108577.gbefeb5a · from posterus-ltd/yarkr-public
Install
npx yarkr-cli add skill:posterus-ltd/yarkr-public/ts-genericsWithout Node.js, on macOS and Linux (curl or wget):
curl -fsSL https://yarkr.com/install.sh | sh -s -- add skill:posterus-ltd/yarkr-public/ts-generics
wget -qO- https://yarkr.com/install.sh | sh -s -- add skill:posterus-ltd/yarkr-public/ts-genericsOn Windows, in PowerShell:
irm https://yarkr.com/install.ps1 | iex; yarkr add skill:posterus-ltd/yarkr-public/ts-genericsWorks with Claude Code, Codex, opencode, Cursor, any harness over MCP.