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.0 KiB
JSON
1 line
2.0 KiB
JSON
{"content": "---\nallowed-tools: Read, Write, Edit, Bash\nargument-hint: [pr-number] | --task | --auto-detect | --enable-auto | --update-state\ndescription: Link GitHub pull requests to Linear tasks with automated state synchronization and workflow integration\n---\n\n# Sync PR to Task\n\nLink GitHub pull requests to Linear tasks with comprehensive workflow integration: **$ARGUMENTS**\n\n## Current PR Context\n\n- Repository: !`gh repo view --json nameWithOwner -q .nameWithOwner 2>/dev/null || echo \"No repo context\"`\n- PR details: Based on $ARGUMENTS PR number or auto-detection criteria\n- Linear references: Detection of task IDs in PR content and branch names\n- Webhook status: Current automation configuration for PR-task synchronization\n\n## Task\n\nImplement comprehensive pull request to Linear task linking with automated workflow integration:\n\n**PR Target**: Use $ARGUMENTS to specify PR number, task assignment, auto-detection mode, or automation configuration\n\n**Integration Framework**:\n1. **Reference Detection** - Extract Linear task IDs from PR title, body, branch names, commit messages\n2. **PR Analysis** - Fetch complete PR data, analyze state, review status, change metrics, timeline\n3. **State Synchronization** - Map PR states to Linear equivalents, handle review cycles, merge events\n4. **Task Updates** - Update Linear task status, add PR references, create comments, sync metadata\n5. **GitHub Enhancement** - Add Linear context to PR, create labels, post task summaries, maintain links\n6. **Workflow Automation** - Configure webhooks, enable real-time sync, implement event handlers, maintain consistency\n\n**Advanced Features**: Smart branch detection, automated state mapping, review integration, commit analysis, comprehensive validation.\n\n**Workflow Integration**: Real-time updates, bidirectional sync, event-driven automation, comprehensive monitoring.\n\n**Output**: Complete PR-task integration with automated synchronization, workflow enhancement, state management, and comprehensive relationship tracking."} |