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.6 KiB
JSON

{"content": "---\nallowed-tools: Read, Write, Edit, Bash\nargument-hint: [language] | --javascript | --java | --python | --rust | --go | --csharp\ndescription: Setup comprehensive mutation testing with framework selection and CI integration\n---\n\n# Add Mutation Testing\n\nSetup mutation testing framework with quality metrics and CI integration: **$ARGUMENTS**\n\n## Current Testing Context\n\n- Language: !`find . -name \"*.js\" -o -name \"*.ts\" | head -1 >/dev/null && echo \"JavaScript/TypeScript\" || find . -name \"*.py\" | head -1 >/dev/null && echo \"Python\" || find . -name \"*.java\" | head -1 >/dev/null && echo \"Java\" || echo \"Multi-language\"`\n- Test coverage: !`find . -name \"coverage\" -o -name \".nyc_output\" | head -1 || echo \"No coverage data\"`\n- Test framework: !`grep -l \"jest\\\\|mocha\\\\|pytest\\\\|junit\" package.json pom.xml setup.py 2>/dev/null | head -1 || echo \"Detect from tests\"`\n- CI system: !`find . -name \".github\" -o -name \".gitlab-ci.yml\" -o -name \"Jenkinsfile\" | head -1 || echo \"No CI detected\"`\n\n## Task\n\nImplement comprehensive mutation testing with framework optimization and quality gates:\n\n**Language Focus**: Use $ARGUMENTS to specify JavaScript, Java, Python, Rust, Go, C#, or auto-detect from codebase\n\n**Mutation Testing Framework**:\n\n1. **Tool Selection & Setup** - Choose framework (Stryker, PIT, mutmut, cargo-mutants), install dependencies, configure basic settings, validate installation\n2. **Mutation Operator Configuration** - Configure arithmetic operators, relational operators, logical operators, conditional boundaries, statement mutations\n3. **Performance Optimization** - Setup parallel execution, configure incremental testing, optimize file filtering, implement caching strategies\n4. **Quality Metrics** - Configure mutation score calculation, setup survival analysis, implement threshold enforcement, track effectiveness trends\n5. **CI/CD Integration** - Automate execution triggers, configure performance monitoring, setup result reporting, implement deployment gates\n6. **Result Analysis** - Setup visualization dashboards, configure surviving mutant analysis, implement remediation workflows, track regression patterns\n\n**Advanced Features**: Selective mutation testing, performance profiling, automated test improvement suggestions, mutation trend analysis, quality gate integration.\n\n**Framework Support**: Language-specific optimizations, tool ecosystem integration, performance tuning, reporting customization.\n\n**Output**: Complete mutation testing setup with configured framework, CI integration, quality thresholds, and analysis workflows.\n"}