debug-mode
Debug Mode Skill
Specialized workflows for Debug Mode: hypothesis generation, log instrumentation, runtime analysis, and targeted fixes.
When to Use
Use this skill when:
- Debugging tricky bugs that are hard to reproduce
- Investigating regressions
- Analyzing performance issues
- Troubleshooting race conditions
- Standard agent interactions aren't working
Debug Mode Workflow
1. Exploration and Hypothesis
Agent will:
- Explore relevant code paths
- Generate hypotheses about root causes
- Identify potential failure points
- Plan instrumentation strategy
2. Instrumentation
Agent adds:
- Log statements at key points
- State tracking (variables, buffers, connections)
- Timing information
- Error condition checks
3. Reproduction
You provide:
- Detailed reproduction steps
- Expected vs actual behavior
- Error messages and stack traces
- Context about when bug occurs
4. Analysis
Agent analyzes:
- Collected logs
- State transitions
- Timing patterns
- Error conditions
5. Fix
Agent makes:
- Targeted fix based on evidence
- Minimal changes to address root cause
- Verification of fix
- Cleanup of instrumentation
Best Practices
- Provide detailed context: More information = better hypotheses
- Reproduce consistently: Follow steps exactly
- Multiple reproductions: For intermittent bugs
- Review fixes: Ensure root cause addressed
- Clean up: Remove instrumentation after fix
Related Resources
- Rule:
.cursor/rules/agent-modes.mdc - Command:
/debug - Agent:
.cursor/skills/debug-mode/agents/debug-specialist.md
More from basedhardware/omi
local-dev
Start local development environment — backend, macOS app, or Flutter mobile in iOS simulator. Use when: 'run the app', 'start backend', 'run simulator', 'flutter run', 'local dev', 'start dev environment', 'run mobile app'.
45rotate-key
Rotate an API key or secret across all locations — local .env files, macOS Keychain, GCP Secret Manager, Kubernetes deployments, and Codemagic CI. Use when: 'rotate key', 'update key', 'key leaked', 'replace secret', 'new API key', 'update GEMINI key', 'rotate secret'.
26self-improvement
Meta-skill for analyzing PRs, issues, and user interactions to improve Cursor rules and skills automatically
14docs-automation
Automate documentation updates when API endpoints, functions, or architecture change. Detects code changes that require doc updates, generates API reference from FastAPI routers, updates architecture diagrams, and syncs between internal and external docs.
13omi-flutter-patterns
Flutter Dart BLE device communication state management Provider backend integration localization cross-platform iOS Android
13rule-updater
Skill for programmatically reading, updating, and creating Cursor rules based on patterns and lessons learned
12