claude-code-templates 1.21.6 → 1.21.8
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/sandbox/e2b/e2b-launcher.py +0 -1
- 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,583 +0,0 @@
|
|
|
1
|
-
# Convert Code Analysis to Linear Tasks
|
|
2
|
-
|
|
3
|
-
Convert code analysis to Linear tasks
|
|
4
|
-
|
|
5
|
-
## Purpose
|
|
6
|
-
This command scans your codebase for TODO/FIXME comments, technical debt markers, deprecated code, and other indicators that should be tracked as tasks. It automatically creates organized, prioritized Linear tasks to ensure important code improvements aren't forgotten.
|
|
7
|
-
|
|
8
|
-
## Usage
|
|
9
|
-
```bash
|
|
10
|
-
# Scan entire codebase for TODOs and create tasks
|
|
11
|
-
claude "Create tasks from all TODO comments in the codebase"
|
|
12
|
-
|
|
13
|
-
# Scan specific directory or module
|
|
14
|
-
claude "Find TODOs in src/api and create Linear tasks"
|
|
15
|
-
|
|
16
|
-
# Create tasks from specific patterns
|
|
17
|
-
claude "Create tasks for all deprecated functions"
|
|
18
|
-
|
|
19
|
-
# Generate technical debt report
|
|
20
|
-
claude "Analyze technical debt in the project and create improvement tasks"
|
|
21
|
-
```
|
|
22
|
-
|
|
23
|
-
## Instructions
|
|
24
|
-
|
|
25
|
-
### 1. Scan for Task Markers
|
|
26
|
-
Search for common patterns indicating needed work:
|
|
27
|
-
|
|
28
|
-
```bash
|
|
29
|
-
# Find TODO comments
|
|
30
|
-
rg "TODO|FIXME|HACK|XXX|OPTIMIZE|REFACTOR" --type-add 'code:*.{js,ts,py,java,go,rb,php}' -t code
|
|
31
|
-
|
|
32
|
-
# Find deprecated markers
|
|
33
|
-
rg "@deprecated|DEPRECATED|@obsolete" -t code
|
|
34
|
-
|
|
35
|
-
# Find temporary code
|
|
36
|
-
rg "TEMPORARY|TEMP|REMOVE BEFORE|DELETE ME" -t code -i
|
|
37
|
-
|
|
38
|
-
# Find technical debt markers
|
|
39
|
-
rg "TECHNICAL DEBT|TECH DEBT|REFACTOR|NEEDS REFACTORING" -t code -i
|
|
40
|
-
|
|
41
|
-
# Find security concerns
|
|
42
|
-
rg "SECURITY|INSECURE|VULNERABILITY|CVE-" -t code -i
|
|
43
|
-
|
|
44
|
-
# Find performance issues
|
|
45
|
-
rg "SLOW|PERFORMANCE|OPTIMIZE|BOTTLENECK" -t code -i
|
|
46
|
-
```
|
|
47
|
-
|
|
48
|
-
### 2. Parse Comment Context
|
|
49
|
-
Extract meaningful information from comments:
|
|
50
|
-
|
|
51
|
-
```javascript
|
|
52
|
-
class CommentParser {
|
|
53
|
-
parseComment(file, lineNumber, comment) {
|
|
54
|
-
const parsed = {
|
|
55
|
-
type: 'todo',
|
|
56
|
-
priority: 'medium',
|
|
57
|
-
title: '',
|
|
58
|
-
description: '',
|
|
59
|
-
author: null,
|
|
60
|
-
date: null,
|
|
61
|
-
tags: [],
|
|
62
|
-
code_context: '',
|
|
63
|
-
file_path: file,
|
|
64
|
-
line_number: lineNumber
|
|
65
|
-
};
|
|
66
|
-
|
|
67
|
-
// Detect comment type
|
|
68
|
-
if (comment.match(/FIXME/i)) {
|
|
69
|
-
parsed.type = 'fixme';
|
|
70
|
-
parsed.priority = 'high';
|
|
71
|
-
} else if (comment.match(/HACK|XXX/i)) {
|
|
72
|
-
parsed.type = 'hack';
|
|
73
|
-
parsed.priority = 'high';
|
|
74
|
-
} else if (comment.match(/OPTIMIZE|PERFORMANCE/i)) {
|
|
75
|
-
parsed.type = 'optimization';
|
|
76
|
-
} else if (comment.match(/DEPRECATED/i)) {
|
|
77
|
-
parsed.type = 'deprecation';
|
|
78
|
-
parsed.priority = 'high';
|
|
79
|
-
} else if (comment.match(/SECURITY/i)) {
|
|
80
|
-
parsed.type = 'security';
|
|
81
|
-
parsed.priority = 'urgent';
|
|
82
|
-
}
|
|
83
|
-
|
|
84
|
-
// Extract author and date
|
|
85
|
-
const authorMatch = comment.match(/@(\w+)|by (\w+)/i);
|
|
86
|
-
if (authorMatch) {
|
|
87
|
-
parsed.author = authorMatch[1] || authorMatch[2];
|
|
88
|
-
}
|
|
89
|
-
|
|
90
|
-
const dateMatch = comment.match(/(\d{4}-\d{2}-\d{2})|(\d{1,2}\/\d{1,2}\/\d{2,4})/);
|
|
91
|
-
if (dateMatch) {
|
|
92
|
-
parsed.date = dateMatch[0];
|
|
93
|
-
}
|
|
94
|
-
|
|
95
|
-
// Extract title and description
|
|
96
|
-
const cleanComment = comment
|
|
97
|
-
.replace(/^\/\/\s*|^\/\*\s*|\*\/\s*$|^#\s*/g, '')
|
|
98
|
-
.replace(/TODO|FIXME|HACK|XXX/i, '')
|
|
99
|
-
.trim();
|
|
100
|
-
|
|
101
|
-
const parts = cleanComment.split(/[:\-–—]/);
|
|
102
|
-
if (parts.length > 1) {
|
|
103
|
-
parsed.title = parts[0].trim();
|
|
104
|
-
parsed.description = parts.slice(1).join(':').trim();
|
|
105
|
-
} else {
|
|
106
|
-
parsed.title = cleanComment;
|
|
107
|
-
}
|
|
108
|
-
|
|
109
|
-
// Extract tags
|
|
110
|
-
const tagMatch = comment.match(/#(\w+)/g);
|
|
111
|
-
if (tagMatch) {
|
|
112
|
-
parsed.tags = tagMatch.map(tag => tag.substring(1));
|
|
113
|
-
}
|
|
114
|
-
|
|
115
|
-
return parsed;
|
|
116
|
-
}
|
|
117
|
-
|
|
118
|
-
getCodeContext(file, lineNumber, contextLines = 5) {
|
|
119
|
-
const lines = readFileLines(file);
|
|
120
|
-
const start = Math.max(0, lineNumber - contextLines);
|
|
121
|
-
const end = Math.min(lines.length, lineNumber + contextLines);
|
|
122
|
-
|
|
123
|
-
return lines.slice(start, end).map((line, i) => ({
|
|
124
|
-
number: start + i + 1,
|
|
125
|
-
content: line,
|
|
126
|
-
isTarget: start + i + 1 === lineNumber
|
|
127
|
-
}));
|
|
128
|
-
}
|
|
129
|
-
}
|
|
130
|
-
```
|
|
131
|
-
|
|
132
|
-
### 3. Group and Deduplicate
|
|
133
|
-
Organize found issues intelligently:
|
|
134
|
-
|
|
135
|
-
```javascript
|
|
136
|
-
class TaskGrouper {
|
|
137
|
-
groupTasks(parsedComments) {
|
|
138
|
-
const groups = {
|
|
139
|
-
byFile: new Map(),
|
|
140
|
-
byType: new Map(),
|
|
141
|
-
byAuthor: new Map(),
|
|
142
|
-
byModule: new Map()
|
|
143
|
-
};
|
|
144
|
-
|
|
145
|
-
for (const comment of parsedComments) {
|
|
146
|
-
// Group by file
|
|
147
|
-
if (!groups.byFile.has(comment.file_path)) {
|
|
148
|
-
groups.byFile.set(comment.file_path, []);
|
|
149
|
-
}
|
|
150
|
-
groups.byFile.get(comment.file_path).push(comment);
|
|
151
|
-
|
|
152
|
-
// Group by type
|
|
153
|
-
if (!groups.byType.has(comment.type)) {
|
|
154
|
-
groups.byType.set(comment.type, []);
|
|
155
|
-
}
|
|
156
|
-
groups.byType.get(comment.type).push(comment);
|
|
157
|
-
|
|
158
|
-
// Group by module
|
|
159
|
-
const module = this.extractModule(comment.file_path);
|
|
160
|
-
if (!groups.byModule.has(module)) {
|
|
161
|
-
groups.byModule.set(module, []);
|
|
162
|
-
}
|
|
163
|
-
groups.byModule.get(module).push(comment);
|
|
164
|
-
}
|
|
165
|
-
|
|
166
|
-
return groups;
|
|
167
|
-
}
|
|
168
|
-
|
|
169
|
-
mergeSimilarTasks(tasks) {
|
|
170
|
-
const merged = [];
|
|
171
|
-
const seen = new Set();
|
|
172
|
-
|
|
173
|
-
for (const task of tasks) {
|
|
174
|
-
if (seen.has(task)) continue;
|
|
175
|
-
|
|
176
|
-
// Find similar tasks
|
|
177
|
-
const similar = tasks.filter(t =>
|
|
178
|
-
t !== task &&
|
|
179
|
-
!seen.has(t) &&
|
|
180
|
-
this.areSimilar(task, t)
|
|
181
|
-
);
|
|
182
|
-
|
|
183
|
-
if (similar.length > 0) {
|
|
184
|
-
// Merge into one task
|
|
185
|
-
const mergedTask = {
|
|
186
|
-
...task,
|
|
187
|
-
title: this.generateMergedTitle(task, similar),
|
|
188
|
-
description: this.generateMergedDescription(task, similar),
|
|
189
|
-
locations: [task, ...similar].map(t => ({
|
|
190
|
-
file: t.file_path,
|
|
191
|
-
line: t.line_number
|
|
192
|
-
}))
|
|
193
|
-
};
|
|
194
|
-
merged.push(mergedTask);
|
|
195
|
-
seen.add(task);
|
|
196
|
-
similar.forEach(t => seen.add(t));
|
|
197
|
-
} else {
|
|
198
|
-
merged.push(task);
|
|
199
|
-
seen.add(task);
|
|
200
|
-
}
|
|
201
|
-
}
|
|
202
|
-
|
|
203
|
-
return merged;
|
|
204
|
-
}
|
|
205
|
-
}
|
|
206
|
-
```
|
|
207
|
-
|
|
208
|
-
### 4. Analyze Technical Debt
|
|
209
|
-
Identify code quality issues:
|
|
210
|
-
|
|
211
|
-
```javascript
|
|
212
|
-
class TechnicalDebtAnalyzer {
|
|
213
|
-
async analyzeFile(filePath) {
|
|
214
|
-
const issues = [];
|
|
215
|
-
const content = await readFile(filePath);
|
|
216
|
-
const lines = content.split('\n');
|
|
217
|
-
|
|
218
|
-
// Check for long functions
|
|
219
|
-
const functionMatches = content.matchAll(/function\s+(\w+)|(\w+)\s*=\s*\(.*?\)\s*=>/g);
|
|
220
|
-
for (const match of functionMatches) {
|
|
221
|
-
const functionName = match[1] || match[2];
|
|
222
|
-
const startLine = getLineNumber(content, match.index);
|
|
223
|
-
const functionLength = this.getFunctionLength(lines, startLine);
|
|
224
|
-
|
|
225
|
-
if (functionLength > 50) {
|
|
226
|
-
issues.push({
|
|
227
|
-
type: 'long_function',
|
|
228
|
-
severity: functionLength > 100 ? 'high' : 'medium',
|
|
229
|
-
title: `Refactor long function: ${functionName}`,
|
|
230
|
-
description: `Function ${functionName} is ${functionLength} lines long. Consider breaking it into smaller functions.`,
|
|
231
|
-
file_path: filePath,
|
|
232
|
-
line_number: startLine
|
|
233
|
-
});
|
|
234
|
-
}
|
|
235
|
-
}
|
|
236
|
-
|
|
237
|
-
// Check for duplicate code
|
|
238
|
-
const duplicates = await this.findDuplicateCode(filePath);
|
|
239
|
-
for (const dup of duplicates) {
|
|
240
|
-
issues.push({
|
|
241
|
-
type: 'duplicate_code',
|
|
242
|
-
severity: 'medium',
|
|
243
|
-
title: 'Remove duplicate code',
|
|
244
|
-
description: `Similar code found in ${dup.otherFile}:${dup.otherLine}`,
|
|
245
|
-
file_path: filePath,
|
|
246
|
-
line_number: dup.line
|
|
247
|
-
});
|
|
248
|
-
}
|
|
249
|
-
|
|
250
|
-
// Check for complex conditionals
|
|
251
|
-
const complexConditions = content.matchAll(/if\s*\([^)]{50,}\)/g);
|
|
252
|
-
for (const match of complexConditions) {
|
|
253
|
-
issues.push({
|
|
254
|
-
type: 'complex_condition',
|
|
255
|
-
severity: 'low',
|
|
256
|
-
title: 'Simplify complex conditional',
|
|
257
|
-
description: 'Consider extracting conditional logic into named variables or functions',
|
|
258
|
-
file_path: filePath,
|
|
259
|
-
line_number: getLineNumber(content, match.index)
|
|
260
|
-
});
|
|
261
|
-
}
|
|
262
|
-
|
|
263
|
-
// Check for outdated dependencies
|
|
264
|
-
if (filePath.endsWith('package.json')) {
|
|
265
|
-
const outdated = await this.checkOutdatedDependencies(filePath);
|
|
266
|
-
for (const dep of outdated) {
|
|
267
|
-
issues.push({
|
|
268
|
-
type: 'outdated_dependency',
|
|
269
|
-
severity: dep.major ? 'high' : 'low',
|
|
270
|
-
title: `Update ${dep.name} from ${dep.current} to ${dep.latest}`,
|
|
271
|
-
description: dep.major ? 'Major version update available' : 'Minor update available',
|
|
272
|
-
file_path: filePath
|
|
273
|
-
});
|
|
274
|
-
}
|
|
275
|
-
}
|
|
276
|
-
|
|
277
|
-
return issues;
|
|
278
|
-
}
|
|
279
|
-
}
|
|
280
|
-
```
|
|
281
|
-
|
|
282
|
-
### 5. Create Linear Tasks
|
|
283
|
-
Convert findings into actionable tasks:
|
|
284
|
-
|
|
285
|
-
```javascript
|
|
286
|
-
async function createLinearTasks(groupedTasks, options = {}) {
|
|
287
|
-
const created = [];
|
|
288
|
-
const skipped = [];
|
|
289
|
-
|
|
290
|
-
// Check for existing tasks to avoid duplicates
|
|
291
|
-
const existingTasks = await linear.searchTasks('TODO OR FIXME');
|
|
292
|
-
const existingTitles = new Set(existingTasks.map(t => t.title));
|
|
293
|
-
|
|
294
|
-
// Create parent task for large groups
|
|
295
|
-
if (options.createEpic && groupedTasks.length > 10) {
|
|
296
|
-
const epic = await linear.createTask({
|
|
297
|
-
title: `Technical Debt: ${options.module || 'Codebase'} Cleanup`,
|
|
298
|
-
description: `Parent task for ${groupedTasks.length} code improvements`,
|
|
299
|
-
priority: 2,
|
|
300
|
-
labels: ['technical-debt', 'code-quality']
|
|
301
|
-
});
|
|
302
|
-
options.parentId = epic.id;
|
|
303
|
-
}
|
|
304
|
-
|
|
305
|
-
for (const task of groupedTasks) {
|
|
306
|
-
// Skip if similar task exists
|
|
307
|
-
if (existingTitles.has(task.title)) {
|
|
308
|
-
skipped.push({ task, reason: 'duplicate' });
|
|
309
|
-
continue;
|
|
310
|
-
}
|
|
311
|
-
|
|
312
|
-
// Build task description
|
|
313
|
-
const description = buildTaskDescription(task);
|
|
314
|
-
|
|
315
|
-
// Map priority
|
|
316
|
-
const priorityMap = {
|
|
317
|
-
urgent: 1,
|
|
318
|
-
high: 2,
|
|
319
|
-
medium: 3,
|
|
320
|
-
low: 4
|
|
321
|
-
};
|
|
322
|
-
|
|
323
|
-
try {
|
|
324
|
-
const linearTask = await linear.createTask({
|
|
325
|
-
title: task.title,
|
|
326
|
-
description,
|
|
327
|
-
priority: priorityMap[task.priority] || 3,
|
|
328
|
-
labels: getLabelsForTask(task),
|
|
329
|
-
parentId: options.parentId,
|
|
330
|
-
estimate: estimateTaskSize(task)
|
|
331
|
-
});
|
|
332
|
-
|
|
333
|
-
created.push({
|
|
334
|
-
linear: linearTask,
|
|
335
|
-
source: task
|
|
336
|
-
});
|
|
337
|
-
|
|
338
|
-
// Add code link as comment
|
|
339
|
-
await linear.createComment({
|
|
340
|
-
issueId: linearTask.id,
|
|
341
|
-
body: `📍 Code location: \`${task.file_path}:${task.line_number}\``
|
|
342
|
-
});
|
|
343
|
-
|
|
344
|
-
} catch (error) {
|
|
345
|
-
skipped.push({ task, reason: error.message });
|
|
346
|
-
}
|
|
347
|
-
}
|
|
348
|
-
|
|
349
|
-
return { created, skipped };
|
|
350
|
-
}
|
|
351
|
-
|
|
352
|
-
function buildTaskDescription(task) {
|
|
353
|
-
let description = task.description || '';
|
|
354
|
-
|
|
355
|
-
// Add code context
|
|
356
|
-
if (task.code_context) {
|
|
357
|
-
description += '\n\n### Code Context\n```\n';
|
|
358
|
-
task.code_context.forEach(line => {
|
|
359
|
-
const prefix = line.isTarget ? '>>> ' : ' ';
|
|
360
|
-
description += `${prefix}${line.number}: ${line.content}\n`;
|
|
361
|
-
});
|
|
362
|
-
description += '```\n';
|
|
363
|
-
}
|
|
364
|
-
|
|
365
|
-
// Add metadata
|
|
366
|
-
description += '\n\n### Details\n';
|
|
367
|
-
description += `- **Type**: ${task.type}\n`;
|
|
368
|
-
description += `- **File**: \`${task.file_path}\`\n`;
|
|
369
|
-
description += `- **Line**: ${task.line_number}\n`;
|
|
370
|
-
|
|
371
|
-
if (task.author) {
|
|
372
|
-
description += `- **Author**: @${task.author}\n`;
|
|
373
|
-
}
|
|
374
|
-
if (task.date) {
|
|
375
|
-
description += `- **Date**: ${task.date}\n`;
|
|
376
|
-
}
|
|
377
|
-
if (task.tags.length > 0) {
|
|
378
|
-
description += `- **Tags**: ${task.tags.join(', ')}\n`;
|
|
379
|
-
}
|
|
380
|
-
|
|
381
|
-
// Add suggestions
|
|
382
|
-
if (task.type === 'deprecated') {
|
|
383
|
-
description += '\n### Suggested Actions\n';
|
|
384
|
-
description += '1. Identify all usages of this deprecated code\n';
|
|
385
|
-
description += '2. Update to use the recommended alternative\n';
|
|
386
|
-
description += '3. Add deprecation warnings if not present\n';
|
|
387
|
-
description += '4. Schedule for removal in next major version\n';
|
|
388
|
-
}
|
|
389
|
-
|
|
390
|
-
return description;
|
|
391
|
-
}
|
|
392
|
-
```
|
|
393
|
-
|
|
394
|
-
### 6. Generate Summary Report
|
|
395
|
-
Create overview of findings:
|
|
396
|
-
|
|
397
|
-
```javascript
|
|
398
|
-
function generateReport(scanResults, createdTasks) {
|
|
399
|
-
const report = {
|
|
400
|
-
summary: {
|
|
401
|
-
totalFound: scanResults.length,
|
|
402
|
-
tasksCreated: createdTasks.created.length,
|
|
403
|
-
tasksSkipped: createdTasks.skipped.length,
|
|
404
|
-
byType: {},
|
|
405
|
-
byPriority: {},
|
|
406
|
-
byFile: {}
|
|
407
|
-
},
|
|
408
|
-
details: [],
|
|
409
|
-
recommendations: []
|
|
410
|
-
};
|
|
411
|
-
|
|
412
|
-
// Analyze distribution
|
|
413
|
-
for (const result of scanResults) {
|
|
414
|
-
report.summary.byType[result.type] = (report.summary.byType[result.type] || 0) + 1;
|
|
415
|
-
report.summary.byPriority[result.priority] = (report.summary.byPriority[result.priority] || 0) + 1;
|
|
416
|
-
}
|
|
417
|
-
|
|
418
|
-
// Generate recommendations
|
|
419
|
-
if (report.summary.byType.security > 0) {
|
|
420
|
-
report.recommendations.push({
|
|
421
|
-
priority: 'urgent',
|
|
422
|
-
action: 'Address security-related TODOs immediately',
|
|
423
|
-
tasks: scanResults.filter(r => r.type === 'security').length
|
|
424
|
-
});
|
|
425
|
-
}
|
|
426
|
-
|
|
427
|
-
if (report.summary.byType.deprecated > 5) {
|
|
428
|
-
report.recommendations.push({
|
|
429
|
-
priority: 'high',
|
|
430
|
-
action: 'Create deprecation removal sprint',
|
|
431
|
-
tasks: report.summary.byType.deprecated
|
|
432
|
-
});
|
|
433
|
-
}
|
|
434
|
-
|
|
435
|
-
return report;
|
|
436
|
-
}
|
|
437
|
-
```
|
|
438
|
-
|
|
439
|
-
### 7. Error Handling
|
|
440
|
-
```javascript
|
|
441
|
-
// Handle access errors
|
|
442
|
-
try {
|
|
443
|
-
await scanDirectory(path);
|
|
444
|
-
} catch (error) {
|
|
445
|
-
if (error.code === 'EACCES') {
|
|
446
|
-
console.warn(`Skipping ${path} - permission denied`);
|
|
447
|
-
}
|
|
448
|
-
}
|
|
449
|
-
|
|
450
|
-
// Handle Linear API limits
|
|
451
|
-
const rateLimiter = {
|
|
452
|
-
tasksCreated: 0,
|
|
453
|
-
resetTime: Date.now() + 3600000,
|
|
454
|
-
|
|
455
|
-
async createTask(taskData) {
|
|
456
|
-
if (this.tasksCreated >= 50) {
|
|
457
|
-
console.log('Rate limit approaching, batching remaining tasks...');
|
|
458
|
-
// Create single task with list of TODOs
|
|
459
|
-
return this.createBatchTask(remainingTasks);
|
|
460
|
-
}
|
|
461
|
-
this.tasksCreated++;
|
|
462
|
-
return linear.createTask(taskData);
|
|
463
|
-
}
|
|
464
|
-
};
|
|
465
|
-
|
|
466
|
-
// Handle malformed comments
|
|
467
|
-
const safeParser = {
|
|
468
|
-
parse(comment) {
|
|
469
|
-
try {
|
|
470
|
-
return this.parseComment(comment);
|
|
471
|
-
} catch (error) {
|
|
472
|
-
return {
|
|
473
|
-
type: 'todo',
|
|
474
|
-
title: comment.substring(0, 50) + '...',
|
|
475
|
-
priority: 'low',
|
|
476
|
-
parseError: true
|
|
477
|
-
};
|
|
478
|
-
}
|
|
479
|
-
}
|
|
480
|
-
};
|
|
481
|
-
```
|
|
482
|
-
|
|
483
|
-
## Example Output
|
|
484
|
-
|
|
485
|
-
```
|
|
486
|
-
Scanning codebase for TODOs and technical debt...
|
|
487
|
-
|
|
488
|
-
📊 Scan Results:
|
|
489
|
-
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
490
|
-
|
|
491
|
-
Found 47 items across 23 files:
|
|
492
|
-
• 24 TODOs
|
|
493
|
-
• 8 FIXMEs
|
|
494
|
-
• 5 Deprecated functions
|
|
495
|
-
• 3 Security concerns
|
|
496
|
-
• 7 Performance optimizations
|
|
497
|
-
|
|
498
|
-
🔍 Breakdown by Priority:
|
|
499
|
-
🔴 Urgent: 3 (security related)
|
|
500
|
-
🟠 High: 13 (FIXMEs + deprecations)
|
|
501
|
-
🟡 Medium: 24 (standard TODOs)
|
|
502
|
-
🟢 Low: 7 (optimizations)
|
|
503
|
-
|
|
504
|
-
📁 Hotspot Files:
|
|
505
|
-
1. src/api/auth.js - 8 items
|
|
506
|
-
2. src/utils/validation.js - 6 items
|
|
507
|
-
3. src/models/User.js - 5 items
|
|
508
|
-
|
|
509
|
-
🚨 Critical Findings:
|
|
510
|
-
|
|
511
|
-
1. SECURITY: Hardcoded API key
|
|
512
|
-
File: src/config/api.js:45
|
|
513
|
-
TODO: Remove hardcoded key and use env variable
|
|
514
|
-
→ Creating task with URGENT priority
|
|
515
|
-
|
|
516
|
-
2. DEPRECATED: Legacy authentication method
|
|
517
|
-
File: src/api/auth.js:120
|
|
518
|
-
Multiple usages found in 4 files
|
|
519
|
-
→ Creating migration task
|
|
520
|
-
|
|
521
|
-
3. FIXME: Race condition in concurrent updates
|
|
522
|
-
File: src/services/sync.js:78
|
|
523
|
-
Author: @alice (2024-01-03)
|
|
524
|
-
→ Creating high-priority bug task
|
|
525
|
-
|
|
526
|
-
📝 Task Creation Summary:
|
|
527
|
-
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
528
|
-
|
|
529
|
-
✅ Created 32 Linear tasks:
|
|
530
|
-
- Epic: "Q1 Technical Debt Cleanup" (LIN-456)
|
|
531
|
-
- 3 urgent security tasks
|
|
532
|
-
- 10 high-priority fixes
|
|
533
|
-
- 19 medium-priority improvements
|
|
534
|
-
|
|
535
|
-
⏭️ Skipped 15 items:
|
|
536
|
-
- 8 duplicates (tasks already exist)
|
|
537
|
-
- 4 low-value comments (e.g., "TODO: think about this")
|
|
538
|
-
- 3 external dependencies (waiting on upstream)
|
|
539
|
-
|
|
540
|
-
📊 Estimates:
|
|
541
|
-
- Total story points: 89
|
|
542
|
-
- Estimated effort: 2-3 sprints
|
|
543
|
-
- Recommended team size: 2-3 developers
|
|
544
|
-
|
|
545
|
-
🎯 Recommended Actions:
|
|
546
|
-
1. Schedule security sprint immediately (3 urgent items)
|
|
547
|
-
2. Assign deprecation removal to next sprint (5 items)
|
|
548
|
-
3. Create coding standards to reduce future TODOs
|
|
549
|
-
4. Set up pre-commit hook to limit new TODOs
|
|
550
|
-
|
|
551
|
-
View all created tasks:
|
|
552
|
-
https://linear.app/yourteam/project/q1-technical-debt-cleanup
|
|
553
|
-
```
|
|
554
|
-
|
|
555
|
-
## Advanced Features
|
|
556
|
-
|
|
557
|
-
### Custom Patterns
|
|
558
|
-
Define project-specific patterns:
|
|
559
|
-
```bash
|
|
560
|
-
# Add custom markers to scan
|
|
561
|
-
claude "Scan for REVIEW, QUESTION, and ASSUMPTION comments"
|
|
562
|
-
```
|
|
563
|
-
|
|
564
|
-
### Integration with CI/CD
|
|
565
|
-
```bash
|
|
566
|
-
# Fail build if critical TODOs found
|
|
567
|
-
claude "Check for SECURITY or FIXME comments and exit with error if found"
|
|
568
|
-
```
|
|
569
|
-
|
|
570
|
-
### Scheduled Scans
|
|
571
|
-
```bash
|
|
572
|
-
# Weekly technical debt report
|
|
573
|
-
claude "Generate weekly technical debt report and create tasks for new items"
|
|
574
|
-
```
|
|
575
|
-
|
|
576
|
-
## Tips
|
|
577
|
-
- Run regularly to prevent TODO accumulation
|
|
578
|
-
- Use consistent comment formats across the team
|
|
579
|
-
- Include author and date in TODOs
|
|
580
|
-
- Link TODOs to existing Linear issues when possible
|
|
581
|
-
- Set up IDE snippets for properly formatted TODOs
|
|
582
|
-
- Review and close completed TODO tasks
|
|
583
|
-
- Use TODO comments as a quality gate in PR reviews
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
Read README.md, THEN run `git ls-files | grep -v -f (sed 's|^|^|; s|$|/|' .cursorignore | psub)` to understand the context of the project
|
|
@@ -1,121 +0,0 @@
|
|
|
1
|
-
# Systematically Debug and Fix Errors
|
|
2
|
-
|
|
3
|
-
Systematically debug and fix errors
|
|
4
|
-
|
|
5
|
-
## Instructions
|
|
6
|
-
|
|
7
|
-
Follow this comprehensive debugging methodology to resolve: **$ARGUMENTS**
|
|
8
|
-
|
|
9
|
-
1. **Error Information Gathering**
|
|
10
|
-
- Collect the complete error message, stack trace, and error code
|
|
11
|
-
- Note when the error occurs (timing, conditions, frequency)
|
|
12
|
-
- Identify the environment where the error happens (dev, staging, prod)
|
|
13
|
-
- Gather relevant logs from before and after the error
|
|
14
|
-
|
|
15
|
-
2. **Reproduce the Error**
|
|
16
|
-
- Create a minimal test case that reproduces the error consistently
|
|
17
|
-
- Document the exact steps needed to trigger the error
|
|
18
|
-
- Test in different environments if possible
|
|
19
|
-
- Note any patterns or conditions that affect error occurrence
|
|
20
|
-
|
|
21
|
-
3. **Stack Trace Analysis**
|
|
22
|
-
- Read the stack trace from bottom to top to understand the call chain
|
|
23
|
-
- Identify the exact line where the error originates
|
|
24
|
-
- Trace the execution path leading to the error
|
|
25
|
-
- Look for any obvious issues in the failing code
|
|
26
|
-
|
|
27
|
-
4. **Code Context Investigation**
|
|
28
|
-
- Examine the code around the error location
|
|
29
|
-
- Check recent changes that might have introduced the bug
|
|
30
|
-
- Review variable values and state at the time of error
|
|
31
|
-
- Analyze function parameters and return values
|
|
32
|
-
|
|
33
|
-
5. **Hypothesis Formation**
|
|
34
|
-
- Based on evidence, form hypotheses about the root cause
|
|
35
|
-
- Consider common causes:
|
|
36
|
-
- Null pointer/undefined reference
|
|
37
|
-
- Type mismatches
|
|
38
|
-
- Race conditions
|
|
39
|
-
- Resource exhaustion
|
|
40
|
-
- Logic errors
|
|
41
|
-
- External dependency failures
|
|
42
|
-
|
|
43
|
-
6. **Debugging Tools Setup**
|
|
44
|
-
- Set up appropriate debugging tools for the technology stack
|
|
45
|
-
- Use debugger, profiler, or logging as needed
|
|
46
|
-
- Configure breakpoints at strategic locations
|
|
47
|
-
- Set up monitoring and alerting if not already present
|
|
48
|
-
|
|
49
|
-
7. **Systematic Investigation**
|
|
50
|
-
- Test each hypothesis methodically
|
|
51
|
-
- Use binary search approach to isolate the problem
|
|
52
|
-
- Add strategic logging or print statements
|
|
53
|
-
- Check data flow and transformations step by step
|
|
54
|
-
|
|
55
|
-
8. **Data Validation**
|
|
56
|
-
- Verify input data format and validity
|
|
57
|
-
- Check for edge cases and boundary conditions
|
|
58
|
-
- Validate assumptions about data state
|
|
59
|
-
- Test with different data sets to isolate patterns
|
|
60
|
-
|
|
61
|
-
9. **Dependency Analysis**
|
|
62
|
-
- Check external dependencies and their versions
|
|
63
|
-
- Verify network connectivity and API availability
|
|
64
|
-
- Review configuration files and environment variables
|
|
65
|
-
- Test database connections and query execution
|
|
66
|
-
|
|
67
|
-
10. **Memory and Resource Analysis**
|
|
68
|
-
- Check for memory leaks or excessive memory usage
|
|
69
|
-
- Monitor CPU and I/O resource consumption
|
|
70
|
-
- Analyze garbage collection patterns if applicable
|
|
71
|
-
- Check for resource deadlocks or contention
|
|
72
|
-
|
|
73
|
-
11. **Concurrency Issues Investigation**
|
|
74
|
-
- Look for race conditions in multi-threaded code
|
|
75
|
-
- Check synchronization mechanisms and locks
|
|
76
|
-
- Analyze async operations and promise handling
|
|
77
|
-
- Test under different load conditions
|
|
78
|
-
|
|
79
|
-
12. **Root Cause Identification**
|
|
80
|
-
- Once the cause is identified, understand why it happened
|
|
81
|
-
- Determine if it's a logic error, design flaw, or external issue
|
|
82
|
-
- Assess the scope and impact of the problem
|
|
83
|
-
- Consider if similar issues exist elsewhere
|
|
84
|
-
|
|
85
|
-
13. **Solution Implementation**
|
|
86
|
-
- Design a fix that addresses the root cause
|
|
87
|
-
- Consider multiple solution approaches and trade-offs
|
|
88
|
-
- Implement the fix with appropriate error handling
|
|
89
|
-
- Add validation and defensive programming where needed
|
|
90
|
-
|
|
91
|
-
14. **Testing the Fix**
|
|
92
|
-
- Test the fix against the original error case
|
|
93
|
-
- Test edge cases and related scenarios
|
|
94
|
-
- Run regression tests to ensure no new issues
|
|
95
|
-
- Test under various load and stress conditions
|
|
96
|
-
|
|
97
|
-
15. **Prevention Measures**
|
|
98
|
-
- Add appropriate unit and integration tests
|
|
99
|
-
- Improve error handling and logging
|
|
100
|
-
- Add input validation and defensive checks
|
|
101
|
-
- Update documentation and code comments
|
|
102
|
-
|
|
103
|
-
16. **Monitoring and Alerting**
|
|
104
|
-
- Set up monitoring for similar issues
|
|
105
|
-
- Add metrics and health checks
|
|
106
|
-
- Configure alerts for error thresholds
|
|
107
|
-
- Implement better observability
|
|
108
|
-
|
|
109
|
-
17. **Documentation**
|
|
110
|
-
- Document the error, investigation process, and solution
|
|
111
|
-
- Update troubleshooting guides
|
|
112
|
-
- Share learnings with the team
|
|
113
|
-
- Update code comments with context
|
|
114
|
-
|
|
115
|
-
18. **Post-Resolution Review**
|
|
116
|
-
- Analyze why the error wasn't caught earlier
|
|
117
|
-
- Review development and testing processes
|
|
118
|
-
- Consider improvements to prevent similar issues
|
|
119
|
-
- Update coding standards or guidelines if needed
|
|
120
|
-
|
|
121
|
-
Remember to maintain detailed notes throughout the debugging process and consider the wider implications of both the error and the fix.
|