Productivity & personal

Build a to-do list app with AI

A native to-do list build brief covering saved data, purposeful screens and a repeatable real-input acceptance journey.

Apirex TeamUpdated AndroidiOS
On this page
  1. Screens
  2. Data model
  3. Native features for the todo list app
  4. Android notes (Kotlin and Jetpack Compose)
  5. iPhone notes (Swift and SwiftUI)
  6. Copy-paste prompt
  7. Acceptance test
  8. Frequently asked questions
5screens
3data tables
190word prompt
2platforms: Android, iOS

This to-do list build brief is for people who need a reliable capture-and-complete workflow without project-management overhead. Its first version should prove one concrete loop: capture a dated task, complete it, and confirm that completion survives reopening. Keep tasks, lists, due dates and completion states connected to the same saved records before adding more ambitious integrations.

Screens

  • Inbox: Capture unfiled tasks quickly without a required due date
  • Lists: Organize tasks under user-created list names
  • Task detail: Edit notes, due semantics and completion
  • Today: Surface tasks due on the selected local day
  • Settings: Configure reminder defaults and date presentation

Data model

TableKey fieldsPurpose
listsid (uuid), name (text), position (int)Stable containers with user-controlled ordering
tasksid (uuid), list_id (uuid nullable), title (text), due_on (date nullable), deadline_at (timestamptz nullable), completed_at (timestamptz nullable)Date-only commitments separated from timed deadlines
task_remindersid (uuid), task_id (uuid), fire_at (timestamptz), request_key (text)Cancelable reminder requests associated with a task

A personal task list can remain local-only without sign-in. If tasks are stored in a backend, enforce owner-based row-level security on lists, tasks and reminder metadata, including unfiled Inbox tasks. Hiding another person’s list in the interface is not access control. Shared lists require an explicit membership contract rather than a public task identifier that anyone can edit.

Native features for the todo list app

A checked task must stay complete after a restart even without connectivity, while its original due date remains available for history. Rescheduling a task should replace its old reminder, and completing it should remove pending nudges for that task only.

FeatureAndroid (Kotlin)iPhone (SwiftUI)Notes
Offline task completionRoom task updates and ordered listsSwiftData tasks and list relationshipsA checked task must stay complete after a restart even without connectivity, while its original due date remains available for history.
Due-date nudgesNotificationManager with task-specific identifiersUserNotifications due requestsRescheduling a task should replace its old reminder, and completing it should remove pending nudges for that task only.
Selected list sharingAndroid Sharesheet plain-text checklistShareLink for a reviewed task listExport the chosen list in its displayed order without promising shared editing or leaking private tasks from other lists.

Android notes (Kotlin and Jetpack Compose)

Use a LazyColumn with stable task IDs, separating incomplete and completed sections without reassigning identity. Keep text-entry focus in a ViewModel-backed add-task draft so checking another item cannot attach the draft to the wrong row.

  • Commit completion and completion time together in Room, and use DataStore only for display preferences such as showing completed items. Decide whether due dates are all-day values or timed instants before building the Material 3 date and time controls.
  • Open task edits in a ModalBottomSheet with explicit Save and Cancel actions. Reconcile the task’s scheduled notification after a successful edit; WorkManager is appropriate for deferred housekeeping, not a promise that a due alarm fires at an exact minute.
  • On Android, create two tasks with the same title but different due dates, finish one while offline, then reschedule the other. Relaunch and inspect both identifiers and reminders. Reorder the list and ensure completion, due date and edit focus follow the intended task rather than its previous row index.

iPhone notes (Swift and SwiftUI)

Use NavigationStack to open a named list and a List keyed by task identifier for its items. Bind the checkmark to a persisted update rather than only changing row appearance, and keep due-date labels readable without relying on red text alone.

  • Persist task-list membership, sort order and completion in SwiftData. A sheet with detents can edit title and due timing, but dismissing it should discard only the unsaved draft; it must not reset the task’s stored reminder or list membership.
  • Build UserNotifications identifiers from task identity so completing one of two identically titled tasks removes only its own request. A ShareLink should use an explicit snapshot of the chosen list, with completed items included only if the export preview says so.
  • On iPhone, add a long task using dictation, move it between lists, and check it after disconnecting. Reopen the destination list and search the title. Cancel an edit to its due date, then inspect pending behavior to confirm the original reminder was not silently replaced.

Copy-paste prompt

Build this yourself 188 words · Android
Build a to-do list app for Android using native screens and a deliberately small first release. The core scope is tasks, lists, due dates and completion states. Include these destinations: Inbox, Lists, Task detail, Today, Settings. Use these persisted entities: lists, tasks, task_reminders; retain stable identifiers and explicit relationships rather than maintaining independent screen totals.
Ask me these owner decisions before implementing ambiguous behavior: whether Today includes overdue tasks, which tasks have an exact deadline, and what deleting a list should do to its tasks. Do not invent a policy or add an unrequested external integration. Start local-only unless I explicitly choose account storage; if I choose a backend, enforce ownership on the server with row-level security.
Show loading, empty and recoverable error states, plus permission-denied handling wherever a native capability requests access. Keep incomplete input recoverable and distinguish it from saved data. For acceptance, capture a dated task, complete it, and confirm that completion survives reopening. Also exercise the invalid-input or denied-permission path and reopen the app to inspect the persisted result. Explain any remaining device-only checks rather than equating a successful build with a passing journey.

Opens Apirex with this prompt in the box. Pick the Android · Kotlin tab before you send.

Acceptance test

  1. Create a list named Home and add Replace hallway bulb with tomorrow as a date-only due date.
  2. Move the task to Today by changing its due date, then verify it appears once.
  3. Complete the task and check it leaves the active Today view while remaining available in completed tasks.
  4. Force-close and reopen; verify the list assignment and completion timestamp remain intact.
  5. Deny notification access and try a blank task title; confirm reminders degrade gracefully and the invalid task is not saved.

Change a dated task from tomorrow to today, then remove its date completely. Check that it enters and leaves Today according to the chosen overdue policy while remaining discoverable in its list. A completion undo should restore the original task identifier and due semantics, not create a second copy with a new reminder.

Give an empty Inbox a capture action, but give an empty Today view a distinct explanation that no tasks are due. If loading a list fails, do not render its missing rows as completed work. Define how long completed tasks remain available and whether deleting a list moves its tasks to Inbox or deletes them only after a second, explicit confirmation.

Frequently asked questions

What is the difference between a due date and a deadline?

A due date names a calendar day without promising an alert at midnight. A deadline is a specific instant; keep the two concepts separate in storage and editing controls.

Should completing a task delete it?

Retain a completion timestamp so the user can review or undo the action. Permanent deletion should be a distinct operation rather than a side effect of checking a box.

Can tasks still work without notification permission?

Capture, sorting and completion should remain usable when reminders are denied. Explain the disabled reminder state without repeatedly interrupting the user with permission requests.

Build this blueprint

The blueprint prompt, ready for your platform. Edit anything before you send it.

AndroidKotlin · Jetpack ComposeReal source on your computer

Opens Apirex with this prompt. Pick the Android · Kotlin tab before you send. The Free plan includes 5 Rex Credits a day.