typescript-architect

typescript-architect is a skill for Claude Code from DmitriyYukhanov/claude-plugins. It costs 33 tokens per session (819 once invoked), scanned A, original, MIT.

A guide for planning TypeScript and JavaScript systems through interfaces, module structure, test stubs, and Mermaid diagrams. TypeScript is JavaScript with optional type checking, and interfaces describe the shape of data or code contracts.

In plain words
What is it for?
Use it to design TypeScript or JavaScript features, define contracts, organise modules, create Jest or Vitest test stubs, and map component or data flows.
Why use it?
It helps establish clear boundaries and testable designs before implementation, reducing uncertainty in larger projects.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter.

Part of the typescript-dev plugin — 3 skills, 1 command, 1 agent shipped together

Good fit Use it to design TypeScript or JavaScript features, define contracts, organise modules, create Jest or Vitest test stubs, and map component or data flows.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/dmitriyyukhanov/claude-plugins/typescript-architect
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 DmitriyYukhanov/claude-plugins --skill typescript-architect
Clone the repo
git clone --depth 1 https://github.com/DmitriyYukhanov/claude-plugins

Made for: Claude Code.

Or install typescript-dev, the plugin that ships this one along with the rest of its 3 skills, 1 command, 1 agent.

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

README.md
[![agentmods](https://agentmods.dev/badge/skills/dmitriyyukhanov/claude-plugins/typescript-architect/github.svg)](https://agentmods.dev/skills/dmitriyyukhanov/claude-plugins/typescript-architect)
Your own site
<a href="https://agentmods.dev/skills/dmitriyyukhanov/claude-plugins/typescript-architect"><img src="https://agentmods.dev/badge/skills/dmitriyyukhanov/claude-plugins/typescript-architect/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-architect

Your own site · 80×15
<a href="https://agentmods.dev/skills/dmitriyyukhanov/claude-plugins/typescript-architect"><img src="https://agentmods.dev/badge/skills/dmitriyyukhanov/claude-plugins/typescript-architect.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 33 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 819 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. 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.00033 $0.00819
Opus 5.5 $0.00013 $0.00328
Sonnet 5.5 $0.00007 $0.00164
Haiku 4.5 $0.00003 $0.00082

Measured 1mo ago against content hash 37fb841dc114, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

typescript-architect 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 1mo 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.

plugins/typescript-dev/skills/typescript-architect/SKILL.md · 124 lines

How it starts

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

TypeScript Architect Skill

You are a senior TypeScript architect designing robust, testable systems.

Core Principles

  • Respect project-local standards first (tsconfig, ESLint, Prettier, framework conventions)
  • Use TypeScript strictly (avoid any)
  • Define interfaces for all contracts
  • Prefer composition over inheritance
  • Design for testability
  • Generate test stubs before implementation

Architecture Outputs

  1. Interfaces: Type definitions for all contracts
  2. Test Stubs: Jest/Vitest test cases
  3. Module Structure: Clear separation of concerns
  4. Mermaid Diagrams: Component and data flow diagrams

TypeScript Guidelines

Type Declarations

  • Declare explicit types at module boundaries (public APIs, exported functions, DTOs, and complex return types)
  • Let local variable inference reduce noise when the type is obvious
  • Avoid any - define real types
  • Create necessary types in dedicated files
  • Use readonly for immutable data
  • Use as const for literals

Nomenclature

  • Classes: PascalCase
  • Variables, functions, methods: camelCase
  • Files and directories: kebab-case
  • Environment variables: UPPERCASE
  • Constants: Follow project convention (default to UPPER_SNAKE_CASE for module-level constants)
  • Boolean variables: Start with verbs (isLoading, hasError, canDelete)

Functions

  • Prefer small single-purpose functions; split when a function mixes concerns
  • Name with verb + noun (processData, validateInput)
  • Boolean returns: isX, hasX, canX
  • Void returns: executeX, saveX
  • Avoid nesting - use early returns
  • Use arrow functions for simple functions (<3 lines)
  • Use default parameter values

Data

  • Avoid primitive type abuse - use composite types
  • Prefer immutability
  • Validate untrusted external input at runtime (API payloads, env vars, storage records) before casting to domain types

Classes

  • Follow SOLID principles
  • Small classes (<200 lines, <10 public methods, <10 properties)
  • Declare interfaces for contracts
  • One export per file

Read the full file on GitHub · 124 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. 1mo ago First seen · 124 lines · 33 tokens per session scan A 37fb841dc114

Subscribe to this mod's changes

typescript-architect is a skill published in the GitHub repository DmitriyYukhanov/claude-plugins (8 stars, last pushed 10d ago), licensed MIT. It adds 33 tokens to every session and 819 once invoked, about $0.0001 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-08-31.