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,139 @@
|
|
|
1
|
+
# Optimize Build Command
|
|
2
|
+
|
|
3
|
+
Optimize build processes and speed
|
|
4
|
+
|
|
5
|
+
## Instructions
|
|
6
|
+
|
|
7
|
+
Follow this systematic approach to optimize build performance: **$ARGUMENTS**
|
|
8
|
+
|
|
9
|
+
1. **Build System Analysis**
|
|
10
|
+
- Identify the build system in use (Webpack, Vite, Rollup, Gradle, Maven, Cargo, etc.)
|
|
11
|
+
- Review build configuration files and settings
|
|
12
|
+
- Analyze current build times and output sizes
|
|
13
|
+
- Map the complete build pipeline and dependencies
|
|
14
|
+
|
|
15
|
+
2. **Performance Baseline**
|
|
16
|
+
- Measure current build times for different scenarios:
|
|
17
|
+
- Clean build (from scratch)
|
|
18
|
+
- Incremental build (with cache)
|
|
19
|
+
- Development vs production builds
|
|
20
|
+
- Document bundle sizes and asset sizes
|
|
21
|
+
- Identify the slowest parts of the build process
|
|
22
|
+
|
|
23
|
+
3. **Dependency Optimization**
|
|
24
|
+
- Analyze build dependencies and their impact
|
|
25
|
+
- Remove unused dependencies from build process
|
|
26
|
+
- Update build tools to latest stable versions
|
|
27
|
+
- Consider alternative, faster build tools
|
|
28
|
+
|
|
29
|
+
4. **Caching Strategy**
|
|
30
|
+
- Enable and optimize build caching
|
|
31
|
+
- Configure persistent cache for CI/CD
|
|
32
|
+
- Set up shared cache for team development
|
|
33
|
+
- Implement incremental compilation where possible
|
|
34
|
+
|
|
35
|
+
5. **Bundle Analysis**
|
|
36
|
+
- Analyze bundle composition and sizes
|
|
37
|
+
- Identify large dependencies and duplicates
|
|
38
|
+
- Use bundle analyzers specific to your build tool
|
|
39
|
+
- Look for opportunities to split bundles
|
|
40
|
+
|
|
41
|
+
6. **Code Splitting and Lazy Loading**
|
|
42
|
+
- Implement dynamic imports and code splitting
|
|
43
|
+
- Set up route-based splitting for SPAs
|
|
44
|
+
- Configure vendor chunk separation
|
|
45
|
+
- Optimize chunk sizes and loading strategies
|
|
46
|
+
|
|
47
|
+
7. **Asset Optimization**
|
|
48
|
+
- Optimize images (compression, format conversion, lazy loading)
|
|
49
|
+
- Minify CSS and JavaScript
|
|
50
|
+
- Configure tree shaking to remove dead code
|
|
51
|
+
- Implement asset compression (gzip, brotli)
|
|
52
|
+
|
|
53
|
+
8. **Development Build Optimization**
|
|
54
|
+
- Enable fast refresh/hot reloading
|
|
55
|
+
- Use development-specific optimizations
|
|
56
|
+
- Configure source maps for better debugging
|
|
57
|
+
- Optimize development server settings
|
|
58
|
+
|
|
59
|
+
9. **Production Build Optimization**
|
|
60
|
+
- Enable all production optimizations
|
|
61
|
+
- Configure dead code elimination
|
|
62
|
+
- Set up proper minification and compression
|
|
63
|
+
- Optimize for smaller bundle sizes
|
|
64
|
+
|
|
65
|
+
10. **Parallel Processing**
|
|
66
|
+
- Enable parallel processing where supported
|
|
67
|
+
- Configure worker threads for build tasks
|
|
68
|
+
- Optimize for multi-core systems
|
|
69
|
+
- Use parallel compilation for TypeScript/Babel
|
|
70
|
+
|
|
71
|
+
11. **File System Optimization**
|
|
72
|
+
- Optimize file watching and polling
|
|
73
|
+
- Configure proper include/exclude patterns
|
|
74
|
+
- Use efficient file loaders and processors
|
|
75
|
+
- Minimize file I/O operations
|
|
76
|
+
|
|
77
|
+
12. **CI/CD Build Optimization**
|
|
78
|
+
- Optimize CI build environments and resources
|
|
79
|
+
- Implement proper caching strategies for CI
|
|
80
|
+
- Use build matrices efficiently
|
|
81
|
+
- Configure parallel CI jobs where beneficial
|
|
82
|
+
|
|
83
|
+
13. **Memory Usage Optimization**
|
|
84
|
+
- Monitor and optimize memory usage during builds
|
|
85
|
+
- Configure heap sizes for build tools
|
|
86
|
+
- Identify and fix memory leaks in build process
|
|
87
|
+
- Use memory-efficient compilation options
|
|
88
|
+
|
|
89
|
+
14. **Output Optimization**
|
|
90
|
+
- Configure compression and encoding
|
|
91
|
+
- Optimize file naming and hashing strategies
|
|
92
|
+
- Set up proper asset manifests
|
|
93
|
+
- Implement efficient asset serving
|
|
94
|
+
|
|
95
|
+
15. **Monitoring and Profiling**
|
|
96
|
+
- Set up build time monitoring
|
|
97
|
+
- Use build profiling tools to identify bottlenecks
|
|
98
|
+
- Track bundle size changes over time
|
|
99
|
+
- Monitor build performance regressions
|
|
100
|
+
|
|
101
|
+
16. **Tool-Specific Optimizations**
|
|
102
|
+
|
|
103
|
+
**For Webpack:**
|
|
104
|
+
- Configure optimization.splitChunks
|
|
105
|
+
- Use thread-loader for parallel processing
|
|
106
|
+
- Enable optimization.usedExports for tree shaking
|
|
107
|
+
- Configure resolve.modules and resolve.extensions
|
|
108
|
+
|
|
109
|
+
**For Vite:**
|
|
110
|
+
- Configure build.rollupOptions
|
|
111
|
+
- Use esbuild for faster transpilation
|
|
112
|
+
- Optimize dependency pre-bundling
|
|
113
|
+
- Configure build.chunkSizeWarningLimit
|
|
114
|
+
|
|
115
|
+
**For TypeScript:**
|
|
116
|
+
- Use incremental compilation
|
|
117
|
+
- Configure project references
|
|
118
|
+
- Optimize tsconfig.json settings
|
|
119
|
+
- Use skipLibCheck when appropriate
|
|
120
|
+
|
|
121
|
+
17. **Environment-Specific Configuration**
|
|
122
|
+
- Separate development and production configurations
|
|
123
|
+
- Use environment variables for build optimization
|
|
124
|
+
- Configure feature flags for conditional builds
|
|
125
|
+
- Optimize for target environments
|
|
126
|
+
|
|
127
|
+
18. **Testing Build Optimizations**
|
|
128
|
+
- Test build outputs for correctness
|
|
129
|
+
- Verify all optimizations work in target environments
|
|
130
|
+
- Check for any breaking changes from optimizations
|
|
131
|
+
- Measure and document performance improvements
|
|
132
|
+
|
|
133
|
+
19. **Documentation and Maintenance**
|
|
134
|
+
- Document all optimization changes and their impact
|
|
135
|
+
- Create build performance monitoring dashboard
|
|
136
|
+
- Set up alerts for build performance regressions
|
|
137
|
+
- Regular review and updates of build configuration
|
|
138
|
+
|
|
139
|
+
Focus on the optimizations that provide the biggest impact for your specific project and team workflow. Always measure before and after to quantify improvements.
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
---
|
|
2
|
+
allowed-tools: Read, Bash, Grep, Glob
|
|
3
|
+
argument-hint: [build-tool] | --webpack | --vite | --rollup
|
|
4
|
+
description: Reduce and optimize bundle sizes through analysis, configuration, and code splitting strategies
|
|
5
|
+
model: sonnet
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
# Optimize Bundle Size
|
|
9
|
+
|
|
10
|
+
Reduce and optimize bundle sizes: **$ARGUMENTS**
|
|
11
|
+
|
|
12
|
+
## Instructions
|
|
13
|
+
|
|
14
|
+
1. **Bundle Analysis and Assessment**
|
|
15
|
+
- Analyze current bundle size and composition using webpack-bundle-analyzer or similar tools
|
|
16
|
+
- Identify large dependencies and unused code across all bundles
|
|
17
|
+
- Assess current build configuration and optimization settings
|
|
18
|
+
- Create baseline measurements for optimization tracking
|
|
19
|
+
- Document current performance metrics and loading times
|
|
20
|
+
|
|
21
|
+
2. **Build Tool Configuration**
|
|
22
|
+
- Configure build tool optimization settings for production builds
|
|
23
|
+
- Enable code splitting and chunk optimization features
|
|
24
|
+
- Configure tree shaking and dead code elimination
|
|
25
|
+
- Set up bundle analyzers and visualization tools
|
|
26
|
+
- Optimize build performance and output sizes
|
|
27
|
+
|
|
28
|
+
3. **Code Splitting and Lazy Loading**
|
|
29
|
+
- Implement route-based code splitting for single-page applications
|
|
30
|
+
- Set up dynamic imports for components and modules
|
|
31
|
+
- Configure lazy loading for non-critical resources
|
|
32
|
+
- Optimize chunk sizes and loading strategies
|
|
33
|
+
- Implement progressive loading patterns
|
|
34
|
+
|
|
35
|
+
4. **Tree Shaking and Dead Code Elimination**
|
|
36
|
+
- Configure build tools for optimal tree shaking
|
|
37
|
+
- Mark packages as side-effect free where appropriate
|
|
38
|
+
- Optimize import statements for better tree shaking
|
|
39
|
+
- Use ES6 modules and avoid CommonJS where possible
|
|
40
|
+
- Implement babel plugins for automatic import optimization
|
|
41
|
+
|
|
42
|
+
5. **Dependency Optimization**
|
|
43
|
+
- Analyze and audit package dependencies for size impact
|
|
44
|
+
- Replace large libraries with smaller alternatives
|
|
45
|
+
- Use specific imports instead of importing entire libraries
|
|
46
|
+
- Implement dependency deduplication strategies
|
|
47
|
+
- Configure external dependencies and CDN usage
|
|
48
|
+
|
|
49
|
+
6. **Asset Optimization**
|
|
50
|
+
- Optimize images through compression and format conversion
|
|
51
|
+
- Implement responsive image loading strategies
|
|
52
|
+
- Configure asset minification and compression
|
|
53
|
+
- Set up efficient file loaders and processors
|
|
54
|
+
- Optimize font loading and subsetting
|
|
55
|
+
|
|
56
|
+
7. **Module Federation and Micro-frontends**
|
|
57
|
+
- Implement module federation for large applications
|
|
58
|
+
- Configure shared dependencies and runtime optimization
|
|
59
|
+
- Set up micro-frontend architecture for code sharing
|
|
60
|
+
- Optimize remote module loading and caching
|
|
61
|
+
- Implement federation performance monitoring
|
|
62
|
+
|
|
63
|
+
8. **Performance Monitoring and Measurement**
|
|
64
|
+
- Set up bundle size monitoring and tracking
|
|
65
|
+
- Configure automated bundle analysis in CI/CD
|
|
66
|
+
- Monitor bundle size changes over time
|
|
67
|
+
- Set up performance budgets and alerts
|
|
68
|
+
- Track loading performance metrics
|
|
69
|
+
|
|
70
|
+
9. **Progressive Loading Strategies**
|
|
71
|
+
- Implement resource hints (preload, prefetch, dns-prefetch)
|
|
72
|
+
- Configure service workers for caching strategies
|
|
73
|
+
- Set up intersection observer for lazy loading
|
|
74
|
+
- Optimize critical resource loading priorities
|
|
75
|
+
- Implement adaptive loading based on connection speed
|
|
76
|
+
|
|
77
|
+
10. **Validation and Continuous Monitoring**
|
|
78
|
+
- Set up automated bundle size validation in CI/CD
|
|
79
|
+
- Configure bundle size thresholds and alerts
|
|
80
|
+
- Implement bundle size regression testing
|
|
81
|
+
- Monitor real-world loading performance
|
|
82
|
+
- Set up automated optimization recommendations
|
|
83
|
+
|
|
84
|
+
Focus on optimizations that provide the most significant bundle size reductions while maintaining application functionality. Always measure the impact of changes on both bundle size and runtime performance.
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
---
|
|
2
|
+
allowed-tools: Read, Bash, Grep, Glob
|
|
3
|
+
argument-hint: [database-type] | --postgresql | --mysql | --mongodb
|
|
4
|
+
description: Optimize database queries, indexing, and performance for improved response times and scalability
|
|
5
|
+
model: sonnet
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
# Optimize Database Performance
|
|
9
|
+
|
|
10
|
+
Optimize database queries and performance: **$ARGUMENTS**
|
|
11
|
+
|
|
12
|
+
## Instructions
|
|
13
|
+
|
|
14
|
+
1. **Database Performance Analysis**
|
|
15
|
+
- Analyze current database performance and identify bottlenecks
|
|
16
|
+
- Review slow query logs and execution plans
|
|
17
|
+
- Assess database schema design and normalization
|
|
18
|
+
- Evaluate indexing strategy and query patterns
|
|
19
|
+
- Monitor database resource utilization (CPU, memory, I/O)
|
|
20
|
+
|
|
21
|
+
2. **Query Optimization**
|
|
22
|
+
- Identify and optimize slow-performing queries
|
|
23
|
+
- Analyze query execution plans and optimization strategies
|
|
24
|
+
- Rewrite queries for better performance and efficiency
|
|
25
|
+
- Implement query hints and optimization directives
|
|
26
|
+
- Configure query timeout and resource limits
|
|
27
|
+
|
|
28
|
+
3. **Index Strategy Optimization**
|
|
29
|
+
- Analyze existing indexes and their usage patterns
|
|
30
|
+
- Design optimal indexing strategy for query patterns
|
|
31
|
+
- Create composite indexes for multi-column queries
|
|
32
|
+
- Implement covering indexes to avoid table lookups
|
|
33
|
+
- Remove unused and redundant indexes
|
|
34
|
+
|
|
35
|
+
4. **Schema Design Optimization**
|
|
36
|
+
- Optimize table structure and data types
|
|
37
|
+
- Implement denormalization strategies for read-heavy workloads
|
|
38
|
+
- Design partitioning strategies for large tables
|
|
39
|
+
- Create materialized views for complex aggregations
|
|
40
|
+
- Optimize foreign key relationships and constraints
|
|
41
|
+
|
|
42
|
+
5. **Connection Pool Optimization**
|
|
43
|
+
- Configure optimal database connection pooling settings
|
|
44
|
+
- Tune connection pool size and timeout settings
|
|
45
|
+
- Implement connection monitoring and health checks
|
|
46
|
+
- Optimize connection lifecycle and cleanup procedures
|
|
47
|
+
- Configure connection security and SSL settings
|
|
48
|
+
|
|
49
|
+
6. **Query Result Caching**
|
|
50
|
+
- Implement intelligent database result caching
|
|
51
|
+
- Design cache invalidation strategies for data consistency
|
|
52
|
+
- Set up query-level and result-set caching
|
|
53
|
+
- Configure cache expiration and refresh policies
|
|
54
|
+
- Monitor cache effectiveness and hit rates
|
|
55
|
+
|
|
56
|
+
7. **Database Monitoring and Profiling**
|
|
57
|
+
- Set up comprehensive database performance monitoring
|
|
58
|
+
- Monitor query performance and resource usage
|
|
59
|
+
- Track database connections and session activity
|
|
60
|
+
- Implement alerting for performance degradation
|
|
61
|
+
- Configure automated performance reporting
|
|
62
|
+
|
|
63
|
+
8. **Read Replica and Load Balancing**
|
|
64
|
+
- Configure read replicas for query distribution
|
|
65
|
+
- Implement intelligent read/write query routing
|
|
66
|
+
- Set up load balancing across database instances
|
|
67
|
+
- Monitor replication lag and consistency
|
|
68
|
+
- Configure failover and disaster recovery procedures
|
|
69
|
+
|
|
70
|
+
9. **Database Vacuum and Maintenance**
|
|
71
|
+
- Implement automated database maintenance procedures
|
|
72
|
+
- Configure vacuum and analyze operations for optimal performance
|
|
73
|
+
- Set up index rebuilding and maintenance schedules
|
|
74
|
+
- Monitor table bloat and fragmentation
|
|
75
|
+
- Implement automated cleanup and archival strategies
|
|
76
|
+
|
|
77
|
+
10. **Performance Testing and Benchmarking**
|
|
78
|
+
- Set up database performance testing frameworks
|
|
79
|
+
- Implement load testing scenarios for realistic workloads
|
|
80
|
+
- Benchmark query performance under different conditions
|
|
81
|
+
- Test database scalability and capacity limits
|
|
82
|
+
- Monitor performance regression and improvements
|
|
83
|
+
|
|
84
|
+
Focus on database optimizations that provide the most significant performance improvements for your specific workload patterns. Always measure performance before and after changes to validate optimizations.
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
---
|
|
2
|
+
allowed-tools: Read, Bash, Grep, Glob
|
|
3
|
+
argument-hint: [target-area] | --frontend | --backend | --database
|
|
4
|
+
description: Comprehensive memory usage optimization with leak detection, garbage collection tuning, and memory profiling
|
|
5
|
+
model: sonnet
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
# Optimize Memory Usage
|
|
9
|
+
|
|
10
|
+
Analyze and optimize memory usage patterns to prevent leaks and improve application performance: **$ARGUMENTS**
|
|
11
|
+
|
|
12
|
+
## Instructions
|
|
13
|
+
|
|
14
|
+
1. **Memory Analysis and Profiling**
|
|
15
|
+
- Profile current memory usage patterns using appropriate tools (Chrome DevTools, Node.js --inspect, Valgrind)
|
|
16
|
+
- Identify memory leaks and excessive memory consumption hotspots
|
|
17
|
+
- Analyze garbage collection patterns and performance impact
|
|
18
|
+
- Create baseline measurements for optimization tracking
|
|
19
|
+
- Document memory allocation hotspots and growth patterns over time
|
|
20
|
+
|
|
21
|
+
2. **Memory Leak Detection**
|
|
22
|
+
- Set up memory leak detection for different runtime environments
|
|
23
|
+
- Monitor heap snapshots and compare over time intervals
|
|
24
|
+
- Track DOM node leaks in browser applications
|
|
25
|
+
- Implement event listener cleanup and monitoring
|
|
26
|
+
- Use profiling tools to identify growing memory patterns
|
|
27
|
+
|
|
28
|
+
3. **Garbage Collection Optimization**
|
|
29
|
+
- Configure garbage collection settings for your runtime environment
|
|
30
|
+
- Tune Node.js heap sizes and GC flags for optimal performance
|
|
31
|
+
- Monitor GC pause times and frequency
|
|
32
|
+
- Implement GC performance monitoring and alerting
|
|
33
|
+
- Optimize object lifecycles to reduce GC pressure
|
|
34
|
+
|
|
35
|
+
4. **Memory Pool and Object Reuse**
|
|
36
|
+
- Implement object pooling for frequently allocated objects
|
|
37
|
+
- Create buffer pools for Node.js applications
|
|
38
|
+
- Reuse DOM elements and components in frontend applications
|
|
39
|
+
- Design memory-efficient data structures (circular buffers, sparse arrays)
|
|
40
|
+
- Pre-allocate objects to reduce runtime allocation overhead
|
|
41
|
+
|
|
42
|
+
5. **String and Text Optimization**
|
|
43
|
+
- Implement string interning for frequently used strings
|
|
44
|
+
- Optimize string concatenation and manipulation operations
|
|
45
|
+
- Use efficient text processing algorithms
|
|
46
|
+
- Minimize string duplication across the application
|
|
47
|
+
- Consider string compression for large text data
|
|
48
|
+
|
|
49
|
+
6. **Database Connection Optimization**
|
|
50
|
+
- Implement proper connection pooling with appropriate limits
|
|
51
|
+
- Configure connection timeouts and cleanup procedures
|
|
52
|
+
- Optimize query result caching and memory usage
|
|
53
|
+
- Monitor database connection memory overhead
|
|
54
|
+
- Implement connection leak detection and prevention
|
|
55
|
+
|
|
56
|
+
7. **Frontend Memory Optimization**
|
|
57
|
+
- Optimize component lifecycle and cleanup
|
|
58
|
+
- Implement proper event listener cleanup
|
|
59
|
+
- Use lazy loading for images and components
|
|
60
|
+
- Minimize bundle size and code splitting
|
|
61
|
+
- Monitor and optimize browser memory usage patterns
|
|
62
|
+
|
|
63
|
+
8. **Backend Memory Optimization**
|
|
64
|
+
- Optimize server request handling and cleanup
|
|
65
|
+
- Implement streaming for large data processing
|
|
66
|
+
- Configure appropriate memory limits and monitoring
|
|
67
|
+
- Optimize middleware and request lifecycle
|
|
68
|
+
- Use memory-efficient data processing patterns
|
|
69
|
+
|
|
70
|
+
9. **Container and Deployment Optimization**
|
|
71
|
+
- Configure appropriate container memory limits
|
|
72
|
+
- Optimize Docker image layers for memory efficiency
|
|
73
|
+
- Monitor memory usage in production environments
|
|
74
|
+
- Implement memory-based auto-scaling policies
|
|
75
|
+
- Set up memory usage alerting and monitoring
|
|
76
|
+
|
|
77
|
+
10. **Memory Monitoring and Alerting**
|
|
78
|
+
- Set up real-time memory monitoring dashboards
|
|
79
|
+
- Configure memory usage alerts and thresholds
|
|
80
|
+
- Implement memory leak detection in production
|
|
81
|
+
- Track memory performance metrics over time
|
|
82
|
+
- Create automated memory optimization testing
|
|
83
|
+
|
|
84
|
+
11. **Production Memory Management**
|
|
85
|
+
- Implement graceful memory pressure handling
|
|
86
|
+
- Configure memory-based health checks
|
|
87
|
+
- Set up memory usage trending and analysis
|
|
88
|
+
- Implement emergency memory cleanup procedures
|
|
89
|
+
- Monitor and optimize memory usage patterns
|
|
90
|
+
|
|
91
|
+
Focus on the specific memory optimization strategies that provide the biggest impact for your target environment. Always measure memory usage before and after optimizations to quantify improvements.
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
---
|
|
2
|
+
allowed-tools: Read, Bash, Grep, Glob
|
|
3
|
+
argument-hint: [target-area] | --frontend | --backend | --full
|
|
4
|
+
description: Comprehensive performance audit with metrics, bottleneck identification, and optimization recommendations
|
|
5
|
+
model: sonnet
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
# Performance Audit
|
|
9
|
+
|
|
10
|
+
Conduct comprehensive performance audit: $ARGUMENTS
|
|
11
|
+
|
|
12
|
+
## Current Performance Context
|
|
13
|
+
|
|
14
|
+
- Bundle analysis: !`npm run build -- --analyze 2>/dev/null || echo "No build analyzer"`
|
|
15
|
+
- Dependencies: !`npm list --depth=0 --prod 2>/dev/null | head -10`
|
|
16
|
+
- Build time: !`time npm run build >/dev/null 2>&1 || echo "No build script"`
|
|
17
|
+
- Performance config: @webpack.config.js or @vite.config.js or @next.config.js (if exists)
|
|
18
|
+
|
|
19
|
+
## Task
|
|
20
|
+
|
|
21
|
+
Conduct comprehensive performance audit following these steps:
|
|
22
|
+
|
|
23
|
+
1. **Technology Stack Analysis**
|
|
24
|
+
- Identify the primary language, framework, and runtime environment
|
|
25
|
+
- Review build tools and optimization configurations
|
|
26
|
+
- Check for performance monitoring tools already in place
|
|
27
|
+
|
|
28
|
+
2. **Code Performance Analysis**
|
|
29
|
+
- Identify inefficient algorithms and data structures
|
|
30
|
+
- Look for nested loops and O(n²) operations
|
|
31
|
+
- Check for unnecessary computations and redundant operations
|
|
32
|
+
- Review memory allocation patterns and potential leaks
|
|
33
|
+
|
|
34
|
+
3. **Database Performance**
|
|
35
|
+
- Analyze database queries for efficiency
|
|
36
|
+
- Check for missing indexes and slow queries
|
|
37
|
+
- Review connection pooling and database configuration
|
|
38
|
+
- Identify N+1 query problems and excessive database calls
|
|
39
|
+
|
|
40
|
+
4. **Frontend Performance (if applicable)**
|
|
41
|
+
- Analyze bundle size and chunk optimization
|
|
42
|
+
- Check for unused code and dependencies
|
|
43
|
+
- Review image optimization and lazy loading
|
|
44
|
+
- Examine render performance and re-render cycles
|
|
45
|
+
- Check for memory leaks in UI components
|
|
46
|
+
|
|
47
|
+
5. **Network Performance**
|
|
48
|
+
- Review API call patterns and caching strategies
|
|
49
|
+
- Check for unnecessary network requests
|
|
50
|
+
- Analyze payload sizes and compression
|
|
51
|
+
- Examine CDN usage and static asset optimization
|
|
52
|
+
|
|
53
|
+
6. **Asynchronous Operations**
|
|
54
|
+
- Review async/await usage and promise handling
|
|
55
|
+
- Check for blocking operations and race conditions
|
|
56
|
+
- Analyze task queuing and background processing
|
|
57
|
+
- Identify opportunities for parallel execution
|
|
58
|
+
|
|
59
|
+
7. **Memory Usage**
|
|
60
|
+
- Check for memory leaks and excessive memory consumption
|
|
61
|
+
- Review garbage collection patterns
|
|
62
|
+
- Analyze object lifecycle and cleanup
|
|
63
|
+
- Identify large objects and unnecessary data retention
|
|
64
|
+
|
|
65
|
+
8. **Build & Deployment Performance**
|
|
66
|
+
- Analyze build times and optimization opportunities
|
|
67
|
+
- Review dependency bundling and tree shaking
|
|
68
|
+
- Check for development vs production optimizations
|
|
69
|
+
- Examine deployment pipeline efficiency
|
|
70
|
+
|
|
71
|
+
9. **Performance Monitoring**
|
|
72
|
+
- Check existing performance metrics and monitoring
|
|
73
|
+
- Identify key performance indicators (KPIs) to track
|
|
74
|
+
- Review alerting and performance thresholds
|
|
75
|
+
- Suggest performance testing strategies
|
|
76
|
+
|
|
77
|
+
10. **Benchmarking & Profiling**
|
|
78
|
+
- Run performance profiling tools appropriate for the stack
|
|
79
|
+
- Create benchmarks for critical code paths
|
|
80
|
+
- Measure before and after optimization impact
|
|
81
|
+
- Document performance baselines
|
|
82
|
+
|
|
83
|
+
11. **Optimization Recommendations**
|
|
84
|
+
- Prioritize optimizations by impact and effort
|
|
85
|
+
- Provide specific code examples and alternatives
|
|
86
|
+
- Suggest architectural improvements for scalability
|
|
87
|
+
- Recommend appropriate performance tools and libraries
|
|
88
|
+
|
|
89
|
+
Include specific file paths, line numbers, and measurable metrics where possible. Focus on high-impact, low-effort optimizations first.
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
---
|
|
2
|
+
allowed-tools: Read, Bash, Grep, Glob
|
|
3
|
+
argument-hint: [cdn-provider] | --cloudflare | --aws | --fastly
|
|
4
|
+
description: Configure CDN for optimal content delivery, caching, and global performance optimization
|
|
5
|
+
model: sonnet
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
# Setup CDN Optimization
|
|
9
|
+
|
|
10
|
+
Configure CDN for optimal delivery: **$ARGUMENTS**
|
|
11
|
+
|
|
12
|
+
## Instructions
|
|
13
|
+
|
|
14
|
+
1. **CDN Strategy and Provider Selection**
|
|
15
|
+
- Analyze application traffic patterns and global user distribution
|
|
16
|
+
- Evaluate CDN providers based on performance, cost, and features
|
|
17
|
+
- Assess content types and specific caching requirements
|
|
18
|
+
- Plan CDN architecture and edge location strategy
|
|
19
|
+
- Define performance and cost optimization goals
|
|
20
|
+
|
|
21
|
+
2. **CDN Configuration and Setup**
|
|
22
|
+
- Configure CDN with optimal settings for your content types
|
|
23
|
+
- Set up origin servers and failover configurations
|
|
24
|
+
- Configure SSL/TLS certificates and security settings
|
|
25
|
+
- Implement custom domain and DNS configuration
|
|
26
|
+
- Set up monitoring and analytics tracking
|
|
27
|
+
|
|
28
|
+
3. **Static Asset Optimization**
|
|
29
|
+
- Optimize asset build process for CDN delivery
|
|
30
|
+
- Configure content hashing and versioning strategies
|
|
31
|
+
- Set up asset bundling and code splitting for CDN
|
|
32
|
+
- Implement responsive image delivery and optimization
|
|
33
|
+
- Configure font loading and optimization strategies
|
|
34
|
+
|
|
35
|
+
4. **Compression and Optimization**
|
|
36
|
+
- Configure Gzip and Brotli compression settings
|
|
37
|
+
- Set up build-time compression for static assets
|
|
38
|
+
- Implement dynamic compression for API responses
|
|
39
|
+
- Configure minification and asset optimization
|
|
40
|
+
- Set up progressive image formats (WebP, AVIF)
|
|
41
|
+
|
|
42
|
+
5. **Cache Headers and Policies**
|
|
43
|
+
- Design intelligent caching strategies for different content types
|
|
44
|
+
- Configure cache control headers and TTL values
|
|
45
|
+
- Implement ETags and conditional request handling
|
|
46
|
+
- Set up cache hierarchy and multi-tier caching
|
|
47
|
+
- Configure cache warming and preloading strategies
|
|
48
|
+
|
|
49
|
+
6. **Image Optimization and Delivery**
|
|
50
|
+
- Implement responsive image delivery with multiple formats
|
|
51
|
+
- Set up automatic image compression and optimization
|
|
52
|
+
- Configure lazy loading and progressive image loading
|
|
53
|
+
- Implement image resizing and format conversion
|
|
54
|
+
- Set up WebP and AVIF format support with fallbacks
|
|
55
|
+
|
|
56
|
+
7. **CDN Purging and Cache Invalidation**
|
|
57
|
+
- Implement intelligent cache invalidation strategies
|
|
58
|
+
- Set up automated purging for deployment pipelines
|
|
59
|
+
- Configure selective purging by tags or patterns
|
|
60
|
+
- Implement real-time cache invalidation for dynamic content
|
|
61
|
+
- Set up cache invalidation monitoring and alerts
|
|
62
|
+
|
|
63
|
+
8. **Performance Monitoring and Analytics**
|
|
64
|
+
- Set up CDN performance monitoring and metrics tracking
|
|
65
|
+
- Monitor cache hit ratios and bandwidth usage
|
|
66
|
+
- Track response times and error rates across regions
|
|
67
|
+
- Implement real user monitoring for CDN performance
|
|
68
|
+
- Set up alerts for performance degradation
|
|
69
|
+
|
|
70
|
+
9. **Security and Access Control**
|
|
71
|
+
- Configure CDN security headers and policies
|
|
72
|
+
- Implement hotlink protection and referrer validation
|
|
73
|
+
- Set up DDoS protection and rate limiting
|
|
74
|
+
- Configure geo-blocking and access restrictions
|
|
75
|
+
- Implement secure token authentication for protected content
|
|
76
|
+
|
|
77
|
+
10. **Cost Optimization and Monitoring**
|
|
78
|
+
- Monitor CDN usage and costs across different tiers
|
|
79
|
+
- Implement cost optimization strategies for bandwidth usage
|
|
80
|
+
- Set up automated cost alerts and budget monitoring
|
|
81
|
+
- Analyze usage patterns for tier optimization
|
|
82
|
+
- Configure cost-effective caching policies
|
|
83
|
+
|
|
84
|
+
Focus on CDN optimizations that provide the most significant performance improvements for your specific content types and user base. Always measure CDN performance impact and adjust configurations based on real-world usage patterns.
|