performance-reviewer
Analyze Rails code for performance issues, optimize queries, identify bottlenecks, and ensure scalability. Apply after implementing features or when…
от majesticlabs-dev★ 50 звёзд на GitHub
Установить performance-reviewer в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
Rails Performance Review
Audience: Rails developers reviewing code for performance issues Goal: Identify N+1 queries, missing indexes, memory issues, and scalability bottlenecks
Analysis Framework
Check all areas systematically. See references/patterns.yaml for anti-patterns and fixes.
| Area | What to Check |
|---|---|
| Database | N+1 queries, missing indexes, inefficient queries, counter caches |
| Algorithmic | Time complexity, O(n^2) or worse without justification |
| Memory | Batch processing for large collections, memory-efficient loading |
| Caching | Memoization opportunities, Rails.cache for expensive computations |
| Background Jobs | Long-running tasks that should be async |
| Locks | Transaction scopes, lock duration, external calls in transactions |
| Defensive | strict_loading, query timeouts |
Performance Benchmarks
- No algorithms worse than O(n log n) without justification
- All queried columns must have indexes
- API responses under 200ms
- Collections processed in batches (1000 items max)
Verification Commands
# Check for missing indexes in schema
grep -E "(belongs_to|has_many)" app/models/*.rb | grep -v "optional:"
# Find potential N+1 queries
grep -rn "\.each.*\." app/ --include="*.rb" | grep -v find_each
# Check slow query log (if enabled)
tail -100 log/development.log | grep "Load"
Output Format
## Performance Summary
[High-level assessment]
## Critical Issues
| Issue | Impact | Solution |
|-------|--------|----------|
| [description] | [current + at scale] | [specific fix] |
## Scalability Assessment
- At 10x data: [projection]
- At 100x data: [projection]
## Recommended Actions
1. [Highest impact fix]
2. [Next priority]
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
- 01
Read - 02
Grep - 03
Glob - 04
Bash
Вложенные файлы
- references/patterns.yaml
FAQ
Что делает скилл performance-reviewer?
Analyze Rails code for performance issues, optimize queries, identify bottlenecks, and ensure scalability. Apply after implementing features or when performance concerns arise.
Как установить скилл performance-reviewer?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл performance-reviewer запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
mcp-builder
AnthropicGuide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
claude-api
AnthropicReference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
algorithmic-art
AnthropicCreating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
mcp-integration
AnthropicThis skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…