.claude/skills/performance-audit/SKILL.md
Auditoría estática de rendimiento — detección de hotspots, async anti-patterns, test-first optimization
npx skillsauth add gonzalezpazmonica/pm-workspace performance-auditInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Este skill analiza el código fuente para detectar funciones pesadas, anti-patrones de async y oportunidades de optimización. No ejecuta el código: mide complejidad, profundidad y patrones mediante análisis estático.
Calcular por cada función/método:
Cargar references/perf-{lang}.md del lenguaje detectado. Verificar:
Score compuesto por función: (cyclomatic × 0.4) + (cognitive × 0.3) + (method_length × 0.15) + (nesting_depth × 0.1) + (fan_out × 0.05)
Métricas adicionales:
Para cada hotspot identificado:
| Severidad | Criterio | Impacto | |-----------|----------|---------| | CRITICAL | cyclomatic ≥21 O cognitive ≥26 O async blocking en hot path | Degradación medible en producción | | HIGH | cyclomatic 11-20 O cognitive 16-25 O N+1 queries | Riesgo de latencia bajo carga | | MEDIUM | method_length >60 O nesting >5 O fan-out >12 | Mantenibilidad reducida (solo --strict) | | LOW | Best practice no seguida (solo --strict) | Oportunidad de mejora |
Performance Score = 100 - (Σ penalties)
Penalty: CRITICAL = -15, HIGH = -8, MEDIUM = -3, LOW = -1
Score mínimo = 0
Rangos: ≥80 GOOD, 60-79 NEEDS_WORK, 40-59 POOR, <40 CRITICAL
Formato: PA-{NNN} (secuencial por auditoría).
Los IDs son estables entre /perf-audit, /perf-fix y /perf-report.
Los hallazgos con severidad ≥HIGH se registran automáticamente en /debt-track.
ANTES de optimizar cualquier función:
| Feature | Relación | |---------|----------| | architecture-intelligence | Reusa detección de lenguaje | | language packs | perf-{lang}.md complementa convenciones | | /debt-track | Hallazgos PA-NNN → deuda técnica | | /project-audit | /perf-audit es dimensión nueva del audit | | test-runner hook | /perf-fix usa test runner para baseline | | context-health | Output-first: >30 líneas → fichero |
Directorio: output/performance/
Formato nombre: {proyecto}-audit-{YYYY-MM-DD}.md
testing
Create new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an existing skill, run evals to test a skill, benchmark skill performance with variance analysis, or optimize a skill's description for better triggering accuracy.
tools
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when building MCP servers to integrate external APIs or services, whether in Python (FastMCP) or Node/TypeScript (MCP SDK).
tools
Sistema proactivo de bienestar individual
development
Search the web to resolve context gaps — documentation, versions, CVEs, best practices. Auto-starts SearxNG Docker if available, falls back to WebSearch.