legacy-modernizer

legacy-modernizer is an agent for Claude Code from davepoon/buildwithclaude. It costs 48 tokens per session (367 once invoked), scanned A, original, MIT.

A legacy-modernization agent for safely updating old codebases, frameworks, dependencies, and database designs while keeping existing behavior working.

In plain words
What is it for?
Use it to migrate frameworks and language versions, update dependencies, move from monoliths to services, modernize databases, add tests, and maintain backward-compatible APIs.
Why use it?
It helps reduce technical debt and migration risk through incremental changes, compatibility layers, testing, feature flags, and rollback plans.

Agent for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the agents-development-architecture plugin — 12 agents shipped together

Good fit Use it to migrate frameworks and language versions, update dependencies, move from monoliths to services, modernize databases, add tests, and maintain backward-compatible APIs.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/davepoon/buildwithclaude/legacy-modernizer
About the project

davepoon/buildwithclaude is a discovery hub and plugin marketplace for Claude Code extensions, including agents, commands, hooks, skills, plugins, MCP servers, and marketplace collections. Developers use it to browse, search, and find installation instructions for tools that extend Claude-related workflows. Catalogue entries include agents, plugins, commands, and skills from this collection.

davepoon/buildwithclaude · 3,421 stars · on GitHub · buildwithclaude.com

Install

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.

Clone the repo
git clone --depth 1 https://github.com/davepoon/buildwithclaude

Made for: Claude Code.

Or install agents-development-architecture, the plugin that ships this one along with the rest of its 12 agents.

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 legacy-modernizer

README.md
[![agentmods](https://agentmods.dev/badge/agents/davepoon/buildwithclaude/legacy-modernizer.svg)](https://agentmods.dev/agents/davepoon/buildwithclaude/legacy-modernizer)
Your own site
<a href="https://agentmods.dev/agents/davepoon/buildwithclaude/legacy-modernizer"><img src="https://agentmods.dev/badge/agents/davepoon/buildwithclaude/legacy-modernizer.svg" alt="Measured on agentmods" height="20"></a>
Per session 48 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 367 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.00048 $0.00367
Opus 5 $0.00024 $0.00183
Sonnet 5 $0.00010 $0.00073
Haiku 4.5 $0.00005 $0.00037

Measured 4d ago against content hash 95330adfcc8b, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-07, from the pricing page.

Security

Grade A, and why

legacy-modernizer 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 4d 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/agents-development-architecture/agents/legacy-modernizer.md · 38 lines

What it actually says

You are a legacy modernization specialist focused on safe, incremental upgrades.

When invoked:

  1. Plan and execute framework migrations including jQuery→React, Java 8→17, Python 2→3
  2. Modernize database architectures from stored procedures to ORM-based systems
  3. Decompose monolithic applications into microservices with proper boundaries
  4. Update dependencies and apply security patches with compatibility testing
  5. Establish comprehensive test coverage for legacy code before refactoring
  6. Design API versioning strategies maintaining backward compatibility

Process:

  • Apply strangler fig pattern for gradual replacement without system disruption
  • Always add comprehensive tests before beginning any refactoring work
  • Maintain strict backward compatibility throughout migration phases
  • Document all breaking changes clearly with migration guides and timelines
  • Use feature flags for gradual rollout and safe deployment strategies
  • Focus on risk mitigation: never break existing functionality without clear migration path
  • Create compatibility shim and adapter layers for smooth transitions
  • Establish rollback procedures for each phase of modernization
  • Monitor performance and functionality throughout the migration process

Provide:

  • Comprehensive migration plan with phases, milestones, and risk assessments
  • Refactored code maintaining all existing functionality and behavior
  • Complete test suite covering legacy behavior and edge cases
  • Compatibility shim and adapter layers for seamless transitions
  • Clear deprecation warnings with timelines and migration instructions
  • Detailed rollback procedures for each modernization phase
  • Framework migration implementation with incremental adoption strategies
  • Security patch application with compatibility validation and testing
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. 4d ago First seen · 38 lines · 48 tokens per session scan A 95330adfcc8b

Subscribe to this mod's changes

legacy-modernizer is an agent published in the GitHub repository davepoon/buildwithclaude (3,421 stars, last pushed today), licensed MIT. It adds 48 tokens to every session and 367 once invoked, about $0.0002 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-03.

Related

Other agents, from other repositories

api-tester

Use this agent for comprehensive API testing including performance testing, load testing, and contract testing. This agent specializes in ensuring APIs are robust, performant, and meet specifications before deployment. Examples:\n\n \nContext: Testing API performance under load.

ccplugins/awesome-claude-code-plugins · 0 tokens

checker

Judges finished work against its validator and the real need, leaving nothing unchecked. Use when code or a deliverable needs independent verification before it ships. Never edits the work, never implements the fix.

ai-driven-dev/framework · 42 tokens

reproduction-checker

Checks whether a specific reported bug still reproduces on the live site and reports a verdict with evidence. Use during a Bug Shepherd triage run.

mshadmanrahman/pm-pilot · 34 tokens

tdd-guide

Enforces test-first development through the RED-GREEN-IMPROVE cycle. Use when writing new features or fixing bugs.

mshadmanrahman/pm-pilot · 29 tokens

qa-loop

Autonomous audit-fix loop aligned with the Anthropic 2026 pattern (code-review plugin). AUDIT phase in parallel (4 sub-agents), VALIDATE phase (filters false positives), high-signal filter, auto-scope git diff main...HEAD. Flags --audit-only and --comment for read-only and inline PR post modes.

christopherlouet/claude-base · 72 tokens

python-expert

Use this agent when working with Python code that requires advanced features, performance optimization, or comprehensive refactoring. Examples: Context: User needs to optimize a slow Python function that processes large datasets. user: "This function is taking too long to process our data, can you help optimize it?"…

xbim08/awesome-claude-code-plugins · 0 tokens