Example of a Prompt

Agent: Document Agent

<aside> <img src="notion://custom_emoji/be6005d7-8302-4c8e-93fe-03d0d3d71970/12f3c107-d7a8-8009-8054-007a9b09b0b8" alt="notion://custom_emoji/be6005d7-8302-4c8e-93fe-03d0d3d71970/12f3c107-d7a8-8009-8054-007a9b09b0b8" width="40px" />

Using the @Member Information Update use case document as a reference, design the necessary screens and output them in accordance with the @Android Screen Design Template format.

</aside>

Template

# Android App Screen Design Specification

## 1. Basic Information

- Screen ID:
- Screen Name:
- Function Overview:
- Supported OS Version:
- Supported Devices:

## 2. Screen Layout

### 2.1 Layout Structure

Create the structure of the screen using Mermaid according to the following legend. Analyze dependencies by file name and create objects for each file name.

```mermaid
%%{init: {'theme': 'neutral', 'themeVariables': { 'fontFamily': 'arial', 'fontSize': '16px'}}}%%
flowchart TD
    A["Screen/Page"] 
    B>"Component"]
    C{"Conditional Branch"}
    D[["Form Element"]]
    E[("Data Display")]
    F(["Action/Button"])

    classDef page fill:#d0d1ff,stroke:#333,stroke-width:2px,color:#000
    classDef component fill:#ffe680,stroke:#333,stroke-width:2px,color:#000
    classDef condition fill:#c2e0c2,stroke:#333,stroke-width:2px,color:#000
    classDef form fill:#ffcce0,stroke:#333,stroke-width:2px,color:#000
    classDef data fill:#c6c6ff,stroke:#333,stroke-width:2px,color:#000
    classDef action fill:#ffb3b3,stroke:#333,stroke-width:2px,color:#000

    class A page
    class B component
    class C condition
    class D form
    class E data
    class F action

    %% Apply styles to each node to center the text
    style A text-align:center
    style B text-align:center
    style C text-align:center
    style D text-align:center
    style E text-align:center
    style F text-align:center
Line Type Notation Meaning
--> Solid Arrow Screen transition, parent-child relationship, direct relationship
-.-> Dotted Arrow Event trigger, action execution
--- Text --- Labeled Line Explanation of relationship (transition, inclusion, display, etc.)
--o White Circle End Association (weak coupling)
--\* Black Circle End Aggregation (strong coupling)

2.2 Screen Orientation

2.3 Layout Resources

2.4 Device Support

3. UI Components

3.1 Component List

No Component ID Type Display Text Display Condition Layout Position

3.2 Input Item Definition

No Item ID Display Name Input Type Input Restriction Max Length Required Initial Value IME Type

3.3 Input Validation Rules

3.3.1 Text Input

3.3.2 Numeric Input

3.3.3 Selection Input

3.4 List Display Definition

3.4.1 List Structure

3.4.2 List Item

3.5 Animation & Transition

4. Action Definition

4.1 User Action List

Action ID Trigger Target Component Display Condition Enable Condition

4.2 Click Action Definition

4.2.1 Button 1

4.3 Touch Action Definition

4.3.1 Swipe

4.3.2 Long Press

4.4 System Action Definition

4.4.1 Back Key

4.4.2 Menu Key

5. Data Binding

5.1 Data Model

5.2 Binding Method

5.3 LiveData Definition

6. Communication & Data Integration

6.1 API Integration

  [Header Information]

  [Parameter Format]

  [Request Format]

6.2 Response Specification

  [Response Format]

  [Error Response Format]

6.3 Local Data

7. Error & Message Definition

7.1 Validation Error

Code Message Display Method Display Position

7.2 System Error

Code Message Display Method Retry Allowed

7.3 Communication Error

Scenario Message Display Method Recovery Method

7.4 Message Display Method

8. Performance Optimization

8.1 UI Rendering Optimization

8.2 Memory Management

8.3 Battery Efficiency

9. Security Requirements

9.1 Data Security

9.2 Input Value Validation

9.3 Access Control

10. Accessibility Support

10.1 Content Description

10.2 Input Assistance

10.3 TalkBack Support

11. Screen Transition & State Management

11.1 Source Screen

11.2 Destination Screen

11.3 State Saving

11.4 Lifecycle Processing


## Output Image

```markdown
# Android App Screen Design Document: Member Information Update Screen

## 1. Basic Information

- Screen ID: member\\_profile\\_update
- Screen Name: Member Information Update Screen
- Function Overview: An update interface that allows members to safely change "Email Address," "Password," and "Profile Image"
- Supported OS Version: Android 8.0 or higher
- Supported Devices: Standard smartphones, tablets

## 2. Screen Layout

### 2.1 Layout Structure

```mermaid
flowchart TD
    A["Member Information Update Screen"] 
    B[["Email Address Input Form"]]
    C[["Password Change Form"]]
    D[["Profile Image Upload"]]
    E(["Validation Message Display"])
    F(["Save Button"])
    G(["Cancel Button"])
    H(["Processing Result Message Area"])

    A --> B
    A --> C
    A --> D
    B -.-> E
    C -.-> E
    D -.-> E
    A --> F
    A --> G
    A -.-> H

2.2 Screen Orientation

2.3 Layout Resources

2.4 Device Support

3. UI Components

3.1 Component List

No Component ID Type Display Text Display Condition Layout Position
1 emailField EditText Current Email Address Always Top
2 newEmailField EditText New Email Address Always Below emailField
3 pwdCurrentField EditText Current Password When changing password Below email fields
4 pwdNewField EditText New Password When changing password Below pwdCurrentField
5 pwdConfirmField EditText Re-enter New Password When changing password Below pwdNewField
6 profileImage ImageView Profile Image Always Bottom center
7 uploadButton Button Select/Change Image Always Below image
8 saveButton Button Save When input valid Bottom right
9 cancelButton Button Cancel Always Left of saveButton
10 messageBox TextView Validation/Result Message As needed Entire bottom area

3.2 Input Item Definition

No Item ID Display Name Input Type Input Restriction Max Length Required Initial Value IME Type
1 emailField Current Email text Email format 256 Yes From member state email
2 newEmailField New Email text Email format 256 Optional Blank email
3 pwdCurrentField Current Password password 8-32 characters 32 Optional Blank password
4 pwdNewField New Password password Strength 8-32 characters 32 Optional Blank password
5 pwdConfirmField Re-enter New Password password Match check 32 Optional Blank password

3.3 Input Validation Rules

3.3.1 Text Input

3.3.2 Numeric Input

3.3.3 Selection Input

3.4 List Display Definition

3.5 Animation & Transition

4. Action Definition

4.1 User Action List

Action ID Trigger Target Component Display Condition Enabled Condition
actSaveProfile Tap saveButton When input valid Validation OK
actCancelUpdate Tap cancelButton Always Always
actUploadProfile Tap uploadButton Always Always

4.2 Click Action Definition

4.2.1 Save Button

4.3 Touch Action Definition

4.4 System Action Definition

5. Data Binding

5.1 Data Model

5.2 Binding Method

5.3 LiveData Definition

6. Communication & Data Integration

6.1 API Integration

Authorization: Bearer ...
Content-Type: application/json

{
  "email": New email address,
  "currentPassword": Current password,
  "newPassword": New password,
  "profileImage": Base64 encoded, etc.
}

6.2 Response Specification

{
  "result": "success | error",
  "message": "Detailed message",
  "errorField": "email | password | image | null"
}

{
  "result": "error",
  "message": "Password incorrect / Email duplicate / Image invalid etc.",
  "errorField": "Relevant field"
}

6.3 Local Data

7. Error & Message Definition

7.1 Validation Errors

Code Message Display Method Display Position
E\_EMAIL\_FMT Email format is incorrect Bottom label newEmailField
E\_EMAIL\_DUP Email is already registered Bottom label newEmailField
E\_PWD\_WEAK Password strength insufficient Bottom label pwdNewField
E\_PWD\_DIFF New passwords do not match Bottom label pwdConfirmField

7.2 System Errors

Code Message Display Method Retry Possible
S\_TIMEOUT Communication timeout occurred Dialog Yes
S\_SERVER Server is down Dialog Yes
S\_SESSION Session expired Dialog No

7.3 Communication Errors

Scenario Message Display Method Recovery Method
Communication Failure Cannot connect to network Snackbar Retry, Cancel
Image Failure Image upload failed Snackbar Re-upload

7.4 Message Display Method

8. Performance Optimization

8.1 UI Rendering Optimization

8.2 Memory Management

8.3 Battery Efficiency

9. Security Requirements

9.1 Data Security

9.2 Input Validation

9.3 Access Control

10. Accessibility Support

10.1 Content Description

10.2 Input Assistance

10.3 TalkBack Support

11. Screen Transition & State Management

11.1 Source Screen

11.2 Destination Screen

11.3 State Saving

11.4 Lifecycle Processing