| name | javascript-code |
| description | JavaScript/TypeScript development, paradigms, and runtime environments |
JavaScript/TypeScript Code Skill
This skill manages JavaScript and TypeScript specific development practices across Node.js, browsers, and edge runtimes.
When to use this skill
- When writing or maintaining JS/TS applications.
- When dealing with asynchronous programming (Promises, async/await).
- When configuring module systems (ESM vs CommonJS).
Guidelines
- Prefer TypeScript over vanilla JavaScript for large projects to leverage static typing.
- Always use strict equality (
===) and avoid loose equality (==).
- Avoid mutating state when possible; prefer functional approaches like
map, filter, and reduce.
- Use
const by default, let when necessary, and never use var.