mirror of
https://github.com/davila7/claude-code-templates.git
synced 2026-09-19 01:30:23 +08:00
41cbbea00c
- 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>
1 line
2.1 KiB
JSON
1 line
2.1 KiB
JSON
{"content": "---\nallowed-tools: Read, Write, Edit, Bash\nargument-hint: [sync-scope] | --state | --label | --assignee | --milestone\ndescription: Sync GitHub issues to Linear workspace with comprehensive field mapping and rate limit management\n---\n\n# Sync Issues to Linear\n\nSync GitHub issues to Linear workspace with intelligent field mapping: **$ARGUMENTS**\n\n## Current Repository Context\n\n- Repository: !`gh repo view --json nameWithOwner -q .nameWithOwner 2>/dev/null || echo \"No repo context\"`\n- Issue count: !`gh issue list --state all --limit 1 --json number | jq length 2>/dev/null || echo \"Check manually\"`\n- Linear teams: Available Linear teams and project assignments\n- Rate limits: !`gh api rate_limit -q '.rate | \"GitHub: \\(.remaining)/\\(.limit)\"' 2>/dev/null`\n\n## Task\n\nExecute comprehensive synchronization of GitHub issues to Linear workspace:\n\n**Sync Scope**: Use $ARGUMENTS to filter by issue state, labels, assignees, milestones, or specific issue sets\n\n**Synchronization Framework**:\n1. **Issue Discovery** - Fetch GitHub issues with comprehensive metadata, apply filters, validate requirements\n2. **Field Mapping** - Transform GitHub fields to Linear format, map priorities, convert labels, handle assignees\n3. **Data Validation** - Check required fields, validate user mappings, ensure data integrity, prevent duplicates\n4. **Linear Integration** - Create tasks with proper formatting, apply team assignments, set projects, manage relationships\n5. **Rate Limit Management** - Implement exponential backoff, batch operations, monitor API limits, optimize requests\n6. **Progress Tracking** - Provide real-time updates, handle errors gracefully, maintain sync state, generate reports\n\n**Advanced Features**: Smart priority inference, intelligent user mapping, incremental sync capabilities, comprehensive error recovery.\n\n**Data Integrity**: Preserve formatting, maintain metadata, create bidirectional references, ensure audit trails.\n\n**Output**: Complete synchronization results with success metrics, error reports, mapping summaries, and comprehensive sync analytics."} |