typescript-javascript

Enforce strict TypeScript and JavaScript standards for secure, typed code.

15|2|Updated Dec 13, 2025
One-click install
npx skills add https://github.com/d-padmanabhan/agent-engineering-handbook --skill typescript-javascript-d-padmanabhan
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: typescript-javascript
Source: https://github.com/d-padmanabhan/agent-engineering-handbook/tree/main/skills/typescript-javascript
Command: npx skills add https://github.com/d-padmanabhan/agent-engineering-handbook --skill typescript-javascript-d-padmanabhan

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill prevents fragile, insecure, and hard-to-maintain TypeScript and JavaScript code by enforcing strict typing, modern module patterns, reliable async handling, and security-safe practices.

Core Features & Use Cases

  • Strict Type Safety: Prefer strict tsconfig settings, avoid any, and use unknown plus type guards for uncertain inputs.
  • Modern Web/Node Fundamentals: Use ES Modules, const/let, async/await, optional chaining, and nullish coalescing for clearer, safer code.
  • Security Guardrails: Mandates around avoiding eval, sanitizing HTML, validating/sanitizing inputs, and preventing secret/PII logging.
  • Use Case: When upgrading a Node.js or frontend project, adopt strict TypeScript configuration and patterns so refactors don’t silently introduce type holes or security regressions.

Quick Start

Ask the agent to review your proposed change and rewrite it to match strict TypeScript/JavaScript standards, including security-safe handling for inputs and DOM updates.

Frequently Asked Questions about typescript-javascript

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

FAQPage Schema
How do I enforce strict TypeScript configuration to prevent unsafe code in my project?

To enforce strict TypeScript configuration, enable strict mode in tsconfig, avoid any, and use unknown with type guards for uncertain inputs to prevent unsafe code. This approach eliminates type holes and maintains security during refactors.

What is the best way to handle async workflows and Promises safely in JavaScript?

The best way to handle async workflows safely in JavaScript is using async/await with safe Promise handling and ES Module conventions. This prevents fragile asynchronous code and ensures reliable execution in modern web and Node.js environments.

How do I prevent security vulnerabilities like eval and unsafe innerHTML in JavaScript modules?

Preventing security vulnerabilities in JavaScript modules requires avoiding eval, sanitizing HTML, validating inputs, and preventing unsafe innerHTML usage. Explicit security guardrails also mandate stopping secret and PII logging to protect sensitive data.

Can I use ES Modules and modern JavaScript standards when refactoring Node.js projects?

Yes, you can use ES Modules when refactoring Node.js projects alongside const/let, async/await, optional chaining, and nullish coalescing. These modern JavaScript standards produce clearer, safer code and align with strict TypeScript discipline.

Does strict typing discipline work with testing setups and build configuration in TypeScript?

Strict typing discipline works with testing setups and build configuration in TypeScript by enforcing reliable type checks across module workflows. It applies when authoring or refactoring testing configurations, preventing weakly-typed code and security regressions.