crash
Skill4 starsChanged 6 months agoMITView on GitHub
Use when a runtime crash occurs, the app crashes on a specific screen, or the user reports an EXC_BREAKPOINT / signal abort. Runs automated smoke tests first, then investigates with crash logs and backtraces.
1 other project uses a version of this.
Adopted by
Most recently taken up by
- arunendapally/portfolio-copilottheir own version, first seen Nov 1, 2026
Other versions1 project uses a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 1
- arunendapally/portfolio-copilot★ 0same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository76 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- .cursor/rules/components.mdcCursor rule
- .cursor/rules/currency.mdcCursor rule
- .cursor/rules/design-system.mdcCursor rule
- .cursor/rules/file-structure.mdcCursor rule
- .cursor/rules/forbidden-patterns.mdcCursor rule
- .cursor/rules/mvvm-architecture.mdcCursor rule
- .cursor/rules/pricing-display.mdcCursor rule
- .cursor/rules/scope.mdcCursor rule
- .cursor/rules/swift-conventions.mdcCursor rule
- accessibilitySkill
- animationsSkill
- apple-developer-authSkill
- apple-signinSkill
- app-store-preflightSkill
- asc-app-create-uiSkill
- asc-aso-auditSkill
- asc-build-lifecycleSkill
- asc-cli-usageSkill
- asc-crash-triageSkill
- asc-id-resolverSkill
- asc-localize-metadataSkill
- asc-metadata-syncSkill
- asc-metadata-yamlSkill
- asc-notarizationSkill
- asc-ppp-pricingSkill
- asc-release-flowSkill
- asc-revenuecat-catalog-syncSkill
- asc-screenshot-resizeSkill
- asc-shots-pipelineSkill
- asc-signing-setupSkill
- ascSkill
- asc-submission-healthSkill
- asc-subscription-localizationSkill
- asc-testflight-orchestrationSkill
- asc-wall-submitSkill
- asc-whats-new-writerSkill
- asc-workflowSkill
- asc-xcode-buildSkill
- billing-finance-calculatorSkill
- buildSkill
- business-modelSkill
- chartsSkill
- consolidate-errorsSkill
- content-composerSkill
- debuggingSkill
- feature-directory-structureSkill
- feedback-statesSkill
- fix-errorSkill
- formsSkill
- foundation-modelsSkill
- hapticsSkill
- healthkitSkill
- layoutSkill
- listsSkill
- navigationSkill
- notificationsSkill
- onboarding-questionnaireSkill
- onboardingSkill
- The first 60 shown.
The file
Show its rules and text
We split this skill into the rules it gives an agent
14 rules. About 0 are common, 11 are distinctive, and 3 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈11
Distinctive · estimate
This author's own choices. Worth a look.
3
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 12
When the user reports a crash ("the app crashes when...") or you need to verify stability:
- Distinctive: line 20
Use Xcode MCP to run the smoke walker:
- Distinctive: line 34
If the smoke walker test target doesn't exist yet, see the Setup section below.
- Distinctive: line 38
If a test fails, the Xcode MCP response includes:
- Distinctive: line 57
After a test crash, check for crash logs:
- Distinctive: line 63
If found, read the crash log and extract:
- Very specific: line 100
Follow the /debugging skill methodology:
- Distinctive: line 101
Read the file at the first app frame
- Distinctive: line 102
Check error ledger history for matching patterns
- Distinctive: line 103
If match → apply known fix
- Distinctive: line 104
If no match → isolate by simplifying the crashing view
- Very specific: line 106
Update ledger to [RESOLVED]
- Distinctive: line 124
If no UI test target exists:
- Very specific: line 164
Add .accessibilityIdentifier("name") to key interactive elements:
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Runtime Crash Investigation
Automated crash detection and resolution for iOS apps.
Quick Start
When the user reports a crash ("the app crashes when...") or you need to verify stability:
- Run the smoke walker test — this walks every screen automatically
- If test fails — you have the exact crash point, skip to Step 4
- If test passes — the crash is flow-specific, investigate manually
Step 1: Run Automated Smoke Tests
Use Xcode MCP to run the smoke walker:
mcp__xcode__RunSomeTests with:
targetName: "<AppName>UITests"
testIdentifier: "SmokeWalkerTest"Or run a specific test if you suspect a particular flow:
SmokeWalkerTest/testFullLoggingFlow— full 4-step loggingSmokeWalkerTest/testQuickSaveFlow— quick save from severitySmokeWalkerTest/testStepNavigation— back/forward between stepsSmokeWalkerTest/testMigraineDetailAndEdit— detail view + edit mode
If the smoke walker test target doesn't exist yet, see the Setup section below.
Step 2: Parse Test Results
If a test fails, the Xcode MCP response includes:
- Which test method failed — tells you which screen/flow crashed
- The assertion message — tells you what was expected vs what happened
- If it's a crash — no assertion, the app terminated unexpectedly
Map the failing test to the screen:
| Test Method | Screen | Flow |
testHomeScreenLoads | Home | App launch |
testFullLoggingFlow | LogAttackSheet | Step-by-step logging |
testQuickSaveFlow | LogAttackSheet | Quick save from step 1 |
testStepNavigation | LogAttackSheet | Forward/back navigation |
testDismissLogSheet | LogAttackSheet | Sheet dismiss |
testSettingsOpens | SettingsSheet | Settings display |
testHistoryOpens | HistoryView | History display |
testMigraineDetailAndEdit | MigraineDetailSheet | Detail + edit |
Step 3: Harvest Crash Logs
After a test crash, check for crash logs:
find ~/Library/Logs/DiagnosticReports -name "*<AppName>*" -newer /tmp/.last_test_run -type f 2>/dev/null | head -5If found, read the crash log and extract:
- Exception type — EXC_BREAKPOINT, EXC_BAD_ACCESS, SIGABRT
- Crashing thread name — main, AsyncRenderer, background
- First app frame — the first stack frame in YOUR code (not Apple frameworks)
Step 4: Classify the Crash
| Crashing Thread | First App Frame Pattern | Category |
AsyncRenderer | Color.init, AppTheme | runtime/async-render |
AsyncRenderer | _swift_task_checkIsolatedSwift | runtime/actor-isolation |
| Main thread | Force unwrap, ! | runtime/nil-unwrap |
| Main thread | Index out of range | runtime/index-out-of-bounds |
| Main thread | ModelContext | runtime/swiftdata-thread |
| Any | View transition / animation | runtime/navigation |
| Any | Observation, @Observable | runtime/observation |
Step 5: Log to Error Ledger
Append to .agents/errors/errors.md:
## [UNRESOLVED] <timestamp> — Runtime Crash: <brief description>
- **Error:** `<exception type + signal>`
- **File:** `<first app frame file:line>`
- **Category:** `runtime/<subcategory>`
- **Symptom:** <what the user saw or which test failed>
- **Crashing Thread:** `<thread name>`
- **First App Frame:** `<symbol>`
- **Root Cause:** _Pending investigation_
- **Fix:** _Pending_
- **Session:** `${CLAUDE_SESSION_ID}`Step 6: Investigate and Fix
Follow the /debugging skill methodology:
- Read the file at the first app frame
- Check error ledger history for matching patterns
- If match → apply known fix
- If no match → isolate by simplifying the crashing view
- Fix root cause, rebuild, rerun the failing test
- Update ledger to
[RESOLVED]
Step 7: Verify
Rerun the specific failing test:
mcp__xcode__RunSomeTests with:
testIdentifier: "SmokeWalkerTest/testFullLoggingFlow"Then run ALL smoke tests to ensure no regressions:
mcp__xcode__RunSomeTests with:
testIdentifier: "SmokeWalkerTest"Setup: Adding Smoke Tests to a New Project
If no UI test target exists:
1. Add to project.yml
<AppName>UITests:
type: bundle.ui-testing
platform: iOS
supportedDestinations:
- iOS
sources:
- path: <AppName>UITests
type: syncedFolder
settings:
base:
SWIFT_VERSION: "6.0"
GENERATE_INFOPLIST_FILE: YES
PRODUCT_BUNDLE_IDENTIFIER: com.example.uitests
CODE_SIGN_STYLE: Automatic
SWIFT_APPROACHABLE_CONCURRENCY: YES
SWIFT_DEFAULT_ACTOR_ISOLATION: MainActor
dependencies:
- target: <AppName>2. Create test directory and file
mkdir -p <AppName>UITestsCreate SmokeWalkerTest.swift that:
- Launches the app with
--uitestingargument - Sets
continueAfterFailure = false - Walks through every major screen using accessibility identifiers
- Taps interactive elements
- Verifies screens render (elements exist)
3. Add accessibility identifiers to views
Add .accessibilityIdentifier("name") to key interactive elements:
- Navigation buttons (log, settings, history)
- Form buttons (next, save, back, close)
- List rows (indexed:
row_0,row_1) - Trigger/selection chips (named:
trigger_stress)
Naming convention: <screen>_<element> in snake_case.
4. Regenerate Xcode project
mcp__xcodegen__regenerate_projectRules
- Always run smoke tests first — don't guess, let the test find the crash
- Trust test failure location — the failing test method IS the crashing screen
- Log every crash to errors.md — even if you fix it immediately
- Rerun tests after fix — verify no regressions
- Never skip the ledger — every crash feeds the learning system
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

