erne-debug
- Repo stars 36
- License MIT
- Author repo everything-react-native-expo
/erne-debug — Systematic Diagnosis
You are executing the /erne-debug command. Use the performance-profiler agent for systematic bug diagnosis.
Process
Step 1: Reproduce
Define exact reproduction steps:
- Starting state
- Actions taken
- Expected behavior
- Actual behavior
- Environment (device, OS, Expo SDK version)
Step 2: Classify the Bug
| Category | Indicators | First Check |
|---|---|---|
| Crash | App terminates | Check Metro logs, Hermes stack trace |
| Render | Visual glitch, wrong layout | Check component tree, re-render count |
| State | Wrong data displayed | Check Zustand store, TanStack Query cache |
| Navigation | Wrong screen, broken back | Check Expo Router history, params |
| Performance | Jank, slow response | Check FPS, bundle size, memory |
| Network | Failed API calls | Check request/response, auth tokens |
| Native | Platform-specific issue | Check native logs (Xcode/Logcat) |
Step 3: Investigate
JavaScript layer:
# Check Metro bundler logs
# Search for errors/warnings in console output
# Add strategic console.log at suspected points
React layer:
- Component re-render tracking (React DevTools)
- Props/state inspection
- Effect dependency analysis
Native layer (if agent-device available):
- Screenshot current state
- Navigate through repro steps visually
- Capture native crash logs
Step 4: Fix & Verify
- Identify root cause
- Implement minimal fix
- Verify fix resolves the issue
- Check for regression (run related tests)
- Document what caused it and why
Output
## Bug Report
### Summary
[One-line description]
### Root Cause
[Technical explanation]
### Fix Applied
[Files changed with explanation]
### Verification
[Steps taken to verify fix]
[Test results]- Fluxly category
- Engineering
- Author-declared agents
- No explicit declaration found; this is not inferred or tested compatibility
- Static check
- 94 / 100 · heuristic scan, not runtime safety proof
- Author / version / license
- @JubaKitiashvili · MIT
- Fluxly token estimate
- Lean
- Fluxly setup estimate
- Guided setup
- External API key
- No requirement detected
- Detected OS requirements
- Unspecified
- Runtime requirements
- Unspecified
- Detected file/system behavior
-
- Read-only
- Shell exec
- Detected network behavior
- Local-only
- Install commands
- None (reference only)
Profile is derived at build time from SKILL.md and install vectors. Subject to drift from author intent.
Heads up: 未限定 allowed-tools,默认拥有全部工具权限。
The current SKILL.md does not define a fixed output example. Process
Define exact reproduction steps: Starting state Actions taken
Category · Indicators · First Check Crash · App terminates · Check Metro logs, Hermes stack trace Render · Visual glitch, wrong layout · Check component tree, re-render count
JavaScript layer: React layer: Component re-render tracking (React DevTools)
Identify root cause Implement minimal fix Verify fix resolves the issue
# /erne-debug — Systematic Diagnosis
You are executing the `/erne-debug` command. Use the **performance-profiler** agent for systematic bug diagnosis.
## Process
### Step 1: Reproduce
Define exact reproduction steps:
1. Starting state
2. Actions taken
3. Expected behavior
4. Actual behavior
5. Environment (device, OS, Expo SDK version)
### Step 2: Classify the Bug
| Category | Indicators | First Check |
|----------|-----------|-------------|
| **Crash** | App terminates | Check Metro logs, Hermes stack trace |
| **Render** | Visual glitch, wrong layout | Check component tree, re-render count |
| **State** | Wrong data displayed | Check Zustand store, TanStack Query cache |
| **Navigation** | Wrong screen, broken back | Check Expo Router history, params |
| **Performance** | Jank, slow response | Check FPS, bundle size, memory |
| **Network** | Failed API calls | Check request/response, auth tokens |
| **Native** | Platform-specific issue | Check native logs (Xcode/Logcat) |
### Step 3: Investigate
**JavaScript layer:**
```bash
# Check Metro bundler logs
# Search for errors/warnings in console output
# Add strategic console.log at suspected points
```
**React layer:**
- Component re-render tracking (React DevTools)
- Props/state inspection
- Effect dependency analysis
**Native layer (if agent-device available):**
- Screenshot current state
- Navigate through repro steps visually
- Capture native crash logs
### Step 4: Fix & Verify
1. Identify root cause
2. Implement minimal fix
3. Verify fix resolves the issue
4. Check for regression (run related tests)
5. Document what caused it and why
## Output
```
## Bug Report
### Summary
[One-line description]
### Root Cause
[Technical explanation]
### Fix Applied
[Files changed with explanation]
### Verification
… Author text anchors workflow facts; Fluxly only indexes current sections, terms, files, and commands.
sections -> Process → Step 1: Reproduce → Step 2: Classify the Bug → Step 3: Investigate → Step 4: Fix & Verify → Output
terms -> performance-profiler · Crash · Render · State · Navigation · Performance · Network · Native
files/cmd -> /erne-debug · request/response · Xcode/Logcat · errors/warnings · Props/state
body sha256 -> 32ed861dc28e
Decide Fit First
Design Intent
How To Use It
Boundaries And Review