#22 Add Flyte 1 → 2 migration skills + eval coverage
Pull request opened by
cosmicBboy
What
Converts the official
Flyte 1 → 2 migration guide (11 pages) into
6 agent skills and wires them into the eval harness.
New skills
| Skill | Covers |
| ----------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| flyte-migrate | Start-here orchestrator: flytekit→flyte shift, terminology/concept mapping, the two mechanical changes, incremental strategy, hybrid v1/v2 pipelines, gotchas — routes to the rest |
| flyte-migrate-tasks-workflows | @task/@workflow/@dynamic → a single @env.task on a TaskEnvironment; ordering without >>; subworkflows as tasks |
| flyte-migrate-config | Images (ImageSpec→flyte.Image), resources/GPUs, caching, secrets, scheduling (LaunchPlan/CronSchedule→Trigger/Cron), and pyflyte→flyte CLI/config |
| flyte-migrate-control-flow | conditional()→if/else, @dynamic→plain loops, on_failure→try/except, map_task→flyte.map/asyncio.gather |
| flyte-migrate-data-io | FlyteFile/FlyteDirectory→flyte.io.File/Dir, StructuredDataset→flyte.io.DataFrame, dataclasses/Pydantic I/O |
| flyte-migrate-ml | ML workloads (training, HPO, GPU/deep learning, batch inference) + new-in-v2 patterns (serving, apps, sandboxed execution) |
Each skill carries verbatim before/after `Flyte 1`/`Flyte 2` code, concept/parameter mapping tables, a Grounding References table, and Anti-Patterns.
Eval coverage
•
12 new scenarios — a
static
lint scenario per skill + 6
trajectory
scenarios that feed the agent real v1
flytekit
code and assert the migrated output imports
flyte
, uses `TaskEnvironment`/`@env.task`, and has
no leftover v1 constructs (
import flytekit
,
@workflow
,
map_task
,
conditional(
,
FlyteFile
,
ImageSpec
, …), plus an LLM-judge rubric.
• Both READMEs get a "Migration (Flyte 1 → 2)" section. The marketplace / pi / codex manifests auto-discover skills, so no manifest edits were needed.
Verification
• Static lint:
21/21 skills passing (frontmatter valid, all code fences parse, no secrets)
• Unit tests:
29 passing (incl. scenario-integrity checks)
• Scenario count 19 →
31;
select.py
correctly scopes migration-skill changes
Not yet run: the trajectory/judge scenarios were verified structurally (load + select + lint) but not executed against a live agent+GLM run — that needs the auth-gated GLM key (same open spike as the base harness).
Based on `evals-harness`; merge that PR first.
🤖 Generated with
Claude Code
flyteorg/flyte-agent-plugins