con un clic
performance
性能优化方法(语言无关)——先测量再优化、定位瓶颈、优化热点、验证。具体技术(前端 Core Web Vitals、后端查询、AI 延迟)见所用预设。
Instalar con Codex o Claude Copia este prompt, pégalo en Codex, Claude u otro asistente, y deja que revise la página de la skill y la instale por ti.
Menú
性能优化方法(语言无关)——先测量再优化、定位瓶颈、优化热点、验证。具体技术(前端 Core Web Vitals、后端查询、AI 延迟)见所用预设。
Instalar con Codex o Claude Copia este prompt, pégalo en Codex, Claude u otro asistente, y deja que revise la página de la skill y la instale por ti.
Basado en la clasificación ocupacional SOC
Execute the check workflow from this AI development team preset. Use when the user writes /check, asks for check, or wants the corresponding team process in Codex.
Execute the dev workflow from this AI development team preset. Use when the user writes /dev, asks for dev, or wants the corresponding team process in Codex.
Execute the fix workflow from this AI development team preset. Use when the user writes /fix, asks for fix, or wants the corresponding team process in Codex.
Execute the plan workflow from this AI development team preset. Use when the user writes /plan, asks for plan, or wants the corresponding team process in Codex.
Execute the project-preset workflow from this AI development team preset. Use when the user writes /project-preset, asks for project-preset, or wants the corresponding team process in Codex.
Execute the review-all workflow from this AI development team preset. Use when the user writes /review-all, asks for review-all, or wants the corresponding team process in Codex.
| name | performance |
| description | 性能优化方法(语言无关)——先测量再优化、定位瓶颈、优化热点、验证。具体技术(前端 Core Web Vitals、后端查询、AI 延迟)见所用预设。 |
这是通用方法,不绑定技术栈。具体优化手段见所用预设:
- web-fullstack:
frontend技能(Core Web Vitals、代码分割、图片优化、bundle)- ai-app:
rag规则与 specs(嵌入缓存、向量索引、流式、延迟 P95)
不要凭感觉优化。先用数据找到真正的瓶颈,否则你优化的多半不是慢的地方。
① 测量 → ② 定位瓶颈 → ③ 优化热点 → ④ 再测量验证 → 回到①
| 类别 | 典型症状 | 通用对策 |
|---|---|---|
| 计算 | CPU 打满、主线程卡 | 降复杂度、缓存结果、移出热路径、并行/异步 |
| IO | 等磁盘/数据库/文件 | 批量、索引、连接池、避免 N+1、流式 |
| 网络 | 等远程响应 | 并发请求、缓存、减少往返、就近部署、压缩 |
| 内存 | OOM、GC 频繁、泄漏 | 释放引用、流式处理大数据、分页、对象复用 |
性能工作要给出:瓶颈在哪(数据支撑)、改了什么、before/after 对比。 具体指标阈值见预设(如 web 的 LCP<2.5s、AI 的检索 P95<3s)。