Repository navigation
Description
Goal
Three-app provisioning checklists we just walked through for Minesweeper were ad-hoc HTMLs (~/GitHub/Wei18/tmp/*.html). For the next app (Sudoku → Minesweeper → ??? — pattern is emerging), turn them into reusable templates or a skill so the same onboarding ritual is one command away.
What got walked today
- ASC App ID + iCloud Container + ASC app record + IAP product registration —
tmp/minesweeper-asc-provisioning.html - Google AdMob app + Banner Ad Unit ID registration —
tmp/minesweeper-admob-registration.html - CloudKit Production schema deploy —
tmp/sudoku-cloudkit-production-deploy.html
Each currently hardcodes the app name + bundle ID + container ID + product ID. ~200-400 LOC of HTML each.
Candidate shapes (pick one)
Option A — .claude/skills/<name>/SKILL.md per topic
Three skills:
app-provisioning-asc-setupapp-provisioning-admob-setupapp-provisioning-cloudkit-schema-deploy
Each skill takes params (app name, bundle ID, container ID, product IDs) and renders the corresponding HTML walkthrough to ~/GitHub/Wei18/tmp/. Invokable via Skill tool.
Option B — Single skill new-game-app-provisioning
One umbrella skill that orchestrates all 3 topics in sequence (Apple Developer → ASC → AdMob → CloudKit). Suits the "new game app onboarding ritual" use case. Subtopics as sections, not separate skills.
Option C — Generic HTML templates with shell substitution
Put templates under .claude/templates/provisioning/*.html.tmpl with {{APP_NAME}} / {{BUNDLE_ID}} placeholders + a mise run new-app:provisioning -- --app-name=... --bundle-id=... task that renders + opens in browser. No skill layer.
Option D — Hybrid
Templates (Option C) + one umbrella skill (Option B) that knows how to call the renderer + answer common follow-up questions.
Why now
- Minesweeper was app feat(asc-register): CLI to bootstrap Game Center via ASC API #2 — manual cost was ~30 min of HTML re-writing
- App docs(readme): cleaner zh-en flow #3 (TBD) will hit the exact same ritual; templating amortizes
- Sudoku already has its own AdMob / IAP / CloudKit setup — when next app needs it, copying Minesweeper's HTMLs and edit-find-replace is fragile (easy to miss a bundle ID)
Cost
- Template extraction: ~1 hour (cleanup + parameterize 3 HTMLs)
- Skill wrapper (Option A/B/D): ~30 min
- Skip cost: continue paying ~30 min per new app, with copy-paste-edit errors
Out of scope
- TestFlight upload walkthrough — different surface (binary + ipa); future ask
- App Store metadata submission — Phase 3 of ASCRegister will partly automate
- App Review notes copy — content concern not provisioning
Decision needed
- Which shape (A/B/C/D)
- When (now / after MS v1 ships / when app docs(readme): cleaner zh-en flow #3 is planned)
Activity
feat(devx): provisioning walkthrough templates + renderer (#252) (#406)