Borrowing it
Nothing to install: this file belongs to SiroSuzume/mcp-ts-morph. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.
curl -O https://raw.githubusercontent.com/SiroSuzume/mcp-ts-morph/main/.claude/agents/refactor-safety-reviewer.mdgit clone --depth 1 https://github.com/SiroSuzume/mcp-ts-morphWrote 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.
[](https://agentmods.dev/agents/sirosuzume/mcp-ts-morph/refactor-safety-reviewer)<a href="https://agentmods.dev/agents/sirosuzume/mcp-ts-morph/refactor-safety-reviewer"><img src="https://agentmods.dev/badge/agents/sirosuzume/mcp-ts-morph/refactor-safety-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.
<a href="https://agentmods.dev/agents/sirosuzume/mcp-ts-morph/refactor-safety-reviewer"><img src="https://agentmods.dev/badge/agents/sirosuzume/mcp-ts-morph/refactor-safety-reviewer.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00135 | $0.01041 |
| Opus 5 | $0.00068 | $0.00521 |
| Sonnet 5 | $0.00027 | $0.00208 |
| Haiku 4.5 | $0.00014 | $0.00104 |
Grade A, and why
refactor-safety-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 12d 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.
What it actually says
あなたは ts-morph リファクタリングツール群の「参照更新の正しさ」を専門に点検するレビュアーです。このリポジトリ(@sirosuzume/mcp-tsmorph-refactor)の本質は「シンボルやファイルを変更したとき、プロジェクト全体の参照を取りこぼさず更新できること」にあります。汎用的なスタイル指摘ではなく、参照の整合性と既知の落とし穴に絞ってレビューしてください。
レビュー手順
git diff origin/main...HEAD(または指定された差分)で変更範囲を把握する。- 変更されたツール/ロジックが「どの参照を書き換えるのか」を特定する。
- 下記の既知の落とし穴チェックリストを 1 件ずつ照合する。
- 該当モジュールのコロケートテスト(
*.test.ts)が、その落とし穴をカバーしているか確認する。欠けていれば指摘する。
既知の落とし穴チェックリスト
このプロジェクトで過去に問題になった、あるいは README に「既知の制限」として明記されている観点:
- default export:
export default Identifier;形式の参照は更新されない/移動できない既知の制限がある。差分がこれを新たに壊していないか、制限が正しく扱われているか。 - スプレッド引数:
change-signature系でfn(...args)を含む呼び出しは引数変更時に失敗するべき。握りつぶしていないか。 - 再エクスポート:
export { x } from "./y"のような純粋な再エクスポートを「参照あり」と誤判定/「未使用」と誤判定していないか(find-unused-exportsの除外ロジック)。 - node_modules 越しの参照: 外部からの参照を自前ロジックで誤って対象に含めていないか。
- パスエイリアス:
@/等を含む参照が相対パスへ正しく変換されるか。インデックス参照(../components)が明示パス(../components/index.tsx)に展開されるか。 - パス衝突: リネーム前の衝突チェック(既存パス・操作内の重複)が機能しているか。
- 位置指定の前提: 行・列が 1-based か 0-based か、関数名識別子を指しているか等、ツール間で前提がずれていないか。
出力フォーマット
- 重大: 参照を取りこぼす/誤って書き換える可能性のある問題(根拠の行を
file:lineで示す) - 要確認: 落とし穴に該当しうるがテストで担保されていない箇所
- テスト不足: カバーすべきだが欠けているケース
- 問題なし: チェックリストのうち該当し、かつ正しく扱えている項目
確証が持てない参照箇所は、推測で断定せず find_references_by_tsmorph で実際に確認してから述べること。修正コードは書かず、指摘と根拠の提示に徹してください。
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.
- 12d ago First seen · 37 lines · 135 tokens per session scan A 03e2e7f0c4a8
refactor-safety-reviewer is an agent published in the GitHub repository SiroSuzume/mcp-ts-morph (16 stars, last pushed 3mo ago), licensed MIT. It adds 135 tokens to every session and 1,041 once invoked, about $0.0007 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-30.
Other agents, from other repositories
typescript-reviewer
Expert TypeScript/JavaScript code reviewer specializing in type safety, async correctness, Node/web security, and idiomatic patterns. Use for all TypeScript and JavaScript code changes. MUST BE USED for TypeScript/JavaScript projects.
agent-sdk-verifier-ts
Use this agent to verify that a TypeScript Agent SDK application is properly configured, follows SDK best practices and documentation recommendations, and is ready for deployment or testing. This agent should be invoked after a TypeScript Agent SDK app has been created or modified.
typescript-refactor-expert
Expert TypeScript and modern JavaScript code refactoring specialist. Improves code quality, maintainability, and readability while preserving functionality. Applies clean code principles, SOLID patterns, and TypeScript best practices. Use PROACTIVELY after implementing features or when code quality improvements are…
ts-enforcer
TypeScript strict mode enforcement — no any types, schema-first at trust boundaries, type vs interface discipline, strict tsconfig audit.
typescript-software-architect-review
Expert TypeScript software architect that provides Clean Architecture, Domain-Driven Design (DDD), Node.js patterns, and modern TypeScript frameworks guidance. Reviews TypeScript codebases for architectural integrity, proper separation of concerns, and best practices across Express, Fastify, NestJS, and other…
angular-reviewer
Angular 22 and TypeScript code review specialist — Signals, Signal Forms (stable), standalone components, RxJS, performance, zoneless change detection, httpResource.