erne 代码验证
- 作者仓库星标 36
- 许可证 MIT
- 作者仓库 everything-react-native-expo
/erne-perf — Performance Profiling
You are executing the /erne-perf command. Use the performance-profiler agent to diagnose and fix performance issues.
Diagnostic Areas
1. Rendering Performance (FPS)
- Check for unnecessary re-renders with React DevTools Profiler
- Identify components re-rendering without prop changes
- Look for missing
React.memo,useCallback,useMemo - Detect inline function/object creation in render
2. Time to Interactive (TTI)
- Analyze app startup sequence
- Check for heavy
useEffectchains on mount - Identify blocking operations on main thread
- Verify Hermes bytecode compilation
3. Bundle Size
- Run
npx react-native-bundle-visualizer - Identify large dependencies
- Check for unused imports and dead code
- Verify tree-shaking is working
4. Memory
- Check for listener/subscription cleanup in
useEffect - Identify large objects retained in closures
- Look for image caching issues
- Detect circular references
5. Animations
- Verify all animations use Reanimated (not Animated API)
- Check for JS thread bottlenecks in animation callbacks
- Identify layout thrashing during animations
- Measure actual FPS during animations
6. Hermes Engine
- Verify Hermes is enabled
- Check for unsupported JS features
- Profile with Hermes sampling profiler
- Analyze bytecode compilation output
Output Format
## Performance Metrics
| Metric | Current | Target | Status |
|--------|---------|--------|--------|
| JS FPS | 45 | 60 | ⚠️ |
| UI FPS | 58 | 60 | ✅ |
| TTI | 3.2s | <2s | ❌ |
| Bundle | 8.2MB | <5MB | ❌ |
## Critical Issues
[Issues that must be fixed]
## Optimization Opportunities
[Improvements ranked by impact]
Notes
- If agent-device is available, measure actual FPS on device
- Reference
rules/common/performance.mdfor optimization patterns - Profile on real devices, not simulator/emulator
- 流狐分类
- AI 智能
- 作者声明 Agent
- 未找到明确声明;不据此推断已兼容或已测试
- 静态检查
- 94 / 100 · 启发式扫描,不代表运行安全
- 作者 / 版本 / 许可
- @JubaKitiashvili · MIT
- 流狐 Token 估算
- 低消耗
- 流狐接入估算
- 需简单配置
- 是否需要外部 API Key
- 未发现要求
- 检测到的系统要求
- macOS · Linux · Windows
- 底层运行要求
- 未声明
- 检测到的文件与系统行为
-
- 只读
- Shell 执行
- 检测到的网络行为
- 仅限本地
- 安装命令数
- 无(仅作为资料)
档案由构建时根据 SKILL.md 与安装命令自动衍生,可能与作者实际意图存在差异。
需要注意: 未限定 allowed-tools,默认拥有全部工具权限。
作者没有在当前 SKILL.md 中定义固定输出样例。 Diagnostic Areas
Check for unnecessary re-renders with React DevTools Profiler Identify components re-rendering without prop changes Look for missing React.memo, useCallback, useMemo
Analyze app startup sequence Check for heavy useEffect chains on mount Identify blocking operations on main thread
Run npx react-native-bundle-visualizer Identify large dependencies Check for unused imports and dead code
Check for listener/subscription cleanup in useEffect Identify large objects retained in closures Look for image caching issues
Verify all animations use Reanimated (not Animated API) Check for JS thread bottlenecks in animation callbacks Identify layout thrashing during animations
# /erne-perf — Performance Profiling
You are executing the `/erne-perf` command. Use the **performance-profiler** agent to diagnose and fix performance issues.
## Diagnostic Areas
### 1. Rendering Performance (FPS)
- Check for unnecessary re-renders with React DevTools Profiler
- Identify components re-rendering without prop changes
- Look for missing `React.memo`, `useCallback`, `useMemo`
- Detect inline function/object creation in render
### 2. Time to Interactive (TTI)
- Analyze app startup sequence
- Check for heavy `useEffect` chains on mount
- Identify blocking operations on main thread
- Verify Hermes bytecode compilation
### 3. Bundle Size
- Run `npx react-native-bundle-visualizer`
- Identify large dependencies
- Check for unused imports and dead code
- Verify tree-shaking is working
### 4. Memory
- Check for listener/subscription cleanup in `useEffect`
- Identify large objects retained in closures
- Look for image caching issues
- Detect circular references
### 5. Animations
- Verify all animations use Reanimated (not Animated API)
- Check for JS thread bottlenecks in animation callbacks
- Identify layout thrashing during animations
- Measure actual FPS during animations
### 6. Hermes Engine
- Verify Hermes is enabled
- Check for unsupported JS features
- Profile with Hermes sampling profiler
- Analyze bytecode compilation output
## Output Format
```
## Performance Metrics
| Metric | Current | Target | Status |
|--------|---------|--------|--------|
| JS FPS | 45 | 60 | ⚠️ |
| UI FPS | 58 | 60 | ✅ |
| TTI | 3.2s | <2s | ❌ |
| Bundle | 8.2MB | <5MB | ❌ |
## Critical Issues
[Issues that must be fixed]
## Optimization Opportunities
[Improvements ranked by impact]
```
## Notes
- If agent-device is available, measure actual FPS on device
… 作者原文负责流程事实;流狐只索引当前章节、要点、文件与命令。
章节 -> Diagnostic Areas → 1. Rendering Performance (FPS) → 2. Time to Interactive (TTI) → 3. Bundle Size → 4. Memory → 5. Animations
要点 -> performance-profiler · You are executing the /erne-perf command.
文件/命令 -> /erne-perf · React.memo · useCallback · useMemo · useEffect · npx react-native-bundle-visualizer · rules/common/performance.md
内容 SHA-256 -> 812306b99f9c
原文结构
适用与边界
原文中的明确线索
/erne-perf、React.memo、useCallback、useMemo、useEffect、npx react-native-bundle-visualizer、rules/common/performance.md