Prepackaged migration prompts

The migration toolkit stores ordered prompts under dynamics-migration-tool/prompts/. Your AI agent will execute them in the sequence below and will call record-prompt-execution.sh after running each prompt so that executedPrompts[] in bootstrap.json stays current.

Step

Prompt file

Required?

Description

00pre

00pre-bootstrap.md

Required

  • Confirms agent permissions
  • Checks for Gradle, JDK, and Android SDK requirements
  • Prompts you for the required GDApplicationID and GDApplicationVersion
  • Captures attestations
  • Creates a Git backup branch (when available)
  • Resolves the BlackBerry Dynamics SDK from Maven
  • Writes bootstrap.json, module-map.json, and processModel

This is the only step of the migration process that collects configuration values (the GDApplicationID and GDApplicationVersion).

00

00-analyze-app.md

Required

  • Reads the app codebase
  • Produces the migration plan
  • Creates migration-analysis.json with a binding executionPlan[] table

00b

00b-generate-architecture-diagrams.md

Optional

  • Generates lifecycle dependency maps
  • Generates data flow diagrams
  • Generates secure API call graph

01

01-gradle-integration.md

Required

  • Adds the SDK dependency
  • Configures the BlackBerry Maven repository

02

02-create-settings-json.md

Required

Writes settings.json from the GDApplicationID and GDApplicationVersion values in bootstrap.json.

03 / 03b

03-add-dynamics-auth.md

03b-authorization-deferral-audit.md

Required

  • Application class
  • GDStateListener
  • activityInit()
  • Deferral audit across ViewModels, Fragments, and receivers

03c

03c-background-authorize.md

If applicable per executionPlan[]

Interactive per-candidate Background Authorize intent (migrate \| deferred \| not-applicable); applies handshake only for migrate.

Runs after 11, before 10.

04

04-sqlite-migrate-to-secure-sql.md

If applicable per executionPlan[]

  • Secure SQLite
  • Room through SupportSQLiteOpenHelper.Factory bridge

05a

05a-filesystem-core-io-migration.md

If applicable per executionPlan[]

File I/O

05b

05b-filesystem-ui-reader-closure.md

If applicable per executionPlan[]

UI/consumer reader path closure

05c

05c-filesystem-sharedprefs-and-closure.md

If applicable per executionPlan[]

  • SharedPreferences
  • Secure-file domain closure

06

06-secure-networking-audit-and-migrate.md

If applicable per executionPlan[]

GDHttpClient/GDSocket

07

07-webview-migrate-to-bbwebview.md

If applicable per executionPlan[]

BBWebView

08

08-icc-add-transferfileservice.md

If applicable per executionPlan[]

Inter-container communication (ICC) through the TransferFileService

09

09-migrate-ui-widgets.md

If applicable per executionPlan[]

UI widgets

10

10-generate-migration-report.md

Required

  • Checks the execution plan against the executed prompts and deferrals; if the check fails, this prompt stops and indicates the prompts that you should run again
  • Writes migration-report.json, migration-session-retrospective.md, and Dynamics_Migration_Readme.md
  • The record-prompt-execution.sh call at the end of the prompt automatically runs the full validate.sh sweep (including the migration-report contract check) and does not record completion until it passes

11

11-push-channel.md

If applicable per executionPlan[]

FCM metadata-only hardening and Dynamics Push Channel (com.good.gd.push).

Runs before 03c.

12

12-generate-migration-retrospective.md

Optional

Evidence-based post-run retrospective (migration-retrospective.md)

Optional to run after prompt 10.