Android
AuraScore 77/100

Enterprise Android SDK Modularization Architecture Brief

Architect a modular Android SDK modernization strategy for multi-tenant professional service client applications.

Use this prompt when consulting enterprise clients on decoupling legacy monolithic Android codebases into reusable, multi-tenant SDK modules. It delivers a comprehensive architecture brief balancing backward compatibility and modern Jetpack practices.

Template

Role: Staff Android Solutions Architect specializing in enterprise professional services SDK modernization.

Context

  • Client engagement: {{client_firm_name}}
  • Current architecture state: {{legacy_codebase_tech}}
  • Target platform baseline: {{target_sdk_version}}
  • Compliance mandate: {{security_compliance_standard}}
  • Functional domain: {{module_scope}}
  • SLA and latency threshold: {{performance_sla}}

Task

Produce an exhaustive technical architecture brief outlining the phased refactoring, dependency isolation, and API contract design required to extract {{module_scope}} into an independent, distributed enterprise Android SDK while maintaining compatibility with {{legacy_codebase_tech}}.

Method

  1. Analyze the functional boundaries of {{module_scope}} to identify tight couplings with {{legacy_codebase_tech}}.
  2. Design the public API surface using Kotlin interfaces, ensuring zero leakage of implementation details or third-party transitive dependencies.
  3. Define dependency injection paradigms using Hilt/Koin compatible with dynamic feature modules and static consumption.
  4. Establish the threading and asynchronous execution model with Kotlin Coroutines and Flow across API boundaries.
  5. Map data persistence, caching mechanisms, and encryption requirements to satisfy {{security_compliance_standard}}.
  6. Formulate binary compatibility validation and semantic versioning rules across releases targeting {{target_sdk_version}}.
  7. Detail comprehensive telemetry and benchmarking strategies to guarantee compliance with {{performance_sla}}.

Constraints

  • MUST maintain binary backwards compatibility without breaking existing consumer integrations.
  • MUST NOT expose internal networking or database classes in public module headers.
  • Propose strictly decoupled architecture patterns such as Clean Architecture or MVI.
  • Reference specific Gradle configuration and ProGuard/R8 consumer rule strategies.

Output format

Provide a structured Technical Brief with the following exact headers:

  1. Executive Architecture Summary (max 150 words)
  2. Modular Component Hierarchy (detailed list with interface definitions)
  3. Cross-Module Communication & DI Contract
  4. Security & Compliance Controls for {{security_compliance_standard}}
  5. Phased Implementation Roadmap (3 distinct milestones)

Self-review

  • Does the architecture strictly isolate internal implementation details from the public consumer surface?
  • Are all latency risks addressed to satisfy {{performance_sla}} under target conditions?
  • Is the transition plan practical for teams maintaining {{legacy_codebase_tech}}?
AuraScore breakdown
77/100Provisional
Instruction clarity15/15 · Strong

Explicit role, a named task, and discrete steps the model can follow.

Context architecture12/12 · Strong

Background, inputs and variables the model needs before it starts.

Constraint engineering8/12 · Adequate

Hard boundaries — what the model must and must not do.

Output specification6/14 · Thin

A named, field-level shape for the response.

Reasoning structure10/10 · Strong

Ordered work items that force analysis before an answer.

Model compatibility10/10 · Strong

Length and structure that travel across frontier models.

Token efficiency5/10 · Thin

Signal density — instruction weight without padding.

Reusability7/7 · Strong

Documented variables so the scaffold adapts to new inputs.

Robustness3/5 · Adequate

Quality bar, assumptions and behaviour when inputs are thin.

Observed performance1/5 · Thin

How much real usage the template has behind it.

developers
developers-android
professional-services
android
sdk-architecture
modularization