AgentSkillsCN

migrate-flutter-code

以最小风险与清晰的验证流程,执行Flutter/Dart的迁移与重构。

SKILL.md
--- frontmatter
name: migrate-flutter-code
description: Execute Flutter/Dart migrations and refactors with minimal risk and clear validation.

Migrate Flutter Code

Use for framework/API/state-management migrations.

Workflow

  1. Define migration target and acceptance criteria.
  2. Run baseline analysis and tests.
  3. Apply migration in small batches by module.
  4. Re-run analysis/tests after each batch.
  5. Address deprecations and remove temporary adapters.
  6. Final pass for style, naming, and docs.

Guardrails

  • Do not mix unrelated refactors with migration work.
  • Keep intermediate states buildable when possible.
  • Prefer codemod-like repetitive edits over ad hoc changes.
  • Attach validation status to each migration batch.

Required output

  1. Migration target and acceptance criteria.
  2. Batch-by-batch changes summary.
  3. Validation commands/results per batch.
  4. Breaking changes and rollback notes.
  5. Next batch recommendation.