Perf Profiler
Identify performance bottlenecks and generate optimization suggestions for code, databases, and networks.
Installation
- Make sure Claude is on your device and in your terminal.
Skills load from
~/.claude/skills/when Claude Code starts up — so you need it on your machine first. If you don't have it yet, install it once with the command below, then runclaudein any terminal to verify.One-time setupnpm i -g @anthropic-ai/claude-codeAlready have it? Skip ahead.
- Paste into Claude Code or into your terminal.
This copies the whole skill folder into
~/.claude/skills/perf-profiler-laolaoshiren/— the SKILL.md plus any scripts, reference docs, or templates the skill ships with. Safe default: works for every skill.Faster alternative (instruction-only skills)
Skips the clone and grabs only the SKILL.md file. Don't use this if the skill ships Python scripts, reference markdowns, or asset templates — they won't be downloaded and the skill will fail when it tries to load them.
Quick install (SKILL.md only)Sign up to copy - Restart Claude Code.
Quit and reopen Claude Code (or any other agent that loads from
~/.claude/skills/). New skills are picked up on startup. - Just ask Claude.
Skills auto-activate when your request matches the skill's description — no slash command needed. Trigger phrases live in the skill's own frontmatter; you can read them in the “What this skill does” section above.
Prefer to read the source first? Open on GitHub.
When Claude uses it
性能分析 - 识别瓶颈、生成优化建议
What this skill does
性能分析助手
触发条件
当用户要求性能优化、分析性能、找瓶颈、优化速度时激活此技能。
分析维度
🖥️ 代码级
- 算法复杂度分析(O(n) vs O(n²))
- 内存使用模式
- 不必要的对象创建
- 同步阻塞 vs 异步
🗄️ 数据库级
- N+1 查询检测
- 缺失索引建议
- 慢查询分析
- 连接池配置
🌐 网络级
- 请求合并建议
- 缓存策略
- CDN 配置
- 压缩优化
输出格式
## ⚡ 性能分析报告
### 🔴 关键瓶颈(影响 >50%)
1. [文件:行号] O(n²) 嵌套循环
优化方案:使用哈希表,O(n²) → O(n)
### 🟡 次要问题
...
### 📊 预期收益
- 优化前:~Xms
- 优化后:~Yms
- 提升:Z%
Related skills
Generative Code Art
anthropics
Create algorithmic art with p5.js using randomness and interactive parameters.
Poster & Visual Design
anthropics
Create original posters and visual art in PNG and PDF formats.
Claude API Helper
anthropics
Build, debug, and optimize Claude API applications with caching and model migration support.
MCP Server Builder
anthropics
Build protocol servers that connect language models to external APIs and services.