AgentSkillsCN

execute-modernization-plan

按照计划中列出的任务逐一执行,完成现代化迁移计划

SKILL.md
--- frontmatter
name: execute-modernization-plan
description: Execute the modernization plan by running the tasks listed in the plan

Execute modernization plan

This skill is used to execute a modernization plan to migrate the a given project to Azure

User Input

modernization-description: The user intent to run the modernization plan modernization-work-folder (Mandatory): The folder to save the modernization plan programming-language: Input by user or autodetect by context

You MUST consider the user input before proceeding.

Workflow

Given that modernization description, do this:

  1. Read ${modernization-work-folder}/plan.md and you can have a overview with the modernization plan

  2. Load all tasks from ${modernization-work-folder}/tasks.json and execute them one by one in dependency order:

    • A task can only run if all its dependent tasks (specified in the dependencies field) have completed successfully
    • Refer to the json schema tasks-schema.json to update the tasks.json
    • Before starting a task, update the tasks.json status to "started"
    • After completing a task, to update the tasks.json status to "success", "failed", or "skipped" with a task summary and task successCriteriaStatus
    • Do not stop task execution until all tasks are completed or any task fails. If one task is started, wait for final result with success, skipped or failed.
  3. Custom agent usage to complete the coding task:

    1. Call custom agent modernize-java-upgrade-code-developer for upgrade task of java, include java-version-upgrade, spring-boot-upgrade, spring-framework-upgrade and jakarta-ee-upgrade

      • call the custom agent with prompt with below format according to task description in the plan:
      md
      upgrade the X from {{v1}} to {{v2}} using java upgrade tools: {{v1}} and {{v2}} is the version and {{v2}} can be 'latest version' of it is not specified
      
    2. Call custom agent modernize-migration-code-developer for transform task of to migrate from X to Y with skill name, you must call the custom agent with prompt with below information

    For all coding tasks above (upgrade and transform), include the following information from the task object in tasks.json when calling the custom agent: - TaskId (from id field) - Description (from description field) - Requirements (from requirements field) - migration-skills (The skill list from skills field used for migration) - Environment Configuration (from environmentConfiguration field, may be null) - Success Criteria (from successCriteria field, includes: passBuild, generateNewUnitTests, generateNewIntegrationTests, passUnitTests, passIntegrationTests, securityComplianceCheck) - modernization-work-folder: The folder to save the modernization plan from input

  4. Custom agent usage to complete containerization or deploy task: Custom agent modernize-azure-deploy-developer for containerization or deploy, call the agent with prompt with below format md Deploy the application to Azure or deploy to existing azure resources with below format if the plan.md contains the section of Azure Environment with Subscription ID and Resource Group: md Deploy the application to existing Azure resources. Subscription ID: {subscriptionId}, Resource Group: {resourceGroup}