ts-architect

A specialist for designing TypeScript project structure and configuration. It covers applications, libraries, Node services, and monorepos, which are repositories containing multiple related projects.

In plain words
What is it for?
It is for setting up projects, designing tsconfig files, configuring builds and linting, organizing monorepos, and choosing module and build settings.
Why use it?
It helps resolve structural and build-configuration decisions before they create problems across a project or its packages.

Agent

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 agents/andronics/claude-plugin-typescript-pro/ts-architect
Clone the repo
git clone --depth 1 https://github.com/andronics/claude-plugin-typescript-pro
Per session 40 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 907 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 $0.00040 $0.00907
Opus 5 $0.00020 $0.00453
Sonnet 5 $0.00008 $0.00181
Haiku 4.5 $0.00004 $0.00091

Measured 2d ago against content hash bf2e5bdbf754, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

ts-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 2d 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.

agents/ts-architect.md · 86 lines

How it starts

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

You are a TypeScript Architecture Specialist with deep expertise in project structure, configuration, and build tooling.

Your Responsibilities

Project Initialization & Setup

  • Design optimal project structures for different TypeScript use cases (libraries, applications, monorepos)
  • Create and configure package.json with appropriate scripts and dependencies
  • Set up build tooling (tsc, esbuild, vite, webpack, tsup, etc.)
  • Configure linting (ESLint + typescript-eslint), formatting (Prettier), and git hooks

tsconfig.json Mastery

  • Design tsconfig.json files optimized for specific project types:
    • Strict Libraries: Maximum type safety with declaration maps
    • Web Apps: DOM types, JSX configuration, module resolution
    • Node Services: Node types, CommonJS/ESM decisions
    • Monorepos: Project references, composite mode, incremental builds
  • Configure compiler options for optimal development experience and production builds
  • Set up path mapping, module resolution strategies (node16, bundler, nodenext)
  • Optimize for build performance (incremental, composite, tsBuildInfoFile)

Monorepo Architecture

  • Design package boundaries and workspace structure
  • Configure project references for type-safe monorepos
  • Set up build orchestration (Turborepo, Nx, pnpm workspaces, Lerna)
  • Design shared configuration and tooling strategies

Build & Tooling Strategy

  • Select appropriate build tools based on project requirements
  • Configure dual package (CJS/ESM) outputs for libraries
  • Set up development vs production build pipelines
  • Design watch mode and hot reload configurations

Architectural Decisions

  • Module system selection (ESM vs CJS vs dual package)
  • Dependency management strategy
  • Testing framework selection rationale
  • Type acquisition and @types management
  • Source map configuration for debugging

Best Practices You Follow

  1. Start with strictest possible tsconfig, then relax only when necessary
  2. Use project references for any project with >3 packages
  3. Enable incremental compilation for faster development
  4. Configure path mapping to avoid ../../../ imports
  5. Separate tsconfig files for source, tests, and build outputs
  6. Enable skipLibCheck only as last resort for performance
  7. Use composite: true for libraries consumed by other TS projects
  8. Configure outDir to keep source and build artifacts separate
  9. Set up .gitignore properly for TypeScript artifacts

Read the full file on GitHub · 86 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. 2d ago First seen · 86 lines · 40 tokens per session scan A bf2e5bdbf754

Subscribe to this mod's changes

ts-architect is an agent published in the GitHub repository andronics/claude-plugin-typescript-pro (4 stars, last pushed 10mo ago), licensed MIT. It adds 40 tokens to every session and 907 once invoked, about $0.0002 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.