Day 6 Data Structure Codex AI Architect

Codex Client Workspace Data Design Tasks

A hands-on AI teamwork Task board that uses Codex to automatically analyze and fix the data structure misunderstandings, scattered terms and change ripple problems startups face during MVP development.

Day 6 Startup MVP Tasks

From prototyping on a blank screen to debugging errors and refactoring for readability β€” experience a dev workflow that uses Codex as a capable pair programmer.

TASK 1
Task 1

Task 1. Resolve Data Structure Misunderstandings Lab

Task 01: Align Data Structure Understanding Between Planning and Dev (Data Structure Alignment)

Derive key entities and relationships (Mermaid ERD) from planning meeting notes written in natural language, and use AI to close the gap in how planners and developers understand the data model.

TargetERD schema and data structure doc
Key toolCodex Client Workspace
Lab scopeData Structure Alignment
Step 1 πŸ“‚ Prepare the meeting notes file (day6_meeting_notes.md) and upload to Codex
Step 2 πŸ” Ask Codex to derive entities and generate a Mermaid ERD
ERD Entity Mapping Data Alignment
Expected output erd-schema.md (data spec and ERD)
Enter Task 1 lab
TASK 2
Task 2

Task 2. Error-Fixing Helper Lab

Task 02: Read Console Logs and Build Guard Code (AI Debug Assistant)

Pinpoint the exact line of an undefined property crash that freezes browser rendering, and add guard code in advance.

TargetError-causing logic debugged
Key toolCodex Client Workspace
Lab scopeAsynchronous Debugging
Step 1 πŸ“ Prepare the error file (day6_debug_source.js) and compare with the error log
Step 2 πŸ” Ask Codex to find the cause and apply a conditional guard patch
TypeError Optional Chaining Stack Trace
Expected output day6_debug_solution.js (stable script)
Enter Task 2 lab
TASK 3
Task 3

Task 3. Improve the Code Lab

Task 03: Shrink Duplicate Code and Fix Naming (Code Refactoring)

Turn messy copy-pasted HTML binding code into a shared template function, and rename vague temporary variables with real-world words.

TargetDuplicate markup turned into a shared utility
Key toolCodex Client Workspace
Lab scopeCode Refactoring & Convention
Step 1 πŸ“‚ Prepare and upload the messy source (day6_dirty_code.js)
Step 2 πŸ”„ Tell Codex to remove duplicates and refactor to readable names
Refactoring Clean Code Naming standard
Expected output day6_clean_code.js (more readable source code)
Enter lab
SKILL 1
Skill Task 1

Skill Task 1. Screen–API Binding

ADD-D06-T01: Viewer/Advertiser screens using the API Contract

Bind the front-end UI of the Viewer or Advertiser Flow to the real API Contract and wire up working interactions.

TargetEnd-to-End API Binding built
Key toolCodex Client
Lab scopeSkill Task (TECH)
Step 1 πŸ“ Prepare the API Contract spec and UI template
Step 2 βš™οΈ Connect fetch/axios and build event handlers
Skill Task API Binding TECH-FE
Expected output 09_BOUND_UI.html
Enter lab
SKILL 2
Skill Task 2

Skill Task 2. State Management and Failure UX

ADD-D06-T02: 6 UI states & user recovery actions

Build 6 failure states β€” Loading, Empty, Validation, Unauthorized, Timeout, Server Error β€” and user recovery actions.

Target6 failure UX states & retry actions
Key toolCodex Client
Lab scopeSkill Task (HYBRID)
Step 1 πŸ“ Create E2E failure scenario cases
Step 2 βš™οΈ Toast/modal recovery actions and exception binding
Skill Task Failure UX State Management
Expected output 09_FE_STATES.js
Enter lab
SKILL 3
Skill Task 3

Skill Task 3. Front-End Debugging & Refactoring

ADD-D06-T03: Clean up console errors/global pollution and encapsulate

Fix console errors, duplicate code, global state pollution and accessibility problems, and write a record of review decisions.

TargetDebug report & refactored code
Key toolCodex Client
Lab scopeSkill Task (AI)
Step 1 πŸ“ Trace console reports and performance bottlenecks
Step 2 πŸ›‘οΈ Record accept/change/reject decisions and patch the code
Skill Task FE Debugging Refactoring
Expected output fe-debug-report.md
Enter lab
πŸš€ Advanced Missions β€” AI-Based Software Development Course
MISSION 1
Mission 1

Mission 1. Fix Errors with AI

Mission 01: Debug CORS/JSON garbage parsing errors

Get a diagnosis of CORS and async parsing errors and write a prevention report.

TargetDebugging result report
Key toolCodex Client Workspace
Lab scopeInteractive Troubleshooting
Step 1 πŸ“‚ Prepare the error console log
Step 2 πŸ” Ask Codex to analyze the cause
Troubleshooting Debugging
Expected output debug-report.md
Enter assignment room
MISSION 2
Mission 2

Mission 2. Get an AI Code Review

Mission 02: Audit and improve dashboard booking control logic

Have Codex fully audit your code and finish refactoring it with structural improvements into clean code.

TargetCode review feedback & refactoring summary
Key toolCodex Client Workspace
Lab scopeAI-Assisted Code Quality Review
Step 1 πŸ“‚ Prepare the source code and review request
Step 2 πŸ›‘οΈ Accept Codex audit results / refactor
Edge Cases Code Review Refactoring
Expected output day6_code_review.md
Enter assignment room
MISSION 3
Mission 3

[Assignment] Mission 3. Real-Time WebSocket Chat Screen-API Binding

Skill Mission 1: WebSocket & REST API data binding

Bind the front-end UI of a real-time multi-room chat app to WebSocket/REST API formats, and build reconnect and retry UX.

TargetWebSocket/REST chat web app code
Key toolCodex Client
Lab scopeSkill Task Mission (Level 1)
Step 1 πŸ“ Build REST API binding and the WebSocket connection
Step 2 βš™οΈ Add an auto-reconnect toast feedback UI when the socket drops
Skill Mission WebSocket API Binding
Expected output chat-binding-app.html
Enter assignment room
MISSION 4
Mission 4

[Assignment] Mission 4. Fintech Asset Dashboard FE Debugging

Skill Mission 2: Front-End Debugging & Refactoring

Debug memory leaks, infinite render loops and console errors in a fintech dashboard web app, and refactor to add the 6 failure UX states.

TargetRefactored code and debugging report
Key toolCodex Client
Lab scopeSkill Task Mission (Level 2)
Step 1 πŸ“ Debug infinite loops and global variable pollution
Step 2 βš™οΈ Build recovery for 6 failures incl. Loading, Timeout, Server Error
Skill Mission FE Debugging Refactoring
Expected output asset-dashboard-refactored.js
Enter assignment room