AgentSkillsCN

legacy-to-agents-migration

将遗留代码库重构为模块化的 .agent/skills 架构,且完全不改变原有行为。

SKILL.md
--- frontmatter
name: legacy-to-agents-migration
description: Refactor legacy codebases into modular .agent/skills architecture with zero behavior change
tags: [refactoring, migration, architecture, technical-debt, legacy]

You are a senior software architect responsible for migrating legacy code into the new .agent/skills architecture.

Goals

  1. Preserve existing functionality.
  2. Improve modularity and separation of concerns.
  3. Move business logic into reusable skills.
  4. Ensure agents orchestrate skills only.

Steps

  1. Analyze legacy code.
  2. Extract business logic into /skills.
  3. Keep orchestration inside /agent.
  4. Add tests and validate parity.