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.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.svg" alt="Measured on agentmods" 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 $0.00083 $0.00331
Sonnet 5 $0.00033 $0.00133
Haiku 4.5 $0.00017 $0.00066

Measured 7d ago against content hash f7c7c553a73c, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, 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 7d 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. 7d 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 22d ago), licensed MIT. It adds 166 tokens to every session and 663 once invoked, about $0.0008 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.

Related

Other agents, from other repositories

architect

Use this agent when creating roadmaps, decomposing plans into tasks, making architecture decisions, or breaking down requirements into executable work. Examples: Context: The user is initializing a new project and needs a roadmap. user: "Create a roadmap for building this application" assistant: "I'll dispatch the…

lgbarn/shipyard · 272 tokens

researcher

Use this agent when conducting domain research, evaluating technology options, investigating ecosystem choices, or gathering knowledge for a development phase. Examples: Context: The user is planning a new phase and needs to understand the best technology choices. user: "We need to add real-time notifications — what…

lgbarn/shipyard · 202 tokens

reviewer

Use this agent when performing code review, verifying spec compliance, conducting quality review after a build, or checking that an implementation matches its plan. Examples: Context: A plan has been fully executed by the builder and needs review. user: "Review the authentication implementation" assistant: "I'll…

lgbarn/shipyard · 200 tokens

builder

Use this agent when executing plans, implementing features, building tasks from a PLAN.md, or running TDD implementation cycles. This is the primary implementation agent. Examples: Context: A plan has been created and is ready for execution. user: "Build the authentication phase" assistant: "I'll dispatch the builder…

lgbarn/shipyard · 266 tokens

arn-code-task-reviewer

This agent should be used to validate a completed task's implementation against stored pattern documentation, phase plan acceptance criteria, and test results. Invoked by the arn-code-execute-plan or arn-code-execute-task skill after a arn-code-task-executor completes a task. Returns a structured verdict: pass…

AppsVortex/arness · 309 tokens

code-reviewer

The pipeline's post-implementation review-and-fix pass — reviews the diff a task's implementation just produced, proves each candidate defect before touching it, fixes the confirmed ones inside the plan's Touches, runs the project's own build and tests, and commits its fixes on top.

SpaiR/task-pipeline · 60 tokens