Prompt guide for AI assessment¶
Use the suggested prompts on this page to use the snowconvert-assessment skill of the Cortex Code CLI agent.
These prompts can be used to direct the Cortex Code CLI agent to customize the assessment of specific sections of the source database code.
You can use the prompts to customize the suggested migration plan in the generated unified report. Refer to AI assessment report for more information on the unified report.
Note
Snowflake strongly recommends installing Python (3.11 or later) and the uv package manager to avoid issues related to environment dependencies.
Invoke the skill¶
When you invoke the snowconvert-assessment skill, the Cortex Code CLI agent responds by:
Showing a welcome message explaining the functionality.
Confirming your request before running any analysis.
Asking for more details on path, goals, preferences, if needed.
Example prompt scenarios¶
Start by invoking the
snowconvert-assessmentskill as shown below:The Cortex Code CLI agent will ask for the following:
Path to your SnowConvert AI reports.
Path to the file location for the assessment report that will be generated as output.
Any specific goals or preferences for the assessment.
Start the assessment with the following prompt:
Set specific goals for the Cortex Code CLI agent. You can limit the number of deployment waves with the following prompt:
You can also specify the range of deployment waves as shown below:
To change the size of the deployment waves, use the following prompt as shown below:
To force the wave to contain a fixed number of objects as shown below:
You can prioritize objects in the deployment waves based on the business functions. For example, to prioritize all payroll-related objects in a specific deployment wave, use the following prompt:
Once you have initial results, you can refine the AI assessment report.
To reorganize the objects in the suggested deployment waves, use the following prompt:
To investigate dependencies, use the following prompt:
After investigations, you can regenerate the assessment report with the following prompts:
The Cortex Code CLI agent maintains the context. There is no need to start over.
To analyze the results of the assessment report, you can ask targeted questions using the following prompts:
You can drill down into the generated assessment report with the following prompts:
For objects categorized under the Exclusion Report:
For Dynamic SQL Report review, use the following prompt:
For SSIS/ETL package analysis, use the following prompt:
Tips for running AI assessments¶
The snowconvert-assessment skill is a powerful tool that can be used to generate actionable migration plans for complex workloads.
This section contains helpful tips that optimize the skill for best results.
Use a structured approach with target goals for maximum efficiency.
Example of an inefficient prompt sequence:
Prompt 1:
Prompt 2:
Prompt 3:
Example of an efficient prompt:
Use wildcards to expand the object selection to include all related objects.
Example of supported wildcard patterns:
*payroll*matches all objects containing the term “payroll” in the object name.PKG_*matches all objects starting withPKG_in the object name.dbo.Customer*matches all objects in the dbo schema starting with “Customer”.*_Archivematches all objects ending with “_Archive”.
Select dependency-based ordering or category-based ordering for deployment waves. By default, the Cortex Code CLI agent organizes the objects in the deployment waves based on their category, in the following order:
Tables
Views
Procedures and functions
ETL/SSIS packages
If you prefer a dependency-based ordering:
Troubleshooting¶
I want different wave sizes
Use the following prompt to specify the minimum and maximum number of objects per wave:
Important objects are late in the waves
Use the following prompt to move important objects to the earlier waves:
or reorganize after generation:
I have too many waves
Use the following prompt to reduce the number of waves by increasing the number of objects per wave:
There are objects with circular dependencies
Review the cycles.txt file from the SnowConvert AI reports and consider schema refactoring, or deploying circular dependency groups together, or manual intervention for complex cases.
Frequently asked questions¶
Can I run just one type of analysis/assessment (for example, waves only)?
Yes, you can run just one type of analysis/assessment by specifying the name of the report in the prompt (for example, deployment waves only).
How do I update the analysis/assessment after code changes?
Re-run the assessment with updated SnowConvert AI reports, or specify “Start fresh analysis” in the prompt.
Can I export the data from the assessment report?
Yes, the interactive
multi_report.htmlreport allows you to export the data from the assessment report intocsvfiles.What if I disagree with the object exclusion recommendations?
The object exclusions are recommendations only. You can decide what to exclude.
How do I handle the objects that the Cortex Code CLI agent cannot categorize?
Review the objects in the report manually. Such objects are flagged as “Uncertain items” in the report.