Files
daniel 41cbbea00c perf(dashboard): reducir payload del home 87% y restaurar caching en Cloudflare
- Split components.json: índice sin content (1.9 MB / 249 KB br vs 15.6 MB / 4.15 MB br).
  Generador produce component-content/{type}/{slug}.json por componente y auto-copia
  a dashboard/public/. Página de detalle carga contenido on-demand via fetchComponentContent().
- Restaurar cabeceras de caché y seguridad perdidas en la migración Vercel→Cloudflare:
  _headers con Cache-Control max-age=86400 para JSONs, immutable para _astro/*,
  y HSTS, X-Frame-Options, Referrer-Policy, Permissions-Policy en todas las rutas.
- Eliminar dashboard/vercel.json (config muerta desde migración a Cloudflare Pages).
- Diferir hidratación: ClerkIsland y AuthButton client:load → client:idle;
  SaveToCollectionButton → client:visible.
- Eliminar gpt-tokenizer del bundle del navegador: reemplazado por estimación chars/4.
- Actualizar .claude/rules/dashboard.md para reflejar hosting en Cloudflare Pages.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-13 16:58:13 -04:00

1 line
2.5 KiB
JSON

{"content": "---\nallowed-tools: Read, Write, Edit, Bash\nargument-hint: [coverage-type] | --line | --branch | --function | --statement | --report\ndescription: Analyze and improve test coverage with comprehensive reporting and gap identification\n---\n\n# Test Coverage\n\nAnalyze and improve test coverage with detailed reporting and gap analysis: **$ARGUMENTS**\n\n## Current Coverage Context\n\n- Test framework: !`find . -name \"jest.config.*\" -o -name \".nycrc*\" -o -name \"coverage.xml\" | head -1 || echo \"Detect framework\"`\n- Coverage tools: !`npm ls nyc jest @jest/core 2>/dev/null | grep -E \"nyc|jest\" | head -2 || echo \"No JS coverage tools\"`\n- Existing coverage: !`find . -name \"coverage\" -type d | head -1 && echo \"Coverage data exists\" || echo \"No coverage data\"`\n- Test files: !`find . -name \"*.test.*\" -o -name \"*.spec.*\" | wc -l` test files\n\n## Task\n\nExecute comprehensive coverage analysis with improvement recommendations and reporting:\n\n**Coverage Type**: Use $ARGUMENTS to focus on line coverage, branch coverage, function coverage, statement coverage, or comprehensive reporting\n\n**Coverage Analysis Framework**:\n\n1. **Coverage Tool Setup** - Configure appropriate tools (Jest, NYC, Istanbul, Coverage.py, JaCoCo), setup collection settings, optimize performance, enable reporting\n2. **Coverage Measurement** - Generate line coverage, branch coverage, function coverage, statement coverage reports, identify uncovered code paths\n3. **Gap Analysis** - Identify critical uncovered paths, analyze coverage quality, assess business logic coverage, evaluate edge case handling\n4. **Threshold Management** - Configure coverage thresholds, implement quality gates, setup trend monitoring, enforce minimum standards\n5. **Reporting & Visualization** - Generate detailed reports, create coverage dashboards, implement trend analysis, setup automated notifications\n6. **Improvement Planning** - Prioritize coverage gaps, recommend test additions, identify refactoring opportunities, plan coverage enhancement\n\n**Advanced Features**: Differential coverage analysis, coverage trend monitoring, integration with code review, automated coverage alerts, performance impact assessment.\n\n**Quality Insights**: Coverage quality assessment, test effectiveness analysis, maintainability correlation, risk area identification.\n\n**Output**: Comprehensive coverage analysis with detailed reports, gap identification, improvement recommendations, and quality metrics tracking.\n"}