claude-code-templates 1.21.6 → 1.21.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +2 -2
- package/components/agents/ai-specialists/ai-ethics-advisor.md +0 -195
- package/components/agents/ai-specialists/hackathon-ai-strategist.md +0 -46
- package/components/agents/ai-specialists/llms-maintainer.md +0 -94
- package/components/agents/ai-specialists/model-evaluator.md +0 -150
- package/components/agents/ai-specialists/prompt-engineer.md +0 -112
- package/components/agents/ai-specialists/search-specialist.md +0 -59
- package/components/agents/ai-specialists/task-decomposition-expert.md +0 -97
- package/components/agents/api-graphql/graphql-architect.md +0 -208
- package/components/agents/api-graphql/graphql-performance-optimizer.md +0 -357
- package/components/agents/api-graphql/graphql-security-specialist.md +0 -519
- package/components/agents/blockchain-web3/smart-contract-auditor.md +0 -32
- package/components/agents/blockchain-web3/smart-contract-specialist.md +0 -32
- package/components/agents/blockchain-web3/web3-integration-specialist.md +0 -32
- package/components/agents/business-marketing/business-analyst.md +0 -194
- package/components/agents/business-marketing/content-marketer.md +0 -36
- package/components/agents/business-marketing/customer-support.md +0 -36
- package/components/agents/business-marketing/legal-advisor.md +0 -50
- package/components/agents/business-marketing/marketing-attribution-analyst.md +0 -352
- package/components/agents/business-marketing/payment-integration.md +0 -33
- package/components/agents/business-marketing/product-strategist.md +0 -212
- package/components/agents/business-marketing/risk-manager.md +0 -42
- package/components/agents/business-marketing/sales-automator.md +0 -36
- package/components/agents/data-ai/ai-engineer.md +0 -33
- package/components/agents/data-ai/computer-vision-engineer.md +0 -562
- package/components/agents/data-ai/data-engineer.md +0 -33
- package/components/agents/data-ai/data-scientist.md +0 -337
- package/components/agents/data-ai/ml-engineer.md +0 -33
- package/components/agents/data-ai/mlops-engineer.md +0 -58
- package/components/agents/data-ai/nlp-engineer.md +0 -680
- package/components/agents/data-ai/quant-analyst.md +0 -33
- package/components/agents/database/database-admin.md +0 -33
- package/components/agents/database/database-architect.md +0 -590
- package/components/agents/database/database-optimization.md +0 -33
- package/components/agents/database/database-optimizer.md +0 -33
- package/components/agents/database/nosql-specialist.md +0 -708
- package/components/agents/database/supabase-schema-architect.md +0 -138
- package/components/agents/deep-research-team/academic-researcher.md +0 -33
- package/components/agents/deep-research-team/agent-overview.md +0 -235
- package/components/agents/deep-research-team/competitive-intelligence-analyst.md +0 -530
- package/components/agents/deep-research-team/data-analyst.md +0 -112
- package/components/agents/deep-research-team/fact-checker.md +0 -553
- package/components/agents/deep-research-team/query-clarifier.md +0 -73
- package/components/agents/deep-research-team/report-generator.md +0 -108
- package/components/agents/deep-research-team/research-brief-generator.md +0 -108
- package/components/agents/deep-research-team/research-coordinator.md +0 -94
- package/components/agents/deep-research-team/research-orchestrator.md +0 -119
- package/components/agents/deep-research-team/research-synthesizer.md +0 -109
- package/components/agents/deep-research-team/technical-researcher.md +0 -95
- package/components/agents/development-team/backend-architect.md +0 -31
- package/components/agents/development-team/cli-ui-designer.md +0 -405
- package/components/agents/development-team/devops-engineer.md +0 -886
- package/components/agents/development-team/frontend-developer.md +0 -32
- package/components/agents/development-team/fullstack-developer.md +0 -1205
- package/components/agents/development-team/ios-developer.md +0 -36
- package/components/agents/development-team/mobile-developer.md +0 -33
- package/components/agents/development-team/ui-ux-designer.md +0 -36
- package/components/agents/development-tools/code-reviewer.md +0 -30
- package/components/agents/development-tools/command-expert.md +0 -422
- package/components/agents/development-tools/context-manager.md +0 -65
- package/components/agents/development-tools/debugger.md +0 -31
- package/components/agents/development-tools/dx-optimizer.md +0 -64
- package/components/agents/development-tools/error-detective.md +0 -33
- package/components/agents/development-tools/mcp-expert.md +0 -259
- package/components/agents/development-tools/performance-profiler.md +0 -799
- package/components/agents/development-tools/test-engineer.md +0 -936
- package/components/agents/devops-infrastructure/cloud-architect.md +0 -33
- package/components/agents/devops-infrastructure/deployment-engineer.md +0 -33
- package/components/agents/devops-infrastructure/devops-troubleshooter.md +0 -33
- package/components/agents/devops-infrastructure/monitoring-specialist.md +0 -36
- package/components/agents/devops-infrastructure/network-engineer.md +0 -33
- package/components/agents/devops-infrastructure/security-engineer.md +0 -971
- package/components/agents/devops-infrastructure/terraform-specialist.md +0 -36
- package/components/agents/devops-infrastructure/vercel-deployment-specialist.md +0 -357
- package/components/agents/documentation/api-documenter.md +0 -33
- package/components/agents/documentation/changelog-generator.md +0 -37
- package/components/agents/documentation/docusaurus-expert.md +0 -52
- package/components/agents/documentation/technical-writer.md +0 -37
- package/components/agents/expert-advisors/agent-expert.md +0 -477
- package/components/agents/expert-advisors/architect-review.md +0 -50
- package/components/agents/expert-advisors/dependency-manager.md +0 -45
- package/components/agents/expert-advisors/documentation-expert.md +0 -47
- package/components/agents/ffmpeg-clip-team/audio-mixer.md +0 -37
- package/components/agents/ffmpeg-clip-team/audio-quality-controller.md +0 -100
- package/components/agents/ffmpeg-clip-team/podcast-content-analyzer.md +0 -60
- package/components/agents/ffmpeg-clip-team/podcast-metadata-specialist.md +0 -46
- package/components/agents/ffmpeg-clip-team/podcast-transcriber.md +0 -68
- package/components/agents/ffmpeg-clip-team/social-media-clip-creator.md +0 -69
- package/components/agents/ffmpeg-clip-team/timestamp-precision-specialist.md +0 -98
- package/components/agents/ffmpeg-clip-team/video-editor.md +0 -37
- package/components/agents/game-development/3d-artist.md +0 -37
- package/components/agents/game-development/game-designer.md +0 -37
- package/components/agents/game-development/unity-game-developer.md +0 -110
- package/components/agents/game-development/unreal-engine-developer.md +0 -128
- package/components/agents/mcp-dev-team/mcp-deployment-orchestrator.md +0 -101
- package/components/agents/mcp-dev-team/mcp-integration-engineer.md +0 -37
- package/components/agents/mcp-dev-team/mcp-protocol-specialist.md +0 -37
- package/components/agents/mcp-dev-team/mcp-registry-navigator.md +0 -112
- package/components/agents/mcp-dev-team/mcp-security-auditor.md +0 -70
- package/components/agents/mcp-dev-team/mcp-server-architect.md +0 -74
- package/components/agents/mcp-dev-team/mcp-testing-engineer.md +0 -106
- package/components/agents/modernization/architecture-modernizer.md +0 -37
- package/components/agents/modernization/cloud-migration-specialist.md +0 -37
- package/components/agents/modernization/legacy-modernizer.md +0 -33
- package/components/agents/obsidian-ops-team/Scripts/daily_notes_connector.py +0 -306
- package/components/agents/obsidian-ops-team/Scripts/enhance_tag_standardizer.py +0 -343
- package/components/agents/obsidian-ops-team/Scripts/find_keyword_connections.py +0 -216
- package/components/agents/obsidian-ops-team/Scripts/fix_quoted_tags.py +0 -82
- package/components/agents/obsidian-ops-team/Scripts/implement_entity_connections.py +0 -195
- package/components/agents/obsidian-ops-team/Scripts/link_suggester.py +0 -301
- package/components/agents/obsidian-ops-team/Scripts/metadata_adder.py +0 -197
- package/components/agents/obsidian-ops-team/Scripts/moc_generator.py +0 -296
- package/components/agents/obsidian-ops-team/Scripts/parse_keyword_connections.py +0 -122
- package/components/agents/obsidian-ops-team/Scripts/tag_standardizer.py +0 -387
- package/components/agents/obsidian-ops-team/connection-agent.md +0 -67
- package/components/agents/obsidian-ops-team/content-curator.md +0 -81
- package/components/agents/obsidian-ops-team/metadata-agent.md +0 -51
- package/components/agents/obsidian-ops-team/moc-agent.md +0 -112
- package/components/agents/obsidian-ops-team/review-agent.md +0 -94
- package/components/agents/obsidian-ops-team/tag-agent.md +0 -92
- package/components/agents/obsidian-ops-team/vault-optimizer.md +0 -76
- package/components/agents/ocr-extraction-team/document-structure-analyzer.md +0 -37
- package/components/agents/ocr-extraction-team/markdown-syntax-formatter.md +0 -58
- package/components/agents/ocr-extraction-team/ocr-grammar-fixer.md +0 -36
- package/components/agents/ocr-extraction-team/ocr-preprocessing-optimizer.md +0 -37
- package/components/agents/ocr-extraction-team/ocr-quality-assurance.md +0 -62
- package/components/agents/ocr-extraction-team/text-comparison-validator.md +0 -60
- package/components/agents/ocr-extraction-team/visual-analysis-ocr.md +0 -52
- package/components/agents/performance-testing/load-testing-specialist.md +0 -37
- package/components/agents/performance-testing/performance-engineer.md +0 -33
- package/components/agents/performance-testing/react-performance-optimization.md +0 -65
- package/components/agents/performance-testing/test-automator.md +0 -33
- package/components/agents/performance-testing/web-vitals-optimizer.md +0 -37
- package/components/agents/podcast-creator-team/academic-research-synthesizer.md +0 -61
- package/components/agents/podcast-creator-team/comprehensive-researcher.md +0 -49
- package/components/agents/podcast-creator-team/episode-orchestrator.md +0 -52
- package/components/agents/podcast-creator-team/guest-outreach-coordinator.md +0 -37
- package/components/agents/podcast-creator-team/market-research-analyst.md +0 -54
- package/components/agents/podcast-creator-team/podcast-editor.md +0 -37
- package/components/agents/podcast-creator-team/podcast-trend-scout.md +0 -60
- package/components/agents/podcast-creator-team/project-supervisor-orchestrator.md +0 -48
- package/components/agents/podcast-creator-team/seo-podcast-optimizer.md +0 -58
- package/components/agents/podcast-creator-team/social-media-copywriter.md +0 -57
- package/components/agents/podcast-creator-team/twitter-ai-influencer-manager.md +0 -62
- package/components/agents/programming-languages/c-pro.md +0 -36
- package/components/agents/programming-languages/c-sharp-pro.md +0 -40
- package/components/agents/programming-languages/cpp-pro.md +0 -39
- package/components/agents/programming-languages/golang-pro.md +0 -33
- package/components/agents/programming-languages/javascript-pro.md +0 -36
- package/components/agents/programming-languages/php-pro.md +0 -44
- package/components/agents/programming-languages/python-pro.md +0 -33
- package/components/agents/programming-languages/rust-pro.md +0 -36
- package/components/agents/programming-languages/shell-scripting-pro.md +0 -38
- package/components/agents/programming-languages/sql-pro.md +0 -36
- package/components/agents/programming-languages/typescript-pro.md +0 -38
- package/components/agents/realtime/supabase-realtime-optimizer.md +0 -193
- package/components/agents/security/api-security-audit.md +0 -93
- package/components/agents/security/compliance-specialist.md +0 -37
- package/components/agents/security/incident-responder.md +0 -75
- package/components/agents/security/penetration-tester.md +0 -37
- package/components/agents/security/security-auditor.md +0 -33
- package/components/agents/web-tools/nextjs-architecture-expert.md +0 -194
- package/components/agents/web-tools/react-performance-optimizer.md +0 -425
- package/components/agents/web-tools/seo-analyzer.md +0 -37
- package/components/agents/web-tools/url-context-validator.md +0 -61
- package/components/agents/web-tools/url-link-extractor.md +0 -59
- package/components/agents/web-tools/web-accessibility-checker.md +0 -37
- package/components/commands/automation/act.md +0 -57
- package/components/commands/automation/ci-pipeline.md +0 -378
- package/components/commands/automation/husky.md +0 -130
- package/components/commands/automation/workflow-orchestrator.md +0 -576
- package/components/commands/database/supabase-backup-manager.md +0 -37
- package/components/commands/database/supabase-data-explorer.md +0 -37
- package/components/commands/database/supabase-migration-assistant.md +0 -37
- package/components/commands/database/supabase-performance-optimizer.md +0 -37
- package/components/commands/database/supabase-realtime-monitor.md +0 -37
- package/components/commands/database/supabase-schema-sync.md +0 -37
- package/components/commands/database/supabase-security-audit.md +0 -37
- package/components/commands/database/supabase-type-generator.md +0 -37
- package/components/commands/deployment/add-changelog.md +0 -92
- package/components/commands/deployment/blue-green-deployment.md +0 -824
- package/components/commands/deployment/changelog-demo-command.md +0 -43
- package/components/commands/deployment/ci-setup.md +0 -323
- package/components/commands/deployment/containerize-application.md +0 -93
- package/components/commands/deployment/deployment-monitoring.md +0 -1228
- package/components/commands/deployment/hotfix-deploy.md +0 -283
- package/components/commands/deployment/prepare-release.md +0 -357
- package/components/commands/deployment/rollback-deploy.md +0 -145
- package/components/commands/deployment/setup-automated-releases.md +0 -143
- package/components/commands/deployment/setup-kubernetes-deployment.md +0 -93
- package/components/commands/documentation/create-architecture-documentation.md +0 -95
- package/components/commands/documentation/create-onboarding-guide.md +0 -93
- package/components/commands/documentation/doc-api.md +0 -242
- package/components/commands/documentation/docs-maintenance.md +0 -119
- package/components/commands/documentation/generate-api-documentation.md +0 -97
- package/components/commands/documentation/interactive-documentation.md +0 -133
- package/components/commands/documentation/load-llms-txt.md +0 -39
- package/components/commands/documentation/migration-guide.md +0 -250
- package/components/commands/documentation/troubleshooting-guide.md +0 -370
- package/components/commands/documentation/update-docs.md +0 -107
- package/components/commands/game-development/game-analytics-integration.md +0 -128
- package/components/commands/game-development/game-asset-pipeline.md +0 -108
- package/components/commands/game-development/game-performance-profiler.md +0 -78
- package/components/commands/game-development/game-testing-framework.md +0 -112
- package/components/commands/game-development/unity-project-setup.md +0 -190
- package/components/commands/git-workflow/branch-cleanup.md +0 -181
- package/components/commands/git-workflow/commit.md +0 -167
- package/components/commands/git-workflow/create-pr.md +0 -19
- package/components/commands/git-workflow/create-pull-request.md +0 -126
- package/components/commands/git-workflow/create-worktrees.md +0 -174
- package/components/commands/git-workflow/fix-github-issue.md +0 -13
- package/components/commands/git-workflow/git-bisect-helper.md +0 -261
- package/components/commands/git-workflow/pr-review.md +0 -76
- package/components/commands/git-workflow/update-branch-name.md +0 -9
- package/components/commands/nextjs-vercel/nextjs-api-tester.md +0 -480
- package/components/commands/nextjs-vercel/nextjs-bundle-analyzer.md +0 -406
- package/components/commands/nextjs-vercel/nextjs-component-generator.md +0 -489
- package/components/commands/nextjs-vercel/nextjs-middleware-creator.md +0 -712
- package/components/commands/nextjs-vercel/nextjs-migration-helper.md +0 -778
- package/components/commands/nextjs-vercel/nextjs-performance-audit.md +0 -653
- package/components/commands/nextjs-vercel/nextjs-scaffold.md +0 -237
- package/components/commands/nextjs-vercel/vercel-deploy-optimize.md +0 -341
- package/components/commands/nextjs-vercel/vercel-edge-function.md +0 -810
- package/components/commands/nextjs-vercel/vercel-env-sync.md +0 -666
- package/components/commands/orchestration/archive.md +0 -414
- package/components/commands/orchestration/commit.md +0 -305
- package/components/commands/orchestration/find.md +0 -272
- package/components/commands/orchestration/log.md +0 -355
- package/components/commands/orchestration/move.md +0 -220
- package/components/commands/orchestration/optimize.md +0 -375
- package/components/commands/orchestration/remove.md +0 -301
- package/components/commands/orchestration/report.md +0 -292
- package/components/commands/orchestration/resume.md +0 -256
- package/components/commands/orchestration/start.md +0 -169
- package/components/commands/orchestration/status.md +0 -219
- package/components/commands/orchestration/sync.md +0 -294
- package/components/commands/performance/add-performance-monitoring.md +0 -84
- package/components/commands/performance/implement-caching-strategy.md +0 -84
- package/components/commands/performance/optimize-api-performance.md +0 -119
- package/components/commands/performance/optimize-build.md +0 -139
- package/components/commands/performance/optimize-bundle-size.md +0 -84
- package/components/commands/performance/optimize-database-performance.md +0 -84
- package/components/commands/performance/optimize-memory-usage.md +0 -91
- package/components/commands/performance/performance-audit.md +0 -89
- package/components/commands/performance/setup-cdn-optimization.md +0 -84
- package/components/commands/performance/system-behavior-simulator.md +0 -415
- package/components/commands/project-management/add-package.md +0 -90
- package/components/commands/project-management/add-to-changelog.md +0 -37
- package/components/commands/project-management/create-feature.md +0 -130
- package/components/commands/project-management/create-jtbd.md +0 -37
- package/components/commands/project-management/create-prd.md +0 -36
- package/components/commands/project-management/create-prp.md +0 -37
- package/components/commands/project-management/init-project.md +0 -80
- package/components/commands/project-management/milestone-tracker.md +0 -44
- package/components/commands/project-management/pac-configure.md +0 -32
- package/components/commands/project-management/pac-create-epic.md +0 -41
- package/components/commands/project-management/pac-create-ticket.md +0 -42
- package/components/commands/project-management/pac-update-status.md +0 -39
- package/components/commands/project-management/pac-validate.md +0 -35
- package/components/commands/project-management/project-health-check.md +0 -58
- package/components/commands/project-management/project-timeline-simulator.md +0 -37
- package/components/commands/project-management/project-to-linear.md +0 -38
- package/components/commands/project-management/release.md +0 -31
- package/components/commands/project-management/todo.md +0 -62
- package/components/commands/security/add-authentication-system.md +0 -34
- package/components/commands/security/dependency-audit.md +0 -32
- package/components/commands/security/penetration-test.md +0 -40
- package/components/commands/security/secrets-scanner.md +0 -39
- package/components/commands/security/security-audit.md +0 -82
- package/components/commands/security/security-hardening.md +0 -33
- package/components/commands/setup/create-database-migrations.md +0 -35
- package/components/commands/setup/design-database-schema.md +0 -37
- package/components/commands/setup/design-rest-api.md +0 -37
- package/components/commands/setup/implement-graphql-api.md +0 -37
- package/components/commands/setup/migrate-to-typescript.md +0 -37
- package/components/commands/setup/setup-ci-cd-pipeline.md +0 -37
- package/components/commands/setup/setup-development-environment.md +0 -37
- package/components/commands/setup/setup-docker-containers.md +0 -37
- package/components/commands/setup/setup-formatting.md +0 -37
- package/components/commands/setup/setup-linting.md +0 -37
- package/components/commands/setup/setup-monitoring-observability.md +0 -37
- package/components/commands/setup/setup-monorepo.md +0 -37
- package/components/commands/setup/setup-rate-limiting.md +0 -37
- package/components/commands/setup/update-dependencies.md +0 -35
- package/components/commands/simulation/business-scenario-explorer.md +0 -37
- package/components/commands/simulation/constraint-modeler.md +0 -37
- package/components/commands/simulation/decision-tree-explorer.md +0 -37
- package/components/commands/simulation/digital-twin-creator.md +0 -37
- package/components/commands/simulation/future-scenario-generator.md +0 -37
- package/components/commands/simulation/market-response-modeler.md +0 -37
- package/components/commands/simulation/monte-carlo-simulator.md +0 -37
- package/components/commands/simulation/simulation-calibrator.md +0 -37
- package/components/commands/simulation/system-dynamics-modeler.md +0 -37
- package/components/commands/simulation/timeline-compressor.md +0 -37
- package/components/commands/svelte/svelte:a11y.md +0 -105
- package/components/commands/svelte/svelte:component.md +0 -81
- package/components/commands/svelte/svelte:debug.md +0 -48
- package/components/commands/svelte/svelte:migrate.md +0 -79
- package/components/commands/svelte/svelte:optimize.md +0 -99
- package/components/commands/svelte/svelte:scaffold.md +0 -89
- package/components/commands/svelte/svelte:storybook-migrate.md +0 -204
- package/components/commands/svelte/svelte:storybook-mock.md +0 -213
- package/components/commands/svelte/svelte:storybook-setup.md +0 -113
- package/components/commands/svelte/svelte:storybook-story.md +0 -145
- package/components/commands/svelte/svelte:storybook-troubleshoot.md +0 -191
- package/components/commands/svelte/svelte:storybook.md +0 -48
- package/components/commands/svelte/svelte:test-coverage.md +0 -77
- package/components/commands/svelte/svelte:test-fix.md +0 -74
- package/components/commands/svelte/svelte:test-setup.md +0 -85
- package/components/commands/svelte/svelte:test.md +0 -60
- package/components/commands/sync/bidirectional-sync.md +0 -37
- package/components/commands/sync/bulk-import-issues.md +0 -37
- package/components/commands/sync/cross-reference-manager.md +0 -37
- package/components/commands/sync/issue-to-linear-task.md +0 -37
- package/components/commands/sync/linear-task-to-issue.md +0 -37
- package/components/commands/sync/sync-automation-setup.md +0 -37
- package/components/commands/sync/sync-conflict-resolver.md +0 -37
- package/components/commands/sync/sync-health-monitor.md +0 -37
- package/components/commands/sync/sync-issues-to-linear.md +0 -37
- package/components/commands/sync/sync-linear-to-issues.md +0 -37
- package/components/commands/sync/sync-migration-assistant.md +0 -37
- package/components/commands/sync/sync-pr-to-task.md +0 -37
- package/components/commands/sync/sync-status.md +0 -391
- package/components/commands/sync/task-from-pr.md +0 -37
- package/components/commands/team/architecture-review.md +0 -37
- package/components/commands/team/decision-quality-analyzer.md +0 -37
- package/components/commands/team/dependency-mapper.md +0 -37
- package/components/commands/team/estimate-assistant.md +0 -37
- package/components/commands/team/issue-triage.md +0 -37
- package/components/commands/team/memory-spring-cleaning.md +0 -37
- package/components/commands/team/migration-assistant.md +0 -37
- package/components/commands/team/retrospective-analyzer.md +0 -37
- package/components/commands/team/session-learning-capture.md +0 -37
- package/components/commands/team/sprint-planning.md +0 -189
- package/components/commands/team/standup-report.md +0 -37
- package/components/commands/team/team-knowledge-mapper.md +0 -37
- package/components/commands/team/team-velocity-tracker.md +0 -37
- package/components/commands/team/team-workload-balancer.md +0 -37
- package/components/commands/testing/add-mutation-testing.md +0 -37
- package/components/commands/testing/add-property-based-testing.md +0 -37
- package/components/commands/testing/e2e-setup.md +0 -37
- package/components/commands/testing/generate-test-cases.md +0 -37
- package/components/commands/testing/generate-tests.md +0 -82
- package/components/commands/testing/setup-comprehensive-testing.md +0 -37
- package/components/commands/testing/setup-load-testing.md +0 -37
- package/components/commands/testing/setup-visual-testing.md +0 -37
- package/components/commands/testing/test-automation-orchestrator.md +0 -37
- package/components/commands/testing/test-changelog-automation.md +0 -37
- package/components/commands/testing/test-coverage.md +0 -37
- package/components/commands/testing/test-quality-analyzer.md +0 -37
- package/components/commands/testing/testing_plan_integration.md +0 -37
- package/components/commands/testing/write-tests.md +0 -37
- package/components/commands/utilities/all-tools.md +0 -31
- package/components/commands/utilities/architecture-scenario-explorer.md +0 -375
- package/components/commands/utilities/check-file.md +0 -53
- package/components/commands/utilities/clean-branches.md +0 -243
- package/components/commands/utilities/clean.md +0 -1
- package/components/commands/utilities/code-permutation-tester.md +0 -341
- package/components/commands/utilities/code-review.md +0 -70
- package/components/commands/utilities/code-to-task.md +0 -583
- package/components/commands/utilities/context-prime.md +0 -1
- package/components/commands/utilities/debug-error.md +0 -121
- package/components/commands/utilities/directory-deep-dive.md +0 -34
- package/components/commands/utilities/explain-code.md +0 -194
- package/components/commands/utilities/fix-issue.md +0 -85
- package/components/commands/utilities/generate-linear-worklog.md +0 -113
- package/components/commands/utilities/git-status.md +0 -39
- package/components/commands/utilities/initref.md +0 -3
- package/components/commands/utilities/prime.md +0 -41
- package/components/commands/utilities/refactor-code.md +0 -116
- package/components/commands/utilities/ultra-think.md +0 -153
- package/components/hooks/HOOK_PATTERNS_COMPRESSED.json +0 -1
- package/components/hooks/automation/build-on-change.json +0 -16
- package/components/hooks/automation/dependency-checker.json +0 -16
- package/components/hooks/automation/deployment-health-monitor.json +0 -29
- package/components/hooks/automation/discord-detailed-notifications.json +0 -26
- package/components/hooks/automation/discord-error-notifications.json +0 -37
- package/components/hooks/automation/discord-notifications.json +0 -25
- package/components/hooks/automation/simple-notifications.json +0 -16
- package/components/hooks/automation/slack-detailed-notifications.json +0 -26
- package/components/hooks/automation/slack-error-notifications.json +0 -37
- package/components/hooks/automation/slack-notifications.json +0 -25
- package/components/hooks/automation/telegram-detailed-notifications.json +0 -26
- package/components/hooks/automation/telegram-error-notifications.json +0 -37
- package/components/hooks/automation/telegram-notifications.json +0 -25
- package/components/hooks/automation/vercel-auto-deploy.json +0 -17
- package/components/hooks/automation/vercel-environment-sync.json +0 -29
- package/components/hooks/development-tools/change-tracker.json +0 -25
- package/components/hooks/development-tools/command-logger.json +0 -16
- package/components/hooks/development-tools/file-backup.json +0 -16
- package/components/hooks/development-tools/lint-on-save.json +0 -16
- package/components/hooks/development-tools/nextjs-code-quality-enforcer.json +0 -17
- package/components/hooks/development-tools/smart-formatting.json +0 -16
- package/components/hooks/git-workflow/auto-git-add.json +0 -16
- package/components/hooks/git-workflow/smart-commit.json +0 -25
- package/components/hooks/performance/performance-budget-guard.json +0 -27
- package/components/hooks/performance/performance-monitor.json +0 -27
- package/components/hooks/post-tool/format-javascript-files.json +0 -16
- package/components/hooks/post-tool/format-python-files.json +0 -16
- package/components/hooks/post-tool/git-add-changes.json +0 -25
- package/components/hooks/post-tool/run-tests-after-changes.json +0 -16
- package/components/hooks/pre-tool/backup-before-edit.json +0 -16
- package/components/hooks/pre-tool/notify-before-bash.json +0 -16
- package/components/hooks/security/file-protection.json +0 -16
- package/components/hooks/security/security-scanner.json +0 -16
- package/components/hooks/testing/test-runner.json +0 -16
- package/components/mcps/browser_automation/browser-use-mcp-server.json +0 -20
- package/components/mcps/browser_automation/browsermcp.json +0 -9
- package/components/mcps/browser_automation/mcp-server-browserbase.json +0 -14
- package/components/mcps/browser_automation/mcp-server-playwright.json +0 -9
- package/components/mcps/browser_automation/playwright-mcp-server.json +0 -9
- package/components/mcps/browser_automation/playwright-mcp.json +0 -11
- package/components/mcps/database/mysql-integration.json +0 -12
- package/components/mcps/database/postgresql-integration.json +0 -12
- package/components/mcps/database/supabase.json +0 -17
- package/components/mcps/deepgraph/deepgraph-nextjs.json +0 -13
- package/components/mcps/deepgraph/deepgraph-react.json +0 -13
- package/components/mcps/deepgraph/deepgraph-typescript.json +0 -13
- package/components/mcps/deepgraph/deepgraph-vue.json +0 -13
- package/components/mcps/devtools/circleci.json +0 -13
- package/components/mcps/devtools/context7.json +0 -9
- package/components/mcps/devtools/firefly-mcp.json +0 -13
- package/components/mcps/devtools/ios-simulator-mcp.json +0 -9
- package/components/mcps/devtools/just-mcp.json +0 -9
- package/components/mcps/devtools/leetcode.json +0 -8
- package/components/mcps/devtools/mcp-server-atlassian-bitbucket.json +0 -9
- package/components/mcps/devtools/mcp-server-trello.json +0 -12
- package/components/mcps/filesystem/filesystem-access.json +0 -13
- package/components/mcps/integration/github-integration.json +0 -12
- package/components/mcps/integration/memory-integration.json +0 -9
- package/components/mcps/marketing/facebook-ads-mcp-server.json +0 -13
- package/components/mcps/marketing/google-ads-mcp-server.json +0 -11
- package/components/mcps/web/web-fetch.json +0 -9
- package/components/settings/api/bedrock-configuration.json +0 -7
- package/components/settings/api/corporate-proxy.json +0 -7
- package/components/settings/api/custom-headers.json +0 -6
- package/components/settings/api/vertex-configuration.json +0 -8
- package/components/settings/authentication/api-key-helper.json +0 -7
- package/components/settings/authentication/force-claudeai-login.json +0 -4
- package/components/settings/authentication/force-console-login.json +0 -4
- package/components/settings/cleanup/retention-7-days.json +0 -4
- package/components/settings/cleanup/retention-90-days.json +0 -4
- package/components/settings/environment/bash-timeouts.json +0 -8
- package/components/settings/environment/development-utils.json +0 -8
- package/components/settings/environment/performance-optimization.json +0 -8
- package/components/settings/environment/privacy-focused.json +0 -10
- package/components/settings/global/aws-credentials.json +0 -5
- package/components/settings/global/custom-model.json +0 -7
- package/components/settings/global/git-commit-settings.json +0 -4
- package/components/settings/mcp/disable-risky-servers.json +0 -8
- package/components/settings/mcp/enable-all-project-servers.json +0 -4
- package/components/settings/mcp/enable-specific-servers.json +0 -8
- package/components/settings/mcp/mcp-timeouts.json +0 -8
- package/components/settings/model/use-haiku.json +0 -4
- package/components/settings/model/use-sonnet.json +0 -4
- package/components/settings/permissions/additional-directories.json +0 -11
- package/components/settings/permissions/allow-git-operations.json +0 -14
- package/components/settings/permissions/allow-npm-commands.json +0 -11
- package/components/settings/permissions/deny-sensitive-files.json +0 -11
- package/components/settings/permissions/development-mode.json +0 -31
- package/components/settings/permissions/read-only-mode.json +0 -18
- package/components/settings/statusline/asset-pipeline-controller-statusline.json +0 -7
- package/components/settings/statusline/bug-circus-statusline.json +0 -7
- package/components/settings/statusline/code-casino-statusline.json +0 -7
- package/components/settings/statusline/code-spaceship-statusline.json +0 -7
- package/components/settings/statusline/colorful-statusline.json +0 -7
- package/components/settings/statusline/command-statusline.json +0 -8
- package/components/settings/statusline/context-monitor.json +0 -7
- package/components/settings/statusline/context-monitor.py +0 -236
- package/components/settings/statusline/data-ocean-statusline.json +0 -7
- package/components/settings/statusline/emotion-theater-statusline.json +0 -7
- package/components/settings/statusline/game-performance-monitor-statusline.json +0 -7
- package/components/settings/statusline/git-branch-statusline.json +0 -7
- package/components/settings/statusline/minimal-statusline.json +0 -7
- package/components/settings/statusline/multiplatform-build-status-statusline.json +0 -7
- package/components/settings/statusline/productivity-rainbow-statusline.json +0 -7
- package/components/settings/statusline/programmer-tamagotchi-statusline.json +0 -7
- package/components/settings/statusline/programming-fitness-tracker-statusline.json +0 -7
- package/components/settings/statusline/project-info-statusline.json +0 -7
- package/components/settings/statusline/rpg-status-bar-statusline.json +0 -7
- package/components/settings/statusline/time-statusline.json +0 -7
- package/components/settings/statusline/unity-project-dashboard-statusline.json +0 -7
- package/components/settings/statusline/vercel-deployment-monitor.json +0 -7
- package/components/settings/statusline/vercel-error-alert-system.json +0 -7
- package/components/settings/statusline/vercel-multi-env-status.json +0 -7
- package/components/settings/statusline/virtual-code-garden-statusline.json +0 -7
- package/components/settings/statusline/zero-config-deployment-monitor.json +0 -7
- package/components/settings/telemetry/custom-telemetry.json +0 -7
- package/components/settings/telemetry/disable-telemetry.json +0 -6
- package/components/settings/telemetry/enable-telemetry.json +0 -6
|
@@ -1,81 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
allowed-tools: Read, Write, Edit
|
|
3
|
-
argument-hint: [component-name] [--typescript] [--story]
|
|
4
|
-
description: Create new Svelte components with best practices, TypeScript support, and testing
|
|
5
|
-
model: sonnet
|
|
6
|
-
---
|
|
7
|
-
|
|
8
|
-
# Create Svelte Component
|
|
9
|
-
|
|
10
|
-
Create new Svelte component: $ARGUMENTS
|
|
11
|
-
|
|
12
|
-
## Current Svelte Project
|
|
13
|
-
|
|
14
|
-
- Svelte config: @svelte.config.js or @vite.config.js (if exists)
|
|
15
|
-
- Components directory: @src/components/ or @src/lib/ (if exists)
|
|
16
|
-
- TypeScript config: @tsconfig.json (detect TypeScript usage)
|
|
17
|
-
- Testing setup: @vitest.config.js or @jest.config.js (if exists)
|
|
18
|
-
|
|
19
|
-
## Task
|
|
20
|
-
|
|
21
|
-
Create Svelte component with best practices. When creating components:
|
|
22
|
-
|
|
23
|
-
1. **Gather Requirements**:
|
|
24
|
-
- Component name and purpose
|
|
25
|
-
- Props interface
|
|
26
|
-
- Events to emit
|
|
27
|
-
- Slots needed
|
|
28
|
-
- State management requirements
|
|
29
|
-
- TypeScript preference
|
|
30
|
-
|
|
31
|
-
2. **Component Structure**:
|
|
32
|
-
```svelte
|
|
33
|
-
<script lang="ts">
|
|
34
|
-
// Imports
|
|
35
|
-
// Type definitions
|
|
36
|
-
// Props
|
|
37
|
-
// State
|
|
38
|
-
// Derived values
|
|
39
|
-
// Effects
|
|
40
|
-
// Functions
|
|
41
|
-
</script>
|
|
42
|
-
|
|
43
|
-
<!-- Markup -->
|
|
44
|
-
|
|
45
|
-
<style>
|
|
46
|
-
/* Scoped styles */
|
|
47
|
-
</style>
|
|
48
|
-
```
|
|
49
|
-
|
|
50
|
-
3. **Best Practices**:
|
|
51
|
-
- Use proper prop typing with TypeScript/JSDoc
|
|
52
|
-
- Implement $bindable props where appropriate
|
|
53
|
-
- Create accessible markup by default
|
|
54
|
-
- Add proper ARIA attributes
|
|
55
|
-
- Use semantic HTML elements
|
|
56
|
-
- Include keyboard navigation support
|
|
57
|
-
|
|
58
|
-
4. **Component Types to Create**:
|
|
59
|
-
- **UI Components**: Buttons, Cards, Modals, etc.
|
|
60
|
-
- **Form Components**: Inputs with validation, custom form controls
|
|
61
|
-
- **Layout Components**: Headers, Sidebars, Grids
|
|
62
|
-
- **Data Components**: Tables, Lists, Data visualizations
|
|
63
|
-
- **Utility Components**: Portals, Transitions, Error boundaries
|
|
64
|
-
|
|
65
|
-
5. **Additional Files**:
|
|
66
|
-
- Create accompanying test file
|
|
67
|
-
- Add Storybook story if applicable
|
|
68
|
-
- Create usage documentation
|
|
69
|
-
- Export from index file
|
|
70
|
-
|
|
71
|
-
## Example Usage
|
|
72
|
-
|
|
73
|
-
User: "Create a Modal component with customizable header, footer slots, and close functionality"
|
|
74
|
-
|
|
75
|
-
Assistant will:
|
|
76
|
-
- Create Modal.svelte with proper structure
|
|
77
|
-
- Implement focus trap and keyboard handling
|
|
78
|
-
- Add transition effects
|
|
79
|
-
- Create Modal.test.js with basic tests
|
|
80
|
-
- Provide usage examples
|
|
81
|
-
- Suggest accessibility improvements
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
# /svelte:debug
|
|
2
|
-
|
|
3
|
-
Help debug Svelte and SvelteKit issues by analyzing error messages, stack traces, and common problems.
|
|
4
|
-
|
|
5
|
-
## Instructions
|
|
6
|
-
|
|
7
|
-
You are acting as the Svelte Development Agent with a focus on debugging. When the user provides an error or describes an issue:
|
|
8
|
-
|
|
9
|
-
1. **Analyze the Error**:
|
|
10
|
-
- Parse error messages and stack traces
|
|
11
|
-
- Identify the root cause (compilation, runtime, or configuration)
|
|
12
|
-
- Check for common Svelte/SvelteKit pitfalls
|
|
13
|
-
|
|
14
|
-
2. **Diagnose the Problem**:
|
|
15
|
-
- Examine the relevant code files
|
|
16
|
-
- Check for syntax errors, missing imports, or incorrect usage
|
|
17
|
-
- Verify configuration files (vite.config.js, svelte.config.js, etc.)
|
|
18
|
-
- Look for version mismatches or dependency conflicts
|
|
19
|
-
|
|
20
|
-
3. **Common Issues to Check**:
|
|
21
|
-
- Reactive statement errors ($state, $derived, $effect)
|
|
22
|
-
- SSR vs CSR conflicts
|
|
23
|
-
- Load function errors (missing returns, incorrect data access)
|
|
24
|
-
- Form action problems
|
|
25
|
-
- Routing issues
|
|
26
|
-
- Build and deployment errors
|
|
27
|
-
|
|
28
|
-
4. **Provide Solutions**:
|
|
29
|
-
- Offer specific fixes with code examples
|
|
30
|
-
- Suggest debugging techniques (console.log, {@debug}, browser DevTools)
|
|
31
|
-
- Recommend relevant documentation sections
|
|
32
|
-
- Provide step-by-step resolution guides
|
|
33
|
-
|
|
34
|
-
5. **Preventive Measures**:
|
|
35
|
-
- Suggest TypeScript additions for better error catching
|
|
36
|
-
- Recommend linting rules
|
|
37
|
-
- Propose architectural improvements
|
|
38
|
-
|
|
39
|
-
## Example Usage
|
|
40
|
-
|
|
41
|
-
User: "I'm getting 'Cannot access 'user' before initialization' error in my load function"
|
|
42
|
-
|
|
43
|
-
Assistant will:
|
|
44
|
-
- Examine the load function structure
|
|
45
|
-
- Check for proper async/await usage
|
|
46
|
-
- Verify data dependencies
|
|
47
|
-
- Provide corrected code
|
|
48
|
-
- Explain the fix and how to avoid similar issues
|
|
@@ -1,79 +0,0 @@
|
|
|
1
|
-
# /svelte:migrate
|
|
2
|
-
|
|
3
|
-
Migrate Svelte/SvelteKit projects between versions, adopt new features like runes, and handle breaking changes.
|
|
4
|
-
|
|
5
|
-
## Instructions
|
|
6
|
-
|
|
7
|
-
You are acting as the Svelte Development Agent focused on migrations. When migrating projects:
|
|
8
|
-
|
|
9
|
-
1. **Migration Types**:
|
|
10
|
-
|
|
11
|
-
**Version Migrations**:
|
|
12
|
-
- Svelte 3 → Svelte 4
|
|
13
|
-
- Svelte 4 → Svelte 5 (Runes)
|
|
14
|
-
- SvelteKit 1.x → SvelteKit 2.x
|
|
15
|
-
- Legacy app → Modern SvelteKit
|
|
16
|
-
|
|
17
|
-
**Feature Migrations**:
|
|
18
|
-
- Stores → Runes ($state, $derived)
|
|
19
|
-
- Class components → Function syntax
|
|
20
|
-
- Imperative → Declarative patterns
|
|
21
|
-
- JavaScript → TypeScript
|
|
22
|
-
|
|
23
|
-
2. **Migration Process**:
|
|
24
|
-
```bash
|
|
25
|
-
# Automated migrations
|
|
26
|
-
npx sv migrate [migration-name]
|
|
27
|
-
|
|
28
|
-
# Manual migration steps
|
|
29
|
-
1. Backup current code
|
|
30
|
-
2. Update dependencies
|
|
31
|
-
3. Run codemods
|
|
32
|
-
4. Fix breaking changes
|
|
33
|
-
5. Update configurations
|
|
34
|
-
6. Test thoroughly
|
|
35
|
-
```
|
|
36
|
-
|
|
37
|
-
3. **Runes Migration**:
|
|
38
|
-
```javascript
|
|
39
|
-
// Before (Svelte 4)
|
|
40
|
-
let count = 0;
|
|
41
|
-
$: doubled = count * 2;
|
|
42
|
-
|
|
43
|
-
// After (Svelte 5)
|
|
44
|
-
let count = $state(0);
|
|
45
|
-
let doubled = $derived(count * 2);
|
|
46
|
-
```
|
|
47
|
-
|
|
48
|
-
4. **Breaking Changes**:
|
|
49
|
-
- Component API changes
|
|
50
|
-
- Store subscription syntax
|
|
51
|
-
- Event handling updates
|
|
52
|
-
- SSR behavior changes
|
|
53
|
-
- Build configuration updates
|
|
54
|
-
- Package import paths
|
|
55
|
-
|
|
56
|
-
5. **Migration Checklist**:
|
|
57
|
-
- [ ] Update package.json dependencies
|
|
58
|
-
- [ ] Run automated migration scripts
|
|
59
|
-
- [ ] Update component syntax
|
|
60
|
-
- [ ] Fix TypeScript errors
|
|
61
|
-
- [ ] Update configuration files
|
|
62
|
-
- [ ] Test all routes and components
|
|
63
|
-
- [ ] Update deployment scripts
|
|
64
|
-
- [ ] Review performance impacts
|
|
65
|
-
|
|
66
|
-
## Example Usage
|
|
67
|
-
|
|
68
|
-
User: "Migrate my Svelte 4 app to Svelte 5 with runes"
|
|
69
|
-
|
|
70
|
-
Assistant will:
|
|
71
|
-
- Analyze current codebase
|
|
72
|
-
- Create migration plan
|
|
73
|
-
- Run `npx sv migrate svelte-5`
|
|
74
|
-
- Convert reactive statements to runes
|
|
75
|
-
- Update component props syntax
|
|
76
|
-
- Fix effect timing issues
|
|
77
|
-
- Update test files
|
|
78
|
-
- Handle edge cases manually
|
|
79
|
-
- Provide rollback strategy
|
|
@@ -1,99 +0,0 @@
|
|
|
1
|
-
# /svelte:optimize
|
|
2
|
-
|
|
3
|
-
Optimize Svelte/SvelteKit applications for performance, including bundle size reduction, rendering optimization, and loading performance.
|
|
4
|
-
|
|
5
|
-
## Instructions
|
|
6
|
-
|
|
7
|
-
You are acting as the Svelte Development Agent focused on performance optimization. When optimizing:
|
|
8
|
-
|
|
9
|
-
1. **Performance Analysis**:
|
|
10
|
-
- Analyze bundle size with rollup-plugin-visualizer
|
|
11
|
-
- Profile component rendering
|
|
12
|
-
- Measure Core Web Vitals
|
|
13
|
-
- Identify performance bottlenecks
|
|
14
|
-
- Check network waterfall
|
|
15
|
-
|
|
16
|
-
2. **Bundle Optimization**:
|
|
17
|
-
|
|
18
|
-
**Code Splitting**:
|
|
19
|
-
```javascript
|
|
20
|
-
// Dynamic imports
|
|
21
|
-
const HeavyComponent = await import('./HeavyComponent.svelte');
|
|
22
|
-
|
|
23
|
-
// Route-based splitting
|
|
24
|
-
export const prerender = false;
|
|
25
|
-
export const ssr = true;
|
|
26
|
-
```
|
|
27
|
-
|
|
28
|
-
**Tree Shaking**:
|
|
29
|
-
- Remove unused imports
|
|
30
|
-
- Optimize library imports
|
|
31
|
-
- Use production builds
|
|
32
|
-
- Eliminate dead code
|
|
33
|
-
|
|
34
|
-
3. **Rendering Optimization**:
|
|
35
|
-
|
|
36
|
-
**Reactive Performance**:
|
|
37
|
-
```javascript
|
|
38
|
-
// Use $state.raw for large objects
|
|
39
|
-
let data = $state.raw(largeDataset);
|
|
40
|
-
|
|
41
|
-
// Optimize derived computations
|
|
42
|
-
let filtered = $derived.lazy(() =>
|
|
43
|
-
expensiveFilter(data)
|
|
44
|
-
);
|
|
45
|
-
```
|
|
46
|
-
|
|
47
|
-
**Component Optimization**:
|
|
48
|
-
- Minimize re-renders
|
|
49
|
-
- Use keyed each blocks
|
|
50
|
-
- Implement virtual scrolling
|
|
51
|
-
- Lazy load components
|
|
52
|
-
|
|
53
|
-
4. **Loading Performance**:
|
|
54
|
-
- Implement preloading strategies
|
|
55
|
-
- Optimize images (lazy loading, WebP)
|
|
56
|
-
- Use resource hints (preconnect, prefetch)
|
|
57
|
-
- Enable HTTP/2 push
|
|
58
|
-
- Implement service workers
|
|
59
|
-
|
|
60
|
-
5. **SvelteKit Optimizations**:
|
|
61
|
-
```javascript
|
|
62
|
-
// Prerender static pages
|
|
63
|
-
export const prerender = true;
|
|
64
|
-
|
|
65
|
-
// Optimize data loading
|
|
66
|
-
export async function load({ fetch, setHeaders }) {
|
|
67
|
-
setHeaders({
|
|
68
|
-
'cache-control': 'public, max-age=3600'
|
|
69
|
-
});
|
|
70
|
-
|
|
71
|
-
return {
|
|
72
|
-
data: await fetch('/api/data')
|
|
73
|
-
};
|
|
74
|
-
}
|
|
75
|
-
```
|
|
76
|
-
|
|
77
|
-
6. **Optimization Checklist**:
|
|
78
|
-
- [ ] Enable compression (gzip/brotli)
|
|
79
|
-
- [ ] Optimize fonts (subsetting, preload)
|
|
80
|
-
- [ ] Minimize CSS (PurgeCSS/Tailwind)
|
|
81
|
-
- [ ] Enable CDN/edge caching
|
|
82
|
-
- [ ] Implement critical CSS
|
|
83
|
-
- [ ] Optimize third-party scripts
|
|
84
|
-
- [ ] Use WebAssembly for heavy computation
|
|
85
|
-
|
|
86
|
-
## Example Usage
|
|
87
|
-
|
|
88
|
-
User: "My SvelteKit app is loading slowly, optimize it"
|
|
89
|
-
|
|
90
|
-
Assistant will:
|
|
91
|
-
- Run performance analysis
|
|
92
|
-
- Identify largest bundle chunks
|
|
93
|
-
- Implement code splitting
|
|
94
|
-
- Optimize images and assets
|
|
95
|
-
- Add preloading for critical resources
|
|
96
|
-
- Configure caching headers
|
|
97
|
-
- Implement lazy loading
|
|
98
|
-
- Optimize server-side rendering
|
|
99
|
-
- Provide performance metrics comparison
|
|
@@ -1,89 +0,0 @@
|
|
|
1
|
-
# /svelte:scaffold
|
|
2
|
-
|
|
3
|
-
Scaffold new SvelteKit projects, features, or modules with best practices and optimal project structure.
|
|
4
|
-
|
|
5
|
-
## Instructions
|
|
6
|
-
|
|
7
|
-
You are acting as the Svelte Development Agent focused on project scaffolding. When scaffolding:
|
|
8
|
-
|
|
9
|
-
1. **Project Types**:
|
|
10
|
-
|
|
11
|
-
**New SvelteKit Project**:
|
|
12
|
-
- Use `npx sv create` with appropriate options
|
|
13
|
-
- Select TypeScript/JSDoc preference
|
|
14
|
-
- Choose testing framework
|
|
15
|
-
- Add essential integrations (Tailwind, ESLint, etc.)
|
|
16
|
-
- Set up Git repository
|
|
17
|
-
|
|
18
|
-
**Feature Modules**:
|
|
19
|
-
- Authentication system
|
|
20
|
-
- Admin dashboard
|
|
21
|
-
- Blog/CMS
|
|
22
|
-
- E-commerce features
|
|
23
|
-
- API integrations
|
|
24
|
-
|
|
25
|
-
**Component Libraries**:
|
|
26
|
-
- Design system setup
|
|
27
|
-
- Storybook integration
|
|
28
|
-
- Component documentation
|
|
29
|
-
- Publishing configuration
|
|
30
|
-
|
|
31
|
-
2. **Project Structure**:
|
|
32
|
-
```
|
|
33
|
-
project/
|
|
34
|
-
├── src/
|
|
35
|
-
│ ├── routes/
|
|
36
|
-
│ │ ├── (app)/
|
|
37
|
-
│ │ ├── (auth)/
|
|
38
|
-
│ │ └── api/
|
|
39
|
-
│ ├── lib/
|
|
40
|
-
│ │ ├── components/
|
|
41
|
-
│ │ ├── stores/
|
|
42
|
-
│ │ ├── utils/
|
|
43
|
-
│ │ └── server/
|
|
44
|
-
│ ├── hooks.server.ts
|
|
45
|
-
│ └── app.html
|
|
46
|
-
├── tests/
|
|
47
|
-
├── static/
|
|
48
|
-
└── [config files]
|
|
49
|
-
```
|
|
50
|
-
|
|
51
|
-
3. **Essential Features**:
|
|
52
|
-
- Environment variable setup
|
|
53
|
-
- Database configuration
|
|
54
|
-
- Authentication scaffolding
|
|
55
|
-
- API route templates
|
|
56
|
-
- Error handling
|
|
57
|
-
- Logging setup
|
|
58
|
-
- Deployment configuration
|
|
59
|
-
|
|
60
|
-
4. **Configuration Files**:
|
|
61
|
-
- `svelte.config.js` - Optimized settings
|
|
62
|
-
- `vite.config.js` - Build optimization
|
|
63
|
-
- `playwright.config.js` - E2E testing
|
|
64
|
-
- `tailwind.config.js` - Styling (if selected)
|
|
65
|
-
- `.env.example` - Environment template
|
|
66
|
-
- `docker-compose.yml` - Container setup
|
|
67
|
-
|
|
68
|
-
5. **Starter Code**:
|
|
69
|
-
- Layout with navigation
|
|
70
|
-
- Authentication flow
|
|
71
|
-
- Protected routes
|
|
72
|
-
- Form examples
|
|
73
|
-
- API integration patterns
|
|
74
|
-
- State management setup
|
|
75
|
-
|
|
76
|
-
## Example Usage
|
|
77
|
-
|
|
78
|
-
User: "Scaffold a new SaaS starter with auth and payments"
|
|
79
|
-
|
|
80
|
-
Assistant will:
|
|
81
|
-
- Create SvelteKit project with TypeScript
|
|
82
|
-
- Set up authentication (Lucia/Auth.js)
|
|
83
|
-
- Add payment integration (Stripe)
|
|
84
|
-
- Create user dashboard structure
|
|
85
|
-
- Set up database (Prisma/Drizzle)
|
|
86
|
-
- Add email service
|
|
87
|
-
- Configure deployment
|
|
88
|
-
- Create example protected routes
|
|
89
|
-
- Add subscription management
|
|
@@ -1,204 +0,0 @@
|
|
|
1
|
-
# /svelte:storybook-migrate
|
|
2
|
-
|
|
3
|
-
Migrate Storybook configurations and stories to newer versions, including Svelte CSF v5 and @storybook/sveltekit framework.
|
|
4
|
-
|
|
5
|
-
## Instructions
|
|
6
|
-
|
|
7
|
-
You are acting as the Svelte Storybook Specialist Agent focused on migration. When migrating Storybook:
|
|
8
|
-
|
|
9
|
-
1. **Version Migrations**:
|
|
10
|
-
|
|
11
|
-
**Storybook 6.x to 7.x**:
|
|
12
|
-
```bash
|
|
13
|
-
# Automated upgrade
|
|
14
|
-
npx storybook@latest upgrade
|
|
15
|
-
|
|
16
|
-
# Manual steps:
|
|
17
|
-
# 1. Update dependencies
|
|
18
|
-
# 2. Migrate to @storybook/sveltekit
|
|
19
|
-
# 3. Remove obsolete packages
|
|
20
|
-
# 4. Update configuration
|
|
21
|
-
```
|
|
22
|
-
|
|
23
|
-
**Configuration Changes**:
|
|
24
|
-
```javascript
|
|
25
|
-
// Old (.storybook/main.js)
|
|
26
|
-
module.exports = {
|
|
27
|
-
framework: '@storybook/svelte',
|
|
28
|
-
svelteOptions: { ... } // Remove this
|
|
29
|
-
};
|
|
30
|
-
|
|
31
|
-
// New (.storybook/main.js)
|
|
32
|
-
export default {
|
|
33
|
-
framework: {
|
|
34
|
-
name: '@storybook/sveltekit',
|
|
35
|
-
options: {}
|
|
36
|
-
}
|
|
37
|
-
};
|
|
38
|
-
```
|
|
39
|
-
|
|
40
|
-
2. **Svelte CSF Migration (v4 to v5)**:
|
|
41
|
-
|
|
42
|
-
**Meta Component → defineMeta**:
|
|
43
|
-
```svelte
|
|
44
|
-
<!-- Old -->
|
|
45
|
-
<script context="module">
|
|
46
|
-
import { Meta, Story } from '@storybook/addon-svelte-csf';
|
|
47
|
-
</script>
|
|
48
|
-
|
|
49
|
-
<Meta title="Button" component={Button} />
|
|
50
|
-
|
|
51
|
-
<!-- New -->
|
|
52
|
-
<script>
|
|
53
|
-
import { defineMeta } from '@storybook/addon-svelte-csf';
|
|
54
|
-
import Button from './Button.svelte';
|
|
55
|
-
|
|
56
|
-
const { Story } = defineMeta({
|
|
57
|
-
title: 'Button',
|
|
58
|
-
component: Button
|
|
59
|
-
});
|
|
60
|
-
</script>
|
|
61
|
-
```
|
|
62
|
-
|
|
63
|
-
**Template → Children/Snippets**:
|
|
64
|
-
```svelte
|
|
65
|
-
<!-- Old -->
|
|
66
|
-
<Story name="Default">
|
|
67
|
-
<Template let:args>
|
|
68
|
-
<Button {...args} />
|
|
69
|
-
</Template>
|
|
70
|
-
</Story>
|
|
71
|
-
|
|
72
|
-
<!-- New -->
|
|
73
|
-
<Story name="Default" args={{ label: 'Click' }}>
|
|
74
|
-
{#snippet template(args)}
|
|
75
|
-
<Button {...args} />
|
|
76
|
-
{/snippet}
|
|
77
|
-
</Story>
|
|
78
|
-
```
|
|
79
|
-
|
|
80
|
-
3. **Package Migration**:
|
|
81
|
-
|
|
82
|
-
**Remove Obsolete Packages**:
|
|
83
|
-
```bash
|
|
84
|
-
npm uninstall @storybook/svelte-vite
|
|
85
|
-
npm uninstall storybook-builder-vite
|
|
86
|
-
npm uninstall @storybook/builder-vite
|
|
87
|
-
npm uninstall @storybook/svelte
|
|
88
|
-
```
|
|
89
|
-
|
|
90
|
-
**Install New Packages**:
|
|
91
|
-
```bash
|
|
92
|
-
npm install -D @storybook/sveltekit
|
|
93
|
-
npm install -D @storybook/addon-svelte-csf@latest
|
|
94
|
-
```
|
|
95
|
-
|
|
96
|
-
4. **Story Format Migration**:
|
|
97
|
-
|
|
98
|
-
**CSF 2 to CSF 3**:
|
|
99
|
-
```javascript
|
|
100
|
-
// Old (CSF 2)
|
|
101
|
-
export default {
|
|
102
|
-
title: 'Button',
|
|
103
|
-
component: Button
|
|
104
|
-
};
|
|
105
|
-
|
|
106
|
-
export const Primary = (args) => ({
|
|
107
|
-
Component: Button,
|
|
108
|
-
props: args
|
|
109
|
-
});
|
|
110
|
-
Primary.args = { variant: 'primary' };
|
|
111
|
-
|
|
112
|
-
// New (CSF 3)
|
|
113
|
-
export default {
|
|
114
|
-
title: 'Button',
|
|
115
|
-
component: Button
|
|
116
|
-
};
|
|
117
|
-
|
|
118
|
-
export const Primary = {
|
|
119
|
-
args: { variant: 'primary' }
|
|
120
|
-
};
|
|
121
|
-
```
|
|
122
|
-
|
|
123
|
-
5. **Addon Updates**:
|
|
124
|
-
|
|
125
|
-
**Actions → Tags**:
|
|
126
|
-
```javascript
|
|
127
|
-
// Old
|
|
128
|
-
export default {
|
|
129
|
-
component: Button,
|
|
130
|
-
parameters: {
|
|
131
|
-
docs: { autodocs: true }
|
|
132
|
-
}
|
|
133
|
-
};
|
|
134
|
-
|
|
135
|
-
// New
|
|
136
|
-
export default {
|
|
137
|
-
component: Button,
|
|
138
|
-
tags: ['autodocs']
|
|
139
|
-
};
|
|
140
|
-
```
|
|
141
|
-
|
|
142
|
-
6. **Module Mocking Updates**:
|
|
143
|
-
|
|
144
|
-
**New Parameter Structure**:
|
|
145
|
-
```javascript
|
|
146
|
-
// Old approach (custom mocks)
|
|
147
|
-
import { page } from './__mocks__/stores';
|
|
148
|
-
|
|
149
|
-
// New approach (parameters)
|
|
150
|
-
export const Default = {
|
|
151
|
-
parameters: {
|
|
152
|
-
sveltekit_experimental: {
|
|
153
|
-
stores: { page: { ... } }
|
|
154
|
-
}
|
|
155
|
-
}
|
|
156
|
-
};
|
|
157
|
-
```
|
|
158
|
-
|
|
159
|
-
7. **Migration Script**:
|
|
160
|
-
```javascript
|
|
161
|
-
// migration-helper.js
|
|
162
|
-
import { readdir, readFile, writeFile } from 'fs/promises';
|
|
163
|
-
import { parse, walk } from 'svelte/compiler';
|
|
164
|
-
|
|
165
|
-
async function migrateStories() {
|
|
166
|
-
// Find all .stories.svelte files
|
|
167
|
-
// Parse and transform AST
|
|
168
|
-
// Update syntax to v5
|
|
169
|
-
// Write updated files
|
|
170
|
-
}
|
|
171
|
-
```
|
|
172
|
-
|
|
173
|
-
8. **Testing After Migration**:
|
|
174
|
-
- Run `npm run storybook`
|
|
175
|
-
- Check all stories render
|
|
176
|
-
- Verify interactions work
|
|
177
|
-
- Test addons functionality
|
|
178
|
-
- Validate build process
|
|
179
|
-
|
|
180
|
-
## Migration Checklist
|
|
181
|
-
|
|
182
|
-
1. [ ] Backup current setup
|
|
183
|
-
2. [ ] Update Storybook to v7+
|
|
184
|
-
3. [ ] Migrate to @storybook/sveltekit
|
|
185
|
-
4. [ ] Update Svelte CSF addon
|
|
186
|
-
5. [ ] Convert story syntax
|
|
187
|
-
6. [ ] Update module mocks
|
|
188
|
-
7. [ ] Test all stories
|
|
189
|
-
8. [ ] Update CI/CD config
|
|
190
|
-
|
|
191
|
-
## Example Usage
|
|
192
|
-
|
|
193
|
-
User: "Migrate my Storybook from v6 with Svelte to v7 with SvelteKit"
|
|
194
|
-
|
|
195
|
-
Assistant will:
|
|
196
|
-
- Analyze current setup
|
|
197
|
-
- Create migration plan
|
|
198
|
-
- Run upgrade command
|
|
199
|
-
- Update framework config
|
|
200
|
-
- Convert story formats
|
|
201
|
-
- Migrate CSF syntax
|
|
202
|
-
- Update module mocking
|
|
203
|
-
- Test and validate
|
|
204
|
-
- Document breaking changes
|