Prepackaged migration prompts

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

Step

Prompt file

Required?

Description

00pre

00pre-bootstrap.md

Required

  • Establishes Git baseline, bootstrap.json, and target-map.json
  • Runs preflight validation
  • Creates a pre-migration baseline commit when Git is initialized

00

00-analyze-app.md

Required

  • Reads the app codebase
  • Inventories APIs and produces a migration plan
  • Creates migration-analysis.json

00b

00b-generate-architecture-diagrams.md

Required

  • Generates lifecycle dependency maps
  • Generates data flow diagrams and secure API call graphs
  • Generates a risk heatmap

01

01-xcode-integration.md

Required

  • Adds the BlackBerry Dynamics SDK via CocoaPods, Swift Package Manager, or manual integration
  • Configures Keychain Sharing

02

02-configure-info-plist.md

Required

Configures Info.plist. Stops to ask for GDApplicationID, GDApplicationVersion, and app setup type, then registers required BlackBerry Dynamics URL schemes with the native bundle identifier.

03 / 03b

03-add-dynamics-auth.md

03b-authorization-deferral-audit.md

Required

  • AppDelegate / SceneDelegate and GDiOS authorization with two-phase startup
  • Systematic authorization-deferral audit across ViewControllers, SwiftUI views, Combine, and async/await code paths

04

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

If applicable

Migrates raw SQLite to encrypted SQLite (sqlite3enc_*)

04b

04b-coredata-migrate-to-gdpersistentstore.md

If applicable

Migrates Core Data to GDPersistentStoreCoordinator

05

05-filesystem-migrate-to-gdfilemanager.md

If applicable

Migrates file I/O to GDFileManager / GDFileHandle

06

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

If applicable

Migrates URLSession and raw sockets to secure networking (GDURLLoadingSystem, GDSocket)

07

07-wkwebview-secure-migration.md

If applicable

Enables secure WKWebView via WKWebView+GDNET

08

08-appkinetics-icc.md

If applicable

Adds AppKinetics inter-container communication

09

09-dlp-pasteboard-migration.md

If applicable

Migrates external data movement and DLP controls

09b

09b-policy-management.md

If applicable

Migrates managed policy reads, updates, and cache handling

11

11-push-channel.md

If applicable

Audits push paths and applies BlackBerry Dynamics Push Channel decisions. Runs before prompt 10.

10

10-generate-migration-report.md

Required

  • Final acceptance gate: writes schema-valid migration-report.json (schema v2.1.0)
  • Runs full validation and records prompt 10 completion only after validation passes

12

12-generate-migration-retrospective.md

Optional

Generates migration-retrospective.md with migration friction, manual interventions, and recommended toolkit improvements. Optional to run after prompt 10.