performance
1
总安装量
1
周安装量
#46111
全站排名
安装命令
npx skills add https://github.com/duc01226/easyplatform --skill performance
Agent 安装分布
antigravity
1
gemini-cli
1
Skill 文档
Performance Optimization
Triage skill for performance issues. Routes to the correct sub-tool or reference based on bottleneck type.
Decision Tree
Performance Issue?
âââ Database (slow queries, N+1, indexes, pagination)
â â Invoke database-optimization skill (covers all DB patterns)
âââ Frontend (rendering, bundle size, change detection)
â â â ï¸ MUST READ docs/claude/frontend-patterns.md
â â Key: OnPush, trackBy, lazy loading, virtual scroll, tree-shaking
âââ API/Endpoint (response time, payload, serialization)
â â â ï¸ MUST READ references/performance-patterns.md (parallel queries, caching, DTOs)
âââ Background Jobs (throughput, batch processing)
â â â ï¸ MUST READ references/performance-patterns.md (bounded parallelism, batch ops)
âââ Cross-Service (message bus, eventual consistency)
â â ï¸ MUST READ references/performance-patterns.md (payload size, idempotency)
Quick Assessment Checklist
- Identify bottleneck type using decision tree above
- Measure baseline (response time, query count, bundle size)
- Route to correct sub-tool or reference
- Apply patterns from the routed resource
- Verify improvement against baseline
- Monitor for regressions
EP-Specific Quick Wins
- Parallel tuple queries:
var (a, b) = await (queryA, queryB); - Eager loading:
repo.GetAllAsync(filter, ct, e => e.Related) - Projections:
.Select(e => new { e.Id, e.Name })instead of full entity - Full-text search:
searchService.Search(q, text, Entity.SearchColumns()) - Batch updates:
repo.UpdateManyAsync(items, dismissSendEvent: true, checkDiff: false) - Paged processing:
PageBy(skip, take)at database level
For detailed patterns, profiling commands, and anti-patterns:
â ï¸ MUST READ: .claude/skills/performance/references/performance-patterns.md
Approval Gate
Present findings and optimization plan. Wait for explicit user approval before making changes — performance optimizations can have wide-reaching side effects.
IMPORTANT Task Planning Notes
- Always plan and break many small todo tasks
- Always add a final review todo task to review the works done at the end to find any fix or enhancement needed