BMO Vault ( My free Youtube Premium)
I'm a mechanical engineering student building this solo with AI (Cursor + Claude/Codex) as my main coding partner. BMO Vault is a private, offline video/audio library for iOS, you search YouTube in-app ("BMO-Tube"), download videos, and they auto-file into creator-based "cartridges" instead of manual playlist management.
What I learned: the biggest unlock wasn't writing prompts for features, it was writing prompts for Process. I built an AGENTS.md + Cursor rules file so the AI stops re-litigating architecture every session, and I run changes in small numbered "batches" (Batch 1: bug fixes, Batch 2: extract YouTube logic into its own service, Batch 3: split a 1800-line SwiftUI view into 9 focused files, Batch 4: migrate a duplicate-detection field). Each batch: plan → diff → why → manual test checklist → assumptions/risks. That structure caught a real bug, a silent UserDefaults decode failure that made a data migration look like it worked when it hadn't.
Tech stack
- Claude (Sonnet 4.6)
- Cursor
Prompt steps
Step 1
You are helping improve BMO Vault, a SwiftUI iOS app in `BMO Vault.xcodeproj`. It's an offline media vault with a BMO-themed UI. Users search YouTube via BMO-Tube (Data API v3), download videos with YouTubeKit + background URLSession, and organize them into cartridges (creator playlists stored in CartridgeStore). Core VMs: LibraryViewModel, YouTubeViewModel, PlayerViewModel. Search returns mixed channels+videos; channel detail paginates the full uploads playlist; downloads auto-file to creator cartridges with duplicate prevention via persisted YouTube video IDs. Non-negotiable rules: Use SwiftUI + Observation for new state code. Never run YouTubeKit extraction on @MainActor. Channel downloads must use channelId + uploads playlist pagination, never keyword search. Duplicate prevention key = YouTube video ID. Cartridge = playlist in user language, never a third grouping concept. Preserve BMOTheme patterns. Small, focused diffs only — no unrelated rewrites. Output format for every task: plan → files to edit → minimal diffs → why → manual test checklist → assumptions/risks.Step 2
Batch 3: Extract BMO-Tube-related UI from LibraryView.swift into focused SwiftUI subviews with no behavior change. LibraryView.swift is 1797 lines mixing home UI, search, filters, results, channel detail, and the download panel. Extract into Views/YouTube/ as separate files, keep LibraryView.swift as a composition shell only, preserve existing modifiers/theme/layout, and validate with a manual checklist (search clears correctly, mixed results render, channel detail paginates, download panel updates, home button resets navigation).
11 likes · 4 comments · 13 views
Comments (4)
Adriellll. This is so sick dude I wanna try this. Shoutout adventure time too fr
<p>Love the AGENTS.md + batch system idea. Stealing that.</p>
<p>The process you built with AI is the real MVP here.</p>
The creator based cartridges idea is hard. Downloading is useful, but auto filing everything by creator is the part that makes it feel less like a folder dump.