From d25432d460a9cb22c69648ec010c2b8d3b7b60c7 Mon Sep 17 00:00:00 2001 From: rUv Date: Sat, 7 Feb 2026 17:16:12 +0000 Subject: [PATCH] Checkpoint: File edits MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Automatic checkpoint created by Claude Code - Branch: feature/codex-integration - Timestamp: 2026-02-07T17:16:12Z - Changes: 1 file(s) 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 --- .agents/skills/performance-analysis/SKILL.md | 61 ++++++++++++++++++++ 1 file changed, 61 insertions(+) create mode 100644 .agents/skills/performance-analysis/SKILL.md diff --git a/.agents/skills/performance-analysis/SKILL.md b/.agents/skills/performance-analysis/SKILL.md new file mode 100644 index 0000000000..e1cb3ce5c2 --- /dev/null +++ b/.agents/skills/performance-analysis/SKILL.md @@ -0,0 +1,61 @@ +--- +name: performance-analysis +description: > + Performance profiling, benchmarking, and optimization analysis. Identifies bottlenecks, measures latency, and provides optimization recommendations. + Use when: performance issues, slow responses, memory usage concerns, optimization needed, benchmarking required. + Skip when: feature development, bug fixes unrelated to performance, documentation tasks. +--- + +# Performance Analysis Skill + +## Purpose +Performance profiling, benchmarking, and optimization analysis for claude-flow applications. + +## When to Trigger +- Performance issues reported +- Slow API responses (>100ms for MCP) +- High memory usage +- Before/after optimization comparison +- Benchmarking new features + +## Commands + +### Run Benchmark Suite +```bash +npx claude-flow performance benchmark --suite all +``` + +### Profile Memory Usage +```bash +npx claude-flow memory usage --detail by-agent +``` + +### Detect Bottlenecks +```bash +npx claude-flow performance profile --depth full +``` + +### Generate Report +```bash +npx claude-flow performance report --format markdown +``` + +### Optimize Configuration +```bash +npx claude-flow performance optimize --target memory +``` + +## Performance Targets + +| Metric | Target | How to Measure | +|--------|--------|----------------| +| HNSW Search | 150x-12,500x faster | `memory search --benchmark` | +| MCP Response | <100ms | `mcp test --latency` | +| CLI Startup | <500ms | `time npx claude-flow --version` | +| Memory Reduction | 50-75% | `memory usage --quantization int8` | + +## Best Practices +1. Always establish baseline before optimization +2. Profile in production-like environment +3. Focus on critical path bottlenecks +4. Measure impact of each change independently