计划执行与检查节点
executing-plans
按既定实施计划完成工作,保持过程检查和反馈。
perf-profile【效率与协作】Structured performance profiling workflow. Identifies bottlenecks, measures against budgets, and generates optimization recommendations with priority rankings.
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
When this skill is invoked:
Determine scope from the argument:
full: run a comprehensive profile across all systemsRead performance budgets — Check for existing performance targets in design docs or CLAUDE.md:
Analyze the codebase for common performance issues:
CPU Profiling Targets:
_process() / Update() / Tick() functions — list all and estimate costMemory Profiling Targets:
Rendering Targets (if applicable):
I/O Targets:
Generate the profiling report:
## Performance Profile: [System or Full]
Generated: [Date]
### Performance Budgets
| Metric | Budget | Estimated Current | Status |
|--------|--------|-------------------|--------|
| Frame time | [16.67ms] | [estimate] | [OK/WARNING/OVER] |
| Memory | [target] | [estimate] | [OK/WARNING/OVER] |
| Load time | [target] | [estimate] | [OK/WARNING/OVER] |
| Draw calls | [target] | [estimate] | [OK/WARNING/OVER] |
### Hotspots Identified
| # | Location | Issue | Estimated Impact | Fix Effort |
|---|----------|-------|------------------|------------|
| 1 | [file:line] | [description] | [High/Med/Low] | [S/M/L] |
| 2 | [file:line] | [description] | [High/Med/Low] | [S/M/L] |
### Optimization Recommendations (Priority Order)
1. **[Title]** — [Description of the optimization]
- Location: [file:line]
- Expected gain: [estimate]
- Risk: [Low/Med/High]
- Approach: [How to implement]
### Quick Wins (< 1 hour each)
- [Simple optimization 1]
- [Simple optimization 2]
### Requires Investigation
- [Area that needs actual runtime profiling to determine impact]
Output the report with a summary: top 3 hotspots, estimated headroom vs budget, and recommended next action.