Works with the AI tools you already use
Legacy System Archaeologist
by J. Trejo
Reconstruct architecture and map risks in inherited legacy codebases with evidence-based auditing and migration plans.
Free
See it in action
You say
I've inherited this messy monolith and need to know what's safe to touch. Analyze the codebase, check the billing logic, and give me a risk assessment and migration plan.
Your agent does
System Health: CRITICAL Risk Register:
- /app/services/billing_engine.rb: BLACK (High fan-in: 42, Git churn: high, 0 tests)
- /lib/legacy_utils.js: RED (Dead code candidate, but dynamic dispatch possible) Plan: Implement 5 characterization tests on billing_engine before refactoring.
About this skill
What it does
The Legacy System Archaeologist is a specialized toolkit for developers who have inherited "black box" codebases. It performs deep structural analysis to reconstruct system architecture, map dependencies, and identify high-risk modules before you write a single line of code.
Why use this skill
Modernizing legacy systems is dangerous because the "why" and "how" are often lost to time. While a standard AI might give you generic refactoring advice, this skill uses a rigorous 6-phase protocol—Inventory, Dependency Mapping, Risk Scoring, Dead Code Analysis, Architecture Reconstruction, and Strategy Reporting—to provide evidence-based insights.
It goes beyond simple prompting by using dedicated scripts to calculate "fan-in" (coupling), git churn (instability), and risk classifications. You get a professional-grade audit that identifies "Black Zone" files (like auth or payments) that no agent or human should touch without characterization tests.
Supported tools
- Languages: Multi-framework support (Rails, Laravel, Django, Node, Spring, .NET)
- Analysis Scripts: Python-based dependency graphers and risk scorers
- Context: Git history analysis and static code analysis
The Result
You receive a structured documentation suite including an Executive Summary for stakeholders, a full System Map, a file-level Risk Register, and a phased Migration Plan based on the Strangler Fig pattern.
How to install
Drop the file into your AI Agent. Works with Claude, Cursor, ChatGPT, and 20+ more.
Reviews
No reviews yet
Be one of the first to try it. Every listed skill passes our trust checks below.
Security scanned
Passed our 8-point scan before listing
Fresh listing
Recently published to Agensi
Free forever
No account required to browse
Trust & safety
Security scanned
Verified clean 3 months ago
- Free to download with an account
Creator
2 skills on Agensi
Frequently Asked Questions
Popular in Code Review

Legacy Code Modernization Planner for AI Coding Agents
Creates safe modernization roadmaps for old, messy, undocumented, or fragile codebases, including risk audits, refactor phases, dependency reviews, testing plans, migration steps, and AI coding prompts.
pr-reviewer
Automated, high-precision code reviews that detect bugs, security flaws, and performance bottlenecks in your PRs.
tech-debt-scanner
Audit your codebase for technical debt and generate a prioritized, actionable remediation report.

codegraph-ast-grep
Supercharge repo exploration and refactoring with semantic call-graph tracing and structural AST pattern matching.