claudecodex

ts-optimize

Audit TypeScript for dead code, AI slop, weak types and tsgo readiness; write reviewable findings; fix them under a verified, traceable gate. Silent in repos without TypeScript.

0 on GitHubby yigitkonurv0.2.1MITupdated 18 days agoDeveloper Tools
/

Plugin ts-optimize from marketplace claude-ts-optimize-plugin in yigitkonur/plugin-typescript-optimizer. Commands read from the repo's manifest — 18 days ago.

This plugin runs code on your machine — its hooks fire automatically on events like tool use. The exact commands are listed below; read them before installing.

What it installs

Skills (6)

  • audit

    Audit a TypeScript codebase for dead code, unused dependencies, AI slop, weak types, tangled imports and tsgo readiness. Writes findings to .ts-optimize/ and changes no source.

  • declaration-emit

    Use for declaration-emit (.d.ts) failures: TS4023, TS4058, TS4060, TS4081, TS4082, TS2742, TS2883, \"has or is using private name\", \"cannot be named\", isolatedDeclarations errors; and before removing or un-exporting a type from a library that emits .d.ts (declaration, composite or a types field).

  • doctor

    Show what ts-optimize can do in this repository: packages, compilers, engines, gate commands, degradations and the action that fixes each. Read-only.

  • fix

    Apply the approved findings of a ts-optimize audit wave by wave: commits that name their finding, a gate after every wave, bisect and revert on red. Use after /ts-optimize:audit.

  • ts7-compat

    TypeScript 7 / tsgo compatibility knowledge: what breaks (no JS compiler API in 7.0, removed tsconfig options), which tools fail (typescript-eslint, ts-morph, ts-node, ts-jest), the tsc6 alias scheme. Use for \"does not support TS 7\", \"ts.createProgram is not a function\" after moving to typescrip

  • tsgo

    Check whether a TypeScript project can move to the native TypeScript 7 compiler (tsgo) and migrate it step by step. check and status leave the source untouched; adopt works on a branch.

Subagents (2)

  • ts-architect

    Proposes structural simplifications for hot modules in a deep audit, each with a STRONG, WORTH_EXPLORING or SPECULATIVE badge, recorded with `ts-opt proposal add`. Read-only. Dispatched by /ts-optimize:audit --mode deep.

  • ts-triager

    Verifies candidate findings of `ts-opt scan` by reading the code and records one verdict each with `ts-opt verdict add`. Read-only. Dispatched by /ts-optimize:audit.

Hooks (10)

  • SessionStart

    command -v node >/dev/null || exit 0; d=$PWD; while :; do [ -f "$d/.ts-optimize/state/open-run" ] && break; [ -e "$d/.git" ] && exit 0; n=$(dirname "$d"); [ "$n" = "$d" ] && exit 0; d=$n; done; exec n

  • PreToolUse

    command -v node >/dev/null || exit 0; exec node "${CLAUDE_PLUGIN_ROOT}/lib/hooks/cli-allow.mjs"

  • PreToolUse

    command -v node >/dev/null || exit 0; exec node "${CLAUDE_PLUGIN_ROOT}/lib/hooks/cmd-guard.mjs"

  • PreToolUse

    command -v node >/dev/null || exit 0; exec node "${CLAUDE_PLUGIN_ROOT}/lib/hooks/cmd-guard.mjs"

  • PreToolUse

    command -v node >/dev/null || exit 0; exec node "${CLAUDE_PLUGIN_ROOT}/lib/hooks/cmd-guard.mjs"

  • PreToolUse

    command -v node >/dev/null || exit 0; exec node "${CLAUDE_PLUGIN_ROOT}/lib/hooks/cmd-guard.mjs"

  • PreToolUse

    command -v node >/dev/null || exit 0; exec node "${CLAUDE_PLUGIN_ROOT}/lib/hooks/cmd-guard.mjs"

  • PreToolUse

    command -v node >/dev/null || exit 0; d=$PWD; while :; do [ -f "$d/.ts-optimize/state/open-run" ] && break; [ -e "$d/.git" ] && exit 0; n=$(dirname "$d"); [ "$n" = "$d" ] && exit 0; d=$n; done; exec n

  • PreToolUse

    command -v node >/dev/null || exit 0; i=$(cat); case "$i" in *agent_type*ts-triager*|*agent_type*ts-architect*) printf '%s' "$i" | node "${CLAUDE_PLUGIN_ROOT}/lib/hooks/agent-guard.mjs";; esac; exit 0

  • PostToolBatch

    command -v node >/dev/null || exit 0; d=$PWD; while :; do [ -f "$d/.ts-optimize/state/open-run" ] && break; [ -e "$d/.git" ] && exit 0; n=$(dirname "$d"); [ "$n" = "$d" ] && exit 0; d=$n; done; exec n

View source on GitHub

Similar plugins

superpowers

claudecodex

Core skills library for Claude Code: TDD, debugging, collaboration patterns, and proven techniques

15 skills · hooks

obra/superpowers 316,836

claude-mem

claudecodex

Persistent memory for Claude Code: the next session starts where the last one left off.

29 skills · 1 MCP server · hooks

thedotmack/claude-mem 116,618

Skill: add headroom-ai compress() to a Python or TypeScript app to cut LLM input tokens (tool outputs, logs, JSON, chat history). No API key.

1 skill

headroomlabs-ai/headroom 79,508

context7

claudecodex

Up-to-date documentation lookup. Pull version-specific documentation and code examples directly from source repositories into your coding agent's context.

1 MCP server

upstash/context7 64,709

Use Alibaba Open Code Review from local Codex.

2 skills

alibaba/open-code-review 50,068

slidev

claude

Claude Code skill for creating and presenting Slidev slidedecks

1 skill

slidevjs/slidev 49,452

Maintain ts-optimize?

This page updates itself from your repo. Add the badge to your README, or get it Featured to pin it above the organic results with a followed link to your site.

claude & codex pluginslisted