框架迁移规则指南
guidelines
框架到框架迁移规则与转换模式的集合(例如 Struts→Spring MVC、JSP→Thymeleaf、EJB→Spring Boot)。 触发词:"查看迁移指南"、"查找转换规则"、"寻找 Struts 到 Spring 的模式"、"应用迁移约定"、"X→Y 的转换规则"。 在迁移工作流中,也会被规划类和实现类技能自动调用。 不适用于:直接执行——其他技能会扫描此目录。
- License 许可
- MIT
- 最近更新
- 2026-09-24
- Stars
- ★ 55
- Forks
- 15
01 前言 Front Matter
- name
- guidelines
- description
- Collection of framework-to-framework migration rules and transformation patterns (e.g., Struts→Spring MVC, JSP→Thymeleaf, EJB→Spring Boot). Triggers: "check migration guidelines", "look up transformation rules", "find Struts-to-Spring patterns", "apply migration conventions", "conversion rules for X→Y". Also consumed automatically by planning and implementation skills during migration workflows. NOT for: direct execution — other skills scan this directory.
03 SKILL.md 正文
User Input
You MUST consider the user input before proceeding (if not empty).
Purpose
Guidelines are curated, domain-specific knowledge bases providing:
- Migration patterns: Technology-to-technology recipes
- Transformation rules: Concrete mappings and conversion templates
- Checklists: Step-by-step validation criteria
Skill Structure
skills/
├── guidelines/
│ └── SKILL.md # This lookup contract
├── struts-to-spring/
│ ├── SKILL.md # Independent Struts 2 → Spring Boot 3.x skill
│ └── SKILL-*.md # Supporting rule documents
└── {domain}/
└── SKILL.md # Future independent guideline skill
Every directory containing a SKILL.md is a direct child of skills/. Never nest one skill inside another skill.
Lookup Mechanism
When other skills need guideline lookup:
- Context Analysis: Extract technology keywords from spec/plan/code.
- Guideline Discovery: Search top-level
skills/*/SKILL.mdmetadata for matching source and target technologies. - Application: Load matching SKILL.md, extract applicable rules for current phase.
Integration Points
| Workflow Step | Guideline Application |
|---|---|
| Specification | Domain constraints, scope boundaries |
| Planning | Technology decisions, architecture patterns |
| Tasks | Transformation tasks, file-by-file changes |
| Implementation | Code transformation rules, test patterns |
| Completeness | Validation checklists, coverage criteria |
Creating New Guidelines
- Create a top-level directory:
skills/{domain}/ - Create
SKILL.mdwith:- Metadata header (name, description, triggers)
- Rules organized by migration step
- Concrete transformation examples (before/after)
- Validation checklist
Documenting Applied Guidelines
When guidelines are applied, document in the relevant artifact:
## Applied Guidelines
- **Guideline**: struts-to-spring
- **Rules Used**: convert-action-to-controller, convert-validation
- **Reference**: skills/struts-to-spring/SKILL.md
04 同仓库更多 Skills
迁移后基线测试验证
verify-test-baseline
根据冻结的基线规范生成并运行迁移后测试。
团队连接信息与密钥申请
team-request
团队成员如何在团队模式下申请基础设施连接信息并处理密钥
多智能体团队角色章程
team-charters
为多智能体编码团队提供角色章程(使命、职责范围、核心原则、质量标杆)。每份章程定义该角色的使命、职责范围、核心原则(边界约束)和质量标杆。大多数角色还包含沟通规则。协调者在任务分解时读取这些章程,以将工作分配给正确的角色。 触发场景:"查找角色章程"、"架构师负责什么"、"检查角色边界"、"查找团队角色"、"哪个角色处理 X"、"列出智能体章程"、"角色职责"。 不适用于:任务分解(使用 breaking-down-tasks)、代码实现(使用 implementing-code)、架构分析(使用 analyzing-architecture)。
Struts 2 至 Spring Boot 迁移
struts-to-spring
将 Apache Struts 2 应用程序迁移到 Spring Boot 3.x 和 Spring MVC 的迁移指南。
Spring Boot 项目脚手架搭建
spring-boot-scaffolding
在重写迁移过程中创建新 Spring Boot 项目的参考指南。
项目经验教训记录与共享
sharing-learnings
介绍如何记录项目经验教训,以便后续阶段的工作者和未来的智能体运行能够参考使用。