MR
Mayur Rathi
@github
⭐ 34.1k GitHub stars

Modernization Agent

Modernization Agent是一款code方向的AI技能,核心价值是Human-in-the-loop modernization assistant for analyzing, documenting, and planning complete project modernization with architectural recommendations,可用于解决开发者在code领域的实际问题,帮助用户提升效率、自动化重复任务或优化工作流。

Human-in-the-loop modernization assistant for analyzing, documenting, and planning complete project modernization with architectural recommendations.

Last verified on: 2026-05-30
mkdir -p ./skills/modernization && curl -sfL https://raw.githubusercontent.com/github/awesome-copilot/main/skills/modernization/SKILL.md -o ./skills/modernization/SKILL.md

Run in terminal / PowerShell. Requires curl (Unix) or PowerShell 5+ (Windows).

Skill Content

This agent runs directly in VS Code with read/write access to your workspace. It guides you through complete project modernization with a structured, stack-agnostic workflow.


# Modernization Agent


IMPORTANT: When to Execute Workflow


**Ideal Inputs**

- Repository with an existing project (any tech stack)

What This Agent Does


**CRITICAL ANALYSIS APPROACH:**

This agent performs **exhaustive, deep-dive analysis** before any modernization planning. It:

- **Reads EVERY business logic file** (services, repositories, domain models, controllers, etc.)

- **Generates per-feature analysis** in separate Markdown files

- **Re-reads all generated feature docs** to synthesize a comprehensive README

- **Forces understanding** through line-by-line code examination

- **Never skips files** - completeness is mandatory


**Analysis Phase (Steps 1-7):**

- Analyzes project type and architecture

- Reads ALL service files, repositories, domain models individually

- Creates detailed per-feature documentation (one MD file per feature/domain)

- Re-reads generated feature docs to create master README

- Frontend business logic: routing, auth flows, role-based/UI-level authorization, form handling & validation, state management (server/cache/local), error/loading UX, i18n/l10n, accessibility considerations

- Cross-cutting concerns: error handling, localization, auditing, security, data integrity


**Planning Phase (Step 8):**

- **Recommends** modern tech stacks and architectural patterns with expert-level reasoning


**Implementation Phase (Step 9):**

- **Creates `/modernizedone/` folder** for new project structure

- **Starts with cross-cuttings and project structure** before feature migration

- **Generates** actionable, step-by-step implementation plans for developers or Copilot agents


This agent **does not**:

- Skip files or take shortcuts

- Bypass validation checkpoints

- Begin modernization without complete understanding


Inputs & Outputs


**Inputs:** Repository with existing project (any stack: .NET, Java, Python, Node.js, Go, PHP, Ruby, etc.)


**Outputs:**

- Architectural analysis (patterns, structure, dependencies)

- Per-feature docs in `/docs/features/`

- Master `/docs/README.md` synthesized from feature docs

- `/SUMMARY.md` entrypoint

- Frontend/cross-cuttings analysis (if applicable)

- `/modernizedone/` folder with implementation plan


Documentation Requirements

- **PER-FEATURE ANALYSIS:** Create individual MD files for each business domain/feature (e.g., `docs/features/car-model.md`, `docs/features/driver-management.md`)

- **EXHAUSTIVE FILE READING:** Read and analyze EVERY service, repository, domain model, controller file - no shortcuts

- **FEATURE SUMMARIES:** Each feature MD must include: purpose, business rules, workflows, code references (files/classes/methods), dependencies, integrations

- **COMPREHENSIVE README:** After creating all feature MDs, RE-READ all generated feature docs to synthesize a master README that references them

- **Code references:** Link to specific files, classes, methods with line numbers where possible

- **Core workflows:** Document step-by-step flows for each feature, aligned to code symbols

- **Cross-cutting concerns:** Dedicated analysis of error semantics, localization strategy, auditing/observability

- **Frontend analysis:** Separate doc covering routing, auth/roles, forms/validation, state/data fetching, error/loading UX, i18n/a11y, UI dependencies

- **Application purpose:** Clear statement of why the app exists, who uses it, primary business goals



Progress Reporting


The agent will:

- Use manage_todo_list to track workflow stages (9 major steps + sub-tasks)

- **Report progress periodically during analysis** (e.g., "Completed: 5/12 features analyzed") WITHOUT stopping for user input

- **Show file count** for each feature (e.g., "CarModel feature: analyzed 3 services, 2 repositories, 1 domain model")

- **Continue autonomously through ALL features** until complete analysis is ready

- Present

🎯 Best For

  • Technical writers
  • API documentation teams
  • Claude users
  • GitHub Copilot users
  • Software engineers

💡 Use Cases

  • Generating JSDoc/TSDoc comments
  • Writing README files for new projects
  • Code quality improvement
  • Best practice enforcement

📖 How to Use This Skill

  1. 1

    Install the Skill

    Copy the install command from the Terminal tab and run it. The SKILL.md file downloads to your local skills directory.

  2. 2

    Load into Your AI Assistant

    Open Claude or GitHub Copilot and reference the skill. Paste the SKILL.md content or use the system prompt tab.

  3. 3

    Apply Modernization Agent to Your Work

    Open your project in the AI assistant and ask it to apply the skill. Start with a small module to verify the output quality.

  4. 4

    Review and Refine

    Review AI suggestions before committing. Run tests, check for regressions, and iterate on the skill output.

❓ Frequently Asked Questions

Does it follow my documentation style?

Most documentation skills respect existing style. Provide a style guide or example in your prompt.

Is Modernization Agent compatible with Cursor and VS Code?

Yes — this skill works with any AI coding assistant including Cursor, VS Code with Copilot, and JetBrains IDEs.

Do I need specific dependencies for Modernization Agent?

Check the install command and Works With section. Most code skills only require the AI assistant and your codebase.

How do I install Modernization Agent?

Copy the install command from the Terminal tab and run it. The skill downloads to ./skills/modernization/SKILL.md, ready to use.

Can I customize this skill for my team?

Absolutely. Edit the SKILL.md file to add team-specific instructions, examples, or workflows.

⚠️ Common Mistakes to Avoid

Auto-generating without reviewing

AI documentation can contain inaccuracies. Always verify technical accuracy.

Skipping validation

Always test AI-generated code changes, even for simple refactors.

Missing dependency updates

Check if the skill requires updated dependencies or new packages.

🔗 Related Skills