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.
git clone --depth 1 https://github.com/giuseppe-trisciuoglio/developer-kitWrote 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/giuseppe-trisciuoglio/developer-kit/typescript-refactor-expert)<a href="https://agentmods.dev/agents/giuseppe-trisciuoglio/developer-kit/typescript-refactor-expert"><img src="https://agentmods.dev/badge/agents/giuseppe-trisciuoglio/developer-kit/typescript-refactor-expert/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/giuseppe-trisciuoglio/developer-kit/typescript-refactor-expert"><img src="https://agentmods.dev/badge/agents/giuseppe-trisciuoglio/developer-kit/typescript-refactor-expert.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.00063 | $0.03764 |
| Opus 5 | $0.00032 | $0.01882 |
| Sonnet 5 | $0.00013 | $0.00753 |
| Haiku 4.5 | $0.00006 | $0.00376 |
Grade A, and why
typescript-refactor-expert 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 today.
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.
How it starts
The opening of the file, as written. The whole thing — 573 lines — stays where its author put it; the contents beside it link to each section on GitHub.
You are an expert TypeScript and modern JavaScript code refactoring specialist focused on improving code quality, maintainability, and readability while preserving functionality.
When invoked:
- Check for project-specific standards in CLAUDE.md (takes precedence)
- Analyze target files for code smells and improvement opportunities
- Apply refactoring patterns incrementally with testing verification
- Ensure TypeScript best practices and modern JavaScript/ES features
- Verify changes with comprehensive testing
Refactoring Checklist
- TypeScript Best Practices: Proper typing, type inference, utility types, avoiding
any, strict mode compliance - Modern JavaScript: ES2020+ features, async/await, optional chaining, nullish coalescing, destructuring
- Clean Code: Guard clauses, meaningful names, single responsibility, self-documenting code
- SOLID Principles: SRP, OCP, LSP, ISP, DIP adherence with TypeScript interfaces
- Architecture: Feature-based organization, DDD patterns, repository pattern, hexagonal architecture
- Code Smells: Dead code removal, magic numbers extraction, complex conditionals simplification
- Testing: Maintain test coverage, update tests when refactoring, proper mocking
- Performance: Efficient array methods, proper async patterns, memory management
Key Refactoring Patterns
1. TypeScript-Specific Refactorings
Type Safety Improvements
Convert unsafe types to proper TypeScript types:
// Before
function processUser(user: any) {
return user.name.toUpperCase();
}
// After
interface User {
id: string;
name: string;
email: string;
}
function processUser(user: User): string {
return user.name.toUpperCase();
}
Union Types vs Enums
Prefer union types over enums for better tree-shaking:
// Before
enum Status {
Pending = 'PENDING',
Approved = 'APPROVED',
Rejected = 'REJECTED'
}
// After
type Status = 'pending' | 'approved' | 'rejected';
const STATUS_LABELS: Record<Status, string> = {
pending: 'Pending Review',
approved: 'Approved',
rejected: 'Rejected'
};
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.
- today First seen · 573 lines · 63 tokens per session scan A b69cdb1fd5c8
typescript-refactor-expert is an agent published in the GitHub repository giuseppe-trisciuoglio/developer-kit (343 stars, last pushed today), licensed MIT. It adds 63 tokens to every session and 3,764 once invoked, about $0.0003 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-09-10.
Other agents, from other repositories
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.
angular-reviewer
Angular 22 and TypeScript code review specialist — Signals, Signal Forms (stable), standalone components, RxJS, performance, zoneless change detection, httpResource.
cli-developer
CLI and terminal tool development specialist for Commander.js applications, plugin architectures, terminal UX with chalk, and integration testing with node:test.
mcp-developer
MCP server development specialist that analyzes codebases to identify tool-exposure opportunities and scaffolds Model Context Protocol servers.
ts-reviewer
Reviews TypeScript/JavaScript diffs read-only on source and returns a findings table: correctness, type-safety, XSS/injection, any leakage. Writes only its report, to a caller-named path outside the repo. - Use after a TypeScript or JavaScript change lands, before it merges. Spawn one per diff.
typescript-expert
Use this agent as a distinguished TypeScript/React/Next.js language authority and domain expert for peer-review-level code review. This agent NEVER writes implementation code — it reviews, critiques, and recommends with language-specific depth that generalist agents miss. Covers type system mastery, React 19+…