typescript-javascript-coding-patterns
CommunityBuild robust TS/JS code with clear contracts.
AuthorCraftsMan-Labs
Version1.0.0
Installs0
System Documentation
What problem does it solve?
TypeScript and JavaScript projects often suffer from weak runtime contracts, unsafe type assertions, and unbounded async behavior. This skill provides structured coding patterns to enforce explicit boundaries, reliable concurrency controls, and maintainable interfaces across Node, browser, edge, and shared-library code.
Core Features & Use Cases
- Runtime and type boundaries: enforce strict input validation at boundaries using TypeScript settings and validation libraries, preventing leakage of untrusted data into core logic.
- API and module design: emphasize pure functions, discriminated unions for state, and clear, surface-level contracts to minimize cross-module coupling.
- Use Case: when implementing or reviewing a TS/JS module, apply these patterns to ensure predictable behavior, safer error handling, and easier testing.
Quick Start
Apply strict type boundaries to a sample TS module and run the unit tests.
Dependency Matrix
Required Modules
None requiredComponents
references
💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: typescript-javascript-coding-patterns Download link: https://github.com/CraftsMan-Labs/SimpleAgents/archive/main.zip#typescript-javascript-coding-patterns Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.