Fix crashes in startup path
Fewer users hit a crash on first open and uninstall.
The number it moves
Crash-free sessions
Share of app sessions that end without a crash.
What your AI does
Search launch code and the first screens for force unwraps, unchecked optionals, unguarded null access, and unhandled promise rejections or permission-denied paths. Propose guarded versions and a crash reporter hook (Crashlytics/Sentry) if none is installed.
Done when
- Launch code has no unguarded empty values
- A denied permission or failed request at launch is handled
- A crash reporter is installed
The prompt
Paste this into any AI coding tool, or run it in MightyMouse and your AI works on your own project.
Fix crashes in startup path (Downloadable app) Search launch code and the first screens for force unwraps, unchecked optionals, unguarded null access, and unhandled promise rejections or permission-denied paths. Propose guarded versions and a crash reporter hook (Crashlytics/Sentry) if none is installed. Done when: - Launch code has no unguarded empty values - A denied permission or failed request at launch is handled - A crash reporter is installed Read the code first. If it already does this well, change nothing and say so. Otherwise make the smallest change that makes every line above true. Work with what this project already uses. Do not add a paid tool or service unless I ask for one. Playbook: https://getmightymouse.com/playbooks/app-fix-crashes-in-startup-path/ - published by MightyMouse. Source: Android Developers, https://developer.android.com/topic/performance/issues/crash
The skill file
Save this as SKILL.md and Claude Code or Cursor can run the playbook any time you ask.
--- name: app-fix-crashes-in-startup-path description: Fewer users hit a crash on first open and uninstall. Use on a downloadable app project to improve "Crash-free sessions". --- # Fix crashes in startup path Search launch code and the first screens for force unwraps, unchecked optionals, unguarded null access, and unhandled promise rejections or permission-denied paths. Propose guarded versions and a crash reporter hook (Crashlytics/Sentry) if none is installed. ## Done when - [ ] Launch code has no unguarded empty values - [ ] A denied permission or failed request at launch is handled - [ ] A crash reporter is installed ## How to run it Read the code first and tick every line that is already true. If all are true, change nothing and say so. Otherwise make the smallest change that makes the rest true, then report each line as done or not done. Work with what this project already uses. Do not add a paid tool or service unless I ask for one. Playbook: https://getmightymouse.com/playbooks/app-fix-crashes-in-startup-path/ - published by MightyMouse. Source: Android Developers, https://developer.android.com/topic/performance/issues/crash