workflow-legacy-analysis

Analyze legacy codebases to produce Context.md, architecture maps, and risk assessments.

Updated Mar 2, 2026
One-click install
npx skills add https://github.com/akourmaz/translate2 --skill workflow-legacy-analysis
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: workflow-legacy-analysis
Source: https://github.com/akourmaz/translate2/tree/main/.agents/skills/workflow-legacy-analysis
Command: npx skills add https://github.com/akourmaz/translate2 --skill workflow-legacy-analysis

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Legacy codebases and undocumented systems create risk and slow meaningful change. This Skill provides a repeatable protocol to understand, document, and plan modifications before touching code, reducing ambiguity for future work.

Core Features & Use Cases

  • Context.md captures the current understanding of the system.
  • Architecture maps provide a high-level view of components, data flows, and interfaces.
  • Risk assessment identifies unsafe areas and suggests mitigations.
  • Recommendations outline concrete next steps for refactors, migrations, or knowledge handoffs.
  • Use cases include onboarding to unfamiliar projects, preparing for refactors, and documenting legacy systems lacking current docs.

Quick Start

Begin by collecting artifacts and generating the initial Context.md and Architecture.md to anchor the analysis.

Frequently Asked Questions about workflow-legacy-analysis

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I document a legacy codebase before refactoring?

To document a legacy codebase before refactoring, collect project artifacts to generate a Context.md and architecture maps, capturing the current system understanding, component data flows, and interfaces to anchor subsequent modifications.

What is the best way to assess risks in undocumented legacy code?

Assessing risks in undocumented legacy code involves analyzing the system architecture to identify unsafe areas and suggest mitigations, providing a structured risk assessment that reduces ambiguity and highlights potential issues before code changes.

How do I prepare for a legacy system handoff with knowledge gaps?

Preparing for a legacy system handoff requires generating structured documentation like Context.md and architecture maps to transfer system understanding, alongside actionable recommendations that outline concrete next steps for the incoming team.

Can I use this approach to onboard to unfamiliar projects lacking current docs?

Yes, onboarding to unfamiliar projects lacking current docs is a primary use case, applying a repeatable protocol to estimate scope, capture artifacts, and produce structured architecture documentation that fills existing knowledge gaps.

What deliverables should I expect from a structured legacy code analysis?

Deliverables from a structured legacy code analysis include a Context.md file capturing current understanding, architecture maps detailing component relationships, a risk assessment with mitigations, and actionable recommendations for future refactors or migrations.

When do I need a structured analysis protocol for legacy systems?

You need a structured analysis protocol for legacy systems when undocumented components create risk and slow meaningful change, requiring artifact collection and scope estimation to plan modifications safely before touching code.