macos-crash-recovery
CommunityEnsure app state survives crashes.
Authorbrdohman
Version1.0.0
Installs0
System Documentation
What problem does it solve?
This Skill addresses the critical issue of data loss in macOS applications by implementing robust crash recovery, state restoration, and autosave mechanisms, ensuring a seamless user experience even after unexpected terminations.
Core Features & Use Cases
- Graceful Termination Handling: Implements
NSApplicationDelegate.applicationShouldTerminate(_:)to prompt users to save unsaved changes before quitting. - State Restoration: Utilizes
@SceneStorageto automatically restore UI state, such as selected tabs or navigation history, after an app relaunch. - Core Data Autosave: Configures periodic and event-driven saving for Core Data contexts to prevent data loss during the application's lifecycle.
- Multi-Step Operation Safety: Provides patterns for saving Core Data changes atomically for complex operations, preventing partial commits.
- QA Testing Guidance: Includes a specific edge case for QA to force-quit the application and verify data integrity and UI recovery.
Quick Start
Implement the macos-crash-recovery skill to ensure your macOS application properly saves its state and recovers gracefully from crashes.
Dependency Matrix
Required Modules
None requiredComponents
references
💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: macos-crash-recovery Download link: https://github.com/brdohman/agile-maestro/archive/main.zip#macos-crash-recovery Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.