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:
- •
Read ${modernization-work-folder}/plan.md and you can have a overview with the modernization plan
- •
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
dependenciesfield) 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.
- •A task can only run if all its dependent tasks (specified in the
- •
Custom agent usage to complete the coding task:
- •
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:
mdupgrade 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 - •
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
idfield) - Description (fromdescriptionfield) - Requirements (fromrequirementsfield) - migration-skills (The skill list fromskillsfield used for migration) - Environment Configuration (fromenvironmentConfigurationfield, may be null) - Success Criteria (fromsuccessCriteriafield, includes: passBuild, generateNewUnitTests, generateNewIntegrationTests, passUnitTests, passIntegrationTests, securityComplianceCheck) - modernization-work-folder: The folder to save the modernization plan from input - •
- •
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 Azureor 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}