ts-monorepo

ts-monorepo is a command for coding agents from andronics/claude-plugin-typescript-pro. It costs 20 tokens per session (2,269 once invoked), scanned C, original, MIT.

A set of commands for managing a TypeScript monorepo, where several related packages live in one code repository. It handles workspace setup, package references, builds, tests, dependencies, and cleanup.

In plain words
What is it for?
Use it to create or inspect a monorepo, add packages, configure project references, analyze package dependencies, run workspace-wide tests, build packages, and remove build files.
Why use it?
It reduces the manual work of keeping multiple TypeScript packages configured and built in the right dependency order.

Command

Part of the typescript-pro plugin — 5 skills, 10 commands, 8 agents 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 commands/andronics/claude-plugin-typescript-pro/ts-monorepo
Clone the repo
git clone --depth 1 https://github.com/andronics/claude-plugin-typescript-pro

Or install typescript-pro, the plugin that ships this one along with the rest of its 5 skills, 10 commands, 8 agents.

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 ts-monorepo

README.md
[![agentmods](https://agentmods.dev/badge/commands/andronics/claude-plugin-typescript-pro/ts-monorepo.svg)](https://agentmods.dev/commands/andronics/claude-plugin-typescript-pro/ts-monorepo)
Your own site
<a href="https://agentmods.dev/commands/andronics/claude-plugin-typescript-pro/ts-monorepo"><img src="https://agentmods.dev/badge/commands/andronics/claude-plugin-typescript-pro/ts-monorepo.svg" alt="Measured on agentmods" height="20"></a>
Per session 20 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 2,269 The whole file, excluding the scripts and references it only reads on demand.
Security scan C 1 finding. 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.00020 $0.02269
Opus 5 $0.00010 $0.01135
Sonnet 5 $0.00004 $0.00454
Haiku 4.5 $0.00002 $0.00227

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

Security

Grade C, and why

ts-monorepo scanned grade C 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 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.

Recursive force deletehighDestructive command

rm -rf with a variable or a broad path is one typo away from removing the wrong tree.

find packages -name "dist" -type d -exec rm -rf {} +
commands/ts-monorepo.md · 416 lines

How it starts

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

Manage TypeScript monorepo operations:

  1. Detect Monorepo Setup

    Check for monorepo configuration:

    • pnpm: pnpm-workspace.yaml
    • npm: package.json workspaces
    • Yarn: yarn workspaces in package.json
    • Nx: nx.json
    • Turborepo: turbo.json
    • Lerna: lerna.json
  2. Command Router

    Based on $ARGUMENTS:

    • init - Initialize TypeScript monorepo
    • references - Set up project references
    • build - Build all packages in dependency order
    • test - Run tests across workspace
    • clean - Clean all build artifacts
    • deps - Analyze dependencies between packages
    • add - Add new package to monorepo
    • (no args) - Show monorepo status

Command: init

Initialize TypeScript monorepo from scratch:

1. Choose Package Manager

  • Recommend pnpm for best TypeScript support
  • Support npm workspaces, Yarn, or pnpm

2. Create Workspace Structure

monorepo/
├── packages/
│   ├── core/           # Shared utilities
│   ├── ui/             # UI components
│   └── app/            # Main application
├── package.json        # Root package
├── pnpm-workspace.yaml # Workspace config
├── turbo.json          # Build orchestration
└── tsconfig.base.json  # Shared TS config

3. Configure Root Package

{
  "name": "monorepo-root",
  "private": true,
  "workspaces": ["packages/*"],
  "scripts": {
    "build": "turbo run build",
    "test": "turbo run test",
    "type-check": "turbo run type-check",
    "clean": "turbo run clean"
  },
  "devDependencies": {
    "typescript": "^5.5.0",
    "turbo": "^2.0.0"
  }
}

4. Create Workspace Config

# pnpm-workspace.yaml
packages:
  - 'packages/*'

5. Set Up Base TypeScript Config

// tsconfig.base.json
{
  "compilerOptions": {
    "target": "ES2020",
    "module": "ESNext",
    "lib": ["ES2020"],
    "moduleResolution": "bundler",
    "strict": true,
    "esModuleInterop": true,
    "skipLibCheck": true,
    "composite": true,
    "declaration": true,
    "declarationMap": true,
    "sourceMap": true,
    "incremental": true
  }
}

6. Configure Turborepo

// turbo.json
{
  "$schema": "https://turbo.build/schema.json",
  "pipeline": {
    "build": {
      "dependsOn": ["^build"],
      "outputs": ["dist/**", ".next/**"]
    },
    "test": {
      "dependsOn": ["build"]
    },
    "type-check": {
      "dependsOn": ["^build"]
    },
    "clean": {
      "cache": false
    }
  }
}

Read the full file on GitHub · 416 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. 5d ago First seen · 416 lines · 0 tokens per session scan C b65736bccfcb

Subscribe to this mod's changes

ts-monorepo is a command published in the GitHub repository andronics/claude-plugin-typescript-pro (4 stars, last pushed 10mo ago), licensed MIT. It adds 20 tokens to every session and 2,269 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it C with 1 finding (recursive force delete). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.