Smithery Logo
MCPsSkillsDocsPricing
Login
Smithery Logo

Accelerating the Agent Economy

Resources

DocumentationPrivacy PolicySystem Status

Company

PricingAboutBlog

Connect

© 2026 Smithery. All rights reserved.

    kprsnt2

    javascript

    kprsnt2/javascript
    Coding
    1 installs

    About

    SKILL.md

    Install

    Install via Skills CLI

    or add to your agent
    • Claude Code
      Claude Code
    • Codex
      Codex
    • OpenClaw
      OpenClaw
    • Cursor
      Cursor
    • Amp
      Amp
    • GitHub Copilot
      GitHub Copilot
    • Gemini CLI
      Gemini CLI
    • Kilo Code
      Kilo Code
    • Junie
      Junie
    • Replit
      Replit
    • Windsurf
      Windsurf
    • Cline
      Cline
    • Continue
      Continue
    • OpenCode
      OpenCode
    • OpenHands
      OpenHands
    • Roo Code
      Roo Code
    • Augment
      Augment
    • Goose
      Goose
    • Trae
      Trae
    • Zencoder
      Zencoder
    • Antigravity
      Antigravity
    ├─
    ├─
    └─

    About

    Best practices for JavaScript/TypeScript development including modern ES6+ patterns, error handling, and performance optimization.

    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

    Modern Patterns

    • Use optional chaining (?.) and nullish coalescing (??)
    • Use spread operator for shallow object/array copies
    • Use Map/Set for complex data structures
    • Prefer for...of over forEach for iterables
    • Use Object.entries/keys/values for object iteration
    • Use Array.from() for array-like conversions

    TypeScript Specific

    • Prefer interfaces over type aliases for objects
    • Use strict mode in tsconfig.json
    • Avoid 'any' type - use 'unknown' if needed
    • Use generics for reusable type-safe code
    • Use discriminated unions for type narrowing
    • Leverage const assertions for literal types

    Performance

    • Avoid creating functions inside loops
    • Use object pools for frequent allocations
    • Debounce/throttle expensive operations
    • Use Web Workers for CPU-intensive tasks
    Recommended Servers
    Vercel Grep
    Vercel Grep
    Svelte
    Svelte
    Microsoft Learn MCP
    Microsoft Learn MCP
    Repository
    kprsnt2/mylocalcli
    Files