erne 调试
- 作者仓库星标 36
- 许可证 MIT
- 作者仓库 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]- 流狐分类
- 工程开发
- 作者声明 Agent
- 未找到明确声明;不据此推断已兼容或已测试
- 静态检查
- 94 / 100 · 启发式扫描,不代表运行安全
- 作者 / 版本 / 许可
- @JubaKitiashvili · MIT
- 流狐 Token 估算
- 低消耗
- 流狐接入估算
- 需简单配置
- 是否需要外部 API Key
- 未发现要求
- 检测到的系统要求
- 未声明
- 底层运行要求
- 未声明
- 检测到的文件与系统行为
-
- 只读
- Shell 执行
- 检测到的网络行为
- 仅限本地
- 安装命令数
- 无(仅作为资料)
档案由构建时根据 SKILL.md 与安装命令自动衍生,可能与作者实际意图存在差异。
需要注意: 未限定 allowed-tools,默认拥有全部工具权限。
作者没有在当前 SKILL.md 中定义固定输出样例。 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
… 作者原文负责流程事实;流狐只索引当前章节、要点、文件与命令。
章节 -> Process → Step 1: Reproduce → Step 2: Classify the Bug → Step 3: Investigate → Step 4: Fix & Verify → Output
要点 -> performance-profiler · Crash · Render · State · Navigation · Performance · Network · Native
文件/命令 -> /erne-debug · request/response · Xcode/Logcat · errors/warnings · Props/state
内容 SHA-256 -> 32ed861dc28e
方法与流程
适用与边界
原文中的明确线索
/erne-debug、request/response、Xcode/Logcat、errors/warnings、Props/state