javascript

Installation
SKILL.md

JavaScript/TypeScript Best Practices

Code Style

  • Use const by default, let when reassignment is needed
  • Use template literals for string interpolation
  • Prefer arrow functions for callbacks
  • Use destructuring for object/array access
  • Use async/await over .then() chains
  • Use semicolons consistently (pick a style)

Error Handling

  • Always handle promise rejections with .catch() or try/catch
  • Use try/catch with async/await
  • Provide meaningful error messages with context
  • Don't swallow errors silently
  • Create custom error classes for domain errors
Installs
2
First Seen
Feb 28, 2026
javascript — kprsnt2/mylocalcli