claude-code-templates 1.21.4 → 1.21.6
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/components/agents/ai-specialists/ai-ethics-advisor.md +195 -0
- package/components/agents/ai-specialists/hackathon-ai-strategist.md +46 -0
- package/components/agents/ai-specialists/llms-maintainer.md +94 -0
- package/components/agents/ai-specialists/model-evaluator.md +150 -0
- package/components/agents/ai-specialists/prompt-engineer.md +112 -0
- package/components/agents/ai-specialists/search-specialist.md +59 -0
- package/components/agents/ai-specialists/task-decomposition-expert.md +97 -0
- package/components/agents/api-graphql/graphql-architect.md +208 -0
- package/components/agents/api-graphql/graphql-performance-optimizer.md +357 -0
- package/components/agents/api-graphql/graphql-security-specialist.md +519 -0
- package/components/agents/blockchain-web3/smart-contract-auditor.md +32 -0
- package/components/agents/blockchain-web3/smart-contract-specialist.md +32 -0
- package/components/agents/blockchain-web3/web3-integration-specialist.md +32 -0
- package/components/agents/business-marketing/business-analyst.md +194 -0
- package/components/agents/business-marketing/content-marketer.md +36 -0
- package/components/agents/business-marketing/customer-support.md +36 -0
- package/components/agents/business-marketing/legal-advisor.md +50 -0
- package/components/agents/business-marketing/marketing-attribution-analyst.md +352 -0
- package/components/agents/business-marketing/payment-integration.md +33 -0
- package/components/agents/business-marketing/product-strategist.md +212 -0
- package/components/agents/business-marketing/risk-manager.md +42 -0
- package/components/agents/business-marketing/sales-automator.md +36 -0
- package/components/agents/data-ai/ai-engineer.md +33 -0
- package/components/agents/data-ai/computer-vision-engineer.md +562 -0
- package/components/agents/data-ai/data-engineer.md +33 -0
- package/components/agents/data-ai/data-scientist.md +337 -0
- package/components/agents/data-ai/ml-engineer.md +33 -0
- package/components/agents/data-ai/mlops-engineer.md +58 -0
- package/components/agents/data-ai/nlp-engineer.md +680 -0
- package/components/agents/data-ai/quant-analyst.md +33 -0
- package/components/agents/database/database-admin.md +33 -0
- package/components/agents/database/database-architect.md +590 -0
- package/components/agents/database/database-optimization.md +33 -0
- package/components/agents/database/database-optimizer.md +33 -0
- package/components/agents/database/nosql-specialist.md +708 -0
- package/components/agents/database/supabase-schema-architect.md +138 -0
- package/components/agents/deep-research-team/academic-researcher.md +33 -0
- package/components/agents/deep-research-team/agent-overview.md +235 -0
- package/components/agents/deep-research-team/competitive-intelligence-analyst.md +530 -0
- package/components/agents/deep-research-team/data-analyst.md +112 -0
- package/components/agents/deep-research-team/fact-checker.md +553 -0
- package/components/agents/deep-research-team/query-clarifier.md +73 -0
- package/components/agents/deep-research-team/report-generator.md +108 -0
- package/components/agents/deep-research-team/research-brief-generator.md +108 -0
- package/components/agents/deep-research-team/research-coordinator.md +94 -0
- package/components/agents/deep-research-team/research-orchestrator.md +119 -0
- package/components/agents/deep-research-team/research-synthesizer.md +109 -0
- package/components/agents/deep-research-team/technical-researcher.md +95 -0
- package/components/agents/development-team/backend-architect.md +31 -0
- package/components/agents/development-team/cli-ui-designer.md +405 -0
- package/components/agents/development-team/devops-engineer.md +886 -0
- package/components/agents/development-team/frontend-developer.md +32 -0
- package/components/agents/development-team/fullstack-developer.md +1205 -0
- package/components/agents/development-team/ios-developer.md +36 -0
- package/components/agents/development-team/mobile-developer.md +33 -0
- package/components/agents/development-team/ui-ux-designer.md +36 -0
- package/components/agents/development-tools/code-reviewer.md +30 -0
- package/components/agents/development-tools/command-expert.md +422 -0
- package/components/agents/development-tools/context-manager.md +65 -0
- package/components/agents/development-tools/debugger.md +31 -0
- package/components/agents/development-tools/dx-optimizer.md +64 -0
- package/components/agents/development-tools/error-detective.md +33 -0
- package/components/agents/development-tools/mcp-expert.md +259 -0
- package/components/agents/development-tools/performance-profiler.md +799 -0
- package/components/agents/development-tools/test-engineer.md +936 -0
- package/components/agents/devops-infrastructure/cloud-architect.md +33 -0
- package/components/agents/devops-infrastructure/deployment-engineer.md +33 -0
- package/components/agents/devops-infrastructure/devops-troubleshooter.md +33 -0
- package/components/agents/devops-infrastructure/monitoring-specialist.md +36 -0
- package/components/agents/devops-infrastructure/network-engineer.md +33 -0
- package/components/agents/devops-infrastructure/security-engineer.md +971 -0
- package/components/agents/devops-infrastructure/terraform-specialist.md +36 -0
- package/components/agents/devops-infrastructure/vercel-deployment-specialist.md +357 -0
- package/components/agents/documentation/api-documenter.md +33 -0
- package/components/agents/documentation/changelog-generator.md +37 -0
- package/components/agents/documentation/docusaurus-expert.md +52 -0
- package/components/agents/documentation/technical-writer.md +37 -0
- package/components/agents/expert-advisors/agent-expert.md +477 -0
- package/components/agents/expert-advisors/architect-review.md +50 -0
- package/components/agents/expert-advisors/dependency-manager.md +45 -0
- package/components/agents/expert-advisors/documentation-expert.md +47 -0
- package/components/agents/ffmpeg-clip-team/audio-mixer.md +37 -0
- package/components/agents/ffmpeg-clip-team/audio-quality-controller.md +100 -0
- package/components/agents/ffmpeg-clip-team/podcast-content-analyzer.md +60 -0
- package/components/agents/ffmpeg-clip-team/podcast-metadata-specialist.md +46 -0
- package/components/agents/ffmpeg-clip-team/podcast-transcriber.md +68 -0
- package/components/agents/ffmpeg-clip-team/social-media-clip-creator.md +69 -0
- package/components/agents/ffmpeg-clip-team/timestamp-precision-specialist.md +98 -0
- package/components/agents/ffmpeg-clip-team/video-editor.md +37 -0
- package/components/agents/game-development/3d-artist.md +37 -0
- package/components/agents/game-development/game-designer.md +37 -0
- package/components/agents/game-development/unity-game-developer.md +110 -0
- package/components/agents/game-development/unreal-engine-developer.md +128 -0
- package/components/agents/mcp-dev-team/mcp-deployment-orchestrator.md +101 -0
- package/components/agents/mcp-dev-team/mcp-integration-engineer.md +37 -0
- package/components/agents/mcp-dev-team/mcp-protocol-specialist.md +37 -0
- package/components/agents/mcp-dev-team/mcp-registry-navigator.md +112 -0
- package/components/agents/mcp-dev-team/mcp-security-auditor.md +70 -0
- package/components/agents/mcp-dev-team/mcp-server-architect.md +74 -0
- package/components/agents/mcp-dev-team/mcp-testing-engineer.md +106 -0
- package/components/agents/modernization/architecture-modernizer.md +37 -0
- package/components/agents/modernization/cloud-migration-specialist.md +37 -0
- package/components/agents/modernization/legacy-modernizer.md +33 -0
- package/components/agents/obsidian-ops-team/Scripts/daily_notes_connector.py +306 -0
- package/components/agents/obsidian-ops-team/Scripts/enhance_tag_standardizer.py +343 -0
- package/components/agents/obsidian-ops-team/Scripts/find_keyword_connections.py +216 -0
- package/components/agents/obsidian-ops-team/Scripts/fix_quoted_tags.py +82 -0
- package/components/agents/obsidian-ops-team/Scripts/implement_entity_connections.py +195 -0
- package/components/agents/obsidian-ops-team/Scripts/link_suggester.py +301 -0
- package/components/agents/obsidian-ops-team/Scripts/metadata_adder.py +197 -0
- package/components/agents/obsidian-ops-team/Scripts/moc_generator.py +296 -0
- package/components/agents/obsidian-ops-team/Scripts/parse_keyword_connections.py +122 -0
- package/components/agents/obsidian-ops-team/Scripts/tag_standardizer.py +387 -0
- package/components/agents/obsidian-ops-team/connection-agent.md +67 -0
- package/components/agents/obsidian-ops-team/content-curator.md +81 -0
- package/components/agents/obsidian-ops-team/metadata-agent.md +51 -0
- package/components/agents/obsidian-ops-team/moc-agent.md +112 -0
- package/components/agents/obsidian-ops-team/review-agent.md +94 -0
- package/components/agents/obsidian-ops-team/tag-agent.md +92 -0
- package/components/agents/obsidian-ops-team/vault-optimizer.md +76 -0
- package/components/agents/ocr-extraction-team/document-structure-analyzer.md +37 -0
- package/components/agents/ocr-extraction-team/markdown-syntax-formatter.md +58 -0
- package/components/agents/ocr-extraction-team/ocr-grammar-fixer.md +36 -0
- package/components/agents/ocr-extraction-team/ocr-preprocessing-optimizer.md +37 -0
- package/components/agents/ocr-extraction-team/ocr-quality-assurance.md +62 -0
- package/components/agents/ocr-extraction-team/text-comparison-validator.md +60 -0
- package/components/agents/ocr-extraction-team/visual-analysis-ocr.md +52 -0
- package/components/agents/performance-testing/load-testing-specialist.md +37 -0
- package/components/agents/performance-testing/performance-engineer.md +33 -0
- package/components/agents/performance-testing/react-performance-optimization.md +65 -0
- package/components/agents/performance-testing/test-automator.md +33 -0
- package/components/agents/performance-testing/web-vitals-optimizer.md +37 -0
- package/components/agents/podcast-creator-team/academic-research-synthesizer.md +61 -0
- package/components/agents/podcast-creator-team/comprehensive-researcher.md +49 -0
- package/components/agents/podcast-creator-team/episode-orchestrator.md +52 -0
- package/components/agents/podcast-creator-team/guest-outreach-coordinator.md +37 -0
- package/components/agents/podcast-creator-team/market-research-analyst.md +54 -0
- package/components/agents/podcast-creator-team/podcast-editor.md +37 -0
- package/components/agents/podcast-creator-team/podcast-trend-scout.md +60 -0
- package/components/agents/podcast-creator-team/project-supervisor-orchestrator.md +48 -0
- package/components/agents/podcast-creator-team/seo-podcast-optimizer.md +58 -0
- package/components/agents/podcast-creator-team/social-media-copywriter.md +57 -0
- package/components/agents/podcast-creator-team/twitter-ai-influencer-manager.md +62 -0
- package/components/agents/programming-languages/c-pro.md +36 -0
- package/components/agents/programming-languages/c-sharp-pro.md +40 -0
- package/components/agents/programming-languages/cpp-pro.md +39 -0
- package/components/agents/programming-languages/golang-pro.md +33 -0
- package/components/agents/programming-languages/javascript-pro.md +36 -0
- package/components/agents/programming-languages/php-pro.md +44 -0
- package/components/agents/programming-languages/python-pro.md +33 -0
- package/components/agents/programming-languages/rust-pro.md +36 -0
- package/components/agents/programming-languages/shell-scripting-pro.md +38 -0
- package/components/agents/programming-languages/sql-pro.md +36 -0
- package/components/agents/programming-languages/typescript-pro.md +38 -0
- package/components/agents/realtime/supabase-realtime-optimizer.md +193 -0
- package/components/agents/security/api-security-audit.md +93 -0
- package/components/agents/security/compliance-specialist.md +37 -0
- package/components/agents/security/incident-responder.md +75 -0
- package/components/agents/security/penetration-tester.md +37 -0
- package/components/agents/security/security-auditor.md +33 -0
- package/components/agents/web-tools/nextjs-architecture-expert.md +194 -0
- package/components/agents/web-tools/react-performance-optimizer.md +425 -0
- package/components/agents/web-tools/seo-analyzer.md +37 -0
- package/components/agents/web-tools/url-context-validator.md +61 -0
- package/components/agents/web-tools/url-link-extractor.md +59 -0
- package/components/agents/web-tools/web-accessibility-checker.md +37 -0
- package/components/commands/automation/act.md +57 -0
- package/components/commands/automation/ci-pipeline.md +378 -0
- package/components/commands/automation/husky.md +130 -0
- package/components/commands/automation/workflow-orchestrator.md +576 -0
- package/components/commands/database/supabase-backup-manager.md +37 -0
- package/components/commands/database/supabase-data-explorer.md +37 -0
- package/components/commands/database/supabase-migration-assistant.md +37 -0
- package/components/commands/database/supabase-performance-optimizer.md +37 -0
- package/components/commands/database/supabase-realtime-monitor.md +37 -0
- package/components/commands/database/supabase-schema-sync.md +37 -0
- package/components/commands/database/supabase-security-audit.md +37 -0
- package/components/commands/database/supabase-type-generator.md +37 -0
- package/components/commands/deployment/add-changelog.md +92 -0
- package/components/commands/deployment/blue-green-deployment.md +824 -0
- package/components/commands/deployment/changelog-demo-command.md +43 -0
- package/components/commands/deployment/ci-setup.md +323 -0
- package/components/commands/deployment/containerize-application.md +93 -0
- package/components/commands/deployment/deployment-monitoring.md +1228 -0
- package/components/commands/deployment/hotfix-deploy.md +283 -0
- package/components/commands/deployment/prepare-release.md +357 -0
- package/components/commands/deployment/rollback-deploy.md +145 -0
- package/components/commands/deployment/setup-automated-releases.md +143 -0
- package/components/commands/deployment/setup-kubernetes-deployment.md +93 -0
- package/components/commands/documentation/create-architecture-documentation.md +95 -0
- package/components/commands/documentation/create-onboarding-guide.md +93 -0
- package/components/commands/documentation/doc-api.md +242 -0
- package/components/commands/documentation/docs-maintenance.md +119 -0
- package/components/commands/documentation/generate-api-documentation.md +97 -0
- package/components/commands/documentation/interactive-documentation.md +133 -0
- package/components/commands/documentation/load-llms-txt.md +39 -0
- package/components/commands/documentation/migration-guide.md +250 -0
- package/components/commands/documentation/troubleshooting-guide.md +370 -0
- package/components/commands/documentation/update-docs.md +107 -0
- package/components/commands/game-development/game-analytics-integration.md +128 -0
- package/components/commands/game-development/game-asset-pipeline.md +108 -0
- package/components/commands/game-development/game-performance-profiler.md +78 -0
- package/components/commands/game-development/game-testing-framework.md +112 -0
- package/components/commands/game-development/unity-project-setup.md +190 -0
- package/components/commands/git-workflow/branch-cleanup.md +181 -0
- package/components/commands/git-workflow/commit.md +167 -0
- package/components/commands/git-workflow/create-pr.md +19 -0
- package/components/commands/git-workflow/create-pull-request.md +126 -0
- package/components/commands/git-workflow/create-worktrees.md +174 -0
- package/components/commands/git-workflow/fix-github-issue.md +13 -0
- package/components/commands/git-workflow/git-bisect-helper.md +261 -0
- package/components/commands/git-workflow/pr-review.md +76 -0
- package/components/commands/git-workflow/update-branch-name.md +9 -0
- package/components/commands/nextjs-vercel/nextjs-api-tester.md +480 -0
- package/components/commands/nextjs-vercel/nextjs-bundle-analyzer.md +406 -0
- package/components/commands/nextjs-vercel/nextjs-component-generator.md +489 -0
- package/components/commands/nextjs-vercel/nextjs-middleware-creator.md +712 -0
- package/components/commands/nextjs-vercel/nextjs-migration-helper.md +778 -0
- package/components/commands/nextjs-vercel/nextjs-performance-audit.md +653 -0
- package/components/commands/nextjs-vercel/nextjs-scaffold.md +237 -0
- package/components/commands/nextjs-vercel/vercel-deploy-optimize.md +341 -0
- package/components/commands/nextjs-vercel/vercel-edge-function.md +810 -0
- package/components/commands/nextjs-vercel/vercel-env-sync.md +666 -0
- package/components/commands/orchestration/archive.md +414 -0
- package/components/commands/orchestration/commit.md +305 -0
- package/components/commands/orchestration/find.md +272 -0
- package/components/commands/orchestration/log.md +355 -0
- package/components/commands/orchestration/move.md +220 -0
- package/components/commands/orchestration/optimize.md +375 -0
- package/components/commands/orchestration/remove.md +301 -0
- package/components/commands/orchestration/report.md +292 -0
- package/components/commands/orchestration/resume.md +256 -0
- package/components/commands/orchestration/start.md +169 -0
- package/components/commands/orchestration/status.md +219 -0
- package/components/commands/orchestration/sync.md +294 -0
- package/components/commands/performance/add-performance-monitoring.md +84 -0
- package/components/commands/performance/implement-caching-strategy.md +84 -0
- package/components/commands/performance/optimize-api-performance.md +119 -0
- package/components/commands/performance/optimize-build.md +139 -0
- package/components/commands/performance/optimize-bundle-size.md +84 -0
- package/components/commands/performance/optimize-database-performance.md +84 -0
- package/components/commands/performance/optimize-memory-usage.md +91 -0
- package/components/commands/performance/performance-audit.md +89 -0
- package/components/commands/performance/setup-cdn-optimization.md +84 -0
- package/components/commands/performance/system-behavior-simulator.md +415 -0
- package/components/commands/project-management/add-package.md +90 -0
- package/components/commands/project-management/add-to-changelog.md +37 -0
- package/components/commands/project-management/create-feature.md +130 -0
- package/components/commands/project-management/create-jtbd.md +37 -0
- package/components/commands/project-management/create-prd.md +36 -0
- package/components/commands/project-management/create-prp.md +37 -0
- package/components/commands/project-management/init-project.md +80 -0
- package/components/commands/project-management/milestone-tracker.md +44 -0
- package/components/commands/project-management/pac-configure.md +32 -0
- package/components/commands/project-management/pac-create-epic.md +41 -0
- package/components/commands/project-management/pac-create-ticket.md +42 -0
- package/components/commands/project-management/pac-update-status.md +39 -0
- package/components/commands/project-management/pac-validate.md +35 -0
- package/components/commands/project-management/project-health-check.md +58 -0
- package/components/commands/project-management/project-timeline-simulator.md +37 -0
- package/components/commands/project-management/project-to-linear.md +38 -0
- package/components/commands/project-management/release.md +31 -0
- package/components/commands/project-management/todo.md +62 -0
- package/components/commands/security/add-authentication-system.md +34 -0
- package/components/commands/security/dependency-audit.md +32 -0
- package/components/commands/security/penetration-test.md +40 -0
- package/components/commands/security/secrets-scanner.md +39 -0
- package/components/commands/security/security-audit.md +82 -0
- package/components/commands/security/security-hardening.md +33 -0
- package/components/commands/setup/create-database-migrations.md +35 -0
- package/components/commands/setup/design-database-schema.md +37 -0
- package/components/commands/setup/design-rest-api.md +37 -0
- package/components/commands/setup/implement-graphql-api.md +37 -0
- package/components/commands/setup/migrate-to-typescript.md +37 -0
- package/components/commands/setup/setup-ci-cd-pipeline.md +37 -0
- package/components/commands/setup/setup-development-environment.md +37 -0
- package/components/commands/setup/setup-docker-containers.md +37 -0
- package/components/commands/setup/setup-formatting.md +37 -0
- package/components/commands/setup/setup-linting.md +37 -0
- package/components/commands/setup/setup-monitoring-observability.md +37 -0
- package/components/commands/setup/setup-monorepo.md +37 -0
- package/components/commands/setup/setup-rate-limiting.md +37 -0
- package/components/commands/setup/update-dependencies.md +35 -0
- package/components/commands/simulation/business-scenario-explorer.md +37 -0
- package/components/commands/simulation/constraint-modeler.md +37 -0
- package/components/commands/simulation/decision-tree-explorer.md +37 -0
- package/components/commands/simulation/digital-twin-creator.md +37 -0
- package/components/commands/simulation/future-scenario-generator.md +37 -0
- package/components/commands/simulation/market-response-modeler.md +37 -0
- package/components/commands/simulation/monte-carlo-simulator.md +37 -0
- package/components/commands/simulation/simulation-calibrator.md +37 -0
- package/components/commands/simulation/system-dynamics-modeler.md +37 -0
- package/components/commands/simulation/timeline-compressor.md +37 -0
- package/components/commands/svelte/svelte:a11y.md +105 -0
- package/components/commands/svelte/svelte:component.md +81 -0
- package/components/commands/svelte/svelte:debug.md +48 -0
- package/components/commands/svelte/svelte:migrate.md +79 -0
- package/components/commands/svelte/svelte:optimize.md +99 -0
- package/components/commands/svelte/svelte:scaffold.md +89 -0
- package/components/commands/svelte/svelte:storybook-migrate.md +204 -0
- package/components/commands/svelte/svelte:storybook-mock.md +213 -0
- package/components/commands/svelte/svelte:storybook-setup.md +113 -0
- package/components/commands/svelte/svelte:storybook-story.md +145 -0
- package/components/commands/svelte/svelte:storybook-troubleshoot.md +191 -0
- package/components/commands/svelte/svelte:storybook.md +48 -0
- package/components/commands/svelte/svelte:test-coverage.md +77 -0
- package/components/commands/svelte/svelte:test-fix.md +74 -0
- package/components/commands/svelte/svelte:test-setup.md +85 -0
- package/components/commands/svelte/svelte:test.md +60 -0
- package/components/commands/sync/bidirectional-sync.md +37 -0
- package/components/commands/sync/bulk-import-issues.md +37 -0
- package/components/commands/sync/cross-reference-manager.md +37 -0
- package/components/commands/sync/issue-to-linear-task.md +37 -0
- package/components/commands/sync/linear-task-to-issue.md +37 -0
- package/components/commands/sync/sync-automation-setup.md +37 -0
- package/components/commands/sync/sync-conflict-resolver.md +37 -0
- package/components/commands/sync/sync-health-monitor.md +37 -0
- package/components/commands/sync/sync-issues-to-linear.md +37 -0
- package/components/commands/sync/sync-linear-to-issues.md +37 -0
- package/components/commands/sync/sync-migration-assistant.md +37 -0
- package/components/commands/sync/sync-pr-to-task.md +37 -0
- package/components/commands/sync/sync-status.md +391 -0
- package/components/commands/sync/task-from-pr.md +37 -0
- package/components/commands/team/architecture-review.md +37 -0
- package/components/commands/team/decision-quality-analyzer.md +37 -0
- package/components/commands/team/dependency-mapper.md +37 -0
- package/components/commands/team/estimate-assistant.md +37 -0
- package/components/commands/team/issue-triage.md +37 -0
- package/components/commands/team/memory-spring-cleaning.md +37 -0
- package/components/commands/team/migration-assistant.md +37 -0
- package/components/commands/team/retrospective-analyzer.md +37 -0
- package/components/commands/team/session-learning-capture.md +37 -0
- package/components/commands/team/sprint-planning.md +189 -0
- package/components/commands/team/standup-report.md +37 -0
- package/components/commands/team/team-knowledge-mapper.md +37 -0
- package/components/commands/team/team-velocity-tracker.md +37 -0
- package/components/commands/team/team-workload-balancer.md +37 -0
- package/components/commands/testing/add-mutation-testing.md +37 -0
- package/components/commands/testing/add-property-based-testing.md +37 -0
- package/components/commands/testing/e2e-setup.md +37 -0
- package/components/commands/testing/generate-test-cases.md +37 -0
- package/components/commands/testing/generate-tests.md +82 -0
- package/components/commands/testing/setup-comprehensive-testing.md +37 -0
- package/components/commands/testing/setup-load-testing.md +37 -0
- package/components/commands/testing/setup-visual-testing.md +37 -0
- package/components/commands/testing/test-automation-orchestrator.md +37 -0
- package/components/commands/testing/test-changelog-automation.md +37 -0
- package/components/commands/testing/test-coverage.md +37 -0
- package/components/commands/testing/test-quality-analyzer.md +37 -0
- package/components/commands/testing/testing_plan_integration.md +37 -0
- package/components/commands/testing/write-tests.md +37 -0
- package/components/commands/utilities/all-tools.md +31 -0
- package/components/commands/utilities/architecture-scenario-explorer.md +375 -0
- package/components/commands/utilities/check-file.md +53 -0
- package/components/commands/utilities/clean-branches.md +243 -0
- package/components/commands/utilities/clean.md +1 -0
- package/components/commands/utilities/code-permutation-tester.md +341 -0
- package/components/commands/utilities/code-review.md +70 -0
- package/components/commands/utilities/code-to-task.md +583 -0
- package/components/commands/utilities/context-prime.md +1 -0
- package/components/commands/utilities/debug-error.md +121 -0
- package/components/commands/utilities/directory-deep-dive.md +34 -0
- package/components/commands/utilities/explain-code.md +194 -0
- package/components/commands/utilities/fix-issue.md +85 -0
- package/components/commands/utilities/generate-linear-worklog.md +113 -0
- package/components/commands/utilities/git-status.md +39 -0
- package/components/commands/utilities/initref.md +3 -0
- package/components/commands/utilities/prime.md +41 -0
- package/components/commands/utilities/refactor-code.md +116 -0
- package/components/commands/utilities/ultra-think.md +153 -0
- package/components/hooks/HOOK_PATTERNS_COMPRESSED.json +1 -0
- package/components/hooks/automation/build-on-change.json +16 -0
- package/components/hooks/automation/dependency-checker.json +16 -0
- package/components/hooks/automation/deployment-health-monitor.json +29 -0
- package/components/hooks/automation/discord-detailed-notifications.json +26 -0
- package/components/hooks/automation/discord-error-notifications.json +37 -0
- package/components/hooks/automation/discord-notifications.json +25 -0
- package/components/hooks/automation/simple-notifications.json +16 -0
- package/components/hooks/automation/slack-detailed-notifications.json +26 -0
- package/components/hooks/automation/slack-error-notifications.json +37 -0
- package/components/hooks/automation/slack-notifications.json +25 -0
- package/components/hooks/automation/telegram-detailed-notifications.json +26 -0
- package/components/hooks/automation/telegram-error-notifications.json +37 -0
- package/components/hooks/automation/telegram-notifications.json +25 -0
- package/components/hooks/automation/vercel-auto-deploy.json +17 -0
- package/components/hooks/automation/vercel-environment-sync.json +29 -0
- package/components/hooks/development-tools/change-tracker.json +25 -0
- package/components/hooks/development-tools/command-logger.json +16 -0
- package/components/hooks/development-tools/file-backup.json +16 -0
- package/components/hooks/development-tools/lint-on-save.json +16 -0
- package/components/hooks/development-tools/nextjs-code-quality-enforcer.json +17 -0
- package/components/hooks/development-tools/smart-formatting.json +16 -0
- package/components/hooks/git-workflow/auto-git-add.json +16 -0
- package/components/hooks/git-workflow/smart-commit.json +25 -0
- package/components/hooks/performance/performance-budget-guard.json +27 -0
- package/components/hooks/performance/performance-monitor.json +27 -0
- package/components/hooks/post-tool/format-javascript-files.json +16 -0
- package/components/hooks/post-tool/format-python-files.json +16 -0
- package/components/hooks/post-tool/git-add-changes.json +25 -0
- package/components/hooks/post-tool/run-tests-after-changes.json +16 -0
- package/components/hooks/pre-tool/backup-before-edit.json +16 -0
- package/components/hooks/pre-tool/notify-before-bash.json +16 -0
- package/components/hooks/security/file-protection.json +16 -0
- package/components/hooks/security/security-scanner.json +16 -0
- package/components/hooks/testing/test-runner.json +16 -0
- package/components/mcps/browser_automation/browser-use-mcp-server.json +20 -0
- package/components/mcps/browser_automation/browsermcp.json +9 -0
- package/components/mcps/browser_automation/mcp-server-browserbase.json +14 -0
- package/components/mcps/browser_automation/mcp-server-playwright.json +9 -0
- package/components/mcps/browser_automation/playwright-mcp-server.json +9 -0
- package/components/mcps/browser_automation/playwright-mcp.json +11 -0
- package/components/mcps/database/mysql-integration.json +12 -0
- package/components/mcps/database/postgresql-integration.json +12 -0
- package/components/mcps/database/supabase.json +17 -0
- package/components/mcps/deepgraph/deepgraph-nextjs.json +13 -0
- package/components/mcps/deepgraph/deepgraph-react.json +13 -0
- package/components/mcps/deepgraph/deepgraph-typescript.json +13 -0
- package/components/mcps/deepgraph/deepgraph-vue.json +13 -0
- package/components/mcps/devtools/circleci.json +13 -0
- package/components/mcps/devtools/context7.json +9 -0
- package/components/mcps/devtools/firefly-mcp.json +13 -0
- package/components/mcps/devtools/ios-simulator-mcp.json +9 -0
- package/components/mcps/devtools/just-mcp.json +9 -0
- package/components/mcps/devtools/leetcode.json +8 -0
- package/components/mcps/devtools/mcp-server-atlassian-bitbucket.json +9 -0
- package/components/mcps/devtools/mcp-server-trello.json +12 -0
- package/components/mcps/filesystem/filesystem-access.json +13 -0
- package/components/mcps/integration/github-integration.json +12 -0
- package/components/mcps/integration/memory-integration.json +9 -0
- package/components/mcps/marketing/facebook-ads-mcp-server.json +13 -0
- package/components/mcps/marketing/google-ads-mcp-server.json +11 -0
- package/components/mcps/web/web-fetch.json +9 -0
- package/components/sandbox/README.md +169 -0
- package/components/sandbox/e2b/.env.example +10 -0
- package/components/sandbox/e2b/SANDBOX_DEBUGGING.md +203 -0
- package/components/sandbox/e2b/claude-code-sandbox.md +110 -0
- package/components/sandbox/e2b/e2b-launcher.py +426 -0
- package/components/sandbox/e2b/e2b-monitor.py +229 -0
- package/components/sandbox/e2b/requirements.txt +1 -0
- package/components/settings/api/bedrock-configuration.json +7 -0
- package/components/settings/api/corporate-proxy.json +7 -0
- package/components/settings/api/custom-headers.json +6 -0
- package/components/settings/api/vertex-configuration.json +8 -0
- package/components/settings/authentication/api-key-helper.json +7 -0
- package/components/settings/authentication/force-claudeai-login.json +4 -0
- package/components/settings/authentication/force-console-login.json +4 -0
- package/components/settings/cleanup/retention-7-days.json +4 -0
- package/components/settings/cleanup/retention-90-days.json +4 -0
- package/components/settings/environment/bash-timeouts.json +8 -0
- package/components/settings/environment/development-utils.json +8 -0
- package/components/settings/environment/performance-optimization.json +8 -0
- package/components/settings/environment/privacy-focused.json +10 -0
- package/components/settings/global/aws-credentials.json +5 -0
- package/components/settings/global/custom-model.json +7 -0
- package/components/settings/global/git-commit-settings.json +4 -0
- package/components/settings/mcp/disable-risky-servers.json +8 -0
- package/components/settings/mcp/enable-all-project-servers.json +4 -0
- package/components/settings/mcp/enable-specific-servers.json +8 -0
- package/components/settings/mcp/mcp-timeouts.json +8 -0
- package/components/settings/model/use-haiku.json +4 -0
- package/components/settings/model/use-sonnet.json +4 -0
- package/components/settings/permissions/additional-directories.json +11 -0
- package/components/settings/permissions/allow-git-operations.json +14 -0
- package/components/settings/permissions/allow-npm-commands.json +11 -0
- package/components/settings/permissions/deny-sensitive-files.json +11 -0
- package/components/settings/permissions/development-mode.json +31 -0
- package/components/settings/permissions/read-only-mode.json +18 -0
- package/components/settings/statusline/asset-pipeline-controller-statusline.json +7 -0
- package/components/settings/statusline/bug-circus-statusline.json +7 -0
- package/components/settings/statusline/code-casino-statusline.json +7 -0
- package/components/settings/statusline/code-spaceship-statusline.json +7 -0
- package/components/settings/statusline/colorful-statusline.json +7 -0
- package/components/settings/statusline/command-statusline.json +8 -0
- package/components/settings/statusline/context-monitor.json +7 -0
- package/components/settings/statusline/context-monitor.py +236 -0
- package/components/settings/statusline/data-ocean-statusline.json +7 -0
- package/components/settings/statusline/emotion-theater-statusline.json +7 -0
- package/components/settings/statusline/game-performance-monitor-statusline.json +7 -0
- package/components/settings/statusline/git-branch-statusline.json +7 -0
- package/components/settings/statusline/minimal-statusline.json +7 -0
- package/components/settings/statusline/multiplatform-build-status-statusline.json +7 -0
- package/components/settings/statusline/productivity-rainbow-statusline.json +7 -0
- package/components/settings/statusline/programmer-tamagotchi-statusline.json +7 -0
- package/components/settings/statusline/programming-fitness-tracker-statusline.json +7 -0
- package/components/settings/statusline/project-info-statusline.json +7 -0
- package/components/settings/statusline/rpg-status-bar-statusline.json +7 -0
- package/components/settings/statusline/time-statusline.json +7 -0
- package/components/settings/statusline/unity-project-dashboard-statusline.json +7 -0
- package/components/settings/statusline/vercel-deployment-monitor.json +7 -0
- package/components/settings/statusline/vercel-error-alert-system.json +7 -0
- package/components/settings/statusline/vercel-multi-env-status.json +7 -0
- package/components/settings/statusline/virtual-code-garden-statusline.json +7 -0
- package/components/settings/statusline/zero-config-deployment-monitor.json +7 -0
- package/components/settings/telemetry/custom-telemetry.json +7 -0
- package/components/settings/telemetry/disable-telemetry.json +6 -0
- package/components/settings/telemetry/enable-telemetry.json +6 -0
- package/package.json +2 -1
- package/src/index.js +59 -24
|
@@ -0,0 +1,213 @@
|
|
|
1
|
+
# /svelte:storybook-mock
|
|
2
|
+
|
|
3
|
+
Mock SvelteKit modules and functionality in Storybook stories for isolated component development.
|
|
4
|
+
|
|
5
|
+
## Instructions
|
|
6
|
+
|
|
7
|
+
You are acting as the Svelte Storybook Specialist Agent focused on mocking SvelteKit modules. When setting up mocks:
|
|
8
|
+
|
|
9
|
+
1. **Module Mocking Overview**:
|
|
10
|
+
|
|
11
|
+
**Fully Supported**:
|
|
12
|
+
- `$app/environment` - Browser and version info
|
|
13
|
+
- `$app/paths` - Base paths configuration
|
|
14
|
+
- `$lib` - Library imports
|
|
15
|
+
- `@sveltejs/kit/*` - Kit utilities
|
|
16
|
+
|
|
17
|
+
**Experimental (Requires Mocking)**:
|
|
18
|
+
- `$app/stores` - Page, navigating, updated stores
|
|
19
|
+
- `$app/navigation` - Navigation functions
|
|
20
|
+
- `$app/forms` - Form enhancement
|
|
21
|
+
|
|
22
|
+
**Not Supported**:
|
|
23
|
+
- `$env/dynamic/private` - Server-only
|
|
24
|
+
- `$env/static/private` - Server-only
|
|
25
|
+
- `$service-worker` - Service worker context
|
|
26
|
+
|
|
27
|
+
2. **Store Mocking**:
|
|
28
|
+
```javascript
|
|
29
|
+
export const Default = {
|
|
30
|
+
parameters: {
|
|
31
|
+
sveltekit_experimental: {
|
|
32
|
+
stores: {
|
|
33
|
+
// Page store
|
|
34
|
+
page: {
|
|
35
|
+
url: new URL('https://example.com/products/123'),
|
|
36
|
+
params: { id: '123' },
|
|
37
|
+
route: {
|
|
38
|
+
id: '/products/[id]'
|
|
39
|
+
},
|
|
40
|
+
status: 200,
|
|
41
|
+
error: null,
|
|
42
|
+
data: {
|
|
43
|
+
product: {
|
|
44
|
+
id: '123',
|
|
45
|
+
name: 'Sample Product',
|
|
46
|
+
price: 99.99
|
|
47
|
+
}
|
|
48
|
+
},
|
|
49
|
+
form: null
|
|
50
|
+
},
|
|
51
|
+
// Navigating store
|
|
52
|
+
navigating: {
|
|
53
|
+
from: {
|
|
54
|
+
params: { id: '122' },
|
|
55
|
+
route: { id: '/products/[id]' },
|
|
56
|
+
url: new URL('https://example.com/products/122')
|
|
57
|
+
},
|
|
58
|
+
to: {
|
|
59
|
+
params: { id: '123' },
|
|
60
|
+
route: { id: '/products/[id]' },
|
|
61
|
+
url: new URL('https://example.com/products/123')
|
|
62
|
+
},
|
|
63
|
+
type: 'link',
|
|
64
|
+
delta: 1
|
|
65
|
+
},
|
|
66
|
+
// Updated store
|
|
67
|
+
updated: true
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
};
|
|
72
|
+
```
|
|
73
|
+
|
|
74
|
+
3. **Navigation Mocking**:
|
|
75
|
+
```javascript
|
|
76
|
+
parameters: {
|
|
77
|
+
sveltekit_experimental: {
|
|
78
|
+
navigation: {
|
|
79
|
+
goto: (url, options) => {
|
|
80
|
+
console.log('Navigating to:', url);
|
|
81
|
+
action('goto')(url, options);
|
|
82
|
+
},
|
|
83
|
+
pushState: (url, state) => {
|
|
84
|
+
console.log('Push state:', url, state);
|
|
85
|
+
action('pushState')(url, state);
|
|
86
|
+
},
|
|
87
|
+
replaceState: (url, state) => {
|
|
88
|
+
console.log('Replace state:', url, state);
|
|
89
|
+
action('replaceState')(url, state);
|
|
90
|
+
},
|
|
91
|
+
invalidate: (url) => {
|
|
92
|
+
console.log('Invalidate:', url);
|
|
93
|
+
action('invalidate')(url);
|
|
94
|
+
},
|
|
95
|
+
invalidateAll: () => {
|
|
96
|
+
console.log('Invalidate all');
|
|
97
|
+
action('invalidateAll')();
|
|
98
|
+
},
|
|
99
|
+
afterNavigate: {
|
|
100
|
+
from: null,
|
|
101
|
+
to: { url: new URL('https://example.com') },
|
|
102
|
+
type: 'enter'
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
```
|
|
108
|
+
|
|
109
|
+
4. **Form Enhancement Mocking**:
|
|
110
|
+
```javascript
|
|
111
|
+
parameters: {
|
|
112
|
+
sveltekit_experimental: {
|
|
113
|
+
forms: {
|
|
114
|
+
enhance: (form) => {
|
|
115
|
+
console.log('Form enhanced:', form);
|
|
116
|
+
// Return cleanup function
|
|
117
|
+
return {
|
|
118
|
+
destroy() {
|
|
119
|
+
console.log('Form enhancement cleaned up');
|
|
120
|
+
}
|
|
121
|
+
};
|
|
122
|
+
}
|
|
123
|
+
}
|
|
124
|
+
}
|
|
125
|
+
}
|
|
126
|
+
```
|
|
127
|
+
|
|
128
|
+
5. **Link Handling**:
|
|
129
|
+
```javascript
|
|
130
|
+
parameters: {
|
|
131
|
+
sveltekit_experimental: {
|
|
132
|
+
hrefs: {
|
|
133
|
+
// Exact match
|
|
134
|
+
'/products': (to, event) => {
|
|
135
|
+
console.log('Products link clicked');
|
|
136
|
+
event.preventDefault();
|
|
137
|
+
},
|
|
138
|
+
// Regex pattern
|
|
139
|
+
'/product/.*': {
|
|
140
|
+
callback: (to, event) => {
|
|
141
|
+
console.log('Product detail:', to);
|
|
142
|
+
},
|
|
143
|
+
asRegex: true
|
|
144
|
+
},
|
|
145
|
+
// API routes
|
|
146
|
+
'/api/.*': {
|
|
147
|
+
callback: (to, event) => {
|
|
148
|
+
event.preventDefault();
|
|
149
|
+
console.log('API call intercepted:', to);
|
|
150
|
+
},
|
|
151
|
+
asRegex: true
|
|
152
|
+
}
|
|
153
|
+
}
|
|
154
|
+
}
|
|
155
|
+
}
|
|
156
|
+
```
|
|
157
|
+
|
|
158
|
+
6. **Complex Mocking Scenarios**:
|
|
159
|
+
|
|
160
|
+
**Auth State**:
|
|
161
|
+
```javascript
|
|
162
|
+
const mockAuthenticatedUser = {
|
|
163
|
+
parameters: {
|
|
164
|
+
sveltekit_experimental: {
|
|
165
|
+
stores: {
|
|
166
|
+
page: {
|
|
167
|
+
data: {
|
|
168
|
+
user: {
|
|
169
|
+
id: '123',
|
|
170
|
+
email: 'user@example.com',
|
|
171
|
+
role: 'admin'
|
|
172
|
+
},
|
|
173
|
+
session: {
|
|
174
|
+
token: 'mock-jwt-token',
|
|
175
|
+
expiresAt: '2024-12-31'
|
|
176
|
+
}
|
|
177
|
+
}
|
|
178
|
+
}
|
|
179
|
+
}
|
|
180
|
+
}
|
|
181
|
+
}
|
|
182
|
+
};
|
|
183
|
+
```
|
|
184
|
+
|
|
185
|
+
**Loading States**:
|
|
186
|
+
```javascript
|
|
187
|
+
const mockLoadingState = {
|
|
188
|
+
parameters: {
|
|
189
|
+
sveltekit_experimental: {
|
|
190
|
+
stores: {
|
|
191
|
+
navigating: {
|
|
192
|
+
from: { url: new URL('https://example.com') },
|
|
193
|
+
to: { url: new URL('https://example.com/products') }
|
|
194
|
+
}
|
|
195
|
+
}
|
|
196
|
+
}
|
|
197
|
+
}
|
|
198
|
+
};
|
|
199
|
+
```
|
|
200
|
+
|
|
201
|
+
## Example Usage
|
|
202
|
+
|
|
203
|
+
User: "Mock SvelteKit stores for my ProductDetail component"
|
|
204
|
+
|
|
205
|
+
Assistant will:
|
|
206
|
+
- Analyze component's store dependencies
|
|
207
|
+
- Create comprehensive store mocks
|
|
208
|
+
- Mock page data with product info
|
|
209
|
+
- Set up navigation mocks
|
|
210
|
+
- Configure link handling
|
|
211
|
+
- Add form enhancement if needed
|
|
212
|
+
- Create multiple story variants
|
|
213
|
+
- Test different states (loading, error, success)
|
|
@@ -0,0 +1,113 @@
|
|
|
1
|
+
# /svelte:storybook-setup
|
|
2
|
+
|
|
3
|
+
Initialize and configure Storybook for SvelteKit projects with optimal settings and structure.
|
|
4
|
+
|
|
5
|
+
## Instructions
|
|
6
|
+
|
|
7
|
+
You are acting as the Svelte Storybook Specialist Agent focused on Storybook setup. When setting up Storybook:
|
|
8
|
+
|
|
9
|
+
1. **Installation Process**:
|
|
10
|
+
|
|
11
|
+
**New Installation**:
|
|
12
|
+
```bash
|
|
13
|
+
npx storybook@latest init
|
|
14
|
+
```
|
|
15
|
+
|
|
16
|
+
**Manual Setup**:
|
|
17
|
+
- Install core dependencies
|
|
18
|
+
- Configure @storybook/sveltekit framework
|
|
19
|
+
- Add essential addons
|
|
20
|
+
- Set up Svelte CSF addon
|
|
21
|
+
|
|
22
|
+
2. **Configuration Files**:
|
|
23
|
+
|
|
24
|
+
**.storybook/main.js**:
|
|
25
|
+
```javascript
|
|
26
|
+
export default {
|
|
27
|
+
stories: ['../src/**/*.stories.@(js|ts|svelte)'],
|
|
28
|
+
addons: [
|
|
29
|
+
'@storybook/addon-essentials',
|
|
30
|
+
'@storybook/addon-svelte-csf',
|
|
31
|
+
'@storybook/addon-a11y',
|
|
32
|
+
'@storybook/addon-interactions'
|
|
33
|
+
],
|
|
34
|
+
framework: {
|
|
35
|
+
name: '@storybook/sveltekit',
|
|
36
|
+
options: {}
|
|
37
|
+
},
|
|
38
|
+
staticDirs: ['../static']
|
|
39
|
+
};
|
|
40
|
+
```
|
|
41
|
+
|
|
42
|
+
**.storybook/preview.js**:
|
|
43
|
+
```javascript
|
|
44
|
+
import '../src/app.css'; // Global styles
|
|
45
|
+
|
|
46
|
+
export const parameters = {
|
|
47
|
+
actions: { argTypesRegex: '^on[A-Z].*' },
|
|
48
|
+
controls: {
|
|
49
|
+
matchers: {
|
|
50
|
+
color: /(background|color)$/i,
|
|
51
|
+
date: /Date$/i
|
|
52
|
+
}
|
|
53
|
+
},
|
|
54
|
+
layout: 'centered'
|
|
55
|
+
};
|
|
56
|
+
```
|
|
57
|
+
|
|
58
|
+
3. **Project Structure**:
|
|
59
|
+
```
|
|
60
|
+
src/
|
|
61
|
+
├── lib/
|
|
62
|
+
│ └── components/
|
|
63
|
+
│ ├── Button/
|
|
64
|
+
│ │ ├── Button.svelte
|
|
65
|
+
│ │ ├── Button.stories.svelte
|
|
66
|
+
│ │ └── Button.test.ts
|
|
67
|
+
│ └── Card/
|
|
68
|
+
│ ├── Card.svelte
|
|
69
|
+
│ └── Card.stories.svelte
|
|
70
|
+
└── stories/
|
|
71
|
+
├── Introduction.mdx
|
|
72
|
+
└── Configure.mdx
|
|
73
|
+
```
|
|
74
|
+
|
|
75
|
+
4. **Essential Addons**:
|
|
76
|
+
- **@storybook/addon-essentials**: Core functionality
|
|
77
|
+
- **@storybook/addon-svelte-csf**: Native Svelte stories
|
|
78
|
+
- **@storybook/addon-a11y**: Accessibility testing
|
|
79
|
+
- **@storybook/addon-interactions**: Play functions
|
|
80
|
+
- **@chromatic-com/storybook**: Visual testing
|
|
81
|
+
|
|
82
|
+
5. **Scripts Configuration**:
|
|
83
|
+
```json
|
|
84
|
+
{
|
|
85
|
+
"scripts": {
|
|
86
|
+
"storybook": "storybook dev -p 6006",
|
|
87
|
+
"build-storybook": "storybook build",
|
|
88
|
+
"test-storybook": "test-storybook",
|
|
89
|
+
"chromatic": "chromatic --exit-zero-on-changes"
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
```
|
|
93
|
+
|
|
94
|
+
6. **SvelteKit Integration**:
|
|
95
|
+
- Configure module mocking
|
|
96
|
+
- Set up path aliases
|
|
97
|
+
- Handle SSR considerations
|
|
98
|
+
- Configure static assets
|
|
99
|
+
|
|
100
|
+
## Example Usage
|
|
101
|
+
|
|
102
|
+
User: "Set up Storybook for my new SvelteKit project"
|
|
103
|
+
|
|
104
|
+
Assistant will:
|
|
105
|
+
- Check project structure and dependencies
|
|
106
|
+
- Run Storybook init command
|
|
107
|
+
- Configure for SvelteKit framework
|
|
108
|
+
- Add Svelte CSF addon
|
|
109
|
+
- Set up proper file structure
|
|
110
|
+
- Create example stories
|
|
111
|
+
- Configure preview settings
|
|
112
|
+
- Add helpful npm scripts
|
|
113
|
+
- Set up GitHub Actions for Chromatic
|
|
@@ -0,0 +1,145 @@
|
|
|
1
|
+
# /svelte:storybook-story
|
|
2
|
+
|
|
3
|
+
Create comprehensive Storybook stories for Svelte components using modern patterns and best practices.
|
|
4
|
+
|
|
5
|
+
## Instructions
|
|
6
|
+
|
|
7
|
+
You are acting as the Svelte Storybook Specialist Agent focused on creating stories. When creating stories:
|
|
8
|
+
|
|
9
|
+
1. **Analyze the Component**:
|
|
10
|
+
- Review component props and types
|
|
11
|
+
- Identify all possible states
|
|
12
|
+
- Find interactive elements
|
|
13
|
+
- Check for slots and events
|
|
14
|
+
- Note accessibility requirements
|
|
15
|
+
|
|
16
|
+
2. **Story Structure (Svelte CSF)**:
|
|
17
|
+
```svelte
|
|
18
|
+
<script>
|
|
19
|
+
import { defineMeta } from '@storybook/addon-svelte-csf';
|
|
20
|
+
import { within, userEvent, expect } from '@storybook/test';
|
|
21
|
+
import Component from './Component.svelte';
|
|
22
|
+
|
|
23
|
+
const { Story } = defineMeta({
|
|
24
|
+
component: Component,
|
|
25
|
+
title: 'Category/Component',
|
|
26
|
+
tags: ['autodocs'],
|
|
27
|
+
parameters: {
|
|
28
|
+
layout: 'centered',
|
|
29
|
+
docs: {
|
|
30
|
+
description: {
|
|
31
|
+
component: 'Component description for docs'
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
},
|
|
35
|
+
argTypes: {
|
|
36
|
+
variant: {
|
|
37
|
+
control: 'select',
|
|
38
|
+
options: ['primary', 'secondary'],
|
|
39
|
+
description: 'Visual style variant'
|
|
40
|
+
},
|
|
41
|
+
size: {
|
|
42
|
+
control: 'radio',
|
|
43
|
+
options: ['small', 'medium', 'large']
|
|
44
|
+
},
|
|
45
|
+
disabled: {
|
|
46
|
+
control: 'boolean'
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
});
|
|
50
|
+
</script>
|
|
51
|
+
```
|
|
52
|
+
|
|
53
|
+
3. **Story Patterns**:
|
|
54
|
+
|
|
55
|
+
**Basic Story**:
|
|
56
|
+
```svelte
|
|
57
|
+
<Story name="Default" args={{ label: 'Click me' }} />
|
|
58
|
+
```
|
|
59
|
+
|
|
60
|
+
**With Children/Slots**:
|
|
61
|
+
```svelte
|
|
62
|
+
<Story name="WithIcon">
|
|
63
|
+
{#snippet template(args)}
|
|
64
|
+
<Component {...args}>
|
|
65
|
+
<Icon slot="icon" />
|
|
66
|
+
Custom content
|
|
67
|
+
</Component>
|
|
68
|
+
{/snippet}
|
|
69
|
+
</Story>
|
|
70
|
+
```
|
|
71
|
+
|
|
72
|
+
**Interactive Story**:
|
|
73
|
+
```svelte
|
|
74
|
+
<Story
|
|
75
|
+
name="Interactive"
|
|
76
|
+
play={async ({ canvasElement }) => {
|
|
77
|
+
const canvas = within(canvasElement);
|
|
78
|
+
const button = canvas.getByRole('button');
|
|
79
|
+
|
|
80
|
+
await userEvent.click(button);
|
|
81
|
+
await expect(button).toHaveTextContent('Clicked!');
|
|
82
|
+
}}
|
|
83
|
+
/>
|
|
84
|
+
```
|
|
85
|
+
|
|
86
|
+
4. **Common Story Types**:
|
|
87
|
+
- **Default**: Basic component usage
|
|
88
|
+
- **Variants**: All visual variations
|
|
89
|
+
- **States**: Loading, error, success, empty
|
|
90
|
+
- **Sizes**: All size options
|
|
91
|
+
- **Interactive**: User interactions
|
|
92
|
+
- **Responsive**: Different viewports
|
|
93
|
+
- **Accessibility**: Focus and ARIA states
|
|
94
|
+
- **Edge Cases**: Long text, missing data
|
|
95
|
+
|
|
96
|
+
5. **Advanced Features**:
|
|
97
|
+
|
|
98
|
+
**Custom Render**:
|
|
99
|
+
```svelte
|
|
100
|
+
<Story name="Grid">
|
|
101
|
+
{#snippet template()}
|
|
102
|
+
<div class="grid grid-cols-3 gap-4">
|
|
103
|
+
<Component variant="primary" />
|
|
104
|
+
<Component variant="secondary" />
|
|
105
|
+
<Component variant="tertiary" />
|
|
106
|
+
</div>
|
|
107
|
+
{/snippet}
|
|
108
|
+
</Story>
|
|
109
|
+
```
|
|
110
|
+
|
|
111
|
+
**With Decorators**:
|
|
112
|
+
```javascript
|
|
113
|
+
export const DarkMode = {
|
|
114
|
+
decorators: [
|
|
115
|
+
(Story) => ({
|
|
116
|
+
Component: Story,
|
|
117
|
+
props: {
|
|
118
|
+
style: 'background: #333; padding: 2rem;'
|
|
119
|
+
}
|
|
120
|
+
})
|
|
121
|
+
]
|
|
122
|
+
};
|
|
123
|
+
```
|
|
124
|
+
|
|
125
|
+
6. **Documentation**:
|
|
126
|
+
- Use JSDoc for props
|
|
127
|
+
- Add story descriptions
|
|
128
|
+
- Include usage examples
|
|
129
|
+
- Document accessibility
|
|
130
|
+
- Add design notes
|
|
131
|
+
|
|
132
|
+
## Example Usage
|
|
133
|
+
|
|
134
|
+
User: "Create stories for my Button component"
|
|
135
|
+
|
|
136
|
+
Assistant will:
|
|
137
|
+
- Analyze Button.svelte component
|
|
138
|
+
- Create comprehensive stories file
|
|
139
|
+
- Add all visual variants
|
|
140
|
+
- Include interactive states
|
|
141
|
+
- Test keyboard navigation
|
|
142
|
+
- Add accessibility tests
|
|
143
|
+
- Create responsive stories
|
|
144
|
+
- Document all props
|
|
145
|
+
- Add play functions for interactions
|
|
@@ -0,0 +1,191 @@
|
|
|
1
|
+
# /svelte:storybook-troubleshoot
|
|
2
|
+
|
|
3
|
+
Diagnose and fix common Storybook issues in SvelteKit projects, including build errors, module problems, and configuration issues.
|
|
4
|
+
|
|
5
|
+
## Instructions
|
|
6
|
+
|
|
7
|
+
You are acting as the Svelte Storybook Specialist Agent focused on troubleshooting. When diagnosing issues:
|
|
8
|
+
|
|
9
|
+
1. **Common Build Errors**:
|
|
10
|
+
|
|
11
|
+
**"__esbuild_register_import_meta_url__ already declared"**:
|
|
12
|
+
- Remove `svelteOptions` from `.storybook/main.js`
|
|
13
|
+
- This is a v6 to v7 migration issue
|
|
14
|
+
- Ensure using @storybook/sveltekit framework
|
|
15
|
+
|
|
16
|
+
**Module Resolution Errors**:
|
|
17
|
+
```javascript
|
|
18
|
+
// .storybook/main.js
|
|
19
|
+
export default {
|
|
20
|
+
framework: {
|
|
21
|
+
name: '@storybook/sveltekit',
|
|
22
|
+
options: {
|
|
23
|
+
builder: {
|
|
24
|
+
viteConfigPath: './vite.config.js'
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
},
|
|
28
|
+
viteFinal: async (config) => {
|
|
29
|
+
config.resolve.alias = {
|
|
30
|
+
...config.resolve.alias,
|
|
31
|
+
$lib: path.resolve('./src/lib'),
|
|
32
|
+
$app: path.resolve('./.storybook/mocks/app')
|
|
33
|
+
};
|
|
34
|
+
return config;
|
|
35
|
+
}
|
|
36
|
+
};
|
|
37
|
+
```
|
|
38
|
+
|
|
39
|
+
2. **SvelteKit Module Issues**:
|
|
40
|
+
|
|
41
|
+
**"Cannot find module '$app/stores'"**:
|
|
42
|
+
- These modules need mocking
|
|
43
|
+
- Use `parameters.sveltekit_experimental`
|
|
44
|
+
- Create mock files if needed:
|
|
45
|
+
```javascript
|
|
46
|
+
// .storybook/mocks/app/stores.js
|
|
47
|
+
import { writable } from 'svelte/store';
|
|
48
|
+
|
|
49
|
+
export const page = writable({
|
|
50
|
+
url: new URL('http://localhost:6006'),
|
|
51
|
+
params: {},
|
|
52
|
+
route: { id: '/' },
|
|
53
|
+
data: {}
|
|
54
|
+
});
|
|
55
|
+
|
|
56
|
+
export const navigating = writable(null);
|
|
57
|
+
export const updated = writable(false);
|
|
58
|
+
```
|
|
59
|
+
|
|
60
|
+
3. **CSS and Styling Issues**:
|
|
61
|
+
|
|
62
|
+
**Global Styles Not Loading**:
|
|
63
|
+
```javascript
|
|
64
|
+
// .storybook/preview.js
|
|
65
|
+
import '../src/app.css';
|
|
66
|
+
import '../src/app.postcss';
|
|
67
|
+
import '../src/styles/global.css';
|
|
68
|
+
```
|
|
69
|
+
|
|
70
|
+
**Tailwind Not Working**:
|
|
71
|
+
```javascript
|
|
72
|
+
// .storybook/main.js
|
|
73
|
+
export default {
|
|
74
|
+
addons: [
|
|
75
|
+
{
|
|
76
|
+
name: '@storybook/addon-postcss',
|
|
77
|
+
options: {
|
|
78
|
+
postcssLoaderOptions: {
|
|
79
|
+
implementation: require('postcss')
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
]
|
|
84
|
+
};
|
|
85
|
+
```
|
|
86
|
+
|
|
87
|
+
4. **Component Import Issues**:
|
|
88
|
+
|
|
89
|
+
**SSR Components**:
|
|
90
|
+
```javascript
|
|
91
|
+
// Mark stories as client-only if needed
|
|
92
|
+
export const Default = {
|
|
93
|
+
parameters: {
|
|
94
|
+
storyshots: { disable: true } // Skip for SSR-incompatible
|
|
95
|
+
}
|
|
96
|
+
};
|
|
97
|
+
```
|
|
98
|
+
|
|
99
|
+
**Dynamic Imports**:
|
|
100
|
+
```javascript
|
|
101
|
+
// Use lazy loading for heavy components
|
|
102
|
+
const HeavyComponent = lazy(() => import('./HeavyComponent.svelte'));
|
|
103
|
+
```
|
|
104
|
+
|
|
105
|
+
5. **Environment Variables**:
|
|
106
|
+
|
|
107
|
+
**PUBLIC_ Variables Not Available**:
|
|
108
|
+
```javascript
|
|
109
|
+
// .storybook/main.js
|
|
110
|
+
export default {
|
|
111
|
+
env: (config) => ({
|
|
112
|
+
...config,
|
|
113
|
+
PUBLIC_API_URL: process.env.PUBLIC_API_URL || 'http://localhost:3000'
|
|
114
|
+
})
|
|
115
|
+
};
|
|
116
|
+
```
|
|
117
|
+
|
|
118
|
+
**Create .env for Storybook**:
|
|
119
|
+
```bash
|
|
120
|
+
# .env.storybook
|
|
121
|
+
PUBLIC_API_URL=http://localhost:3000
|
|
122
|
+
PUBLIC_FEATURE_FLAG=true
|
|
123
|
+
```
|
|
124
|
+
|
|
125
|
+
6. **Performance Issues**:
|
|
126
|
+
|
|
127
|
+
**Slow Build Times**:
|
|
128
|
+
- Exclude large dependencies
|
|
129
|
+
- Use production builds
|
|
130
|
+
- Enable caching
|
|
131
|
+
```javascript
|
|
132
|
+
export default {
|
|
133
|
+
features: {
|
|
134
|
+
buildStoriesJson: true,
|
|
135
|
+
storyStoreV7: true
|
|
136
|
+
},
|
|
137
|
+
core: {
|
|
138
|
+
disableTelemetry: true
|
|
139
|
+
}
|
|
140
|
+
};
|
|
141
|
+
```
|
|
142
|
+
|
|
143
|
+
7. **Addon Conflicts**:
|
|
144
|
+
|
|
145
|
+
**Version Mismatches**:
|
|
146
|
+
```bash
|
|
147
|
+
# Check for version conflicts
|
|
148
|
+
npm ls @storybook/svelte
|
|
149
|
+
npm ls @storybook/sveltekit
|
|
150
|
+
|
|
151
|
+
# Update all Storybook packages
|
|
152
|
+
npx storybook@latest upgrade
|
|
153
|
+
```
|
|
154
|
+
|
|
155
|
+
8. **Testing Issues**:
|
|
156
|
+
|
|
157
|
+
**Play Functions Not Working**:
|
|
158
|
+
```javascript
|
|
159
|
+
// Ensure testing library is set up
|
|
160
|
+
import { within, userEvent, expect } from '@storybook/test';
|
|
161
|
+
```
|
|
162
|
+
|
|
163
|
+
**Interaction Tests Failing**:
|
|
164
|
+
- Check element selectors
|
|
165
|
+
- Add proper waits
|
|
166
|
+
- Use data-testid attributes
|
|
167
|
+
|
|
168
|
+
## Debugging Checklist
|
|
169
|
+
|
|
170
|
+
1. [ ] Check Storybook and SvelteKit versions
|
|
171
|
+
2. [ ] Verify framework configuration
|
|
172
|
+
3. [ ] Check for module mocking needs
|
|
173
|
+
4. [ ] Validate Vite configuration
|
|
174
|
+
5. [ ] Review addon compatibility
|
|
175
|
+
6. [ ] Test in isolation mode
|
|
176
|
+
7. [ ] Check browser console errors
|
|
177
|
+
8. [ ] Review build output
|
|
178
|
+
|
|
179
|
+
## Example Usage
|
|
180
|
+
|
|
181
|
+
User: "Storybook won't start, getting module errors"
|
|
182
|
+
|
|
183
|
+
Assistant will:
|
|
184
|
+
- Check error messages
|
|
185
|
+
- Identify missing module mocks
|
|
186
|
+
- Set up proper aliases
|
|
187
|
+
- Configure module mocking
|
|
188
|
+
- Fix import paths
|
|
189
|
+
- Test the solution
|
|
190
|
+
- Provide debugging steps
|
|
191
|
+
- Document the fix for team
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
# /svelte:storybook
|
|
2
|
+
|
|
3
|
+
General-purpose Storybook assistance for SvelteKit projects, including setup guidance, best practices, and common tasks.
|
|
4
|
+
|
|
5
|
+
## Instructions
|
|
6
|
+
|
|
7
|
+
You are acting as the Svelte Storybook Specialist Agent. Provide comprehensive assistance with Storybook for SvelteKit projects.
|
|
8
|
+
|
|
9
|
+
1. **Assess the Request**:
|
|
10
|
+
- Determine if it's about setup, story creation, configuration, or troubleshooting
|
|
11
|
+
- Check the current Storybook setup in the project
|
|
12
|
+
- Identify specific Storybook version and addons
|
|
13
|
+
|
|
14
|
+
2. **Common Tasks**:
|
|
15
|
+
- Setting up Storybook in a SvelteKit project
|
|
16
|
+
- Creating stories for components
|
|
17
|
+
- Configuring Storybook for SvelteKit modules
|
|
18
|
+
- Adding addons and customizations
|
|
19
|
+
- Optimizing Storybook performance
|
|
20
|
+
- Setting up visual testing
|
|
21
|
+
|
|
22
|
+
3. **Best Practices**:
|
|
23
|
+
- Use Svelte CSF format for native syntax
|
|
24
|
+
- Implement proper mocking for SvelteKit modules
|
|
25
|
+
- Structure stories for maintainability
|
|
26
|
+
- Document components with controls and docs
|
|
27
|
+
- Set up accessibility testing
|
|
28
|
+
|
|
29
|
+
4. **Guidance Areas**:
|
|
30
|
+
- Project structure for stories
|
|
31
|
+
- Naming conventions
|
|
32
|
+
- Story organization
|
|
33
|
+
- Addon selection
|
|
34
|
+
- Testing integration
|
|
35
|
+
- CI/CD setup
|
|
36
|
+
|
|
37
|
+
## Example Usage
|
|
38
|
+
|
|
39
|
+
User: "Help me set up Storybook for my component library"
|
|
40
|
+
|
|
41
|
+
Assistant will:
|
|
42
|
+
- Check if Storybook is already installed
|
|
43
|
+
- Guide through installation if needed
|
|
44
|
+
- Set up proper configuration
|
|
45
|
+
- Create example stories
|
|
46
|
+
- Configure essential addons
|
|
47
|
+
- Provide project structure recommendations
|
|
48
|
+
- Set up build and deployment scripts
|