javascript-pro

Provide production-grade JavaScript/TypeScript guidance for runtime behavior and edge-case handling.

1|Updated Jul 3, 2026
One-click install
npx skills add https://github.com/truongnat/skills --skill javascript-pro-truongnat
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: javascript-pro
Source: https://github.com/truongnat/skills/tree/main/skills/javascript-pro
Command: npx skills add https://github.com/truongnat/skills --skill javascript-pro-truongnat

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

Provides production-grade guidance for JavaScript/TypeScript development to improve runtime correctness, performance, and maintainability.

Core Features & Use Cases

  • High-level JS/TS best practices for architecture, async flows, error handling, and performance optimization.
  • Use-case driven guidance for code reviews, debugging difficult runtime scenarios, and building maintainable modules.
  • Real-world example: optimize a data-fetch path to minimize microtask delays and race conditions.

Quick Start

Ask the assistant to review a JavaScript module for runtime correctness and edge-case resilience.

Frequently Asked Questions about javascript-pro

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I debug tricky JavaScript runtime scenarios and race conditions?

Debug tricky JavaScript runtime scenarios by enforcing explicit runtime targets, module modes, and guardrails to prevent common pitfalls. This approach minimizes microtask delays and resolves race conditions effectively.

What is the best way to optimize JavaScript performance across browser and Node.js environments?

Optimize JavaScript performance by hardening data-fetch paths and applying production-grade guidance to minimize microtask delays. Explicitly define browser versions and Node.js versions to ensure targeted runtime performance.

Does this JavaScript guidance support both ES modules and CommonJS?

Yes, this JavaScript guidance supports both ES modules (ESM) and CommonJS (CJS). It requires you to explicitly define your module mode to provide accurate, production-grade architectural and runtime advice.

How do I improve TypeScript code quality for robust module and service design?

Improve TypeScript code quality by applying production-grade guidance for architecture, async flows, and error handling. This ensures high-level best practices for building maintainable modules and resilient services.

Why does my JavaScript module fail to handle edge cases correctly in production?

JavaScript modules fail edge-case handling when lacking explicit testing strategies and runtime guardrails. Enforce explicit runtime targets and production-grade requirements to prevent common pitfalls and ensure resilience.