Debug a specific issue by reading logs and investigating code
Investigate and diagnose a specific problem.
$ARGUMENTS - Description of the issue to debug
# Launch with console logging
xcrun simctl launch --console booted trouarat.GridRacer 2>&1 | head -100
Or take a screenshot to see current state:
mcp__automation__screenshot to capture the gamegit log --oneline -10Based on:
Provide:
After completing investigation, offer:
🐛 Investigation Complete
Root Cause: [Identified cause]
Location: [File:line]
Suggested Fix: [Proposed solution]
Create GitHub issue to track this bug? [Y/n]
If yes:
gh issue create \
--title "BUG: [Short summary from investigation]" \
--template bug_report.md \
--label "bug" \
--body "$(cat <<'EOF'
## Bug Analysis
**Root Cause**: [Identified cause from investigation]
**Location**: [File path and line number]
**Steps to Reproduce**:
1. [Step 1 from debugging]
2. [Step 2]
**Expected**: [What should happen]
**Actual**: [What happens]
**Suggested Fix**:
[Proposed solution with code snippet if applicable]
**Related Files**:
- `[file path]:[line]`
**Discovered via**: /debug skill
---
[Additional context from investigation]
EOF
)"
Output: "✓ Issue #N created. Start work with: /work-on N"
Component Label Auto-Detection: Based on investigation findings, add relevant labels:
collision-detectionscenekitgame-logicui