typescript-javascript

typescript-javascript is a skill for Claude Code, Codex from d-padmanabhan/agent-engineering-handbook. It costs 85 tokens per session (2,017 once invoked), scanned A, original, MIT.

A set of development standards for TypeScript and JavaScript, languages commonly used for web pages, web servers, and Node.js applications.

In plain words
What is it for?
Use it when building or reviewing TypeScript or JavaScript files, package settings, tests, asynchronous code, or input validation.
Why use it?
It reduces bugs caused by unclear types, unsafe runtime data, inconsistent modules, weak testing, and insecure coding patterns.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it when building or reviewing TypeScript or JavaScript files, package settings, tests, asynchronous code, or input validation.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/d-padmanabhan/agent-engineering-handbook/typescript-javascript
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add d-padmanabhan/agent-engineering-handbook --skill typescript-javascript
Clone the repo
git clone --depth 1 https://github.com/d-padmanabhan/agent-engineering-handbook

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for typescript-javascript

README.md
[![agentmods](https://agentmods.dev/badge/skills/d-padmanabhan/agent-engineering-handbook/typescript-javascript/github.svg)](https://agentmods.dev/skills/d-padmanabhan/agent-engineering-handbook/typescript-javascript)
Your own site
<a href="https://agentmods.dev/skills/d-padmanabhan/agent-engineering-handbook/typescript-javascript"><img src="https://agentmods.dev/badge/skills/d-padmanabhan/agent-engineering-handbook/typescript-javascript/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for typescript-javascript

Your own site · 80×15
<a href="https://agentmods.dev/skills/d-padmanabhan/agent-engineering-handbook/typescript-javascript"><img src="https://agentmods.dev/badge/skills/d-padmanabhan/agent-engineering-handbook/typescript-javascript.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 85 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,017 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00085 $0.02017
Opus 5 $0.00043 $0.01009
Sonnet 5 $0.00017 $0.00403
Haiku 4.5 $0.00009 $0.00202

Measured 4d ago against content hash ced3bfe44165, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-12, from the pricing page.

Security

Grade A, and why

typescript-javascript scanned grade A with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 4d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

const response = await fetch(url, {
skills/typescript-javascript/SKILL.md · 249 lines

How it starts

The opening of the file, as written. The whole thing — 249 lines — stays where its author put it; the contents beside it link to each section on GitHub.

TypeScript & JavaScript Development

Mandatory gates are owned by the JavaScript and TypeScript rule (${HANDBOOK_ROOT}/rules/225-javascript-typescript.mdc). This skill and its references own procedures and examples.

Guiding Principles

  1. Type Safety: Leverage strict mode, avoid any, use discriminated unions
  2. Explicit Over Implicit: Prefer explicit types for clarity and maintainability
  3. Modern Defaults: ESM, const/let, async/await, optional chaining
  4. Security First: Never use eval, sanitize HTML, validate inputs

Quick Reference

Aspect TypeScript JavaScript
Package Manager pnpm preferred pnpm preferred
Module System ES Modules ES Modules + // @ts-check
Linting eslint --max-warnings=0 eslint --max-warnings=0
Formatting Prettier Prettier
Types Strict mode JSDoc types

Non-Negotiables

NN-1: Validate at trust boundaries

Static types do not validate runtime data. Treat HTTP bodies, responses, webhooks, queue messages, localStorage/sessionStorage, environment variables, CLI args, and JSON files as unknown until validated with Zod or an explicit type guard.

Reject:

  • JSON.parse(raw) as T
  • await response.json() as T
  • unchecked property access on remote JSON
  • as any or double assertions (value as unknown as T)

NN-2: Fetch/API calls require timeout + status check + schema validation

Every service/network fetch must include a timeout, check response.ok, and validate the JSON shape before returning typed data.

import { z } from 'zod';

async function fetchJson<T>(
  url: string,
  schema: z.ZodType<T>,
  options: RequestInit = {},
): Promise<T> {
  const response = await fetch(url, {
    ...options,
    signal: options.signal ?? AbortSignal.timeout(5_000),
    headers: { Accept: 'application/json', ...options.headers },
  });
  if (!response.ok) {
    throw new Error(`request failed: HTTP ${response.status}`);
  }
  return schema.parse(await response.json());
}

Read the full file on GitHub · 249 lines

Files

What ships with it

3 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 4d ago Changed · +5 lines ced3bfe44165
  2. 9d ago First seen · 244 lines · 85 tokens per session scan A 8a3e6062b5c7

Subscribe to this mod's changes

typescript-javascript is a skill published in the GitHub repository d-padmanabhan/agent-engineering-handbook (17 stars, last pushed today), licensed MIT. It adds 85 tokens to every session and 2,017 once invoked, about $0.0004 per session on Opus 5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.

Related

Other skills, from other repositories