Rules and patterns for writing safe, expressive TypeScript — strict mode, type narrowing, generics, discriminated unions, and common anti-patterns.
mog install mogteam/typescript-best-practices
After installing, your AI assistant needs a pointer to the skill file. Use the agent card below or the --wire flag.
Install + auto-wire
mog install mogteam/typescript-best-practices --target cursor --wireCreates .cursor/rules/typescript-best-practices.mdc pointing to the skill.
Agent card
## Typescript Best Practices TypeScript best practices and patterns. Covers strict mode, type narrowing, utility types, generics, discriminated unions, error handling with Result types, and common anti-patterns to avoid. For writing safe, expressive TypeScript. - **Install**: `mog install mogteam/typescript-best-practices --target cursor` - **Type**: rule - **Path after install**: `.cursor/skills/typescript-best-practices/SKILL.md` - **Targets**: cursor, claude-code, codex, generic When editing, read and follow @.cursor/skills/typescript-best-practices/SKILL.md
Paste into AGENTS.md, .cursor/rules, or your agent's instructions.
Install paths by target
No ratings yet.
TypeScript best practices and patterns. Covers strict mode, type narrowing, utility types, generics, discriminated unions, error handling with Result types, and common anti-patterns to avoid. For writing safe, expressive TypeScript.
Free
mog install mogteam/typescript-best-practices@mogteam
Official curated skills and prompt templates from the mog.md team.