Repository navigation
feat: add a skill for migrating legacy bundle manifests to Bundles Next HCL - #1544
Conversation
|
|
@greptileai review |
|
@greptileai review |
|
Ran into an issue where if I didn't supply a bundle for it to migrate it just didn't do anything and only ran the command to view the prompt. Would be nice if it looked for bundles and asked the user which one they want to be migrated. At a minimum it should raise the issue that a bundle was not supplied. |
|
Ran into another issue, if you have it migrate a bundle in a subdir the miigration report and new bundle are written in the root dir the agent was executed in |
This is as designed and stated in the
Where you are expected to replace |
This was the intent. My understanding is, agents get default permissions to create files in the dir they are executing in. |
|
Why was the generation check removed from hk here? f10dfed#diff-16e11e1c2c8588f006bd82a106fc11ea3cbe5b9fce3f8314a5f3944aaddbd0d5 The commit says move this to CI, but hk is run in CI. Why wouldn't we want this as an hk check (that runs in CI automatically)? |
I believe Eoghan's issue was that it would be a burden to run in local dev with other hk pre-commit hooks. But you raise a good point. So, I offer e1663ae which puts the check back in to |
slaskawi
left a comment
There was a problem hiding this comment.
Generally LGTM. Added one comment and once resolved - I'm happy to approve
Description
CLI-225 asks that a skill be constructed that will migrate legacy bundle manifests to Bundles Next HCL. This PR provides a skill and instructional material on how to use it.
We can't unit test this and there are quite a few judgement calls made to make the migration useful and easy to use, so taste considerations are important when reviewing this PR.
Users will be able to see the skill printed out in full at:
CLI_FEATURES=NextMode=true uds tools migrate-bundle skill.It is the agent itself that will be running that command though; getting an agent to discover and use this prompt is part of the help documentation printed at:
CLI_FEATURES=NextMode=true uds tools migrate-bundle skill --help.For example, following the documentation from
CLI_FEATURES=NextMode=true uds tools migrate-bundle skill --help, we can copy/paste and slightly modify (to reference our specific legacy file) the instructions to perform this migration:This produces this migated file as
bundle.uds.hcl:Along with this report:
migration-report.md
This skill tested by running through files in
testdata.This PR also adds some automation:
uds run generate:migration-skill- uses a single source-of-truth for the skill and generates an embeddable file that is used by the cli to emit the skill.uds run generate:check-migration-skill- runs the generator tests and checks that the generated file is up to date and there is no drift. CI will also run this check in thelintphase.CLI_FEATURES=NextMode=true uds tools migrate-bundle skill -o/--outputis also available to print the skill to a file.CONTRIBUTING.mdis updated with info on this automation.Related Issue
Relates to #CLI-225
Type of change
Checklist before merging