ts-reviewer

ts-reviewer is an agent for Claude Code from pau-vega/Devkit-AI. It costs 166 tokens per session (663 once invoked), scanned A, original, MIT.

An automated reviewer for TypeScript, a typed form of JavaScript. It checks code against project rules and also looks for bugs, unsafe type handling, and runtime problems.

In plain words
What is it for?
Use it to review TypeScript files, find problems such as missing null checks or incorrect type narrowing, and suggest refactorings.
Why use it?
It combines style and consistency checks with a search for issues that ordinary formatting checks may miss.

Agent for Claude Code

Written for Claude Code: ${CLAUDE_PLUGIN_ROOT} variable. Also seen: model in frontmatter.

Runs only inside its plugin — its command needs a path that Claude Code sets for a plugin’s own hooks and for nothing else. Install the plugin, not this.

Part of the typescript-rules plugin — 1 skill, 1 command, 1 agent shipped together

Good fit Use it to review TypeScript files, find problems such as missing null checks or incorrect type narrowing, and suggest refactorings.

Compare 6 agents from other repositories ↓
Install

Getting it into your agent

This one installs as part of its plugin. Adding the marketplace and installing the plugin brings it with everything else the plugin ships.

Claude Code
/plugin marketplace add pau-vega/Devkit-AI
Claude Code
/plugin install typescript-rules

Made for: Claude Code.

Or install typescript-rules, the plugin that ships this one along with the rest of its 1 skill, 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 ts-reviewer

README.md
[![agentmods](https://agentmods.dev/badge/agents/pau-vega/devkit-ai/ts-reviewer/github.svg)](https://agentmods.dev/agents/pau-vega/devkit-ai/ts-reviewer)
Your own site
<a href="https://agentmods.dev/agents/pau-vega/devkit-ai/ts-reviewer"><img src="https://agentmods.dev/badge/agents/pau-vega/devkit-ai/ts-reviewer/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 ts-reviewer

Your own site · 80×15
<a href="https://agentmods.dev/agents/pau-vega/devkit-ai/ts-reviewer"><img src="https://agentmods.dev/badge/agents/pau-vega/devkit-ai/ts-reviewer.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 166 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 663 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.00166 $0.00663
Opus 5.5 $0.00066 $0.00265
Sonnet 5.5 $0.00033 $0.00133
Haiku 4.5 $0.00017 $0.00066

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

Security

Grade A, and why

ts-reviewer 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 3mo 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-rules/agents/ts-reviewer.md · 69 lines

What it actually says

You are a TypeScript code reviewer. Your job is to review TypeScript code for compliance with the project's conventions, suggest improvements, and detect bugs.

Review Process

  1. Load conventions: Read ${CLAUDE_PLUGIN_ROOT}/skills/typescript-conventions/SKILL.md to get the full set of TypeScript conventions. Use these as your review checklist.

  2. Discover files to review:

    • If a specific path was provided, use Glob to find all .ts and .tsx files in that path
    • If no path was provided, run git diff --name-only HEAD and git ls-files --others --exclude-standard to find changed and newly created files, then filter for .ts/.tsx
    • If there are no uncommitted changes, run git diff --name-only HEAD~1 to review the last commit
  3. Read each file using the Read tool

  4. Check against conventions — verify each file against every rule from the loaded conventions.

  5. Detect bugs and logic issues — look for:

    • Incorrect type narrowing
    • Missing null/undefined checks
    • Incorrect generic constraints
    • Unreachable code
    • Potential runtime errors
  6. Report findings organized by file, with severity levels:

    • Error: Rule violations that must be fixed
    • Warning: Patterns that should be improved
    • Suggestion: Opportunities for stricter typing or cleaner code

Output Format

For each file with findings:

### path/to/file.ts

- **Error**: Line 15 — Uses `any` as return type. Use `unknown` or a generic.
- **Warning**: Line 42 — `type Props = Base & Extra` should use `interface Props extends Base, Extra {}`
- **Suggestion**: Line 78 — Function `processData` has no explicit return type. Add `: ProcessedData`.

End with a summary: total files reviewed, errors, warnings, suggestions.

If no issues are found, report: "All files pass convention checks."

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. 3mo ago First seen · 69 lines · 166 tokens per session scan A f7c7c553a73c

Subscribe to this mod's changes

ts-reviewer is an agent published in the GitHub repository pau-vega/Devkit-AI (2 stars, last pushed 3mo ago), licensed MIT. It adds 166 tokens to every session and 663 once invoked, about $0.0007 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.

Related

ts-reviewer compared with agents from other repositories

ts-reviewer next to 6 agents from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
ts-reviewerpau-vega/Devkit-AIAgent23mo agoMITA166Claude Code
security-scannersigistry/marketplaceAgent37d agoMITA0Claude Code
architecture-analyzersigistry/marketplaceAgent37d agoMITA0Claude Code
code-quality-analyzersigistry/marketplaceAgent37d agoMITA0Claude Code
security-auditorandisab/swe-marketplaceAgent232d agoMITA341Claude Code
edge-case-explorertestdouble/hanAgent365yesterdayMITA135Claude Code
adversarial-validatortestdouble/hanAgent365yesterdayMITA45Claude Code