typescript-standard

typescript-standard is a skill for Claude Code, Codex from didacrios/ai-coding-protocols. It costs 71 tokens per session (730 once invoked), scanned A, original, MIT.

A set of rules for writing, reviewing, and testing TypeScript, a programming language that adds type checks to JavaScript.

In plain words
What is it for?
Use it when creating or checking TypeScript code and its tests.
Why use it?
It helps keep TypeScript code consistent and applies test-driven development (TDD), a practice of writing tests before implementation.

Skill for Claude CodeCodex

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

Good fit Use it when creating or checking TypeScript code and its tests.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/didacrios/ai-coding-protocols/typescript-standard
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 didacrios/ai-coding-protocols --skill typescript-standard
Clone the repo
git clone --depth 1 https://github.com/didacrios/ai-coding-protocols

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-standard

README.md
[![agentmods](https://agentmods.dev/badge/skills/didacrios/ai-coding-protocols/typescript-standard/github.svg)](https://agentmods.dev/skills/didacrios/ai-coding-protocols/typescript-standard)
Your own site
<a href="https://agentmods.dev/skills/didacrios/ai-coding-protocols/typescript-standard"><img src="https://agentmods.dev/badge/skills/didacrios/ai-coding-protocols/typescript-standard/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-standard

Your own site · 80×15
<a href="https://agentmods.dev/skills/didacrios/ai-coding-protocols/typescript-standard"><img src="https://agentmods.dev/badge/skills/didacrios/ai-coding-protocols/typescript-standard.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 71 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 730 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
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.00071 $0.00730
Opus 5.5 $0.00028 $0.00292
Sonnet 5.5 $0.00014 $0.00146
Haiku 4.5 $0.00007 $0.00073

Measured yesterday against content hash fd45d8c0a3cc, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

typescript-standard 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 yesterday.

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-standard/SKILL.md · 79 lines

How it starts

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

TypeScript & Testing Standards

Language-specific rules for TypeScript projects covering clean code constraints, TDD workflow, and testing framework conventions.

When to Activate

  • Writing or modifying TypeScript code
  • Creating or updating tests in a TypeScript project
  • Reviewing TypeScript code for standards compliance
  • Setting up testing infrastructure (Jest, Playwright)

Core Concepts

  • Strict typing everywhere — no any, interfaces for all data structures
  • Small methods — 10-20 lines maximum, extraction is mandatory
  • TDD flow — one test at a time, written before the implementation

Detailed Guidance

Clean Code Constraints

  • Method Size: Methods must be between 10 and 20 lines max.
  • Typing: Strict mode enabled. No any. Use interfaces for all data structures.
  • Naming: Variable and function names must be descriptive and self-documenting.
  • Simplification: Avoid unnecessary abstractions. Prefer the simplest working solution.

Testing Protocol (TDD)

  • One Test at a Time: Create exactly one test before implementing the corresponding code.
  • Given-When-Then: Use this format in comments to structure test logic.
  • Data Builders: Use the entity.data-builder.ts pattern for test data.
  • Faker: Use Faker for all default values to avoid hardcoded bias.
  • Naming Convention: Use file-name.spec.ts and place tests near the production code.

Testing Frameworks

  • Unit/Component: Jest + React Testing Library.
  • E2E: Playwright
  • Mocks: Mock database calls; use InMemoryRepositories for adapters.
  • Coverage: Minimum 80% coverage required.

Examples

Test structure:

// file: create-user.spec.ts
describe('CreateUser', () => {
  it('should create a user with valid data', () => {
    // Given
    const userData = aUser().withEmail('[email protected]').build();
    // When
    const result = createUser(userData);
    // Then
    expect(result.email).toBe('[email protected]');
  });
});

Read the full file on GitHub · 79 lines

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. yesterday Changed · +1 lines · +48 tokens per session fd45d8c0a3cc
  2. 15d ago First seen · 78 lines · 23 tokens per session scan A 67decfa1c332

Subscribe to this mod's changes

typescript-standard is a skill published in the GitHub repository didacrios/ai-coding-protocols (2 stars, last pushed 2d ago), licensed MIT. It adds 71 tokens to every session and 730 once invoked, about $0.0003 per session on Opus 5.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-10-01.