浏览器与自动化
optimize-performance
Workflow for identifying and applying backend performance improvements. Use when the user asks to optimize, speed up, or reduce latency.
girijashankarj · 已有 AI 审核记录
安装与使用
运行命令前先阅读来源与依赖说明。复制命令不会自动安装或执行。
npx skills add girijashankarj/cursor-handbook --skill optimize-performance技能说明
name: optimize-performance description: Workflow for identifying and applying backend performance improvements. Use when the user asks to optimize, speed up, or reduce latency.
Skill: Optimize performance
Trigger
When the user asks to optimize, speed up, or reduce latency of an endpoint or function.
Steps
- Measure — Identify the slow path (endpoint, query, or function); use existing metrics or add a quick timing log.
- Profile — Pinpoint bottleneck (DB query, N+1, CPU, I/O); avoid guessing.
- Design — Propose 1–2 concrete changes (index, batch, cache, algorithm); prefer smallest change first.
- Implement — Apply the change; keep the same behavior.
- Verify — Re-run the scenario and confirm improvement; run existing tests.
Rules
- Do not optimize without measuring first.
- Prefer indexing and query changes over application-level hacks.
- Follow project query patterns (parameterized, soft delete, pagination).