typescript

typescript is a skill for Claude Code, Codex from bricerising/enterprise-software-playbook. It costs 81 tokens per session (1,998 once invoked), scanned A, original, Apache-2.0.

A set of guidelines for writing and reviewing TypeScript, a programming language commonly used with Node.js and React. It focuses on readable code, clear data types, safe handling of outside input, and manageable dependencies.

In plain words
What is it for?
Use it when creating, reviewing, or refactoring TypeScript modules, shared libraries, domain types, error handling, input validation, imports, and dependency structures.
Why use it?
It helps prevent unclear code, runtime errors, unsafe data, and tangled module relationships as a project grows.

Skill for Claude CodeCodex

Part of the enterprise-software-playbook plugin — 17 skills shipped together

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.

agentmods
npx agentmods add skills/bricerising/enterprise-software-playbook/typescript
Any agent
npx skills add bricerising/enterprise-software-playbook --skill typescript
Clone the repo
git clone --depth 1 https://github.com/bricerising/enterprise-software-playbook

Made for: Claude Code, Codex.

Or install enterprise-software-playbook, the plugin that ships this one along with the rest of its 17 skills.

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

README.md
[![agentmods](https://agentmods.dev/badge/skills/bricerising/enterprise-software-playbook/typescript.svg)](https://agentmods.dev/skills/bricerising/enterprise-software-playbook/typescript)
Your own site
<a href="https://agentmods.dev/skills/bricerising/enterprise-software-playbook/typescript"><img src="https://agentmods.dev/badge/skills/bricerising/enterprise-software-playbook/typescript.svg" alt="Measured on agentmods" height="20"></a>
Per session 81 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,998 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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.00081 $0.01998
Opus 5 $0.00041 $0.00999
Sonnet 5 $0.00016 $0.00400
Haiku 4.5 $0.00008 $0.00200

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

Security

Grade A, and why

typescript scanned grade A with 0 findings 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 5d 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.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/typescript/SKILL.md · 133 lines

How it starts

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

TypeScript (Style Guide)

Overview

Produce TypeScript that is easy to read, easy to change, and safe at runtime—by treating the codebase as a system: explicit boundaries, explicit dependencies, explicit errors, and explicit lifetimes.

Most of the principles here translate to other languages; the TypeScript-specific parts are mainly about how to enforce them with TS tooling and types.

Default objectives:

  • Consistency: prefer automated formatting and linting (Prettier + ESLint) to eliminate style drift.
  • Readability: reduce cognitive load with clear naming, shallow control flow, and explicit types.
  • Maintainability: keep modules cohesive and dependencies/lifetimes explicit so change stays local.

A note on scope: these guidelines are optimized for systemic TypeScript (long‑lived apps/services/libraries where ownership, I/O boundaries, and runtime behavior matter). For short‑lived scripts, you can relax some constraints (e.g. more throw, fewer abstractions) as long as the blast radius stays small.

Definitions:

  • Scriptic: short‑lived scripts/one‑offs; optimize for speed and simplicity; throw is usually fine.
  • Systemic: long‑lived apps/services/libraries; optimize for explicit boundaries, typed failures, and explicit lifetimes.

Chooser

  • Use typescript when: creating new TS modules, modeling domain types, applying the Throwless Pact (Result/Either), validating external inputs (Zod/io-ts), organizing imports, or preventing cyclic dependencies.
  • Do NOT use typescript when: choosing which design pattern to apply (use design); designing shared platform libraries (use platform).
  • Relax for scriptic code: short-lived scripts don't need full boundary discipline or explicit lifetimes.

Inputs / Outputs

Inputs: TypeScript source files to create, review, or refactor. Outputs: Modified/created TypeScript source files following style guide principles. Applied inline during implementation; no downstream skill consumes output directly.

Read the full file on GitHub · 133 lines

Files

What ships with it

1 file 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. 5d ago First seen · 133 lines · 81 tokens per session scan A a1f5ba9e99d0

Subscribe to this mod's changes

typescript is a skill published in the GitHub repository bricerising/enterprise-software-playbook (7 stars, last pushed 1mo ago), licensed Apache-2.0. It adds 81 tokens to every session and 1,998 once invoked, about $0.0004 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.