- Product direction is fixed as a
CLI-first OSSfor legacy Flutter teams. - Planning is managed with aligned phases across two views:
- Service roadmap for user value and adoption
- Development roadmap for implementation and architecture
- The current execution slice is
v0.2.0 / Guided Planning completion. - The immediate target is to close Guided Planning with config support, summary artifacts, and CI-friendly summaries while keeping the public command set fixed at
doctor + audit + report.
- Toolchain is pinned with
fvm. - Development defaults to TDD.
- All feature work follows
Red -> Green -> Refactor. - New capabilities should be introduced with failing tests first, then minimal implementation, then cleanup.
- Position GetXDrop as a migration workbench, not a one-click converter.
- Deliver reports that help teams decide where to start.
- Exit criteria:
- Example app output is meaningful.
- One or two real legacy apps confirm the report is actionable.
- Value:
- Scan a local Flutter project and surface GetX usage, risk, and suggested order of work.
- UX:
doctor,audit, andreportshould cover the first diagnosis workflow.
- Outputs:
inventory.jsonasAuditResultsummary.jsonasCommandSummary- Markdown report
migration_report.jsonasProjectInventory- Parse failure inventory
- Category and risk summaries
- Success criteria:
- The tool answers both:
- What is risky?
- What should be migrated first?
- The sample app is covered by regression tests across State, DI, Routing, UI Helper, and Network.
- The sample app has a dedicated CLI end-to-end flow test for
doctor -> audit -> report. melos run analyzeandmelos run testare green in CI.
- The tool answers both:
- Value:
- Move from raw detection to migration planning support.
- Planned features:
- Route inventory
- Network inventory
- Controller complexity score
- Explainable finding drill-down
getxdrop.yaml
- Current status:
- Route inventory, network inventory, controller complexity, and explainable finding drill-down are present in the report output.
getxdrop.yaml,summary.json, compact CLI summaries, and hotspot ranking complete the planning slice inv0.2.0.
- Success criteria:
- A team can derive a migration work breakdown directly from CLI output.
- Value:
- Reduce the cost of starting the target architecture.
- Planned features:
- GoRouter shell generation
- Dio client and interceptor shell
- Riverpod 3 application and data skeletons
- Success criteria:
- New target structure can be prepared in parallel without mutating legacy code first.
- Value:
- Remove repetitive low-risk work without overpromising automation.
- Planned features:
- TODO insertion
- Import hints
- Simple helper and route rewrite candidates
- Diff preview
- Success criteria:
- Automation remains dry-run-first and does not reduce trust.
- Value:
- Support repeated team use and CI adoption.
- Planned features:
- Stable machine-readable outputs
- CI summary support
- Baseline comparison and diffs
- Artifact-friendly reports
- Success criteria:
- The tool becomes useful in team workflows, not just local diagnosis.
- Default strategy:
- Remain CLI-first.
- Later options:
- Report viewer
- Desktop UX
- Hosted report portal
- Constraint:
- Only evaluate after the CLI workflow and schema are stable.
- Set up root
pubspec.yamlwithworkspaceandmelos. - Fix package boundaries:
clianalyzer_corereport_corecodemod_coretemplates
- Keep
codemod_coreandtemplatesas reserved contracts first. - Preserve the sample GetX app as an integration fixture.
- Define normalized core models:
FindingProjectInventorySummaryStatsRiskSummaryParseFailureRecommendedStepAuditConfigAuditResult
- Build an AST-first rule engine.
- Restrict string fallback scanning to parse-failure files.
- Initial rule coverage:
.obsRx*ObxGetBuilderGetxController- lifecycle methods
Get.putGet.lazyPutGet.findBindingsGetMaterialAppGetPageGet.to*Get.off*Get.arguments- route middleware
- UI helpers
GetConnect
- Render markdown and JSON outputs from normalized inventory.
- Fix schema shape and finding ID rules.
- Start with a rule-based recommended order.
- Stabilize:
- Summary counts
- Risk summary
- Category grouping
- Finding detail formatting
- Expose only:
doctorauditreport
- Do not expose:
scaffoldapply-safe
- Standardize output directory:
build/getxdrop/
- Standardize artifacts:
inventory.jsonsummary.jsonmigration_report.mdmigration_report.json
- Standardize exit codes:
- success
- invalid project
- partial analysis
doctorshould:- validate project shape
- inspect PATH runtime
- print
issues:andwarnings:separately - treat verified-family drift as warning, not failure
- Lock fixture expectations with integration tests.
- Document setup and execution in the repo.
- Maintain regression checks against the sample GetX app.
- Add minimal GitHub Actions for analyze and test.
- Document config precedence, summary artifacts, and CI-friendly stdout.
- Define scaffold inputs and overwrite policy.
- Connect audit inventory to future scaffold generation.
- Defer actual generation to a later slice.
- Reserve:
RewriteCandidateEditPlan
- Define low-risk safety policy and dry-run diff contract.
- Defer codemod implementation to a later slice.
- Bootstrap the repository as a Melos monorepo.
- Implement working packages:
packages/clipackages/analyzer_corepackages/report_core
- Keep
packages/codemod_coreandpackages/templatesas reserved placeholders. doctorvalidates:- Flutter project shape
pubspec.yamllib/- active PATH Flutter and Dart version visibility
- verified family and recommended exact versions
auditscans:lib/**/*.dart- optionally
test/**/*.dartwith--include-test
auditnormalizes output intoProjectInventory.reportreuses an existing inventory when present, otherwise runs a fresh audit first.- Default exclusions:
.dart_toolbuild- generated platform code
GeneratedPluginRegistrantvariants
- Confidence policy:
- AST direct match ->
high - AST inference ->
medium - fallback scan ->
low
- AST direct match ->
- Risk policy:
.obs, simple route calls ->low- lifecycle, DI lookup, UI helpers ->
medium GetxController, routing infra,GetConnect->high
- This slice does not expose:
scaffoldapply-safe
- Development policy for this slice:
- TDD by default
Red -> Green -> Refactor- tests before behavior changes
getxdrop doctor --project <path>getxdrop audit --project <path> --out <path> [--format markdown|json|both] [--include-test|--no-include-test] [--ignore <glob>] [--dry-run]getxdrop report --project <path> --out <path> --format markdown|json|both
inventory.jsonsummary.jsonmigration_report.mdmigration_report.json
FindingProjectInventoryRecommendedStepAuditConfigAuditResult
RewriteCandidateEditPlan- Scaffold generation input contract
- Each rule should have at least:
- one positive case
- one negative case
- Include alias import and chained call cases.
- Verify fallback findings are emitted for parse-failure files only.
- Snapshot markdown and JSON output from a fixed inventory fixture.
- Verify:
- finding IDs
- risk summary
- category grouping
- recommended order
doctorsucceeds on a valid sample app.doctorreturns exit code0with warnings for supported family drift.doctorreturns exit code2for invalid projects.auditwrites inventory and reports.reportreuses existing inventory.- Partial analysis returns recoverable exit code
3.
sample_getx_appmust emit findings in:- State
- DI
- Routing
- UI Helper
- Network
- Required detections include:
.obsRx*ObxGet.putGet.findGetMaterialAppGet.to*Get.arguments- route middleware
GetConnect
- The fixture must produce at least one
low,medium, andhighrisk finding.
- Existing example app tests must remain green.
- Hosted SaaS is out of scope for now.
- CLI adoption and schema stability come first.
- The example app remains the main integration fixture.
- Fixture expansion happens only when audit accuracy needs broader coverage.
- The Definition of Done for this slice is:
- meaningful audit and report generation against the example app