flutter-migrate

Automate Flutter module refactors by renaming, moving, or deleting modules.

Updated Apr 10, 2026
One-click install
npx skills add https://github.com/dus2183-commits/flutter-skills --skill flutter-migrate
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: flutter-migrate
Source: https://github.com/dus2183-commits/flutter-skills/tree/main/flutter-migrate
Command: npx skills add https://github.com/dus2183-commits/flutter-skills --skill flutter-migrate

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Automates safe module refactors in Flutter projects by renaming, moving, or deleting modules while updating imports, routes, bindings, and mocks to prevent broken references.

Core Features & Use Cases

  • Dry-run preview of changes before applying
  • Batch updates of code references (imports, routes, bindings)
  • Syncs mock data and docs paths during migration
  • Works across lib/features and app routing structures

Quick Start

Rename or move a Flutter module by telling the tool the source and target names and let it perform a safe, end-to-end refactor.

Frequently Asked Questions about flutter-migrate

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I safely rename a Flutter module without breaking imports and routes?

Safely moving a Flutter module requires updating all code references, including imports, bindings, and mocks. This tool automates the end-to-end module move while synchronizing documentation paths and validating changes with a dry-run preview.

What is the best way to delete a feature module from a Flutter app?

Deleting a Flutter feature module safely means removing all related code references to prevent runtime errors. This tool automates module deletion by cleaning up imports, routes, and bindings while syncing mock data and docs paths for consistent reference updates.

Does this refactoring tool support Flutter projects with custom routing structures?

This Flutter refactoring tool is designed for typical app structures organized under lib/features and standard app routes. It consistently updates imports, bindings, and mocks, making it suitable for projects using conventional Flutter feature-based architectures.

Can I preview changes before applying a Flutter module migration?

Yes, you can preview changes before applying a Flutter module migration using the dry-run validation feature. This allows you to review all batch updates to imports, routes, and bindings before executing the actual refactor.

Why do my Flutter imports break after moving files between feature directories?

Flutter imports break after moving files because code references are not updated consistently across the project. Automating the refactor to batch update imports, bindings, and mocks prevents the broken references that occur during manual file migrations.