claude-code-templates 1.21.6 → 1.21.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +2 -2
- package/components/agents/ai-specialists/ai-ethics-advisor.md +0 -195
- package/components/agents/ai-specialists/hackathon-ai-strategist.md +0 -46
- package/components/agents/ai-specialists/llms-maintainer.md +0 -94
- package/components/agents/ai-specialists/model-evaluator.md +0 -150
- package/components/agents/ai-specialists/prompt-engineer.md +0 -112
- package/components/agents/ai-specialists/search-specialist.md +0 -59
- package/components/agents/ai-specialists/task-decomposition-expert.md +0 -97
- package/components/agents/api-graphql/graphql-architect.md +0 -208
- package/components/agents/api-graphql/graphql-performance-optimizer.md +0 -357
- package/components/agents/api-graphql/graphql-security-specialist.md +0 -519
- package/components/agents/blockchain-web3/smart-contract-auditor.md +0 -32
- package/components/agents/blockchain-web3/smart-contract-specialist.md +0 -32
- package/components/agents/blockchain-web3/web3-integration-specialist.md +0 -32
- package/components/agents/business-marketing/business-analyst.md +0 -194
- package/components/agents/business-marketing/content-marketer.md +0 -36
- package/components/agents/business-marketing/customer-support.md +0 -36
- package/components/agents/business-marketing/legal-advisor.md +0 -50
- package/components/agents/business-marketing/marketing-attribution-analyst.md +0 -352
- package/components/agents/business-marketing/payment-integration.md +0 -33
- package/components/agents/business-marketing/product-strategist.md +0 -212
- package/components/agents/business-marketing/risk-manager.md +0 -42
- package/components/agents/business-marketing/sales-automator.md +0 -36
- package/components/agents/data-ai/ai-engineer.md +0 -33
- package/components/agents/data-ai/computer-vision-engineer.md +0 -562
- package/components/agents/data-ai/data-engineer.md +0 -33
- package/components/agents/data-ai/data-scientist.md +0 -337
- package/components/agents/data-ai/ml-engineer.md +0 -33
- package/components/agents/data-ai/mlops-engineer.md +0 -58
- package/components/agents/data-ai/nlp-engineer.md +0 -680
- package/components/agents/data-ai/quant-analyst.md +0 -33
- package/components/agents/database/database-admin.md +0 -33
- package/components/agents/database/database-architect.md +0 -590
- package/components/agents/database/database-optimization.md +0 -33
- package/components/agents/database/database-optimizer.md +0 -33
- package/components/agents/database/nosql-specialist.md +0 -708
- package/components/agents/database/supabase-schema-architect.md +0 -138
- package/components/agents/deep-research-team/academic-researcher.md +0 -33
- package/components/agents/deep-research-team/agent-overview.md +0 -235
- package/components/agents/deep-research-team/competitive-intelligence-analyst.md +0 -530
- package/components/agents/deep-research-team/data-analyst.md +0 -112
- package/components/agents/deep-research-team/fact-checker.md +0 -553
- package/components/agents/deep-research-team/query-clarifier.md +0 -73
- package/components/agents/deep-research-team/report-generator.md +0 -108
- package/components/agents/deep-research-team/research-brief-generator.md +0 -108
- package/components/agents/deep-research-team/research-coordinator.md +0 -94
- package/components/agents/deep-research-team/research-orchestrator.md +0 -119
- package/components/agents/deep-research-team/research-synthesizer.md +0 -109
- package/components/agents/deep-research-team/technical-researcher.md +0 -95
- package/components/agents/development-team/backend-architect.md +0 -31
- package/components/agents/development-team/cli-ui-designer.md +0 -405
- package/components/agents/development-team/devops-engineer.md +0 -886
- package/components/agents/development-team/frontend-developer.md +0 -32
- package/components/agents/development-team/fullstack-developer.md +0 -1205
- package/components/agents/development-team/ios-developer.md +0 -36
- package/components/agents/development-team/mobile-developer.md +0 -33
- package/components/agents/development-team/ui-ux-designer.md +0 -36
- package/components/agents/development-tools/code-reviewer.md +0 -30
- package/components/agents/development-tools/command-expert.md +0 -422
- package/components/agents/development-tools/context-manager.md +0 -65
- package/components/agents/development-tools/debugger.md +0 -31
- package/components/agents/development-tools/dx-optimizer.md +0 -64
- package/components/agents/development-tools/error-detective.md +0 -33
- package/components/agents/development-tools/mcp-expert.md +0 -259
- package/components/agents/development-tools/performance-profiler.md +0 -799
- package/components/agents/development-tools/test-engineer.md +0 -936
- package/components/agents/devops-infrastructure/cloud-architect.md +0 -33
- package/components/agents/devops-infrastructure/deployment-engineer.md +0 -33
- package/components/agents/devops-infrastructure/devops-troubleshooter.md +0 -33
- package/components/agents/devops-infrastructure/monitoring-specialist.md +0 -36
- package/components/agents/devops-infrastructure/network-engineer.md +0 -33
- package/components/agents/devops-infrastructure/security-engineer.md +0 -971
- package/components/agents/devops-infrastructure/terraform-specialist.md +0 -36
- package/components/agents/devops-infrastructure/vercel-deployment-specialist.md +0 -357
- package/components/agents/documentation/api-documenter.md +0 -33
- package/components/agents/documentation/changelog-generator.md +0 -37
- package/components/agents/documentation/docusaurus-expert.md +0 -52
- package/components/agents/documentation/technical-writer.md +0 -37
- package/components/agents/expert-advisors/agent-expert.md +0 -477
- package/components/agents/expert-advisors/architect-review.md +0 -50
- package/components/agents/expert-advisors/dependency-manager.md +0 -45
- package/components/agents/expert-advisors/documentation-expert.md +0 -47
- package/components/agents/ffmpeg-clip-team/audio-mixer.md +0 -37
- package/components/agents/ffmpeg-clip-team/audio-quality-controller.md +0 -100
- package/components/agents/ffmpeg-clip-team/podcast-content-analyzer.md +0 -60
- package/components/agents/ffmpeg-clip-team/podcast-metadata-specialist.md +0 -46
- package/components/agents/ffmpeg-clip-team/podcast-transcriber.md +0 -68
- package/components/agents/ffmpeg-clip-team/social-media-clip-creator.md +0 -69
- package/components/agents/ffmpeg-clip-team/timestamp-precision-specialist.md +0 -98
- package/components/agents/ffmpeg-clip-team/video-editor.md +0 -37
- package/components/agents/game-development/3d-artist.md +0 -37
- package/components/agents/game-development/game-designer.md +0 -37
- package/components/agents/game-development/unity-game-developer.md +0 -110
- package/components/agents/game-development/unreal-engine-developer.md +0 -128
- package/components/agents/mcp-dev-team/mcp-deployment-orchestrator.md +0 -101
- package/components/agents/mcp-dev-team/mcp-integration-engineer.md +0 -37
- package/components/agents/mcp-dev-team/mcp-protocol-specialist.md +0 -37
- package/components/agents/mcp-dev-team/mcp-registry-navigator.md +0 -112
- package/components/agents/mcp-dev-team/mcp-security-auditor.md +0 -70
- package/components/agents/mcp-dev-team/mcp-server-architect.md +0 -74
- package/components/agents/mcp-dev-team/mcp-testing-engineer.md +0 -106
- package/components/agents/modernization/architecture-modernizer.md +0 -37
- package/components/agents/modernization/cloud-migration-specialist.md +0 -37
- package/components/agents/modernization/legacy-modernizer.md +0 -33
- package/components/agents/obsidian-ops-team/Scripts/daily_notes_connector.py +0 -306
- package/components/agents/obsidian-ops-team/Scripts/enhance_tag_standardizer.py +0 -343
- package/components/agents/obsidian-ops-team/Scripts/find_keyword_connections.py +0 -216
- package/components/agents/obsidian-ops-team/Scripts/fix_quoted_tags.py +0 -82
- package/components/agents/obsidian-ops-team/Scripts/implement_entity_connections.py +0 -195
- package/components/agents/obsidian-ops-team/Scripts/link_suggester.py +0 -301
- package/components/agents/obsidian-ops-team/Scripts/metadata_adder.py +0 -197
- package/components/agents/obsidian-ops-team/Scripts/moc_generator.py +0 -296
- package/components/agents/obsidian-ops-team/Scripts/parse_keyword_connections.py +0 -122
- package/components/agents/obsidian-ops-team/Scripts/tag_standardizer.py +0 -387
- package/components/agents/obsidian-ops-team/connection-agent.md +0 -67
- package/components/agents/obsidian-ops-team/content-curator.md +0 -81
- package/components/agents/obsidian-ops-team/metadata-agent.md +0 -51
- package/components/agents/obsidian-ops-team/moc-agent.md +0 -112
- package/components/agents/obsidian-ops-team/review-agent.md +0 -94
- package/components/agents/obsidian-ops-team/tag-agent.md +0 -92
- package/components/agents/obsidian-ops-team/vault-optimizer.md +0 -76
- package/components/agents/ocr-extraction-team/document-structure-analyzer.md +0 -37
- package/components/agents/ocr-extraction-team/markdown-syntax-formatter.md +0 -58
- package/components/agents/ocr-extraction-team/ocr-grammar-fixer.md +0 -36
- package/components/agents/ocr-extraction-team/ocr-preprocessing-optimizer.md +0 -37
- package/components/agents/ocr-extraction-team/ocr-quality-assurance.md +0 -62
- package/components/agents/ocr-extraction-team/text-comparison-validator.md +0 -60
- package/components/agents/ocr-extraction-team/visual-analysis-ocr.md +0 -52
- package/components/agents/performance-testing/load-testing-specialist.md +0 -37
- package/components/agents/performance-testing/performance-engineer.md +0 -33
- package/components/agents/performance-testing/react-performance-optimization.md +0 -65
- package/components/agents/performance-testing/test-automator.md +0 -33
- package/components/agents/performance-testing/web-vitals-optimizer.md +0 -37
- package/components/agents/podcast-creator-team/academic-research-synthesizer.md +0 -61
- package/components/agents/podcast-creator-team/comprehensive-researcher.md +0 -49
- package/components/agents/podcast-creator-team/episode-orchestrator.md +0 -52
- package/components/agents/podcast-creator-team/guest-outreach-coordinator.md +0 -37
- package/components/agents/podcast-creator-team/market-research-analyst.md +0 -54
- package/components/agents/podcast-creator-team/podcast-editor.md +0 -37
- package/components/agents/podcast-creator-team/podcast-trend-scout.md +0 -60
- package/components/agents/podcast-creator-team/project-supervisor-orchestrator.md +0 -48
- package/components/agents/podcast-creator-team/seo-podcast-optimizer.md +0 -58
- package/components/agents/podcast-creator-team/social-media-copywriter.md +0 -57
- package/components/agents/podcast-creator-team/twitter-ai-influencer-manager.md +0 -62
- package/components/agents/programming-languages/c-pro.md +0 -36
- package/components/agents/programming-languages/c-sharp-pro.md +0 -40
- package/components/agents/programming-languages/cpp-pro.md +0 -39
- package/components/agents/programming-languages/golang-pro.md +0 -33
- package/components/agents/programming-languages/javascript-pro.md +0 -36
- package/components/agents/programming-languages/php-pro.md +0 -44
- package/components/agents/programming-languages/python-pro.md +0 -33
- package/components/agents/programming-languages/rust-pro.md +0 -36
- package/components/agents/programming-languages/shell-scripting-pro.md +0 -38
- package/components/agents/programming-languages/sql-pro.md +0 -36
- package/components/agents/programming-languages/typescript-pro.md +0 -38
- package/components/agents/realtime/supabase-realtime-optimizer.md +0 -193
- package/components/agents/security/api-security-audit.md +0 -93
- package/components/agents/security/compliance-specialist.md +0 -37
- package/components/agents/security/incident-responder.md +0 -75
- package/components/agents/security/penetration-tester.md +0 -37
- package/components/agents/security/security-auditor.md +0 -33
- package/components/agents/web-tools/nextjs-architecture-expert.md +0 -194
- package/components/agents/web-tools/react-performance-optimizer.md +0 -425
- package/components/agents/web-tools/seo-analyzer.md +0 -37
- package/components/agents/web-tools/url-context-validator.md +0 -61
- package/components/agents/web-tools/url-link-extractor.md +0 -59
- package/components/agents/web-tools/web-accessibility-checker.md +0 -37
- package/components/commands/automation/act.md +0 -57
- package/components/commands/automation/ci-pipeline.md +0 -378
- package/components/commands/automation/husky.md +0 -130
- package/components/commands/automation/workflow-orchestrator.md +0 -576
- package/components/commands/database/supabase-backup-manager.md +0 -37
- package/components/commands/database/supabase-data-explorer.md +0 -37
- package/components/commands/database/supabase-migration-assistant.md +0 -37
- package/components/commands/database/supabase-performance-optimizer.md +0 -37
- package/components/commands/database/supabase-realtime-monitor.md +0 -37
- package/components/commands/database/supabase-schema-sync.md +0 -37
- package/components/commands/database/supabase-security-audit.md +0 -37
- package/components/commands/database/supabase-type-generator.md +0 -37
- package/components/commands/deployment/add-changelog.md +0 -92
- package/components/commands/deployment/blue-green-deployment.md +0 -824
- package/components/commands/deployment/changelog-demo-command.md +0 -43
- package/components/commands/deployment/ci-setup.md +0 -323
- package/components/commands/deployment/containerize-application.md +0 -93
- package/components/commands/deployment/deployment-monitoring.md +0 -1228
- package/components/commands/deployment/hotfix-deploy.md +0 -283
- package/components/commands/deployment/prepare-release.md +0 -357
- package/components/commands/deployment/rollback-deploy.md +0 -145
- package/components/commands/deployment/setup-automated-releases.md +0 -143
- package/components/commands/deployment/setup-kubernetes-deployment.md +0 -93
- package/components/commands/documentation/create-architecture-documentation.md +0 -95
- package/components/commands/documentation/create-onboarding-guide.md +0 -93
- package/components/commands/documentation/doc-api.md +0 -242
- package/components/commands/documentation/docs-maintenance.md +0 -119
- package/components/commands/documentation/generate-api-documentation.md +0 -97
- package/components/commands/documentation/interactive-documentation.md +0 -133
- package/components/commands/documentation/load-llms-txt.md +0 -39
- package/components/commands/documentation/migration-guide.md +0 -250
- package/components/commands/documentation/troubleshooting-guide.md +0 -370
- package/components/commands/documentation/update-docs.md +0 -107
- package/components/commands/game-development/game-analytics-integration.md +0 -128
- package/components/commands/game-development/game-asset-pipeline.md +0 -108
- package/components/commands/game-development/game-performance-profiler.md +0 -78
- package/components/commands/game-development/game-testing-framework.md +0 -112
- package/components/commands/game-development/unity-project-setup.md +0 -190
- package/components/commands/git-workflow/branch-cleanup.md +0 -181
- package/components/commands/git-workflow/commit.md +0 -167
- package/components/commands/git-workflow/create-pr.md +0 -19
- package/components/commands/git-workflow/create-pull-request.md +0 -126
- package/components/commands/git-workflow/create-worktrees.md +0 -174
- package/components/commands/git-workflow/fix-github-issue.md +0 -13
- package/components/commands/git-workflow/git-bisect-helper.md +0 -261
- package/components/commands/git-workflow/pr-review.md +0 -76
- package/components/commands/git-workflow/update-branch-name.md +0 -9
- package/components/commands/nextjs-vercel/nextjs-api-tester.md +0 -480
- package/components/commands/nextjs-vercel/nextjs-bundle-analyzer.md +0 -406
- package/components/commands/nextjs-vercel/nextjs-component-generator.md +0 -489
- package/components/commands/nextjs-vercel/nextjs-middleware-creator.md +0 -712
- package/components/commands/nextjs-vercel/nextjs-migration-helper.md +0 -778
- package/components/commands/nextjs-vercel/nextjs-performance-audit.md +0 -653
- package/components/commands/nextjs-vercel/nextjs-scaffold.md +0 -237
- package/components/commands/nextjs-vercel/vercel-deploy-optimize.md +0 -341
- package/components/commands/nextjs-vercel/vercel-edge-function.md +0 -810
- package/components/commands/nextjs-vercel/vercel-env-sync.md +0 -666
- package/components/commands/orchestration/archive.md +0 -414
- package/components/commands/orchestration/commit.md +0 -305
- package/components/commands/orchestration/find.md +0 -272
- package/components/commands/orchestration/log.md +0 -355
- package/components/commands/orchestration/move.md +0 -220
- package/components/commands/orchestration/optimize.md +0 -375
- package/components/commands/orchestration/remove.md +0 -301
- package/components/commands/orchestration/report.md +0 -292
- package/components/commands/orchestration/resume.md +0 -256
- package/components/commands/orchestration/start.md +0 -169
- package/components/commands/orchestration/status.md +0 -219
- package/components/commands/orchestration/sync.md +0 -294
- package/components/commands/performance/add-performance-monitoring.md +0 -84
- package/components/commands/performance/implement-caching-strategy.md +0 -84
- package/components/commands/performance/optimize-api-performance.md +0 -119
- package/components/commands/performance/optimize-build.md +0 -139
- package/components/commands/performance/optimize-bundle-size.md +0 -84
- package/components/commands/performance/optimize-database-performance.md +0 -84
- package/components/commands/performance/optimize-memory-usage.md +0 -91
- package/components/commands/performance/performance-audit.md +0 -89
- package/components/commands/performance/setup-cdn-optimization.md +0 -84
- package/components/commands/performance/system-behavior-simulator.md +0 -415
- package/components/commands/project-management/add-package.md +0 -90
- package/components/commands/project-management/add-to-changelog.md +0 -37
- package/components/commands/project-management/create-feature.md +0 -130
- package/components/commands/project-management/create-jtbd.md +0 -37
- package/components/commands/project-management/create-prd.md +0 -36
- package/components/commands/project-management/create-prp.md +0 -37
- package/components/commands/project-management/init-project.md +0 -80
- package/components/commands/project-management/milestone-tracker.md +0 -44
- package/components/commands/project-management/pac-configure.md +0 -32
- package/components/commands/project-management/pac-create-epic.md +0 -41
- package/components/commands/project-management/pac-create-ticket.md +0 -42
- package/components/commands/project-management/pac-update-status.md +0 -39
- package/components/commands/project-management/pac-validate.md +0 -35
- package/components/commands/project-management/project-health-check.md +0 -58
- package/components/commands/project-management/project-timeline-simulator.md +0 -37
- package/components/commands/project-management/project-to-linear.md +0 -38
- package/components/commands/project-management/release.md +0 -31
- package/components/commands/project-management/todo.md +0 -62
- package/components/commands/security/add-authentication-system.md +0 -34
- package/components/commands/security/dependency-audit.md +0 -32
- package/components/commands/security/penetration-test.md +0 -40
- package/components/commands/security/secrets-scanner.md +0 -39
- package/components/commands/security/security-audit.md +0 -82
- package/components/commands/security/security-hardening.md +0 -33
- package/components/commands/setup/create-database-migrations.md +0 -35
- package/components/commands/setup/design-database-schema.md +0 -37
- package/components/commands/setup/design-rest-api.md +0 -37
- package/components/commands/setup/implement-graphql-api.md +0 -37
- package/components/commands/setup/migrate-to-typescript.md +0 -37
- package/components/commands/setup/setup-ci-cd-pipeline.md +0 -37
- package/components/commands/setup/setup-development-environment.md +0 -37
- package/components/commands/setup/setup-docker-containers.md +0 -37
- package/components/commands/setup/setup-formatting.md +0 -37
- package/components/commands/setup/setup-linting.md +0 -37
- package/components/commands/setup/setup-monitoring-observability.md +0 -37
- package/components/commands/setup/setup-monorepo.md +0 -37
- package/components/commands/setup/setup-rate-limiting.md +0 -37
- package/components/commands/setup/update-dependencies.md +0 -35
- package/components/commands/simulation/business-scenario-explorer.md +0 -37
- package/components/commands/simulation/constraint-modeler.md +0 -37
- package/components/commands/simulation/decision-tree-explorer.md +0 -37
- package/components/commands/simulation/digital-twin-creator.md +0 -37
- package/components/commands/simulation/future-scenario-generator.md +0 -37
- package/components/commands/simulation/market-response-modeler.md +0 -37
- package/components/commands/simulation/monte-carlo-simulator.md +0 -37
- package/components/commands/simulation/simulation-calibrator.md +0 -37
- package/components/commands/simulation/system-dynamics-modeler.md +0 -37
- package/components/commands/simulation/timeline-compressor.md +0 -37
- package/components/commands/svelte/svelte:a11y.md +0 -105
- package/components/commands/svelte/svelte:component.md +0 -81
- package/components/commands/svelte/svelte:debug.md +0 -48
- package/components/commands/svelte/svelte:migrate.md +0 -79
- package/components/commands/svelte/svelte:optimize.md +0 -99
- package/components/commands/svelte/svelte:scaffold.md +0 -89
- package/components/commands/svelte/svelte:storybook-migrate.md +0 -204
- package/components/commands/svelte/svelte:storybook-mock.md +0 -213
- package/components/commands/svelte/svelte:storybook-setup.md +0 -113
- package/components/commands/svelte/svelte:storybook-story.md +0 -145
- package/components/commands/svelte/svelte:storybook-troubleshoot.md +0 -191
- package/components/commands/svelte/svelte:storybook.md +0 -48
- package/components/commands/svelte/svelte:test-coverage.md +0 -77
- package/components/commands/svelte/svelte:test-fix.md +0 -74
- package/components/commands/svelte/svelte:test-setup.md +0 -85
- package/components/commands/svelte/svelte:test.md +0 -60
- package/components/commands/sync/bidirectional-sync.md +0 -37
- package/components/commands/sync/bulk-import-issues.md +0 -37
- package/components/commands/sync/cross-reference-manager.md +0 -37
- package/components/commands/sync/issue-to-linear-task.md +0 -37
- package/components/commands/sync/linear-task-to-issue.md +0 -37
- package/components/commands/sync/sync-automation-setup.md +0 -37
- package/components/commands/sync/sync-conflict-resolver.md +0 -37
- package/components/commands/sync/sync-health-monitor.md +0 -37
- package/components/commands/sync/sync-issues-to-linear.md +0 -37
- package/components/commands/sync/sync-linear-to-issues.md +0 -37
- package/components/commands/sync/sync-migration-assistant.md +0 -37
- package/components/commands/sync/sync-pr-to-task.md +0 -37
- package/components/commands/sync/sync-status.md +0 -391
- package/components/commands/sync/task-from-pr.md +0 -37
- package/components/commands/team/architecture-review.md +0 -37
- package/components/commands/team/decision-quality-analyzer.md +0 -37
- package/components/commands/team/dependency-mapper.md +0 -37
- package/components/commands/team/estimate-assistant.md +0 -37
- package/components/commands/team/issue-triage.md +0 -37
- package/components/commands/team/memory-spring-cleaning.md +0 -37
- package/components/commands/team/migration-assistant.md +0 -37
- package/components/commands/team/retrospective-analyzer.md +0 -37
- package/components/commands/team/session-learning-capture.md +0 -37
- package/components/commands/team/sprint-planning.md +0 -189
- package/components/commands/team/standup-report.md +0 -37
- package/components/commands/team/team-knowledge-mapper.md +0 -37
- package/components/commands/team/team-velocity-tracker.md +0 -37
- package/components/commands/team/team-workload-balancer.md +0 -37
- package/components/commands/testing/add-mutation-testing.md +0 -37
- package/components/commands/testing/add-property-based-testing.md +0 -37
- package/components/commands/testing/e2e-setup.md +0 -37
- package/components/commands/testing/generate-test-cases.md +0 -37
- package/components/commands/testing/generate-tests.md +0 -82
- package/components/commands/testing/setup-comprehensive-testing.md +0 -37
- package/components/commands/testing/setup-load-testing.md +0 -37
- package/components/commands/testing/setup-visual-testing.md +0 -37
- package/components/commands/testing/test-automation-orchestrator.md +0 -37
- package/components/commands/testing/test-changelog-automation.md +0 -37
- package/components/commands/testing/test-coverage.md +0 -37
- package/components/commands/testing/test-quality-analyzer.md +0 -37
- package/components/commands/testing/testing_plan_integration.md +0 -37
- package/components/commands/testing/write-tests.md +0 -37
- package/components/commands/utilities/all-tools.md +0 -31
- package/components/commands/utilities/architecture-scenario-explorer.md +0 -375
- package/components/commands/utilities/check-file.md +0 -53
- package/components/commands/utilities/clean-branches.md +0 -243
- package/components/commands/utilities/clean.md +0 -1
- package/components/commands/utilities/code-permutation-tester.md +0 -341
- package/components/commands/utilities/code-review.md +0 -70
- package/components/commands/utilities/code-to-task.md +0 -583
- package/components/commands/utilities/context-prime.md +0 -1
- package/components/commands/utilities/debug-error.md +0 -121
- package/components/commands/utilities/directory-deep-dive.md +0 -34
- package/components/commands/utilities/explain-code.md +0 -194
- package/components/commands/utilities/fix-issue.md +0 -85
- package/components/commands/utilities/generate-linear-worklog.md +0 -113
- package/components/commands/utilities/git-status.md +0 -39
- package/components/commands/utilities/initref.md +0 -3
- package/components/commands/utilities/prime.md +0 -41
- package/components/commands/utilities/refactor-code.md +0 -116
- package/components/commands/utilities/ultra-think.md +0 -153
- package/components/hooks/HOOK_PATTERNS_COMPRESSED.json +0 -1
- package/components/hooks/automation/build-on-change.json +0 -16
- package/components/hooks/automation/dependency-checker.json +0 -16
- package/components/hooks/automation/deployment-health-monitor.json +0 -29
- package/components/hooks/automation/discord-detailed-notifications.json +0 -26
- package/components/hooks/automation/discord-error-notifications.json +0 -37
- package/components/hooks/automation/discord-notifications.json +0 -25
- package/components/hooks/automation/simple-notifications.json +0 -16
- package/components/hooks/automation/slack-detailed-notifications.json +0 -26
- package/components/hooks/automation/slack-error-notifications.json +0 -37
- package/components/hooks/automation/slack-notifications.json +0 -25
- package/components/hooks/automation/telegram-detailed-notifications.json +0 -26
- package/components/hooks/automation/telegram-error-notifications.json +0 -37
- package/components/hooks/automation/telegram-notifications.json +0 -25
- package/components/hooks/automation/vercel-auto-deploy.json +0 -17
- package/components/hooks/automation/vercel-environment-sync.json +0 -29
- package/components/hooks/development-tools/change-tracker.json +0 -25
- package/components/hooks/development-tools/command-logger.json +0 -16
- package/components/hooks/development-tools/file-backup.json +0 -16
- package/components/hooks/development-tools/lint-on-save.json +0 -16
- package/components/hooks/development-tools/nextjs-code-quality-enforcer.json +0 -17
- package/components/hooks/development-tools/smart-formatting.json +0 -16
- package/components/hooks/git-workflow/auto-git-add.json +0 -16
- package/components/hooks/git-workflow/smart-commit.json +0 -25
- package/components/hooks/performance/performance-budget-guard.json +0 -27
- package/components/hooks/performance/performance-monitor.json +0 -27
- package/components/hooks/post-tool/format-javascript-files.json +0 -16
- package/components/hooks/post-tool/format-python-files.json +0 -16
- package/components/hooks/post-tool/git-add-changes.json +0 -25
- package/components/hooks/post-tool/run-tests-after-changes.json +0 -16
- package/components/hooks/pre-tool/backup-before-edit.json +0 -16
- package/components/hooks/pre-tool/notify-before-bash.json +0 -16
- package/components/hooks/security/file-protection.json +0 -16
- package/components/hooks/security/security-scanner.json +0 -16
- package/components/hooks/testing/test-runner.json +0 -16
- package/components/mcps/browser_automation/browser-use-mcp-server.json +0 -20
- package/components/mcps/browser_automation/browsermcp.json +0 -9
- package/components/mcps/browser_automation/mcp-server-browserbase.json +0 -14
- package/components/mcps/browser_automation/mcp-server-playwright.json +0 -9
- package/components/mcps/browser_automation/playwright-mcp-server.json +0 -9
- package/components/mcps/browser_automation/playwright-mcp.json +0 -11
- package/components/mcps/database/mysql-integration.json +0 -12
- package/components/mcps/database/postgresql-integration.json +0 -12
- package/components/mcps/database/supabase.json +0 -17
- package/components/mcps/deepgraph/deepgraph-nextjs.json +0 -13
- package/components/mcps/deepgraph/deepgraph-react.json +0 -13
- package/components/mcps/deepgraph/deepgraph-typescript.json +0 -13
- package/components/mcps/deepgraph/deepgraph-vue.json +0 -13
- package/components/mcps/devtools/circleci.json +0 -13
- package/components/mcps/devtools/context7.json +0 -9
- package/components/mcps/devtools/firefly-mcp.json +0 -13
- package/components/mcps/devtools/ios-simulator-mcp.json +0 -9
- package/components/mcps/devtools/just-mcp.json +0 -9
- package/components/mcps/devtools/leetcode.json +0 -8
- package/components/mcps/devtools/mcp-server-atlassian-bitbucket.json +0 -9
- package/components/mcps/devtools/mcp-server-trello.json +0 -12
- package/components/mcps/filesystem/filesystem-access.json +0 -13
- package/components/mcps/integration/github-integration.json +0 -12
- package/components/mcps/integration/memory-integration.json +0 -9
- package/components/mcps/marketing/facebook-ads-mcp-server.json +0 -13
- package/components/mcps/marketing/google-ads-mcp-server.json +0 -11
- package/components/mcps/web/web-fetch.json +0 -9
- package/components/settings/api/bedrock-configuration.json +0 -7
- package/components/settings/api/corporate-proxy.json +0 -7
- package/components/settings/api/custom-headers.json +0 -6
- package/components/settings/api/vertex-configuration.json +0 -8
- package/components/settings/authentication/api-key-helper.json +0 -7
- package/components/settings/authentication/force-claudeai-login.json +0 -4
- package/components/settings/authentication/force-console-login.json +0 -4
- package/components/settings/cleanup/retention-7-days.json +0 -4
- package/components/settings/cleanup/retention-90-days.json +0 -4
- package/components/settings/environment/bash-timeouts.json +0 -8
- package/components/settings/environment/development-utils.json +0 -8
- package/components/settings/environment/performance-optimization.json +0 -8
- package/components/settings/environment/privacy-focused.json +0 -10
- package/components/settings/global/aws-credentials.json +0 -5
- package/components/settings/global/custom-model.json +0 -7
- package/components/settings/global/git-commit-settings.json +0 -4
- package/components/settings/mcp/disable-risky-servers.json +0 -8
- package/components/settings/mcp/enable-all-project-servers.json +0 -4
- package/components/settings/mcp/enable-specific-servers.json +0 -8
- package/components/settings/mcp/mcp-timeouts.json +0 -8
- package/components/settings/model/use-haiku.json +0 -4
- package/components/settings/model/use-sonnet.json +0 -4
- package/components/settings/permissions/additional-directories.json +0 -11
- package/components/settings/permissions/allow-git-operations.json +0 -14
- package/components/settings/permissions/allow-npm-commands.json +0 -11
- package/components/settings/permissions/deny-sensitive-files.json +0 -11
- package/components/settings/permissions/development-mode.json +0 -31
- package/components/settings/permissions/read-only-mode.json +0 -18
- package/components/settings/statusline/asset-pipeline-controller-statusline.json +0 -7
- package/components/settings/statusline/bug-circus-statusline.json +0 -7
- package/components/settings/statusline/code-casino-statusline.json +0 -7
- package/components/settings/statusline/code-spaceship-statusline.json +0 -7
- package/components/settings/statusline/colorful-statusline.json +0 -7
- package/components/settings/statusline/command-statusline.json +0 -8
- package/components/settings/statusline/context-monitor.json +0 -7
- package/components/settings/statusline/context-monitor.py +0 -236
- package/components/settings/statusline/data-ocean-statusline.json +0 -7
- package/components/settings/statusline/emotion-theater-statusline.json +0 -7
- package/components/settings/statusline/game-performance-monitor-statusline.json +0 -7
- package/components/settings/statusline/git-branch-statusline.json +0 -7
- package/components/settings/statusline/minimal-statusline.json +0 -7
- package/components/settings/statusline/multiplatform-build-status-statusline.json +0 -7
- package/components/settings/statusline/productivity-rainbow-statusline.json +0 -7
- package/components/settings/statusline/programmer-tamagotchi-statusline.json +0 -7
- package/components/settings/statusline/programming-fitness-tracker-statusline.json +0 -7
- package/components/settings/statusline/project-info-statusline.json +0 -7
- package/components/settings/statusline/rpg-status-bar-statusline.json +0 -7
- package/components/settings/statusline/time-statusline.json +0 -7
- package/components/settings/statusline/unity-project-dashboard-statusline.json +0 -7
- package/components/settings/statusline/vercel-deployment-monitor.json +0 -7
- package/components/settings/statusline/vercel-error-alert-system.json +0 -7
- package/components/settings/statusline/vercel-multi-env-status.json +0 -7
- package/components/settings/statusline/virtual-code-garden-statusline.json +0 -7
- package/components/settings/statusline/zero-config-deployment-monitor.json +0 -7
- package/components/settings/telemetry/custom-telemetry.json +0 -7
- package/components/settings/telemetry/disable-telemetry.json +0 -6
- package/components/settings/telemetry/enable-telemetry.json +0 -6
|
@@ -1,653 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
allowed-tools: Read, Edit, Bash
|
|
3
|
-
argument-hint: [--lighthouse] [--bundle] [--runtime] [--all]
|
|
4
|
-
description: Comprehensive Next.js performance audit with actionable optimization recommendations
|
|
5
|
-
model: sonnet
|
|
6
|
-
---
|
|
7
|
-
|
|
8
|
-
## Next.js Performance Audit
|
|
9
|
-
|
|
10
|
-
**Audit Type**: $ARGUMENTS
|
|
11
|
-
|
|
12
|
-
## Current Application Analysis
|
|
13
|
-
|
|
14
|
-
### Application State
|
|
15
|
-
- Build status: !`ls -la .next/ 2>/dev/null || echo "No build found - run 'npm run build' first"`
|
|
16
|
-
- Application running: !`curl -s http://localhost:3000 > /dev/null && echo "App is running" || echo "App not running - start with 'npm run dev'"`
|
|
17
|
-
- Bundle analysis: !`ls -la .next/analyze/ 2>/dev/null || echo "No bundle analysis found"`
|
|
18
|
-
|
|
19
|
-
### Project Configuration
|
|
20
|
-
- Next.js config: @next.config.js
|
|
21
|
-
- Package.json: @package.json
|
|
22
|
-
- TypeScript config: @tsconfig.json (if exists)
|
|
23
|
-
- Vercel config: @vercel.json (if exists)
|
|
24
|
-
|
|
25
|
-
### Performance Monitoring Setup
|
|
26
|
-
- Web Vitals: Check for @next/web-vitals or similar
|
|
27
|
-
- Analytics: Check for Vercel Analytics or Google Analytics
|
|
28
|
-
- Monitoring tools: Check for Sentry, DataDog, or other APM tools
|
|
29
|
-
|
|
30
|
-
## Performance Audit Framework
|
|
31
|
-
|
|
32
|
-
### 1. Lighthouse Audit
|
|
33
|
-
```bash
|
|
34
|
-
# Install Lighthouse CLI if not available
|
|
35
|
-
npm install -g lighthouse
|
|
36
|
-
|
|
37
|
-
# Run Lighthouse audit
|
|
38
|
-
lighthouse http://localhost:3000 \
|
|
39
|
-
--output=json \
|
|
40
|
-
--output=html \
|
|
41
|
-
--output-path=./performance-audit \
|
|
42
|
-
--chrome-flags="--headless" \
|
|
43
|
-
--preset=perf
|
|
44
|
-
|
|
45
|
-
# Mobile performance audit
|
|
46
|
-
lighthouse http://localhost:3000 \
|
|
47
|
-
--output=json \
|
|
48
|
-
--output-path=./performance-audit-mobile \
|
|
49
|
-
--preset=perf \
|
|
50
|
-
--form-factor=mobile \
|
|
51
|
-
--throttling-method=devtools \
|
|
52
|
-
--chrome-flags="--headless"
|
|
53
|
-
|
|
54
|
-
# Generate detailed report
|
|
55
|
-
lighthouse http://localhost:3000 \
|
|
56
|
-
--output=html \
|
|
57
|
-
--output-path=./lighthouse-report.html \
|
|
58
|
-
--view
|
|
59
|
-
```
|
|
60
|
-
|
|
61
|
-
### 2. Bundle Analysis
|
|
62
|
-
```javascript
|
|
63
|
-
// next.config.js - Enable bundle analysis
|
|
64
|
-
const withBundleAnalyzer = require('@next/bundle-analyzer')({
|
|
65
|
-
enabled: process.env.ANALYZE === 'true',
|
|
66
|
-
});
|
|
67
|
-
|
|
68
|
-
module.exports = withBundleAnalyzer({
|
|
69
|
-
// ... your config
|
|
70
|
-
webpack: (config, { buildId, dev, isServer, defaultLoaders, webpack }) => {
|
|
71
|
-
// Bundle analysis optimizations
|
|
72
|
-
if (!dev && !isServer) {
|
|
73
|
-
config.optimization.splitChunks = {
|
|
74
|
-
chunks: 'all',
|
|
75
|
-
cacheGroups: {
|
|
76
|
-
vendor: {
|
|
77
|
-
test: /[\\/]node_modules[\\/]/,
|
|
78
|
-
name: 'vendors',
|
|
79
|
-
chunks: 'all',
|
|
80
|
-
},
|
|
81
|
-
},
|
|
82
|
-
};
|
|
83
|
-
}
|
|
84
|
-
return config;
|
|
85
|
-
},
|
|
86
|
-
});
|
|
87
|
-
```
|
|
88
|
-
|
|
89
|
-
### 3. Runtime Performance Analysis
|
|
90
|
-
```bash
|
|
91
|
-
# Build and analyze bundle
|
|
92
|
-
ANALYZE=true npm run build
|
|
93
|
-
|
|
94
|
-
# Check bundle sizes
|
|
95
|
-
ls -lah .next/static/chunks/ | grep -E "\\.js$" | sort -k5 -hr | head -10
|
|
96
|
-
|
|
97
|
-
# Analyze dependencies
|
|
98
|
-
npm ls --depth=0 --prod | grep -v "deduped"
|
|
99
|
-
|
|
100
|
-
# Check for duplicate dependencies
|
|
101
|
-
npm ls --depth=0 | grep -E "UNMET|invalid"
|
|
102
|
-
```
|
|
103
|
-
|
|
104
|
-
## Performance Metrics Collection
|
|
105
|
-
|
|
106
|
-
### 1. Core Web Vitals Implementation
|
|
107
|
-
```typescript
|
|
108
|
-
// lib/analytics.ts
|
|
109
|
-
export function reportWebVitals({ id, name, label, value }: any) {
|
|
110
|
-
// Send to analytics service
|
|
111
|
-
if (typeof window !== 'undefined') {
|
|
112
|
-
// Client-side reporting
|
|
113
|
-
fetch('/api/analytics/web-vitals', {
|
|
114
|
-
method: 'POST',
|
|
115
|
-
headers: { 'Content-Type': 'application/json' },
|
|
116
|
-
body: JSON.stringify({
|
|
117
|
-
id,
|
|
118
|
-
name,
|
|
119
|
-
label,
|
|
120
|
-
value,
|
|
121
|
-
url: window.location.href,
|
|
122
|
-
timestamp: Date.now(),
|
|
123
|
-
}),
|
|
124
|
-
}).catch(console.error);
|
|
125
|
-
}
|
|
126
|
-
}
|
|
127
|
-
|
|
128
|
-
// Track specific metrics
|
|
129
|
-
export function trackMetric(name: string, value: number, labels?: Record<string, string>) {
|
|
130
|
-
reportWebVitals({
|
|
131
|
-
id: `${name}-${Date.now()}`,
|
|
132
|
-
name,
|
|
133
|
-
label: 'custom',
|
|
134
|
-
value,
|
|
135
|
-
...labels,
|
|
136
|
-
});
|
|
137
|
-
}
|
|
138
|
-
|
|
139
|
-
// Performance observer for custom metrics
|
|
140
|
-
export function initPerformanceObserver() {
|
|
141
|
-
if (typeof window === 'undefined') return;
|
|
142
|
-
|
|
143
|
-
// Largest Contentful Paint
|
|
144
|
-
new PerformanceObserver((entryList) => {
|
|
145
|
-
for (const entry of entryList.getEntries()) {
|
|
146
|
-
trackMetric('LCP', entry.startTime);
|
|
147
|
-
}
|
|
148
|
-
}).observe({ entryTypes: ['largest-contentful-paint'] });
|
|
149
|
-
|
|
150
|
-
// First Input Delay
|
|
151
|
-
new PerformanceObserver((entryList) => {
|
|
152
|
-
for (const entry of entryList.getEntries()) {
|
|
153
|
-
trackMetric('FID', entry.processingStart - entry.startTime);
|
|
154
|
-
}
|
|
155
|
-
}).observe({ entryTypes: ['first-input'] });
|
|
156
|
-
|
|
157
|
-
// Cumulative Layout Shift
|
|
158
|
-
new PerformanceObserver((entryList) => {
|
|
159
|
-
let clsValue = 0;
|
|
160
|
-
for (const entry of entryList.getEntries()) {
|
|
161
|
-
if (!entry.hadRecentInput) {
|
|
162
|
-
clsValue += entry.value;
|
|
163
|
-
}
|
|
164
|
-
}
|
|
165
|
-
trackMetric('CLS', clsValue);
|
|
166
|
-
}).observe({ entryTypes: ['layout-shift'] });
|
|
167
|
-
}
|
|
168
|
-
```
|
|
169
|
-
|
|
170
|
-
### 2. Server-Side Performance Monitoring
|
|
171
|
-
```typescript
|
|
172
|
-
// middleware.ts - Performance monitoring
|
|
173
|
-
import { NextRequest, NextResponse } from 'next/server';
|
|
174
|
-
|
|
175
|
-
export function middleware(request: NextRequest) {
|
|
176
|
-
const start = Date.now();
|
|
177
|
-
|
|
178
|
-
const response = NextResponse.next();
|
|
179
|
-
|
|
180
|
-
// Add performance headers
|
|
181
|
-
response.headers.set('X-Response-Time', `${Date.now() - start}ms`);
|
|
182
|
-
response.headers.set('X-Timestamp', new Date().toISOString());
|
|
183
|
-
|
|
184
|
-
return response;
|
|
185
|
-
}
|
|
186
|
-
```
|
|
187
|
-
|
|
188
|
-
## Performance Analysis Areas
|
|
189
|
-
|
|
190
|
-
### 1. Loading Performance
|
|
191
|
-
```typescript
|
|
192
|
-
// Analyze loading performance
|
|
193
|
-
const loadingPerformanceAudit = {
|
|
194
|
-
// First Contentful Paint (FCP)
|
|
195
|
-
fcp: {
|
|
196
|
-
target: '< 1.8s',
|
|
197
|
-
current: '?', // From Lighthouse
|
|
198
|
-
optimizations: [
|
|
199
|
-
'Optimize critical rendering path',
|
|
200
|
-
'Inline critical CSS',
|
|
201
|
-
'Preload key resources',
|
|
202
|
-
'Minimize render-blocking resources',
|
|
203
|
-
],
|
|
204
|
-
},
|
|
205
|
-
|
|
206
|
-
// Largest Contentful Paint (LCP)
|
|
207
|
-
lcp: {
|
|
208
|
-
target: '< 2.5s',
|
|
209
|
-
current: '?', // From Lighthouse
|
|
210
|
-
optimizations: [
|
|
211
|
-
'Optimize images (Next.js Image component)',
|
|
212
|
-
'Preload LCP element',
|
|
213
|
-
'Optimize server response time',
|
|
214
|
-
'Use CDN for static assets',
|
|
215
|
-
],
|
|
216
|
-
},
|
|
217
|
-
|
|
218
|
-
// Time to Interactive (TTI)
|
|
219
|
-
tti: {
|
|
220
|
-
target: '< 3.8s',
|
|
221
|
-
current: '?', // From Lighthouse
|
|
222
|
-
optimizations: [
|
|
223
|
-
'Reduce JavaScript bundle size',
|
|
224
|
-
'Code splitting',
|
|
225
|
-
'Remove unused code',
|
|
226
|
-
'Optimize third-party scripts',
|
|
227
|
-
],
|
|
228
|
-
},
|
|
229
|
-
|
|
230
|
-
// Speed Index
|
|
231
|
-
speedIndex: {
|
|
232
|
-
target: '< 3.4s',
|
|
233
|
-
current: '?', // From Lighthouse
|
|
234
|
-
optimizations: [
|
|
235
|
-
'Optimize above-the-fold content',
|
|
236
|
-
'Progressive image loading',
|
|
237
|
-
'Critical resource prioritization',
|
|
238
|
-
],
|
|
239
|
-
},
|
|
240
|
-
};
|
|
241
|
-
```
|
|
242
|
-
|
|
243
|
-
### 2. Runtime Performance
|
|
244
|
-
```typescript
|
|
245
|
-
// Runtime performance analysis
|
|
246
|
-
const runtimePerformanceAudit = {
|
|
247
|
-
// First Input Delay (FID)
|
|
248
|
-
fid: {
|
|
249
|
-
target: '< 100ms',
|
|
250
|
-
current: '?',
|
|
251
|
-
optimizations: [
|
|
252
|
-
'Reduce JavaScript execution time',
|
|
253
|
-
'Break up long tasks',
|
|
254
|
-
'Use web workers for heavy computation',
|
|
255
|
-
'Optimize event handlers',
|
|
256
|
-
],
|
|
257
|
-
},
|
|
258
|
-
|
|
259
|
-
// Cumulative Layout Shift (CLS)
|
|
260
|
-
cls: {
|
|
261
|
-
target: '< 0.1',
|
|
262
|
-
current: '?',
|
|
263
|
-
optimizations: [
|
|
264
|
-
'Set dimensions for media elements',
|
|
265
|
-
'Reserve space for ads/embeds',
|
|
266
|
-
'Avoid dynamic content insertion',
|
|
267
|
-
'Use CSS transforms for animations',
|
|
268
|
-
],
|
|
269
|
-
},
|
|
270
|
-
|
|
271
|
-
// Total Blocking Time (TBT)
|
|
272
|
-
tbt: {
|
|
273
|
-
target: '< 200ms',
|
|
274
|
-
current: '?',
|
|
275
|
-
optimizations: [
|
|
276
|
-
'Code splitting',
|
|
277
|
-
'Remove unused polyfills',
|
|
278
|
-
'Optimize third-party code',
|
|
279
|
-
'Use setTimeout for heavy operations',
|
|
280
|
-
],
|
|
281
|
-
},
|
|
282
|
-
};
|
|
283
|
-
```
|
|
284
|
-
|
|
285
|
-
### 3. Bundle Performance
|
|
286
|
-
```javascript
|
|
287
|
-
// Bundle analysis report
|
|
288
|
-
const bundleAnalysis = {
|
|
289
|
-
totalSize: '?', // From webpack-bundle-analyzer
|
|
290
|
-
firstLoadJS: '?', // Critical for performance
|
|
291
|
-
chunks: {
|
|
292
|
-
main: '?',
|
|
293
|
-
framework: '?',
|
|
294
|
-
vendor: '?',
|
|
295
|
-
pages: '?',
|
|
296
|
-
},
|
|
297
|
-
|
|
298
|
-
recommendations: [
|
|
299
|
-
// Dynamic imports for code splitting
|
|
300
|
-
{
|
|
301
|
-
type: 'Dynamic Import',
|
|
302
|
-
description: 'Use dynamic imports for non-critical components',
|
|
303
|
-
example: `
|
|
304
|
-
const HeavyComponent = dynamic(() => import('./HeavyComponent'), {
|
|
305
|
-
loading: () => <Loading />,
|
|
306
|
-
ssr: false
|
|
307
|
-
});
|
|
308
|
-
`,
|
|
309
|
-
},
|
|
310
|
-
|
|
311
|
-
// Tree shaking optimization
|
|
312
|
-
{
|
|
313
|
-
type: 'Tree Shaking',
|
|
314
|
-
description: 'Import only needed functions from libraries',
|
|
315
|
-
example: `
|
|
316
|
-
// ❌ Imports entire library
|
|
317
|
-
import * as _ from 'lodash';
|
|
318
|
-
|
|
319
|
-
// ✅ Import only needed functions
|
|
320
|
-
import { debounce, throttle } from 'lodash';
|
|
321
|
-
`,
|
|
322
|
-
},
|
|
323
|
-
|
|
324
|
-
// Bundle splitting
|
|
325
|
-
{
|
|
326
|
-
type: 'Bundle Splitting',
|
|
327
|
-
description: 'Optimize webpack chunk splitting',
|
|
328
|
-
example: `
|
|
329
|
-
module.exports = {
|
|
330
|
-
webpack: (config, { isServer }) => {
|
|
331
|
-
if (!isServer) {
|
|
332
|
-
config.optimization.splitChunks.cacheGroups = {
|
|
333
|
-
vendor: {
|
|
334
|
-
test: /[\\/]node_modules[\\/]/,
|
|
335
|
-
name: 'vendors',
|
|
336
|
-
chunks: 'all',
|
|
337
|
-
},
|
|
338
|
-
};
|
|
339
|
-
}
|
|
340
|
-
return config;
|
|
341
|
-
},
|
|
342
|
-
};
|
|
343
|
-
`,
|
|
344
|
-
},
|
|
345
|
-
],
|
|
346
|
-
};
|
|
347
|
-
```
|
|
348
|
-
|
|
349
|
-
## Optimization Recommendations
|
|
350
|
-
|
|
351
|
-
### 1. Image Optimization
|
|
352
|
-
```typescript
|
|
353
|
-
// Image optimization analysis
|
|
354
|
-
const imageOptimization = {
|
|
355
|
-
// Next.js Image component usage
|
|
356
|
-
nextImageUsage: 'Analyze usage of next/image vs <img>',
|
|
357
|
-
|
|
358
|
-
recommendations: [
|
|
359
|
-
{
|
|
360
|
-
priority: 'High',
|
|
361
|
-
description: 'Replace <img> tags with Next.js Image component',
|
|
362
|
-
implementation: `
|
|
363
|
-
import Image from 'next/image';
|
|
364
|
-
|
|
365
|
-
// ❌ Regular img tag
|
|
366
|
-
<img src="/hero.jpg" alt="Hero" />
|
|
367
|
-
|
|
368
|
-
// ✅ Next.js Image component
|
|
369
|
-
<Image
|
|
370
|
-
src="/hero.jpg"
|
|
371
|
-
alt="Hero"
|
|
372
|
-
width={1200}
|
|
373
|
-
height={600}
|
|
374
|
-
priority={true} // For above-the-fold images
|
|
375
|
-
placeholder="blur"
|
|
376
|
-
blurDataURL="data:image/jpeg;base64,..."
|
|
377
|
-
/>
|
|
378
|
-
`,
|
|
379
|
-
},
|
|
380
|
-
{
|
|
381
|
-
priority: 'Medium',
|
|
382
|
-
description: 'Implement responsive images with sizes prop',
|
|
383
|
-
implementation: `
|
|
384
|
-
<Image
|
|
385
|
-
src="/hero.jpg"
|
|
386
|
-
alt="Hero"
|
|
387
|
-
width={1200}
|
|
388
|
-
height={600}
|
|
389
|
-
sizes="(max-width: 768px) 100vw, (max-width: 1200px) 50vw, 33vw"
|
|
390
|
-
/>
|
|
391
|
-
`,
|
|
392
|
-
},
|
|
393
|
-
{
|
|
394
|
-
priority: 'Low',
|
|
395
|
-
description: 'Configure custom image loader for CDN',
|
|
396
|
-
implementation: `
|
|
397
|
-
// next.config.js
|
|
398
|
-
module.exports = {
|
|
399
|
-
images: {
|
|
400
|
-
loader: 'cloudinary',
|
|
401
|
-
path: 'https://res.cloudinary.com/demo/image/fetch/',
|
|
402
|
-
},
|
|
403
|
-
};
|
|
404
|
-
`,
|
|
405
|
-
},
|
|
406
|
-
],
|
|
407
|
-
};
|
|
408
|
-
```
|
|
409
|
-
|
|
410
|
-
### 2. CSS Optimization
|
|
411
|
-
```css
|
|
412
|
-
/* Critical CSS analysis */
|
|
413
|
-
.critical-css-audit {
|
|
414
|
-
/* Above-the-fold styles that should be inlined */
|
|
415
|
-
}
|
|
416
|
-
|
|
417
|
-
/* Non-critical CSS that can be loaded asynchronously */
|
|
418
|
-
.non-critical-css {
|
|
419
|
-
/* Styles for below-the-fold content */
|
|
420
|
-
}
|
|
421
|
-
```
|
|
422
|
-
|
|
423
|
-
```typescript
|
|
424
|
-
// CSS optimization recommendations
|
|
425
|
-
const cssOptimization = {
|
|
426
|
-
recommendations: [
|
|
427
|
-
{
|
|
428
|
-
type: 'Critical CSS',
|
|
429
|
-
description: 'Inline critical CSS for faster initial render',
|
|
430
|
-
implementation: 'Use styled-jsx or CSS-in-JS for critical styles',
|
|
431
|
-
},
|
|
432
|
-
{
|
|
433
|
-
type: 'CSS Modules',
|
|
434
|
-
description: 'Use CSS Modules to avoid global namespace pollution',
|
|
435
|
-
implementation: 'Import styles as modules: import styles from "./Component.module.css"',
|
|
436
|
-
},
|
|
437
|
-
{
|
|
438
|
-
type: 'Tailwind Purging',
|
|
439
|
-
description: 'Ensure unused Tailwind classes are purged',
|
|
440
|
-
implementation: 'Configure purge in tailwind.config.js',
|
|
441
|
-
},
|
|
442
|
-
],
|
|
443
|
-
};
|
|
444
|
-
```
|
|
445
|
-
|
|
446
|
-
### 3. JavaScript Optimization
|
|
447
|
-
```typescript
|
|
448
|
-
// JavaScript optimization analysis
|
|
449
|
-
const jsOptimization = {
|
|
450
|
-
recommendations: [
|
|
451
|
-
{
|
|
452
|
-
priority: 'High',
|
|
453
|
-
type: 'Code Splitting',
|
|
454
|
-
description: 'Implement route-based and component-based code splitting',
|
|
455
|
-
example: `
|
|
456
|
-
// Route-based splitting (automatic with Next.js pages)
|
|
457
|
-
|
|
458
|
-
// Component-based splitting
|
|
459
|
-
const LazyComponent = dynamic(() => import('./LazyComponent'));
|
|
460
|
-
|
|
461
|
-
// Conditional loading
|
|
462
|
-
const AdminPanel = dynamic(() => import('./AdminPanel'), {
|
|
463
|
-
ssr: false,
|
|
464
|
-
loading: () => <AdminSkeleton />,
|
|
465
|
-
});
|
|
466
|
-
`,
|
|
467
|
-
},
|
|
468
|
-
{
|
|
469
|
-
priority: 'Medium',
|
|
470
|
-
type: 'Tree Shaking',
|
|
471
|
-
description: 'Ensure unused code is eliminated',
|
|
472
|
-
example: `
|
|
473
|
-
// ❌ Imports entire library
|
|
474
|
-
import moment from 'moment';
|
|
475
|
-
|
|
476
|
-
// ✅ Use tree-shakable alternative
|
|
477
|
-
import { format } from 'date-fns';
|
|
478
|
-
|
|
479
|
-
// ✅ Or import specific functions
|
|
480
|
-
import debounce from 'lodash/debounce';
|
|
481
|
-
`,
|
|
482
|
-
},
|
|
483
|
-
{
|
|
484
|
-
priority: 'Medium',
|
|
485
|
-
type: 'Polyfill Optimization',
|
|
486
|
-
description: 'Reduce polyfill size by targeting modern browsers',
|
|
487
|
-
example: `
|
|
488
|
-
// next.config.js
|
|
489
|
-
module.exports = {
|
|
490
|
-
experimental: {
|
|
491
|
-
browsersListForSwc: true,
|
|
492
|
-
},
|
|
493
|
-
};
|
|
494
|
-
`,
|
|
495
|
-
},
|
|
496
|
-
],
|
|
497
|
-
};
|
|
498
|
-
```
|
|
499
|
-
|
|
500
|
-
## Performance Monitoring Setup
|
|
501
|
-
|
|
502
|
-
### 1. Real User Monitoring (RUM)
|
|
503
|
-
```typescript
|
|
504
|
-
// pages/_app.tsx
|
|
505
|
-
import { reportWebVitals } from '../lib/analytics';
|
|
506
|
-
|
|
507
|
-
export { reportWebVitals };
|
|
508
|
-
|
|
509
|
-
export default function MyApp({ Component, pageProps }) {
|
|
510
|
-
return (
|
|
511
|
-
<>
|
|
512
|
-
<Component {...pageProps} />
|
|
513
|
-
{process.env.NODE_ENV === 'production' && (
|
|
514
|
-
<script
|
|
515
|
-
dangerouslySetInnerHTML={{
|
|
516
|
-
__html: `
|
|
517
|
-
// Custom RUM implementation
|
|
518
|
-
window.addEventListener('load', () => {
|
|
519
|
-
// Track page load time
|
|
520
|
-
const loadTime = performance.timing.loadEventEnd - performance.timing.navigationStart;
|
|
521
|
-
fetch('/api/analytics/performance', {
|
|
522
|
-
method: 'POST',
|
|
523
|
-
headers: { 'Content-Type': 'application/json' },
|
|
524
|
-
body: JSON.stringify({
|
|
525
|
-
metric: 'page_load_time',
|
|
526
|
-
value: loadTime,
|
|
527
|
-
url: window.location.href,
|
|
528
|
-
}),
|
|
529
|
-
});
|
|
530
|
-
});
|
|
531
|
-
`,
|
|
532
|
-
}}
|
|
533
|
-
/>
|
|
534
|
-
)}
|
|
535
|
-
</>
|
|
536
|
-
);
|
|
537
|
-
}
|
|
538
|
-
```
|
|
539
|
-
|
|
540
|
-
### 2. Performance Budget
|
|
541
|
-
```javascript
|
|
542
|
-
// webpack.config.js - Performance budgets
|
|
543
|
-
module.exports = {
|
|
544
|
-
performance: {
|
|
545
|
-
maxAssetSize: 250000, // 250KB
|
|
546
|
-
maxEntrypointSize: 400000, // 400KB
|
|
547
|
-
hints: process.env.NODE_ENV === 'production' ? 'error' : 'warning',
|
|
548
|
-
},
|
|
549
|
-
};
|
|
550
|
-
```
|
|
551
|
-
|
|
552
|
-
### 3. Continuous Performance Monitoring
|
|
553
|
-
```yaml
|
|
554
|
-
# .github/workflows/performance.yml
|
|
555
|
-
name: Performance Audit
|
|
556
|
-
on:
|
|
557
|
-
pull_request:
|
|
558
|
-
branches: [main]
|
|
559
|
-
|
|
560
|
-
jobs:
|
|
561
|
-
lighthouse:
|
|
562
|
-
runs-on: ubuntu-latest
|
|
563
|
-
steps:
|
|
564
|
-
- uses: actions/checkout@v3
|
|
565
|
-
- uses: actions/setup-node@v3
|
|
566
|
-
with:
|
|
567
|
-
node-version: '18'
|
|
568
|
-
|
|
569
|
-
- name: Install dependencies
|
|
570
|
-
run: npm ci
|
|
571
|
-
|
|
572
|
-
- name: Build Next.js
|
|
573
|
-
run: npm run build
|
|
574
|
-
|
|
575
|
-
- name: Start Next.js
|
|
576
|
-
run: npm start &
|
|
577
|
-
|
|
578
|
-
- name: Wait for server
|
|
579
|
-
run: npx wait-on http://localhost:3000
|
|
580
|
-
|
|
581
|
-
- name: Run Lighthouse CI
|
|
582
|
-
run: |
|
|
583
|
-
npm install -g @lhci/cli@0.12.x
|
|
584
|
-
lhci autorun
|
|
585
|
-
env:
|
|
586
|
-
LHCI_GITHUB_APP_TOKEN: ${{ secrets.LHCI_GITHUB_APP_TOKEN }}
|
|
587
|
-
```
|
|
588
|
-
|
|
589
|
-
## Performance Report Generation
|
|
590
|
-
|
|
591
|
-
### 1. Comprehensive Audit Report
|
|
592
|
-
Generate detailed performance report including:
|
|
593
|
-
|
|
594
|
-
#### Executive Summary
|
|
595
|
-
- Overall performance score (0-100)
|
|
596
|
-
- Core Web Vitals status
|
|
597
|
-
- Key performance issues
|
|
598
|
-
- Impact on user experience
|
|
599
|
-
|
|
600
|
-
#### Detailed Analysis
|
|
601
|
-
- Loading performance breakdown
|
|
602
|
-
- Runtime performance metrics
|
|
603
|
-
- Bundle analysis and recommendations
|
|
604
|
-
- Image optimization opportunities
|
|
605
|
-
- CSS and JavaScript optimization
|
|
606
|
-
|
|
607
|
-
#### Action Plan
|
|
608
|
-
- High priority fixes (immediate impact)
|
|
609
|
-
- Medium priority improvements (moderate impact)
|
|
610
|
-
- Long-term optimization strategy
|
|
611
|
-
- Performance monitoring setup
|
|
612
|
-
|
|
613
|
-
#### Implementation Roadmap
|
|
614
|
-
1. **Week 1**: Critical performance fixes
|
|
615
|
-
2. **Week 2-3**: Image and asset optimization
|
|
616
|
-
3. **Week 4**: Bundle optimization and code splitting
|
|
617
|
-
4. **Ongoing**: Performance monitoring and regression prevention
|
|
618
|
-
|
|
619
|
-
### 2. Performance Tracking Dashboard
|
|
620
|
-
```typescript
|
|
621
|
-
// Create performance dashboard component
|
|
622
|
-
const PerformanceDashboard = () => {
|
|
623
|
-
return (
|
|
624
|
-
<div className="performance-dashboard">
|
|
625
|
-
<h2>Performance Metrics</h2>
|
|
626
|
-
|
|
627
|
-
{/* Core Web Vitals */}
|
|
628
|
-
<section>
|
|
629
|
-
<h3>Core Web Vitals</h3>
|
|
630
|
-
<div className="metrics-grid">
|
|
631
|
-
<MetricCard title="LCP" value="2.1s" target="< 2.5s" status="good" />
|
|
632
|
-
<MetricCard title="FID" value="89ms" target="< 100ms" status="good" />
|
|
633
|
-
<MetricCard title="CLS" value="0.08" target="< 0.1" status="good" />
|
|
634
|
-
</div>
|
|
635
|
-
</section>
|
|
636
|
-
|
|
637
|
-
{/* Bundle Analysis */}
|
|
638
|
-
<section>
|
|
639
|
-
<h3>Bundle Analysis</h3>
|
|
640
|
-
<BundleChart data={bundleData} />
|
|
641
|
-
</section>
|
|
642
|
-
|
|
643
|
-
{/* Performance Trends */}
|
|
644
|
-
<section>
|
|
645
|
-
<h3>Performance Trends</h3>
|
|
646
|
-
<TrendChart metrics={performanceHistory} />
|
|
647
|
-
</section>
|
|
648
|
-
</div>
|
|
649
|
-
);
|
|
650
|
-
};
|
|
651
|
-
```
|
|
652
|
-
|
|
653
|
-
Provide comprehensive performance audit with specific, measurable recommendations and implementation guidance for immediate and long-term optimization.
|