claude-code-templates 1.20.3 → 1.21.1
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/.claude/agents/agent-expert.md +477 -0
- package/.claude/agents/cli-ui-designer.md +405 -0
- package/.claude/agents/command-expert.md +421 -0
- package/.claude/agents/docusaurus-expert.md +51 -0
- package/.claude/agents/mcp-expert.md +258 -0
- package/.claude/commands/lint.md +111 -0
- package/.claude/commands/test.md +73 -0
- package/.claude/settings.local.json +34 -0
- package/.github/WORKFLOWS_REFERENCE.md +88 -0
- package/.github/workflows/deploy-docusaurus.yml +31 -0
- package/.github/workflows/deploy.yml +33 -0
- package/.github/workflows/publish-package.yml +125 -0
- package/.mcp.json +4 -0
- package/CLAUDE.md +482 -0
- package/CODE_OF_CONDUCT.md +82 -0
- package/CONTRIBUTING.md +505 -0
- package/DEPLOYMENT.md +60 -0
- package/LICENSE +21 -0
- package/README.md +77 -79
- package/ROADMAP.md +278 -0
- package/SECURITY.md +65 -0
- package/api/index.html +1 -0
- package/api/package.json +7 -0
- package/api/track-download-supabase.js +150 -0
- package/cli-tool/Makefile +102 -0
- package/cli-tool/README.md +126 -0
- package/cli-tool/TESTING.md +262 -0
- package/{bin → cli-tool/bin}/create-claude-config.js +5 -1
- package/cli-tool/components/agents/ai-specialists/ai-ethics-advisor.md +195 -0
- package/cli-tool/components/agents/ai-specialists/hackathon-ai-strategist.md +46 -0
- package/cli-tool/components/agents/ai-specialists/llms-maintainer.md +94 -0
- package/cli-tool/components/agents/ai-specialists/model-evaluator.md +150 -0
- package/cli-tool/components/agents/ai-specialists/prompt-engineer.md +112 -0
- package/cli-tool/components/agents/ai-specialists/search-specialist.md +59 -0
- package/cli-tool/components/agents/ai-specialists/task-decomposition-expert.md +97 -0
- package/cli-tool/components/agents/api-graphql/graphql-architect.md +208 -0
- package/cli-tool/components/agents/api-graphql/graphql-performance-optimizer.md +357 -0
- package/cli-tool/components/agents/api-graphql/graphql-security-specialist.md +519 -0
- package/cli-tool/components/agents/blockchain-web3/smart-contract-auditor.md +32 -0
- package/cli-tool/components/agents/blockchain-web3/smart-contract-specialist.md +32 -0
- package/cli-tool/components/agents/blockchain-web3/web3-integration-specialist.md +32 -0
- package/cli-tool/components/agents/business-marketing/business-analyst.md +194 -0
- package/cli-tool/components/agents/business-marketing/content-marketer.md +36 -0
- package/cli-tool/components/agents/business-marketing/customer-support.md +36 -0
- package/cli-tool/components/agents/business-marketing/legal-advisor.md +50 -0
- package/cli-tool/components/agents/business-marketing/marketing-attribution-analyst.md +352 -0
- package/cli-tool/components/agents/business-marketing/payment-integration.md +33 -0
- package/cli-tool/components/agents/business-marketing/product-strategist.md +212 -0
- package/cli-tool/components/agents/business-marketing/risk-manager.md +42 -0
- package/cli-tool/components/agents/business-marketing/sales-automator.md +36 -0
- package/cli-tool/components/agents/data-ai/ai-engineer.md +33 -0
- package/cli-tool/components/agents/data-ai/computer-vision-engineer.md +562 -0
- package/cli-tool/components/agents/data-ai/data-engineer.md +33 -0
- package/cli-tool/components/agents/data-ai/data-scientist.md +337 -0
- package/cli-tool/components/agents/data-ai/ml-engineer.md +33 -0
- package/cli-tool/components/agents/data-ai/mlops-engineer.md +58 -0
- package/cli-tool/components/agents/data-ai/nlp-engineer.md +680 -0
- package/cli-tool/components/agents/data-ai/quant-analyst.md +33 -0
- package/cli-tool/components/agents/database/database-admin.md +33 -0
- package/cli-tool/components/agents/database/database-architect.md +590 -0
- package/cli-tool/components/agents/database/database-optimization.md +33 -0
- package/cli-tool/components/agents/database/database-optimizer.md +33 -0
- package/cli-tool/components/agents/database/nosql-specialist.md +708 -0
- package/cli-tool/components/agents/database/supabase-schema-architect.md +138 -0
- package/cli-tool/components/agents/deep-research-team/academic-researcher.md +33 -0
- package/cli-tool/components/agents/deep-research-team/agent-overview.md +235 -0
- package/cli-tool/components/agents/deep-research-team/competitive-intelligence-analyst.md +530 -0
- package/cli-tool/components/agents/deep-research-team/data-analyst.md +112 -0
- package/cli-tool/components/agents/deep-research-team/fact-checker.md +553 -0
- package/cli-tool/components/agents/deep-research-team/query-clarifier.md +73 -0
- package/cli-tool/components/agents/deep-research-team/report-generator.md +108 -0
- package/cli-tool/components/agents/deep-research-team/research-brief-generator.md +108 -0
- package/cli-tool/components/agents/deep-research-team/research-coordinator.md +94 -0
- package/cli-tool/components/agents/deep-research-team/research-orchestrator.md +119 -0
- package/cli-tool/components/agents/deep-research-team/research-synthesizer.md +109 -0
- package/cli-tool/components/agents/deep-research-team/technical-researcher.md +95 -0
- package/cli-tool/components/agents/development-team/backend-architect.md +31 -0
- package/cli-tool/components/agents/development-team/cli-ui-designer.md +405 -0
- package/cli-tool/components/agents/development-team/devops-engineer.md +886 -0
- package/cli-tool/components/agents/development-team/frontend-developer.md +32 -0
- package/cli-tool/components/agents/development-team/fullstack-developer.md +1205 -0
- package/cli-tool/components/agents/development-team/ios-developer.md +36 -0
- package/cli-tool/components/agents/development-team/mobile-developer.md +33 -0
- package/cli-tool/components/agents/development-team/ui-ux-designer.md +36 -0
- package/cli-tool/components/agents/development-tools/code-reviewer.md +30 -0
- package/cli-tool/components/agents/development-tools/command-expert.md +422 -0
- package/cli-tool/components/agents/development-tools/context-manager.md +65 -0
- package/cli-tool/components/agents/development-tools/debugger.md +31 -0
- package/cli-tool/components/agents/development-tools/dx-optimizer.md +64 -0
- package/cli-tool/components/agents/development-tools/error-detective.md +33 -0
- package/cli-tool/components/agents/development-tools/mcp-expert.md +259 -0
- package/cli-tool/components/agents/development-tools/performance-profiler.md +799 -0
- package/cli-tool/components/agents/development-tools/test-engineer.md +936 -0
- package/cli-tool/components/agents/devops-infrastructure/cloud-architect.md +33 -0
- package/cli-tool/components/agents/devops-infrastructure/deployment-engineer.md +33 -0
- package/cli-tool/components/agents/devops-infrastructure/devops-troubleshooter.md +33 -0
- package/cli-tool/components/agents/devops-infrastructure/monitoring-specialist.md +36 -0
- package/cli-tool/components/agents/devops-infrastructure/network-engineer.md +33 -0
- package/cli-tool/components/agents/devops-infrastructure/security-engineer.md +971 -0
- package/cli-tool/components/agents/devops-infrastructure/terraform-specialist.md +36 -0
- package/cli-tool/components/agents/devops-infrastructure/vercel-deployment-specialist.md +357 -0
- package/cli-tool/components/agents/documentation/api-documenter.md +33 -0
- package/cli-tool/components/agents/documentation/changelog-generator.md +37 -0
- package/cli-tool/components/agents/documentation/docusaurus-expert.md +52 -0
- package/cli-tool/components/agents/documentation/technical-writer.md +37 -0
- package/cli-tool/components/agents/expert-advisors/agent-expert.md +477 -0
- package/cli-tool/components/agents/expert-advisors/architect-review.md +50 -0
- package/cli-tool/components/agents/expert-advisors/dependency-manager.md +45 -0
- package/cli-tool/components/agents/expert-advisors/documentation-expert.md +47 -0
- package/cli-tool/components/agents/ffmpeg-clip-team/audio-mixer.md +37 -0
- package/cli-tool/components/agents/ffmpeg-clip-team/audio-quality-controller.md +100 -0
- package/cli-tool/components/agents/ffmpeg-clip-team/podcast-content-analyzer.md +60 -0
- package/cli-tool/components/agents/ffmpeg-clip-team/podcast-metadata-specialist.md +46 -0
- package/cli-tool/components/agents/ffmpeg-clip-team/podcast-transcriber.md +68 -0
- package/cli-tool/components/agents/ffmpeg-clip-team/social-media-clip-creator.md +69 -0
- package/cli-tool/components/agents/ffmpeg-clip-team/timestamp-precision-specialist.md +98 -0
- package/cli-tool/components/agents/ffmpeg-clip-team/video-editor.md +37 -0
- package/cli-tool/components/agents/game-development/3d-artist.md +37 -0
- package/cli-tool/components/agents/game-development/game-designer.md +37 -0
- package/cli-tool/components/agents/game-development/unity-game-developer.md +110 -0
- package/cli-tool/components/agents/game-development/unreal-engine-developer.md +128 -0
- package/cli-tool/components/agents/mcp-dev-team/mcp-deployment-orchestrator.md +101 -0
- package/cli-tool/components/agents/mcp-dev-team/mcp-integration-engineer.md +37 -0
- package/cli-tool/components/agents/mcp-dev-team/mcp-protocol-specialist.md +37 -0
- package/cli-tool/components/agents/mcp-dev-team/mcp-registry-navigator.md +112 -0
- package/cli-tool/components/agents/mcp-dev-team/mcp-security-auditor.md +70 -0
- package/cli-tool/components/agents/mcp-dev-team/mcp-server-architect.md +74 -0
- package/cli-tool/components/agents/mcp-dev-team/mcp-testing-engineer.md +106 -0
- package/cli-tool/components/agents/modernization/architecture-modernizer.md +37 -0
- package/cli-tool/components/agents/modernization/cloud-migration-specialist.md +37 -0
- package/cli-tool/components/agents/modernization/legacy-modernizer.md +33 -0
- package/cli-tool/components/agents/obsidian-ops-team/Scripts/daily_notes_connector.py +306 -0
- package/cli-tool/components/agents/obsidian-ops-team/Scripts/enhance_tag_standardizer.py +343 -0
- package/cli-tool/components/agents/obsidian-ops-team/Scripts/find_keyword_connections.py +216 -0
- package/cli-tool/components/agents/obsidian-ops-team/Scripts/fix_quoted_tags.py +82 -0
- package/cli-tool/components/agents/obsidian-ops-team/Scripts/implement_entity_connections.py +195 -0
- package/cli-tool/components/agents/obsidian-ops-team/Scripts/link_suggester.py +301 -0
- package/cli-tool/components/agents/obsidian-ops-team/Scripts/metadata_adder.py +197 -0
- package/cli-tool/components/agents/obsidian-ops-team/Scripts/moc_generator.py +296 -0
- package/cli-tool/components/agents/obsidian-ops-team/Scripts/parse_keyword_connections.py +122 -0
- package/cli-tool/components/agents/obsidian-ops-team/Scripts/tag_standardizer.py +387 -0
- package/cli-tool/components/agents/obsidian-ops-team/connection-agent.md +67 -0
- package/cli-tool/components/agents/obsidian-ops-team/content-curator.md +81 -0
- package/cli-tool/components/agents/obsidian-ops-team/metadata-agent.md +51 -0
- package/cli-tool/components/agents/obsidian-ops-team/moc-agent.md +112 -0
- package/cli-tool/components/agents/obsidian-ops-team/review-agent.md +94 -0
- package/cli-tool/components/agents/obsidian-ops-team/tag-agent.md +92 -0
- package/cli-tool/components/agents/obsidian-ops-team/vault-optimizer.md +76 -0
- package/cli-tool/components/agents/ocr-extraction-team/document-structure-analyzer.md +37 -0
- package/cli-tool/components/agents/ocr-extraction-team/markdown-syntax-formatter.md +58 -0
- package/cli-tool/components/agents/ocr-extraction-team/ocr-grammar-fixer.md +36 -0
- package/cli-tool/components/agents/ocr-extraction-team/ocr-preprocessing-optimizer.md +37 -0
- package/cli-tool/components/agents/ocr-extraction-team/ocr-quality-assurance.md +62 -0
- package/cli-tool/components/agents/ocr-extraction-team/text-comparison-validator.md +60 -0
- package/cli-tool/components/agents/ocr-extraction-team/visual-analysis-ocr.md +52 -0
- package/cli-tool/components/agents/performance-testing/load-testing-specialist.md +37 -0
- package/cli-tool/components/agents/performance-testing/performance-engineer.md +33 -0
- package/cli-tool/components/agents/performance-testing/react-performance-optimization.md +65 -0
- package/cli-tool/components/agents/performance-testing/test-automator.md +33 -0
- package/cli-tool/components/agents/performance-testing/web-vitals-optimizer.md +37 -0
- package/cli-tool/components/agents/podcast-creator-team/academic-research-synthesizer.md +61 -0
- package/cli-tool/components/agents/podcast-creator-team/comprehensive-researcher.md +49 -0
- package/cli-tool/components/agents/podcast-creator-team/episode-orchestrator.md +52 -0
- package/cli-tool/components/agents/podcast-creator-team/guest-outreach-coordinator.md +37 -0
- package/cli-tool/components/agents/podcast-creator-team/market-research-analyst.md +54 -0
- package/cli-tool/components/agents/podcast-creator-team/podcast-editor.md +37 -0
- package/cli-tool/components/agents/podcast-creator-team/podcast-trend-scout.md +60 -0
- package/cli-tool/components/agents/podcast-creator-team/project-supervisor-orchestrator.md +48 -0
- package/cli-tool/components/agents/podcast-creator-team/seo-podcast-optimizer.md +58 -0
- package/cli-tool/components/agents/podcast-creator-team/social-media-copywriter.md +57 -0
- package/cli-tool/components/agents/podcast-creator-team/twitter-ai-influencer-manager.md +62 -0
- package/cli-tool/components/agents/programming-languages/c-pro.md +36 -0
- package/cli-tool/components/agents/programming-languages/c-sharp-pro.md +40 -0
- package/cli-tool/components/agents/programming-languages/cpp-pro.md +39 -0
- package/cli-tool/components/agents/programming-languages/golang-pro.md +33 -0
- package/cli-tool/components/agents/programming-languages/javascript-pro.md +36 -0
- package/cli-tool/components/agents/programming-languages/php-pro.md +44 -0
- package/cli-tool/components/agents/programming-languages/python-pro.md +33 -0
- package/cli-tool/components/agents/programming-languages/rust-pro.md +36 -0
- package/cli-tool/components/agents/programming-languages/shell-scripting-pro.md +38 -0
- package/cli-tool/components/agents/programming-languages/sql-pro.md +36 -0
- package/cli-tool/components/agents/programming-languages/typescript-pro.md +38 -0
- package/cli-tool/components/agents/realtime/supabase-realtime-optimizer.md +193 -0
- package/cli-tool/components/agents/security/api-security-audit.md +93 -0
- package/cli-tool/components/agents/security/compliance-specialist.md +37 -0
- package/cli-tool/components/agents/security/incident-responder.md +75 -0
- package/cli-tool/components/agents/security/penetration-tester.md +37 -0
- package/cli-tool/components/agents/security/security-auditor.md +33 -0
- package/cli-tool/components/agents/web-tools/nextjs-architecture-expert.md +194 -0
- package/cli-tool/components/agents/web-tools/react-performance-optimizer.md +425 -0
- package/cli-tool/components/agents/web-tools/seo-analyzer.md +37 -0
- package/cli-tool/components/agents/web-tools/url-context-validator.md +61 -0
- package/cli-tool/components/agents/web-tools/url-link-extractor.md +59 -0
- package/cli-tool/components/agents/web-tools/web-accessibility-checker.md +37 -0
- package/cli-tool/components/commands/automation/act.md +57 -0
- package/cli-tool/components/commands/automation/ci-pipeline.md +378 -0
- package/cli-tool/components/commands/automation/husky.md +130 -0
- package/cli-tool/components/commands/automation/workflow-orchestrator.md +576 -0
- package/cli-tool/components/commands/database/supabase-backup-manager.md +37 -0
- package/cli-tool/components/commands/database/supabase-data-explorer.md +37 -0
- package/cli-tool/components/commands/database/supabase-migration-assistant.md +37 -0
- package/cli-tool/components/commands/database/supabase-performance-optimizer.md +37 -0
- package/cli-tool/components/commands/database/supabase-realtime-monitor.md +37 -0
- package/cli-tool/components/commands/database/supabase-schema-sync.md +37 -0
- package/cli-tool/components/commands/database/supabase-security-audit.md +37 -0
- package/cli-tool/components/commands/database/supabase-type-generator.md +37 -0
- package/cli-tool/components/commands/deployment/add-changelog.md +92 -0
- package/cli-tool/components/commands/deployment/blue-green-deployment.md +824 -0
- package/cli-tool/components/commands/deployment/changelog-demo-command.md +43 -0
- package/cli-tool/components/commands/deployment/ci-setup.md +323 -0
- package/cli-tool/components/commands/deployment/containerize-application.md +93 -0
- package/cli-tool/components/commands/deployment/deployment-monitoring.md +1228 -0
- package/cli-tool/components/commands/deployment/hotfix-deploy.md +283 -0
- package/cli-tool/components/commands/deployment/prepare-release.md +357 -0
- package/cli-tool/components/commands/deployment/rollback-deploy.md +145 -0
- package/cli-tool/components/commands/deployment/setup-automated-releases.md +143 -0
- package/cli-tool/components/commands/deployment/setup-kubernetes-deployment.md +93 -0
- package/cli-tool/components/commands/documentation/create-architecture-documentation.md +95 -0
- package/cli-tool/components/commands/documentation/create-onboarding-guide.md +93 -0
- package/cli-tool/components/commands/documentation/doc-api.md +242 -0
- package/cli-tool/components/commands/documentation/docs-maintenance.md +119 -0
- package/cli-tool/components/commands/documentation/generate-api-documentation.md +97 -0
- package/cli-tool/components/commands/documentation/interactive-documentation.md +133 -0
- package/cli-tool/components/commands/documentation/load-llms-txt.md +39 -0
- package/cli-tool/components/commands/documentation/migration-guide.md +250 -0
- package/cli-tool/components/commands/documentation/troubleshooting-guide.md +370 -0
- package/cli-tool/components/commands/documentation/update-docs.md +107 -0
- package/cli-tool/components/commands/game-development/game-analytics-integration.md +128 -0
- package/cli-tool/components/commands/game-development/game-asset-pipeline.md +108 -0
- package/cli-tool/components/commands/game-development/game-performance-profiler.md +78 -0
- package/cli-tool/components/commands/game-development/game-testing-framework.md +112 -0
- package/cli-tool/components/commands/game-development/unity-project-setup.md +190 -0
- package/cli-tool/components/commands/git-workflow/branch-cleanup.md +181 -0
- package/cli-tool/components/commands/git-workflow/commit.md +167 -0
- package/cli-tool/components/commands/git-workflow/create-pr.md +19 -0
- package/cli-tool/components/commands/git-workflow/create-pull-request.md +126 -0
- package/cli-tool/components/commands/git-workflow/create-worktrees.md +174 -0
- package/cli-tool/components/commands/git-workflow/fix-github-issue.md +13 -0
- package/cli-tool/components/commands/git-workflow/git-bisect-helper.md +261 -0
- package/cli-tool/components/commands/git-workflow/pr-review.md +76 -0
- package/cli-tool/components/commands/git-workflow/update-branch-name.md +9 -0
- package/cli-tool/components/commands/nextjs-vercel/nextjs-api-tester.md +480 -0
- package/cli-tool/components/commands/nextjs-vercel/nextjs-bundle-analyzer.md +406 -0
- package/cli-tool/components/commands/nextjs-vercel/nextjs-component-generator.md +489 -0
- package/cli-tool/components/commands/nextjs-vercel/nextjs-middleware-creator.md +712 -0
- package/cli-tool/components/commands/nextjs-vercel/nextjs-migration-helper.md +778 -0
- package/cli-tool/components/commands/nextjs-vercel/nextjs-performance-audit.md +653 -0
- package/cli-tool/components/commands/nextjs-vercel/nextjs-scaffold.md +237 -0
- package/cli-tool/components/commands/nextjs-vercel/vercel-deploy-optimize.md +341 -0
- package/cli-tool/components/commands/nextjs-vercel/vercel-edge-function.md +810 -0
- package/cli-tool/components/commands/nextjs-vercel/vercel-env-sync.md +666 -0
- package/cli-tool/components/commands/orchestration/archive.md +414 -0
- package/cli-tool/components/commands/orchestration/commit.md +305 -0
- package/cli-tool/components/commands/orchestration/find.md +272 -0
- package/cli-tool/components/commands/orchestration/log.md +355 -0
- package/cli-tool/components/commands/orchestration/move.md +220 -0
- package/cli-tool/components/commands/orchestration/optimize.md +375 -0
- package/cli-tool/components/commands/orchestration/remove.md +301 -0
- package/cli-tool/components/commands/orchestration/report.md +292 -0
- package/cli-tool/components/commands/orchestration/resume.md +256 -0
- package/cli-tool/components/commands/orchestration/start.md +169 -0
- package/cli-tool/components/commands/orchestration/status.md +219 -0
- package/cli-tool/components/commands/orchestration/sync.md +294 -0
- package/cli-tool/components/commands/performance/add-performance-monitoring.md +84 -0
- package/cli-tool/components/commands/performance/implement-caching-strategy.md +84 -0
- package/cli-tool/components/commands/performance/optimize-api-performance.md +119 -0
- package/cli-tool/components/commands/performance/optimize-build.md +139 -0
- package/cli-tool/components/commands/performance/optimize-bundle-size.md +84 -0
- package/cli-tool/components/commands/performance/optimize-database-performance.md +84 -0
- package/cli-tool/components/commands/performance/optimize-memory-usage.md +91 -0
- package/cli-tool/components/commands/performance/performance-audit.md +89 -0
- package/cli-tool/components/commands/performance/setup-cdn-optimization.md +84 -0
- package/cli-tool/components/commands/performance/system-behavior-simulator.md +415 -0
- package/cli-tool/components/commands/project-management/add-package.md +90 -0
- package/cli-tool/components/commands/project-management/add-to-changelog.md +37 -0
- package/cli-tool/components/commands/project-management/create-feature.md +130 -0
- package/cli-tool/components/commands/project-management/create-jtbd.md +37 -0
- package/cli-tool/components/commands/project-management/create-prd.md +36 -0
- package/cli-tool/components/commands/project-management/create-prp.md +37 -0
- package/cli-tool/components/commands/project-management/init-project.md +80 -0
- package/cli-tool/components/commands/project-management/milestone-tracker.md +44 -0
- package/cli-tool/components/commands/project-management/pac-configure.md +32 -0
- package/cli-tool/components/commands/project-management/pac-create-epic.md +41 -0
- package/cli-tool/components/commands/project-management/pac-create-ticket.md +42 -0
- package/cli-tool/components/commands/project-management/pac-update-status.md +39 -0
- package/cli-tool/components/commands/project-management/pac-validate.md +35 -0
- package/cli-tool/components/commands/project-management/project-health-check.md +58 -0
- package/cli-tool/components/commands/project-management/project-timeline-simulator.md +37 -0
- package/cli-tool/components/commands/project-management/project-to-linear.md +38 -0
- package/cli-tool/components/commands/project-management/release.md +31 -0
- package/cli-tool/components/commands/project-management/todo.md +62 -0
- package/cli-tool/components/commands/security/add-authentication-system.md +34 -0
- package/cli-tool/components/commands/security/dependency-audit.md +32 -0
- package/cli-tool/components/commands/security/penetration-test.md +40 -0
- package/cli-tool/components/commands/security/secrets-scanner.md +39 -0
- package/cli-tool/components/commands/security/security-audit.md +82 -0
- package/cli-tool/components/commands/security/security-hardening.md +33 -0
- package/cli-tool/components/commands/setup/create-database-migrations.md +35 -0
- package/cli-tool/components/commands/setup/design-database-schema.md +37 -0
- package/cli-tool/components/commands/setup/design-rest-api.md +37 -0
- package/cli-tool/components/commands/setup/implement-graphql-api.md +37 -0
- package/cli-tool/components/commands/setup/migrate-to-typescript.md +37 -0
- package/cli-tool/components/commands/setup/setup-ci-cd-pipeline.md +37 -0
- package/cli-tool/components/commands/setup/setup-development-environment.md +37 -0
- package/cli-tool/components/commands/setup/setup-docker-containers.md +37 -0
- package/cli-tool/components/commands/setup/setup-formatting.md +37 -0
- package/cli-tool/components/commands/setup/setup-linting.md +37 -0
- package/cli-tool/components/commands/setup/setup-monitoring-observability.md +37 -0
- package/cli-tool/components/commands/setup/setup-monorepo.md +37 -0
- package/cli-tool/components/commands/setup/setup-rate-limiting.md +37 -0
- package/cli-tool/components/commands/setup/update-dependencies.md +35 -0
- package/cli-tool/components/commands/simulation/business-scenario-explorer.md +37 -0
- package/cli-tool/components/commands/simulation/constraint-modeler.md +37 -0
- package/cli-tool/components/commands/simulation/decision-tree-explorer.md +37 -0
- package/cli-tool/components/commands/simulation/digital-twin-creator.md +37 -0
- package/cli-tool/components/commands/simulation/future-scenario-generator.md +37 -0
- package/cli-tool/components/commands/simulation/market-response-modeler.md +37 -0
- package/cli-tool/components/commands/simulation/monte-carlo-simulator.md +37 -0
- package/cli-tool/components/commands/simulation/simulation-calibrator.md +37 -0
- package/cli-tool/components/commands/simulation/system-dynamics-modeler.md +37 -0
- package/cli-tool/components/commands/simulation/timeline-compressor.md +37 -0
- package/cli-tool/components/commands/svelte/svelte:a11y.md +105 -0
- package/cli-tool/components/commands/svelte/svelte:component.md +81 -0
- package/cli-tool/components/commands/svelte/svelte:debug.md +48 -0
- package/cli-tool/components/commands/svelte/svelte:migrate.md +79 -0
- package/cli-tool/components/commands/svelte/svelte:optimize.md +99 -0
- package/cli-tool/components/commands/svelte/svelte:scaffold.md +89 -0
- package/cli-tool/components/commands/svelte/svelte:storybook-migrate.md +204 -0
- package/cli-tool/components/commands/svelte/svelte:storybook-mock.md +213 -0
- package/cli-tool/components/commands/svelte/svelte:storybook-setup.md +113 -0
- package/cli-tool/components/commands/svelte/svelte:storybook-story.md +145 -0
- package/cli-tool/components/commands/svelte/svelte:storybook-troubleshoot.md +191 -0
- package/cli-tool/components/commands/svelte/svelte:storybook.md +48 -0
- package/cli-tool/components/commands/svelte/svelte:test-coverage.md +77 -0
- package/cli-tool/components/commands/svelte/svelte:test-fix.md +74 -0
- package/cli-tool/components/commands/svelte/svelte:test-setup.md +85 -0
- package/cli-tool/components/commands/svelte/svelte:test.md +60 -0
- package/cli-tool/components/commands/sync/bidirectional-sync.md +37 -0
- package/cli-tool/components/commands/sync/bulk-import-issues.md +37 -0
- package/cli-tool/components/commands/sync/cross-reference-manager.md +37 -0
- package/cli-tool/components/commands/sync/issue-to-linear-task.md +37 -0
- package/cli-tool/components/commands/sync/linear-task-to-issue.md +37 -0
- package/cli-tool/components/commands/sync/sync-automation-setup.md +37 -0
- package/cli-tool/components/commands/sync/sync-conflict-resolver.md +37 -0
- package/cli-tool/components/commands/sync/sync-health-monitor.md +37 -0
- package/cli-tool/components/commands/sync/sync-issues-to-linear.md +37 -0
- package/cli-tool/components/commands/sync/sync-linear-to-issues.md +37 -0
- package/cli-tool/components/commands/sync/sync-migration-assistant.md +37 -0
- package/cli-tool/components/commands/sync/sync-pr-to-task.md +37 -0
- package/cli-tool/components/commands/sync/sync-status.md +391 -0
- package/cli-tool/components/commands/sync/task-from-pr.md +37 -0
- package/cli-tool/components/commands/team/architecture-review.md +37 -0
- package/cli-tool/components/commands/team/decision-quality-analyzer.md +37 -0
- package/cli-tool/components/commands/team/dependency-mapper.md +37 -0
- package/cli-tool/components/commands/team/estimate-assistant.md +37 -0
- package/cli-tool/components/commands/team/issue-triage.md +37 -0
- package/cli-tool/components/commands/team/memory-spring-cleaning.md +37 -0
- package/cli-tool/components/commands/team/migration-assistant.md +37 -0
- package/cli-tool/components/commands/team/retrospective-analyzer.md +37 -0
- package/cli-tool/components/commands/team/session-learning-capture.md +37 -0
- package/cli-tool/components/commands/team/sprint-planning.md +189 -0
- package/cli-tool/components/commands/team/standup-report.md +37 -0
- package/cli-tool/components/commands/team/team-knowledge-mapper.md +37 -0
- package/cli-tool/components/commands/team/team-velocity-tracker.md +37 -0
- package/cli-tool/components/commands/team/team-workload-balancer.md +37 -0
- package/cli-tool/components/commands/testing/add-mutation-testing.md +37 -0
- package/cli-tool/components/commands/testing/add-property-based-testing.md +37 -0
- package/cli-tool/components/commands/testing/e2e-setup.md +37 -0
- package/cli-tool/components/commands/testing/generate-test-cases.md +37 -0
- package/cli-tool/components/commands/testing/generate-tests.md +82 -0
- package/cli-tool/components/commands/testing/setup-comprehensive-testing.md +37 -0
- package/cli-tool/components/commands/testing/setup-load-testing.md +37 -0
- package/cli-tool/components/commands/testing/setup-visual-testing.md +37 -0
- package/cli-tool/components/commands/testing/test-automation-orchestrator.md +37 -0
- package/cli-tool/components/commands/testing/test-changelog-automation.md +37 -0
- package/cli-tool/components/commands/testing/test-coverage.md +37 -0
- package/cli-tool/components/commands/testing/test-quality-analyzer.md +37 -0
- package/cli-tool/components/commands/testing/testing_plan_integration.md +37 -0
- package/cli-tool/components/commands/testing/write-tests.md +37 -0
- package/cli-tool/components/commands/utilities/all-tools.md +31 -0
- package/cli-tool/components/commands/utilities/architecture-scenario-explorer.md +375 -0
- package/cli-tool/components/commands/utilities/check-file.md +53 -0
- package/cli-tool/components/commands/utilities/clean-branches.md +243 -0
- package/cli-tool/components/commands/utilities/clean.md +1 -0
- package/cli-tool/components/commands/utilities/code-permutation-tester.md +341 -0
- package/cli-tool/components/commands/utilities/code-review.md +70 -0
- package/cli-tool/components/commands/utilities/code-to-task.md +583 -0
- package/cli-tool/components/commands/utilities/context-prime.md +1 -0
- package/cli-tool/components/commands/utilities/debug-error.md +121 -0
- package/cli-tool/components/commands/utilities/directory-deep-dive.md +34 -0
- package/cli-tool/components/commands/utilities/explain-code.md +194 -0
- package/cli-tool/components/commands/utilities/fix-issue.md +85 -0
- package/cli-tool/components/commands/utilities/generate-linear-worklog.md +113 -0
- package/cli-tool/components/commands/utilities/git-status.md +39 -0
- package/cli-tool/components/commands/utilities/initref.md +3 -0
- package/cli-tool/components/commands/utilities/prime.md +41 -0
- package/cli-tool/components/commands/utilities/refactor-code.md +116 -0
- package/cli-tool/components/commands/utilities/ultra-think.md +153 -0
- package/cli-tool/components/hooks/HOOK_PATTERNS_COMPRESSED.json +1 -0
- package/cli-tool/components/hooks/automation/build-on-change.json +16 -0
- package/cli-tool/components/hooks/automation/dependency-checker.json +16 -0
- package/cli-tool/components/hooks/automation/deployment-health-monitor.json +29 -0
- package/cli-tool/components/hooks/automation/discord-detailed-notifications.json +26 -0
- package/cli-tool/components/hooks/automation/discord-error-notifications.json +37 -0
- package/cli-tool/components/hooks/automation/discord-notifications.json +25 -0
- package/cli-tool/components/hooks/automation/simple-notifications.json +16 -0
- package/cli-tool/components/hooks/automation/slack-detailed-notifications.json +26 -0
- package/cli-tool/components/hooks/automation/slack-error-notifications.json +37 -0
- package/cli-tool/components/hooks/automation/slack-notifications.json +25 -0
- package/cli-tool/components/hooks/automation/telegram-detailed-notifications.json +26 -0
- package/cli-tool/components/hooks/automation/telegram-error-notifications.json +37 -0
- package/cli-tool/components/hooks/automation/telegram-notifications.json +25 -0
- package/cli-tool/components/hooks/automation/vercel-auto-deploy.json +17 -0
- package/cli-tool/components/hooks/automation/vercel-environment-sync.json +29 -0
- package/cli-tool/components/hooks/development-tools/change-tracker.json +25 -0
- package/cli-tool/components/hooks/development-tools/command-logger.json +16 -0
- package/cli-tool/components/hooks/development-tools/file-backup.json +16 -0
- package/cli-tool/components/hooks/development-tools/lint-on-save.json +16 -0
- package/cli-tool/components/hooks/development-tools/nextjs-code-quality-enforcer.json +17 -0
- package/cli-tool/components/hooks/development-tools/smart-formatting.json +16 -0
- package/cli-tool/components/hooks/git-workflow/auto-git-add.json +16 -0
- package/cli-tool/components/hooks/git-workflow/smart-commit.json +25 -0
- package/cli-tool/components/hooks/performance/performance-budget-guard.json +27 -0
- package/cli-tool/components/hooks/performance/performance-monitor.json +27 -0
- package/cli-tool/components/hooks/post-tool/format-javascript-files.json +16 -0
- package/cli-tool/components/hooks/post-tool/format-python-files.json +16 -0
- package/cli-tool/components/hooks/post-tool/git-add-changes.json +25 -0
- package/cli-tool/components/hooks/post-tool/run-tests-after-changes.json +16 -0
- package/cli-tool/components/hooks/pre-tool/backup-before-edit.json +16 -0
- package/cli-tool/components/hooks/pre-tool/notify-before-bash.json +16 -0
- package/cli-tool/components/hooks/security/file-protection.json +16 -0
- package/cli-tool/components/hooks/security/security-scanner.json +16 -0
- package/cli-tool/components/hooks/testing/test-runner.json +16 -0
- package/cli-tool/components/mcps/browser_automation/browser-use-mcp-server.json +20 -0
- package/cli-tool/components/mcps/browser_automation/browsermcp.json +9 -0
- package/cli-tool/components/mcps/browser_automation/mcp-server-browserbase.json +14 -0
- package/cli-tool/components/mcps/browser_automation/mcp-server-playwright.json +9 -0
- package/cli-tool/components/mcps/browser_automation/playwright-mcp-server.json +9 -0
- package/cli-tool/components/mcps/browser_automation/playwright-mcp.json +11 -0
- package/cli-tool/components/mcps/database/mysql-integration.json +12 -0
- package/cli-tool/components/mcps/database/postgresql-integration.json +12 -0
- package/cli-tool/components/mcps/database/supabase.json +17 -0
- package/cli-tool/components/mcps/deepgraph/deepgraph-nextjs.json +13 -0
- package/cli-tool/components/mcps/deepgraph/deepgraph-react.json +13 -0
- package/cli-tool/components/mcps/deepgraph/deepgraph-typescript.json +13 -0
- package/cli-tool/components/mcps/deepgraph/deepgraph-vue.json +13 -0
- package/cli-tool/components/mcps/devtools/circleci.json +13 -0
- package/cli-tool/components/mcps/devtools/context7.json +9 -0
- package/cli-tool/components/mcps/devtools/firefly-mcp.json +13 -0
- package/cli-tool/components/mcps/devtools/ios-simulator-mcp.json +9 -0
- package/cli-tool/components/mcps/devtools/just-mcp.json +9 -0
- package/cli-tool/components/mcps/devtools/leetcode.json +8 -0
- package/cli-tool/components/mcps/devtools/mcp-server-atlassian-bitbucket.json +9 -0
- package/cli-tool/components/mcps/devtools/mcp-server-trello.json +12 -0
- package/cli-tool/components/mcps/filesystem/filesystem-access.json +13 -0
- package/cli-tool/components/mcps/integration/github-integration.json +12 -0
- package/cli-tool/components/mcps/integration/memory-integration.json +9 -0
- package/cli-tool/components/mcps/marketing/facebook-ads-mcp-server.json +13 -0
- package/cli-tool/components/mcps/marketing/google-ads-mcp-server.json +11 -0
- package/cli-tool/components/mcps/web/web-fetch.json +9 -0
- package/cli-tool/components/sandbox/README.md +169 -0
- package/cli-tool/components/sandbox/e2b/.env.example +10 -0
- package/cli-tool/components/sandbox/e2b/SANDBOX_DEBUGGING.md +203 -0
- package/cli-tool/components/sandbox/e2b/claude-code-sandbox.md +110 -0
- package/cli-tool/components/sandbox/e2b/e2b-launcher.py +355 -0
- package/cli-tool/components/sandbox/e2b/e2b-monitor.py +229 -0
- package/cli-tool/components/sandbox/e2b/requirements.txt +1 -0
- package/cli-tool/components/settings/api/bedrock-configuration.json +7 -0
- package/cli-tool/components/settings/api/corporate-proxy.json +7 -0
- package/cli-tool/components/settings/api/custom-headers.json +6 -0
- package/cli-tool/components/settings/api/vertex-configuration.json +8 -0
- package/cli-tool/components/settings/authentication/api-key-helper.json +7 -0
- package/cli-tool/components/settings/authentication/force-claudeai-login.json +4 -0
- package/cli-tool/components/settings/authentication/force-console-login.json +4 -0
- package/cli-tool/components/settings/cleanup/retention-7-days.json +4 -0
- package/cli-tool/components/settings/cleanup/retention-90-days.json +4 -0
- package/cli-tool/components/settings/environment/bash-timeouts.json +8 -0
- package/cli-tool/components/settings/environment/development-utils.json +8 -0
- package/cli-tool/components/settings/environment/performance-optimization.json +8 -0
- package/cli-tool/components/settings/environment/privacy-focused.json +10 -0
- package/cli-tool/components/settings/global/aws-credentials.json +5 -0
- package/cli-tool/components/settings/global/custom-model.json +7 -0
- package/cli-tool/components/settings/global/git-commit-settings.json +4 -0
- package/cli-tool/components/settings/mcp/disable-risky-servers.json +8 -0
- package/cli-tool/components/settings/mcp/enable-all-project-servers.json +4 -0
- package/cli-tool/components/settings/mcp/enable-specific-servers.json +8 -0
- package/cli-tool/components/settings/mcp/mcp-timeouts.json +8 -0
- package/cli-tool/components/settings/model/use-haiku.json +4 -0
- package/cli-tool/components/settings/model/use-sonnet.json +4 -0
- package/cli-tool/components/settings/permissions/additional-directories.json +11 -0
- package/cli-tool/components/settings/permissions/allow-git-operations.json +14 -0
- package/cli-tool/components/settings/permissions/allow-npm-commands.json +11 -0
- package/cli-tool/components/settings/permissions/deny-sensitive-files.json +11 -0
- package/cli-tool/components/settings/permissions/development-mode.json +31 -0
- package/cli-tool/components/settings/permissions/read-only-mode.json +18 -0
- package/cli-tool/components/settings/statusline/asset-pipeline-controller-statusline.json +7 -0
- package/cli-tool/components/settings/statusline/bug-circus-statusline.json +7 -0
- package/cli-tool/components/settings/statusline/code-casino-statusline.json +7 -0
- package/cli-tool/components/settings/statusline/code-spaceship-statusline.json +7 -0
- package/cli-tool/components/settings/statusline/colorful-statusline.json +7 -0
- package/cli-tool/components/settings/statusline/command-statusline.json +8 -0
- package/cli-tool/components/settings/statusline/context-monitor.json +7 -0
- package/cli-tool/components/settings/statusline/context-monitor.py +236 -0
- package/cli-tool/components/settings/statusline/data-ocean-statusline.json +7 -0
- package/cli-tool/components/settings/statusline/emotion-theater-statusline.json +7 -0
- package/cli-tool/components/settings/statusline/game-performance-monitor-statusline.json +7 -0
- package/cli-tool/components/settings/statusline/git-branch-statusline.json +7 -0
- package/cli-tool/components/settings/statusline/minimal-statusline.json +7 -0
- package/cli-tool/components/settings/statusline/multiplatform-build-status-statusline.json +7 -0
- package/cli-tool/components/settings/statusline/productivity-rainbow-statusline.json +7 -0
- package/cli-tool/components/settings/statusline/programmer-tamagotchi-statusline.json +7 -0
- package/cli-tool/components/settings/statusline/programming-fitness-tracker-statusline.json +7 -0
- package/cli-tool/components/settings/statusline/project-info-statusline.json +7 -0
- package/cli-tool/components/settings/statusline/rpg-status-bar-statusline.json +7 -0
- package/cli-tool/components/settings/statusline/time-statusline.json +7 -0
- package/cli-tool/components/settings/statusline/unity-project-dashboard-statusline.json +7 -0
- package/cli-tool/components/settings/statusline/vercel-deployment-monitor.json +7 -0
- package/cli-tool/components/settings/statusline/vercel-error-alert-system.json +7 -0
- package/cli-tool/components/settings/statusline/vercel-multi-env-status.json +7 -0
- package/cli-tool/components/settings/statusline/virtual-code-garden-statusline.json +7 -0
- package/cli-tool/components/settings/statusline/zero-config-deployment-monitor.json +7 -0
- package/cli-tool/components/settings/telemetry/custom-telemetry.json +7 -0
- package/cli-tool/components/settings/telemetry/disable-telemetry.json +6 -0
- package/cli-tool/components/settings/telemetry/enable-telemetry.json +6 -0
- package/cli-tool/docs_to_claude/ANALYTICS_STATE_DETECTION.md +183 -0
- package/cli-tool/docs_to_claude/ARCHITECTURE.md +472 -0
- package/cli-tool/docs_to_claude/BLOG_WRITING_GUIDE.md +438 -0
- package/cli-tool/docs_to_claude/CLAUDE_DATA_STRUCTURE.md +400 -0
- package/cli-tool/docs_to_claude/COMMANDS_GUIDE.md +909 -0
- package/cli-tool/docs_to_claude/CONVERSATION_STATE_IMPROVEMENTS.md +154 -0
- package/cli-tool/docs_to_claude/DEBUG_TYPING_DETECTION.md +95 -0
- package/cli-tool/docs_to_claude/DOWNLOAD_TRACKING.md +291 -0
- package/cli-tool/docs_to_claude/ENHANCED_STATE_DETECTION.md +122 -0
- package/cli-tool/docs_to_claude/HEALTH_CHECK_IMPLEMENTATION.md +135 -0
- package/cli-tool/docs_to_claude/HOOKS_GUIDE.md +1249 -0
- package/cli-tool/docs_to_claude/STATUSLINE_GUIDE.md +1123 -0
- package/cli-tool/docs_to_claude/SUBAGENTS_GUIDE.md +566 -0
- package/cli-tool/docs_to_claude/SUB_AGENTS.md +329 -0
- package/cli-tool/jest.config.js +84 -0
- package/cli-tool/package-lock.json +5471 -0
- package/cli-tool/package.json +95 -0
- package/{src → cli-tool/src}/analytics-web/components/ActivityHeatmap.js +50 -6
- package/{src → cli-tool/src}/analytics-web/components/DashboardPage.js +4 -0
- package/{src → cli-tool/src}/analytics-web/services/DataService.js +7 -0
- package/{src → cli-tool/src}/analytics.js +67 -20
- package/{src → cli-tool/src}/index.js +526 -8
- package/cli-tool/src/sandbox-server.js +555 -0
- package/cli-tool/src/test-activity-data.json +1094 -0
- package/cli-tool/templates/common/.claude/commands/git-workflow.md +239 -0
- package/cli-tool/templates/common/.claude/commands/project-setup.md +316 -0
- package/cli-tool/templates/common/.mcp.json +41 -0
- package/cli-tool/templates/common/CLAUDE.md +109 -0
- package/cli-tool/templates/common/README.md +96 -0
- package/cli-tool/templates/go/.mcp.json +78 -0
- package/cli-tool/templates/go/README.md +25 -0
- package/cli-tool/templates/javascript-typescript/.claude/commands/api-endpoint.md +51 -0
- package/cli-tool/templates/javascript-typescript/.claude/commands/debug.md +52 -0
- package/cli-tool/templates/javascript-typescript/.claude/commands/lint.md +48 -0
- package/cli-tool/templates/javascript-typescript/.claude/commands/npm-scripts.md +48 -0
- package/cli-tool/templates/javascript-typescript/.claude/commands/refactor.md +55 -0
- package/cli-tool/templates/javascript-typescript/.claude/commands/test.md +61 -0
- package/cli-tool/templates/javascript-typescript/.claude/commands/typescript-migrate.md +51 -0
- package/cli-tool/templates/javascript-typescript/.claude/settings.json +142 -0
- package/cli-tool/templates/javascript-typescript/.mcp.json +80 -0
- package/cli-tool/templates/javascript-typescript/CLAUDE.md +185 -0
- package/cli-tool/templates/javascript-typescript/README.md +259 -0
- package/cli-tool/templates/javascript-typescript/examples/angular-app/.claude/commands/components.md +63 -0
- package/cli-tool/templates/javascript-typescript/examples/angular-app/.claude/commands/services.md +62 -0
- package/cli-tool/templates/javascript-typescript/examples/node-api/.claude/commands/api-endpoint.md +46 -0
- package/cli-tool/templates/javascript-typescript/examples/node-api/.claude/commands/database.md +56 -0
- package/cli-tool/templates/javascript-typescript/examples/node-api/.claude/commands/middleware.md +61 -0
- package/cli-tool/templates/javascript-typescript/examples/node-api/.claude/commands/route.md +57 -0
- package/cli-tool/templates/javascript-typescript/examples/node-api/CLAUDE.md +102 -0
- package/cli-tool/templates/javascript-typescript/examples/react-app/.claude/commands/component.md +29 -0
- package/cli-tool/templates/javascript-typescript/examples/react-app/.claude/commands/hooks.md +44 -0
- package/cli-tool/templates/javascript-typescript/examples/react-app/.claude/commands/state-management.md +45 -0
- package/cli-tool/templates/javascript-typescript/examples/react-app/CLAUDE.md +81 -0
- package/cli-tool/templates/javascript-typescript/examples/react-app/agents/react-performance-optimization.md +530 -0
- package/cli-tool/templates/javascript-typescript/examples/react-app/agents/react-state-management.md +295 -0
- package/cli-tool/templates/javascript-typescript/examples/vue-app/.claude/commands/components.md +46 -0
- package/cli-tool/templates/javascript-typescript/examples/vue-app/.claude/commands/composables.md +51 -0
- package/cli-tool/templates/python/.claude/commands/lint.md +111 -0
- package/cli-tool/templates/python/.claude/commands/test.md +73 -0
- package/cli-tool/templates/python/.claude/settings.json +153 -0
- package/cli-tool/templates/python/.mcp.json +78 -0
- package/cli-tool/templates/python/CLAUDE.md +276 -0
- package/cli-tool/templates/python/examples/django-app/.claude/commands/admin.md +264 -0
- package/cli-tool/templates/python/examples/django-app/.claude/commands/django-model.md +124 -0
- package/cli-tool/templates/python/examples/django-app/.claude/commands/views.md +222 -0
- package/cli-tool/templates/python/examples/django-app/CLAUDE.md +313 -0
- package/cli-tool/templates/python/examples/fastapi-app/.claude/commands/api-endpoints.md +513 -0
- package/cli-tool/templates/python/examples/fastapi-app/.claude/commands/auth.md +775 -0
- package/cli-tool/templates/python/examples/fastapi-app/.claude/commands/database.md +657 -0
- package/cli-tool/templates/python/examples/fastapi-app/.claude/commands/deployment.md +160 -0
- package/cli-tool/templates/python/examples/fastapi-app/.claude/commands/testing.md +927 -0
- package/cli-tool/templates/python/examples/fastapi-app/CLAUDE.md +229 -0
- package/cli-tool/templates/python/examples/flask-app/.claude/commands/app-factory.md +384 -0
- package/cli-tool/templates/python/examples/flask-app/.claude/commands/blueprint.md +243 -0
- package/cli-tool/templates/python/examples/flask-app/.claude/commands/database.md +410 -0
- package/cli-tool/templates/python/examples/flask-app/.claude/commands/deployment.md +620 -0
- package/cli-tool/templates/python/examples/flask-app/.claude/commands/flask-route.md +217 -0
- package/cli-tool/templates/python/examples/flask-app/.claude/commands/testing.md +559 -0
- package/cli-tool/templates/python/examples/flask-app/CLAUDE.md +391 -0
- package/cli-tool/templates/ruby/.claude/commands/model.md +360 -0
- package/cli-tool/templates/ruby/.claude/commands/test.md +480 -0
- package/cli-tool/templates/ruby/.claude/settings.json +146 -0
- package/cli-tool/templates/ruby/.mcp.json +83 -0
- package/cli-tool/templates/ruby/CLAUDE.md +284 -0
- package/cli-tool/templates/ruby/examples/rails-app/.claude/commands/authentication.md +490 -0
- package/cli-tool/templates/ruby/examples/rails-app/CLAUDE.md +376 -0
- package/cli-tool/templates/rust/.mcp.json +78 -0
- package/cli-tool/templates/rust/README.md +26 -0
- package/cli-tool/test-commands.sh +85 -0
- package/cli-tool/test-detailed.sh +267 -0
- package/docs/CNAME +1 -0
- package/docs/README.md +49 -0
- package/docs/_config.yml +43 -0
- package/docs/blog/assets/aitmpl-nextjs-search.png +0 -0
- package/docs/blog/assets/aitmpl-supabase-search.png +0 -0
- package/docs/blog/assets/nextjs-vercel-claude-code-templates-cover.png +0 -0
- package/docs/blog/assets/supabase-claude-code-templates-cover.png +0 -0
- package/docs/blog/e2b-claude-code-sandbox/index.html +1061 -0
- package/docs/blog/index.html +239 -0
- package/docs/blog/nextjs-vercel-claude-code-integration/index.html +1021 -0
- package/docs/blog/supabase-claude-code-integration/index.html +837 -0
- package/docs/components-metadata.json +303 -0
- package/docs/components.json +4072 -0
- package/docs/css/blog.css +821 -0
- package/docs/css/stack-page.css +776 -0
- package/docs/css/styles.css +4480 -0
- package/docs/css/trending.css +971 -0
- package/docs/css/workflows-modal.css +739 -0
- package/docs/css/workflows.css +1234 -0
- package/docs/download-stats.html +514 -0
- package/docs/index.html +634 -0
- package/docs/js/carousel.js +177 -0
- package/docs/js/cart-manager.js +529 -0
- package/docs/js/data-loader.js +626 -0
- package/docs/js/generate-search-data.js +82 -0
- package/docs/js/index-events.js +1707 -0
- package/docs/js/modal-helpers.js +334 -0
- package/docs/js/script.js +2167 -0
- package/docs/js/search-functionality.js +992 -0
- package/docs/js/stack-router.js +561 -0
- package/docs/js/trending.js +493 -0
- package/docs/js/utils.js +43 -0
- package/docs/js/workflows-events.js +1146 -0
- package/docs/js/workflows.js +627 -0
- package/docs/sandbox-interface.html +1406 -0
- package/docs/static/img/logo.svg +23 -0
- package/docs/trending-data.json +579 -0
- package/docs/trending.html +179 -0
- package/docs/workflows.html +379 -0
- package/docu/README.md +41 -0
- package/docu/docs/analytics/agent-chats-manager.md +33 -0
- package/docu/docs/analytics/analysis-tools.md +54 -0
- package/docu/docs/analytics/overview.md +48 -0
- package/docu/docs/analytics/real-time-monitoring.md +16 -0
- package/docu/docs/cli-options.md +90 -0
- package/docu/docs/components/agents.md +296 -0
- package/docu/docs/components/commands.md +426 -0
- package/docu/docs/components/discord-notifications.md +59 -0
- package/docu/docs/components/hooks.md +381 -0
- package/docu/docs/components/mcps.md +510 -0
- package/docu/docs/components/overview.md +287 -0
- package/docu/docs/components/settings.md +223 -0
- package/docu/docs/components/slack-notifications.md +67 -0
- package/docu/docs/components/telegram-notifications.md +73 -0
- package/docu/docs/contributing.md +11 -0
- package/docu/docs/health-check/overview.md +33 -0
- package/docu/docs/intro.md +109 -0
- package/docu/docs/project-setup/automation-hooks.md +14 -0
- package/docu/docs/project-setup/framework-specific-setup.md +86 -0
- package/docu/docs/project-setup/interactive-setup.md +59 -0
- package/docu/docs/project-setup/mcp-integration.md +17 -0
- package/docu/docs/project-setup/supported-languages-frameworks.md +15 -0
- package/docu/docs/project-setup/what-gets-installed.md +176 -0
- package/docu/docs/safety-features.md +13 -0
- package/docu/docs/support.md +13 -0
- package/docu/docs/usage-examples/advanced-options.md +87 -0
- package/docu/docs/usage-examples/alternative-commands.md +31 -0
- package/docu/docs/usage-examples/framework-specific-quick-setup.md +47 -0
- package/docu/docs/usage-examples/interactive-setup.md +16 -0
- package/docu/docusaurus.config.ts +163 -0
- package/docu/package-lock.json +16185 -0
- package/docu/package.json +47 -0
- package/docu/sidebars.ts +85 -0
- package/docu/src/components/HomepageFeatures/index.tsx +82 -0
- package/docu/src/components/HomepageFeatures/styles.module.css +131 -0
- package/docu/src/css/custom.css +475 -0
- package/docu/src/pages/index.module.css +109 -0
- package/docu/src/pages/index.tsx +65 -0
- package/docu/src/pages/markdown-page.md +7 -0
- package/docu/static/img/favicon.ico +0 -0
- package/docu/static/img/logo.svg +23 -0
- package/docu/tsconfig.json +8 -0
- package/generate_components_json.py +199 -0
- package/package.json +19 -86
- package/social-preview.png +0 -0
- package/vercel.json +75 -0
- /package/{src → cli-tool/src}/agents.js +0 -0
- /package/{src → cli-tool/src}/analytics/core/AgentAnalyzer.js +0 -0
- /package/{src → cli-tool/src}/analytics/core/ConversationAnalyzer.js +0 -0
- /package/{src → cli-tool/src}/analytics/core/FileWatcher.js +0 -0
- /package/{src → cli-tool/src}/analytics/core/ProcessDetector.js +0 -0
- /package/{src → cli-tool/src}/analytics/core/SessionAnalyzer.js +0 -0
- /package/{src → cli-tool/src}/analytics/core/StateCalculator.js +0 -0
- /package/{src → cli-tool/src}/analytics/data/DataCache.js +0 -0
- /package/{src → cli-tool/src}/analytics/notifications/NotificationManager.js +0 -0
- /package/{src → cli-tool/src}/analytics/notifications/WebSocketServer.js +0 -0
- /package/{src → cli-tool/src}/analytics/utils/PerformanceMonitor.js +0 -0
- /package/{src → cli-tool/src}/analytics-web/FRONT_ARCHITECTURE.md +0 -0
- /package/{src → cli-tool/src}/analytics-web/assets/js/main.js.deprecated +0 -0
- /package/{src → cli-tool/src}/analytics-web/chats_mobile.html +0 -0
- /package/{src → cli-tool/src}/analytics-web/components/AgentAnalytics.js +0 -0
- /package/{src → cli-tool/src}/analytics-web/components/App.js +0 -0
- /package/{src → cli-tool/src}/analytics-web/components/Charts.js +0 -0
- /package/{src → cli-tool/src}/analytics-web/components/ConversationTable.js +0 -0
- /package/{src → cli-tool/src}/analytics-web/components/HeaderComponent.js +0 -0
- /package/{src → cli-tool/src}/analytics-web/components/SessionTimer.js +0 -0
- /package/{src → cli-tool/src}/analytics-web/components/Sidebar.js +0 -0
- /package/{src → cli-tool/src}/analytics-web/components/ToolDisplay.js +0 -0
- /package/{src → cli-tool/src}/analytics-web/index.html +0 -0
- /package/{src → cli-tool/src}/analytics-web/index.html.original +0 -0
- /package/{src → cli-tool/src}/analytics-web/services/StateService.js +0 -0
- /package/{src → cli-tool/src}/analytics-web/services/WebSocketService.js +0 -0
- /package/{src → cli-tool/src}/chats-mobile.js +0 -0
- /package/{src → cli-tool/src}/claude-api-proxy.js +0 -0
- /package/{src → cli-tool/src}/command-scanner.js +0 -0
- /package/{src → cli-tool/src}/command-stats.js +0 -0
- /package/{src → cli-tool/src}/console-bridge.js +0 -0
- /package/{src → cli-tool/src}/file-operations.js +0 -0
- /package/{src → cli-tool/src}/health-check.js +0 -0
- /package/{src → cli-tool/src}/hook-scanner.js +0 -0
- /package/{src → cli-tool/src}/hook-stats.js +0 -0
- /package/{src → cli-tool/src}/mcp-stats.js +0 -0
- /package/{src → cli-tool/src}/prompts.js +0 -0
- /package/{src → cli-tool/src}/sdk/global-agent-manager.js +0 -0
- /package/{src → cli-tool/src}/templates.js +0 -0
- /package/{src → cli-tool/src}/test-console-bridge.js +0 -0
- /package/{src → cli-tool/src}/tracking-service.js +0 -0
- /package/{src → cli-tool/src}/utils.js +0 -0
- /package/{src/analytics.log → docu/static/.nojekyll} +0 -0
|
@@ -0,0 +1,909 @@
|
|
|
1
|
+
# Complete Guide to Creating Claude Code Commands
|
|
2
|
+
|
|
3
|
+
This guide teaches you how to create custom slash commands for Claude Code using `.md` files with optional YAML frontmatter configuration.
|
|
4
|
+
|
|
5
|
+
## What are Claude Code Commands?
|
|
6
|
+
|
|
7
|
+
Commands are reusable prompts that you can invoke with a simple slash syntax during your Claude Code sessions. Each command:
|
|
8
|
+
|
|
9
|
+
- **Has a specific purpose** and can be customized with arguments
|
|
10
|
+
- **Can execute bash commands** before running the prompt
|
|
11
|
+
- **Supports file references** using the `@` syntax
|
|
12
|
+
- **Can be scoped** to projects or personal use
|
|
13
|
+
- **Includes optional metadata** through YAML frontmatter
|
|
14
|
+
|
|
15
|
+
## Key Benefits
|
|
16
|
+
|
|
17
|
+
### 🚀 Rapid Execution
|
|
18
|
+
Execute complex, frequently-used prompts with a simple `/command` syntax.
|
|
19
|
+
|
|
20
|
+
### 🔧 Dynamic Arguments
|
|
21
|
+
Pass variables to commands using `$ARGUMENTS` placeholder for flexible reuse.
|
|
22
|
+
|
|
23
|
+
### 📁 Smart Organization
|
|
24
|
+
Organize commands in subdirectories with automatic namespacing and conflict resolution.
|
|
25
|
+
|
|
26
|
+
### 🔄 Context Enrichment
|
|
27
|
+
Automatically include bash command output and file contents in your prompts.
|
|
28
|
+
|
|
29
|
+
### ♻️ Team Collaboration
|
|
30
|
+
Share project commands with your team while keeping personal commands private.
|
|
31
|
+
|
|
32
|
+
## Command Locations
|
|
33
|
+
|
|
34
|
+
| Type | Location | Scope | Visibility | Priority |
|
|
35
|
+
|------|----------|-------|------------|----------|
|
|
36
|
+
| **Project Commands** | `.claude/commands/` | Current project only | Shared with team | Higher |
|
|
37
|
+
| **Personal Commands** | `~/.claude/commands/` | All projects | Private to user | Lower |
|
|
38
|
+
|
|
39
|
+
*When there are name conflicts, project commands take precedence over personal commands.*
|
|
40
|
+
|
|
41
|
+
## Basic Command Format
|
|
42
|
+
|
|
43
|
+
Each command is defined in a Markdown file with this structure:
|
|
44
|
+
|
|
45
|
+
```markdown
|
|
46
|
+
---
|
|
47
|
+
allowed-tools: Read, Edit, Bash
|
|
48
|
+
argument-hint: [optional-arg]
|
|
49
|
+
description: Brief description of the command
|
|
50
|
+
model: sonnet
|
|
51
|
+
---
|
|
52
|
+
|
|
53
|
+
Your command prompt goes here. This can include:
|
|
54
|
+
|
|
55
|
+
- Dynamic arguments using $ARGUMENTS
|
|
56
|
+
- File references using @filename.js
|
|
57
|
+
- Bash command output using !`command`
|
|
58
|
+
- Multiple paragraphs with detailed instructions
|
|
59
|
+
|
|
60
|
+
Include specific instructions and context that Claude should follow.
|
|
61
|
+
```
|
|
62
|
+
|
|
63
|
+
## Command Configuration
|
|
64
|
+
|
|
65
|
+
### Basic Syntax
|
|
66
|
+
```
|
|
67
|
+
/<command-name> [arguments]
|
|
68
|
+
```
|
|
69
|
+
|
|
70
|
+
### Filename to Command Mapping
|
|
71
|
+
- **File**: `optimize.md` → **Command**: `/optimize`
|
|
72
|
+
- **File**: `fix-issue.md` → **Command**: `/fix-issue`
|
|
73
|
+
- **File**: `security-review.md` → **Command**: `/security-review`
|
|
74
|
+
|
|
75
|
+
### Directory Organization
|
|
76
|
+
Commands can be organized in subdirectories for better organization:
|
|
77
|
+
|
|
78
|
+
```
|
|
79
|
+
.claude/commands/
|
|
80
|
+
├── frontend/
|
|
81
|
+
│ ├── component.md # /component (project:frontend)
|
|
82
|
+
│ └── styling.md # /styling (project:frontend)
|
|
83
|
+
├── backend/
|
|
84
|
+
│ ├── api-test.md # /api-test (project:backend)
|
|
85
|
+
│ └── database.md # /database (project:backend)
|
|
86
|
+
└── git/
|
|
87
|
+
├── commit.md # /commit (project:git)
|
|
88
|
+
└── review.md # /review (project:git)
|
|
89
|
+
```
|
|
90
|
+
|
|
91
|
+
## Frontmatter Configuration
|
|
92
|
+
|
|
93
|
+
### `allowed-tools` (Optional)
|
|
94
|
+
Restricts which tools the command can use:
|
|
95
|
+
```yaml
|
|
96
|
+
allowed-tools: Read, Edit, Bash(git add:*), Bash(git status:*)
|
|
97
|
+
```
|
|
98
|
+
|
|
99
|
+
**Common tool combinations:**
|
|
100
|
+
- **Code Analysis**: `Read, Grep, Glob`
|
|
101
|
+
- **File Operations**: `Read, Edit, Write`
|
|
102
|
+
- **Git Operations**: `Bash(git add:*), Bash(git status:*), Bash(git commit:*)`
|
|
103
|
+
- **Web Research**: `Read, WebSearch, WebFetch`
|
|
104
|
+
- **Full Access**: Leave empty to inherit all tools
|
|
105
|
+
|
|
106
|
+
### `argument-hint` (Optional)
|
|
107
|
+
Provides autocomplete guidance for command arguments:
|
|
108
|
+
```yaml
|
|
109
|
+
argument-hint: add [tagId] | remove [tagId] | list
|
|
110
|
+
argument-hint: [issue-number]
|
|
111
|
+
argument-hint: [component-name] [directory]
|
|
112
|
+
```
|
|
113
|
+
|
|
114
|
+
### `description` (Optional)
|
|
115
|
+
Brief description shown in `/help`:
|
|
116
|
+
```yaml
|
|
117
|
+
description: Create a git commit with proper formatting
|
|
118
|
+
description: Analyze code performance and suggest optimizations
|
|
119
|
+
description: Generate React component with tests
|
|
120
|
+
```
|
|
121
|
+
|
|
122
|
+
### `model` (Optional)
|
|
123
|
+
Specify which Claude model to use:
|
|
124
|
+
```yaml
|
|
125
|
+
model: claude-3-5-sonnet-20241022 # Default, balanced performance
|
|
126
|
+
model: claude-3-5-haiku-20241022 # Faster, simpler tasks
|
|
127
|
+
model: claude-3-opus-20240229 # Most capable, complex tasks
|
|
128
|
+
```
|
|
129
|
+
|
|
130
|
+
## Advanced Features
|
|
131
|
+
|
|
132
|
+
### Dynamic Arguments
|
|
133
|
+
Use `$ARGUMENTS` to pass values to your commands:
|
|
134
|
+
|
|
135
|
+
```markdown
|
|
136
|
+
---
|
|
137
|
+
argument-hint: [issue-number]
|
|
138
|
+
description: Fix GitHub issue following coding standards
|
|
139
|
+
---
|
|
140
|
+
|
|
141
|
+
Fix issue #$ARGUMENTS following our team's coding standards:
|
|
142
|
+
|
|
143
|
+
1. Review the issue requirements
|
|
144
|
+
2. Implement the solution
|
|
145
|
+
3. Add appropriate tests
|
|
146
|
+
4. Update documentation if needed
|
|
147
|
+
```
|
|
148
|
+
|
|
149
|
+
**Usage**: `/fix-issue 123`
|
|
150
|
+
|
|
151
|
+
### Bash Command Integration
|
|
152
|
+
Execute commands before the prompt runs using `!` prefix:
|
|
153
|
+
|
|
154
|
+
```markdown
|
|
155
|
+
---
|
|
156
|
+
allowed-tools: Bash(git add:*), Bash(git status:*), Bash(git commit:*)
|
|
157
|
+
description: Create a comprehensive git commit
|
|
158
|
+
---
|
|
159
|
+
|
|
160
|
+
## Current Repository State
|
|
161
|
+
|
|
162
|
+
- Git status: !`git status --porcelain`
|
|
163
|
+
- Current branch: !`git branch --show-current`
|
|
164
|
+
- Staged changes: !`git diff --cached --stat`
|
|
165
|
+
- Unstaged changes: !`git diff --stat`
|
|
166
|
+
- Recent commits: !`git log --oneline -5`
|
|
167
|
+
|
|
168
|
+
## Task
|
|
169
|
+
|
|
170
|
+
Based on the above repository state, create a well-formatted commit message and commit the staged changes.
|
|
171
|
+
```
|
|
172
|
+
|
|
173
|
+
### File References
|
|
174
|
+
Include file contents using `@` syntax:
|
|
175
|
+
|
|
176
|
+
```markdown
|
|
177
|
+
---
|
|
178
|
+
description: Review code implementation
|
|
179
|
+
---
|
|
180
|
+
|
|
181
|
+
Please review the following implementation:
|
|
182
|
+
|
|
183
|
+
Main component: @src/components/UserProfile.js
|
|
184
|
+
Test file: @tests/components/UserProfile.test.js
|
|
185
|
+
Types: @types/user.ts
|
|
186
|
+
|
|
187
|
+
Analyze for:
|
|
188
|
+
- Code quality and best practices
|
|
189
|
+
- Test coverage completeness
|
|
190
|
+
- Type safety implementation
|
|
191
|
+
- Performance considerations
|
|
192
|
+
```
|
|
193
|
+
|
|
194
|
+
### Extended Thinking Mode
|
|
195
|
+
Trigger extended thinking by including specific keywords:
|
|
196
|
+
|
|
197
|
+
```markdown
|
|
198
|
+
---
|
|
199
|
+
description: Complex architectural decision analysis
|
|
200
|
+
---
|
|
201
|
+
|
|
202
|
+
<thinking>
|
|
203
|
+
I need to carefully analyze this architectural decision considering multiple factors.
|
|
204
|
+
</thinking>
|
|
205
|
+
|
|
206
|
+
Analyze the architectural implications of @src/config/architecture.md and provide:
|
|
207
|
+
|
|
208
|
+
1. Detailed analysis of current approach
|
|
209
|
+
2. Alternative solutions with trade-offs
|
|
210
|
+
3. Recommended implementation strategy
|
|
211
|
+
4. Migration path if changes are needed
|
|
212
|
+
```
|
|
213
|
+
|
|
214
|
+
## Complete Command Examples
|
|
215
|
+
|
|
216
|
+
### 1. Git Commit Command
|
|
217
|
+
|
|
218
|
+
```markdown
|
|
219
|
+
---
|
|
220
|
+
allowed-tools: Bash(git add:*), Bash(git status:*), Bash(git commit:*), Bash(git log:*)
|
|
221
|
+
argument-hint: [optional-commit-message]
|
|
222
|
+
description: Create a well-formatted git commit
|
|
223
|
+
model: claude-3-5-sonnet-20241022
|
|
224
|
+
---
|
|
225
|
+
|
|
226
|
+
## Repository Context
|
|
227
|
+
|
|
228
|
+
- Current status: !`git status --porcelain`
|
|
229
|
+
- Current branch: !`git branch --show-current`
|
|
230
|
+
- Staged files: !`git diff --cached --name-only`
|
|
231
|
+
- Unstaged changes: !`git diff --name-only`
|
|
232
|
+
- Last 3 commits: !`git log --oneline -3`
|
|
233
|
+
|
|
234
|
+
## Task
|
|
235
|
+
|
|
236
|
+
Create a git commit with proper formatting:
|
|
237
|
+
|
|
238
|
+
1. **If no message provided**: Generate a descriptive commit message based on the staged changes
|
|
239
|
+
2. **If message provided**: Use "$ARGUMENTS" as the commit message
|
|
240
|
+
3. **Follow conventional commits format**: `type(scope): description`
|
|
241
|
+
4. **Add co-authored-by**: Include Claude attribution
|
|
242
|
+
|
|
243
|
+
Commit message should be:
|
|
244
|
+
- Clear and descriptive
|
|
245
|
+
- Under 50 characters for the title
|
|
246
|
+
- Include detailed body if necessary
|
|
247
|
+
- Follow our team's commit standards
|
|
248
|
+
```
|
|
249
|
+
|
|
250
|
+
### 2. React Component Generator
|
|
251
|
+
|
|
252
|
+
```markdown
|
|
253
|
+
---
|
|
254
|
+
allowed-tools: Read, Write, Edit, Bash
|
|
255
|
+
argument-hint: [component-name] [directory]
|
|
256
|
+
description: Generate React component with TypeScript and tests
|
|
257
|
+
model: claude-3-5-sonnet-20241022
|
|
258
|
+
---
|
|
259
|
+
|
|
260
|
+
## Component Generation Task
|
|
261
|
+
|
|
262
|
+
Generate a complete React component with the following specifications:
|
|
263
|
+
|
|
264
|
+
**Component Name**: $ARGUMENTS (first argument)
|
|
265
|
+
**Directory**: $ARGUMENTS (second argument, default: src/components)
|
|
266
|
+
|
|
267
|
+
## Requirements
|
|
268
|
+
|
|
269
|
+
### 1. Component Structure
|
|
270
|
+
- TypeScript functional component with proper typing
|
|
271
|
+
- Props interface with JSDoc comments
|
|
272
|
+
- Default export with named export for testing
|
|
273
|
+
- Proper file naming convention
|
|
274
|
+
|
|
275
|
+
### 2. Styling
|
|
276
|
+
- CSS Modules or styled-components (detect existing pattern: @src/components/)
|
|
277
|
+
- Responsive design considerations
|
|
278
|
+
- Accessibility attributes
|
|
279
|
+
|
|
280
|
+
### 3. Testing
|
|
281
|
+
- Jest + React Testing Library test file
|
|
282
|
+
- Test component rendering
|
|
283
|
+
- Test props handling
|
|
284
|
+
- Test user interactions
|
|
285
|
+
- Accessibility testing
|
|
286
|
+
|
|
287
|
+
### 4. Documentation
|
|
288
|
+
- JSDoc comments for component and props
|
|
289
|
+
- Usage examples in component file
|
|
290
|
+
- Storybook story (if Storybook detected: @.storybook/)
|
|
291
|
+
|
|
292
|
+
## File Structure to Create
|
|
293
|
+
```
|
|
294
|
+
[directory]/
|
|
295
|
+
├── ComponentName.tsx
|
|
296
|
+
├── ComponentName.module.css
|
|
297
|
+
├── ComponentName.test.tsx
|
|
298
|
+
├── ComponentName.stories.tsx (if Storybook exists)
|
|
299
|
+
└── index.ts
|
|
300
|
+
```
|
|
301
|
+
|
|
302
|
+
Follow the existing code patterns from: @src/components/
|
|
303
|
+
```
|
|
304
|
+
|
|
305
|
+
### 3. API Testing Command
|
|
306
|
+
|
|
307
|
+
```markdown
|
|
308
|
+
---
|
|
309
|
+
allowed-tools: Read, Edit, Bash, WebFetch
|
|
310
|
+
argument-hint: [endpoint-path]
|
|
311
|
+
description: Generate comprehensive API tests
|
|
312
|
+
model: claude-3-5-sonnet-20241022
|
|
313
|
+
---
|
|
314
|
+
|
|
315
|
+
## API Testing Generation
|
|
316
|
+
|
|
317
|
+
**Target Endpoint**: $ARGUMENTS
|
|
318
|
+
|
|
319
|
+
## Context Analysis
|
|
320
|
+
|
|
321
|
+
- API routes: @src/routes/ or @api/
|
|
322
|
+
- Existing tests: @tests/api/ or @__tests__/
|
|
323
|
+
- API documentation: @docs/api.md or @README.md
|
|
324
|
+
- Test configuration: @jest.config.js or @vitest.config.js
|
|
325
|
+
|
|
326
|
+
## Test Generation Requirements
|
|
327
|
+
|
|
328
|
+
### 1. Test Structure
|
|
329
|
+
- Comprehensive test suite for the endpoint
|
|
330
|
+
- Happy path testing
|
|
331
|
+
- Error case testing
|
|
332
|
+
- Edge case validation
|
|
333
|
+
- Authentication testing (if required)
|
|
334
|
+
|
|
335
|
+
### 2. HTTP Methods Testing
|
|
336
|
+
For each supported method (GET, POST, PUT, DELETE):
|
|
337
|
+
- Valid request/response testing
|
|
338
|
+
- Invalid input validation
|
|
339
|
+
- Status code verification
|
|
340
|
+
- Response body validation
|
|
341
|
+
- Headers verification
|
|
342
|
+
|
|
343
|
+
### 3. Test Data
|
|
344
|
+
- Mock data generation
|
|
345
|
+
- Fixtures for consistent testing
|
|
346
|
+
- Database seeding (if applicable)
|
|
347
|
+
- Cleanup procedures
|
|
348
|
+
|
|
349
|
+
### 4. Integration Testing
|
|
350
|
+
- Database interactions
|
|
351
|
+
- External service mocking
|
|
352
|
+
- Middleware testing
|
|
353
|
+
- Rate limiting testing
|
|
354
|
+
|
|
355
|
+
## Deliverables
|
|
356
|
+
|
|
357
|
+
1. Complete test file with all scenarios
|
|
358
|
+
2. Test data fixtures
|
|
359
|
+
3. Mock configurations
|
|
360
|
+
4. Documentation for running tests
|
|
361
|
+
```
|
|
362
|
+
|
|
363
|
+
### 4. Performance Analysis Command
|
|
364
|
+
|
|
365
|
+
```markdown
|
|
366
|
+
---
|
|
367
|
+
allowed-tools: Read, Bash, Grep, Glob
|
|
368
|
+
description: Analyze application performance and suggest optimizations
|
|
369
|
+
model: claude-3-5-sonnet-20241022
|
|
370
|
+
---
|
|
371
|
+
|
|
372
|
+
## Performance Analysis Report
|
|
373
|
+
|
|
374
|
+
## Current Metrics
|
|
375
|
+
|
|
376
|
+
- Bundle analysis: !`npm run build -- --analyze 2>/dev/null || echo "No build analyzer available"`
|
|
377
|
+
- Dependencies: !`npm list --depth=0 --prod`
|
|
378
|
+
- Package size: !`du -sh node_modules/ 2>/dev/null || echo "No node_modules found"`
|
|
379
|
+
|
|
380
|
+
## Code Analysis
|
|
381
|
+
|
|
382
|
+
### Frontend Performance
|
|
383
|
+
- React components: @src/components/
|
|
384
|
+
- Main application: @src/App.js or @src/App.tsx
|
|
385
|
+
- Build configuration: @webpack.config.js or @vite.config.js or @next.config.js
|
|
386
|
+
|
|
387
|
+
### Backend Performance
|
|
388
|
+
- Server entry: @src/server.js or @src/index.js
|
|
389
|
+
- Database queries: @src/models/ or @src/db/
|
|
390
|
+
- API routes: @src/routes/ or @api/
|
|
391
|
+
|
|
392
|
+
## Analysis Areas
|
|
393
|
+
|
|
394
|
+
### 1. Bundle Optimization
|
|
395
|
+
- Identify large dependencies
|
|
396
|
+
- Code splitting opportunities
|
|
397
|
+
- Tree shaking effectiveness
|
|
398
|
+
- Dynamic imports usage
|
|
399
|
+
|
|
400
|
+
### 2. Runtime Performance
|
|
401
|
+
- Component re-render analysis
|
|
402
|
+
- Memory leak detection
|
|
403
|
+
- Event listener optimization
|
|
404
|
+
- Image optimization opportunities
|
|
405
|
+
|
|
406
|
+
### 3. Backend Optimization
|
|
407
|
+
- Database query efficiency
|
|
408
|
+
- Caching strategies
|
|
409
|
+
- API response times
|
|
410
|
+
- Resource utilization
|
|
411
|
+
|
|
412
|
+
### 4. Core Web Vitals
|
|
413
|
+
- Largest Contentful Paint (LCP)
|
|
414
|
+
- First Input Delay (FID)
|
|
415
|
+
- Cumulative Layout Shift (CLS)
|
|
416
|
+
|
|
417
|
+
## Deliverables
|
|
418
|
+
|
|
419
|
+
1. Performance audit report
|
|
420
|
+
2. Specific optimization recommendations
|
|
421
|
+
3. Implementation priority ranking
|
|
422
|
+
4. Before/after metrics tracking plan
|
|
423
|
+
```
|
|
424
|
+
|
|
425
|
+
### 5. Security Audit Command
|
|
426
|
+
|
|
427
|
+
```markdown
|
|
428
|
+
---
|
|
429
|
+
allowed-tools: Read, Bash, Grep
|
|
430
|
+
description: Comprehensive security audit of the codebase
|
|
431
|
+
model: claude-3-5-sonnet-20241022
|
|
432
|
+
---
|
|
433
|
+
|
|
434
|
+
## Security Audit Report
|
|
435
|
+
|
|
436
|
+
## Dependency Security
|
|
437
|
+
|
|
438
|
+
- Security audit: !`npm audit --audit-level=moderate 2>/dev/null || echo "npm audit not available"`
|
|
439
|
+
- Outdated packages: !`npm outdated 2>/dev/null || echo "npm outdated not available"`
|
|
440
|
+
|
|
441
|
+
## Code Security Analysis
|
|
442
|
+
|
|
443
|
+
### Configuration Files
|
|
444
|
+
- Environment variables: @.env* (if exists)
|
|
445
|
+
- Security configurations: @src/config/
|
|
446
|
+
- Database configurations: @src/db/config/
|
|
447
|
+
|
|
448
|
+
### Authentication & Authorization
|
|
449
|
+
- Auth implementation: @src/auth/ or @src/middleware/auth.js
|
|
450
|
+
- JWT handling: Search for JWT-related code
|
|
451
|
+
- Password hashing: Search for bcrypt, scrypt, argon2
|
|
452
|
+
|
|
453
|
+
### Input Validation
|
|
454
|
+
- API routes: @src/routes/ or @api/
|
|
455
|
+
- Form validation: @src/components/forms/
|
|
456
|
+
- Database queries: @src/models/
|
|
457
|
+
|
|
458
|
+
## OWASP Top 10 Assessment
|
|
459
|
+
|
|
460
|
+
### 1. Injection Vulnerabilities
|
|
461
|
+
- SQL injection prevention
|
|
462
|
+
- NoSQL injection prevention
|
|
463
|
+
- Command injection prevention
|
|
464
|
+
- XSS prevention
|
|
465
|
+
|
|
466
|
+
### 2. Broken Authentication
|
|
467
|
+
- Session management
|
|
468
|
+
- Multi-factor authentication
|
|
469
|
+
- Password policies
|
|
470
|
+
- Account lockout mechanisms
|
|
471
|
+
|
|
472
|
+
### 3. Sensitive Data Exposure
|
|
473
|
+
- Data encryption at rest
|
|
474
|
+
- Data encryption in transit
|
|
475
|
+
- API key management
|
|
476
|
+
- Logging security
|
|
477
|
+
|
|
478
|
+
### 4. Security Misconfiguration
|
|
479
|
+
- Server configuration
|
|
480
|
+
- CORS configuration
|
|
481
|
+
- Security headers
|
|
482
|
+
- Error handling
|
|
483
|
+
|
|
484
|
+
## Security Checklist
|
|
485
|
+
|
|
486
|
+
- [ ] Dependencies are up to date
|
|
487
|
+
- [ ] No hardcoded secrets
|
|
488
|
+
- [ ] Proper input validation
|
|
489
|
+
- [ ] Secure authentication
|
|
490
|
+
- [ ] HTTPS enforcement
|
|
491
|
+
- [ ] Security headers configured
|
|
492
|
+
- [ ] Error messages don't leak info
|
|
493
|
+
- [ ] Logging doesn't include sensitive data
|
|
494
|
+
|
|
495
|
+
## Deliverables
|
|
496
|
+
|
|
497
|
+
1. Security vulnerability report
|
|
498
|
+
2. Risk assessment (Critical/High/Medium/Low)
|
|
499
|
+
3. Remediation recommendations
|
|
500
|
+
4. Security best practices guide
|
|
501
|
+
```
|
|
502
|
+
|
|
503
|
+
### 6. Database Migration Command
|
|
504
|
+
|
|
505
|
+
```markdown
|
|
506
|
+
---
|
|
507
|
+
allowed-tools: Read, Write, Edit, Bash
|
|
508
|
+
argument-hint: [migration-name]
|
|
509
|
+
description: Create database migration with rollback
|
|
510
|
+
model: claude-3-5-sonnet-20241022
|
|
511
|
+
---
|
|
512
|
+
|
|
513
|
+
## Database Migration Creation
|
|
514
|
+
|
|
515
|
+
**Migration Name**: $ARGUMENTS
|
|
516
|
+
|
|
517
|
+
## Current Database Context
|
|
518
|
+
|
|
519
|
+
- Migration files: @migrations/ or @db/migrations/
|
|
520
|
+
- Database schema: @schema.sql or @db/schema/
|
|
521
|
+
- ORM configuration: @knexfile.js or @src/db/config.js or @prisma/schema.prisma
|
|
522
|
+
- Existing models: @src/models/
|
|
523
|
+
|
|
524
|
+
## Migration Requirements
|
|
525
|
+
|
|
526
|
+
### 1. Migration Structure
|
|
527
|
+
- Timestamp-based filename
|
|
528
|
+
- Clear up/down migration functions
|
|
529
|
+
- Proper error handling
|
|
530
|
+
- Transaction wrapping for safety
|
|
531
|
+
|
|
532
|
+
### 2. Schema Changes
|
|
533
|
+
Based on migration name, determine operation:
|
|
534
|
+
- **CREATE**: New table creation
|
|
535
|
+
- **ALTER**: Table modifications
|
|
536
|
+
- **DROP**: Table/column removal
|
|
537
|
+
- **INDEX**: Index management
|
|
538
|
+
- **DATA**: Data migrations
|
|
539
|
+
|
|
540
|
+
### 3. Rollback Strategy
|
|
541
|
+
- Complete rollback implementation
|
|
542
|
+
- Data preservation considerations
|
|
543
|
+
- Dependency handling
|
|
544
|
+
- Validation checks
|
|
545
|
+
|
|
546
|
+
### 4. Best Practices
|
|
547
|
+
- Atomic operations
|
|
548
|
+
- No destructive changes without confirmation
|
|
549
|
+
- Proper indexing
|
|
550
|
+
- Foreign key constraints
|
|
551
|
+
- Default values handling
|
|
552
|
+
|
|
553
|
+
## Deliverables
|
|
554
|
+
|
|
555
|
+
1. Migration file with up/down functions
|
|
556
|
+
2. Rollback testing instructions
|
|
557
|
+
3. Migration documentation
|
|
558
|
+
4. Data backup recommendations (if destructive)
|
|
559
|
+
|
|
560
|
+
## Template Structure
|
|
561
|
+
|
|
562
|
+
```sql
|
|
563
|
+
-- Up migration
|
|
564
|
+
CREATE TABLE example (
|
|
565
|
+
id SERIAL PRIMARY KEY,
|
|
566
|
+
created_at TIMESTAMP DEFAULT NOW(),
|
|
567
|
+
updated_at TIMESTAMP DEFAULT NOW()
|
|
568
|
+
);
|
|
569
|
+
|
|
570
|
+
-- Down migration
|
|
571
|
+
DROP TABLE IF EXISTS example;
|
|
572
|
+
```
|
|
573
|
+
```
|
|
574
|
+
|
|
575
|
+
## Built-in Commands Reference
|
|
576
|
+
|
|
577
|
+
### Essential Commands
|
|
578
|
+
- `/add-dir` - Add working directories to current session
|
|
579
|
+
- `/agents` - Manage and configure custom AI subagents
|
|
580
|
+
- `/clear` - Clear conversation history for fresh start
|
|
581
|
+
- `/compact [instructions]` - Compress conversation with optional focus
|
|
582
|
+
- `/config` - View and modify Claude Code configuration
|
|
583
|
+
- `/help` - Show all available commands and usage
|
|
584
|
+
|
|
585
|
+
### Development Commands
|
|
586
|
+
- `/init` - Initialize project with CLAUDE.md configuration guide
|
|
587
|
+
- `/memory` - Edit CLAUDE.md memory files for persistent context
|
|
588
|
+
- `/review` - Request comprehensive code review
|
|
589
|
+
- `/pr_comments` - View and manage pull request comments
|
|
590
|
+
|
|
591
|
+
### System Commands
|
|
592
|
+
- `/bug` - Report issues to Anthropic development team
|
|
593
|
+
- `/cost` - Display token usage and billing information
|
|
594
|
+
- `/doctor` - Health check for Claude Code installation
|
|
595
|
+
- `/model` - Select or change AI model (Sonnet/Haiku/Opus)
|
|
596
|
+
- `/status` - View account and system status information
|
|
597
|
+
|
|
598
|
+
### Authentication & Permissions
|
|
599
|
+
- `/login` - Switch between Anthropic accounts
|
|
600
|
+
- `/logout` - Sign out from current account
|
|
601
|
+
- `/permissions` - View and update access permissions
|
|
602
|
+
|
|
603
|
+
### Advanced Features
|
|
604
|
+
- `/mcp` - Manage MCP server connections and OAuth
|
|
605
|
+
- `/terminal-setup` - Configure Shift+Enter for newlines
|
|
606
|
+
- `/vim` - Toggle vim mode for modal editing
|
|
607
|
+
|
|
608
|
+
## MCP Commands
|
|
609
|
+
|
|
610
|
+
### Understanding MCP Commands
|
|
611
|
+
MCP (Model Context Protocol) servers can expose prompts as dynamic slash commands:
|
|
612
|
+
|
|
613
|
+
```
|
|
614
|
+
/mcp__<server-name>__<prompt-name> [arguments]
|
|
615
|
+
```
|
|
616
|
+
|
|
617
|
+
### Example MCP Commands
|
|
618
|
+
```bash
|
|
619
|
+
# GitHub integration
|
|
620
|
+
/mcp__github__list_prs
|
|
621
|
+
/mcp__github__pr_review 456
|
|
622
|
+
|
|
623
|
+
# Jira integration
|
|
624
|
+
/mcp__jira__create_issue "Bug title" high
|
|
625
|
+
/mcp__jira__list_issues
|
|
626
|
+
|
|
627
|
+
# Database operations
|
|
628
|
+
/mcp__postgres__query "SELECT * FROM users LIMIT 10"
|
|
629
|
+
/mcp__postgres__migrate
|
|
630
|
+
```
|
|
631
|
+
|
|
632
|
+
### MCP Management
|
|
633
|
+
Use `/mcp` to:
|
|
634
|
+
- View configured MCP servers
|
|
635
|
+
- Check connection status
|
|
636
|
+
- Authenticate with OAuth-enabled servers
|
|
637
|
+
- Clear authentication tokens
|
|
638
|
+
- View available tools and prompts
|
|
639
|
+
|
|
640
|
+
## Best Practices for Creating Commands
|
|
641
|
+
|
|
642
|
+
### 1. Command Design Principles
|
|
643
|
+
- **Single Responsibility**: One clear purpose per command
|
|
644
|
+
- **Descriptive Names**: Use clear, action-oriented names
|
|
645
|
+
- **Consistent Patterns**: Follow established naming conventions
|
|
646
|
+
- **Atomic Operations**: Complete tasks that don't require follow-up
|
|
647
|
+
|
|
648
|
+
### 2. Effective Prompts
|
|
649
|
+
```markdown
|
|
650
|
+
## Structure Template
|
|
651
|
+
|
|
652
|
+
### Context Section
|
|
653
|
+
- Current state analysis
|
|
654
|
+
- Relevant file contents
|
|
655
|
+
- System information
|
|
656
|
+
|
|
657
|
+
### Requirements Section
|
|
658
|
+
- Clear, numbered requirements
|
|
659
|
+
- Acceptance criteria
|
|
660
|
+
- Quality standards
|
|
661
|
+
|
|
662
|
+
### Deliverables Section
|
|
663
|
+
- Specific outputs expected
|
|
664
|
+
- Format requirements
|
|
665
|
+
- Documentation needs
|
|
666
|
+
```
|
|
667
|
+
|
|
668
|
+
### 3. Tool Selection Strategy
|
|
669
|
+
```yaml
|
|
670
|
+
# ✅ Focused tool selection
|
|
671
|
+
allowed-tools: Read, Edit, Bash(git add:*), Bash(git status:*)
|
|
672
|
+
|
|
673
|
+
# ❌ Too permissive
|
|
674
|
+
allowed-tools: Read, Write, Edit, Bash, WebFetch, WebSearch, Grep, Glob
|
|
675
|
+
```
|
|
676
|
+
|
|
677
|
+
### 4. Argument Design
|
|
678
|
+
```yaml
|
|
679
|
+
# ✅ Clear argument guidance
|
|
680
|
+
argument-hint: [component-name] [directory] [--typescript]
|
|
681
|
+
|
|
682
|
+
# ❌ Vague guidance
|
|
683
|
+
argument-hint: [options]
|
|
684
|
+
```
|
|
685
|
+
|
|
686
|
+
### 5. Command Testing
|
|
687
|
+
- **Test with real scenarios** from your projects
|
|
688
|
+
- **Verify argument handling** works correctly
|
|
689
|
+
- **Check bash command execution** produces expected output
|
|
690
|
+
- **Validate file references** resolve properly
|
|
691
|
+
- **Test error conditions** and edge cases
|
|
692
|
+
|
|
693
|
+
## Common Use Cases
|
|
694
|
+
|
|
695
|
+
### Development Workflow
|
|
696
|
+
```bash
|
|
697
|
+
/init # Setup project configuration
|
|
698
|
+
/component Button # Generate React component
|
|
699
|
+
/test Button # Generate component tests
|
|
700
|
+
/commit # Create formatted git commit
|
|
701
|
+
/review # Request code review
|
|
702
|
+
```
|
|
703
|
+
|
|
704
|
+
### Debugging & Analysis
|
|
705
|
+
```bash
|
|
706
|
+
/performance # Analyze performance issues
|
|
707
|
+
/security # Security audit
|
|
708
|
+
/dependencies # Analyze and update dependencies
|
|
709
|
+
/logs # Analyze log files
|
|
710
|
+
/errors # Debug error patterns
|
|
711
|
+
```
|
|
712
|
+
|
|
713
|
+
### Database Operations
|
|
714
|
+
```bash
|
|
715
|
+
/migrate create_users # Create database migration
|
|
716
|
+
/seed # Generate test data
|
|
717
|
+
/backup # Backup database
|
|
718
|
+
/optimize # Optimize database performance
|
|
719
|
+
```
|
|
720
|
+
|
|
721
|
+
### DevOps & Deployment
|
|
722
|
+
```bash
|
|
723
|
+
/deploy staging # Deploy to staging environment
|
|
724
|
+
/rollback # Rollback deployment
|
|
725
|
+
/monitor # Check system health
|
|
726
|
+
/scale # Scale application resources
|
|
727
|
+
```
|
|
728
|
+
|
|
729
|
+
## Command Organization Strategies
|
|
730
|
+
|
|
731
|
+
### By Project Phase
|
|
732
|
+
```
|
|
733
|
+
.claude/commands/
|
|
734
|
+
├── setup/ # Project initialization
|
|
735
|
+
├── development/ # Daily development tasks
|
|
736
|
+
├── testing/ # Testing and QA
|
|
737
|
+
├── deployment/ # Deployment and DevOps
|
|
738
|
+
└── maintenance/ # Ongoing maintenance
|
|
739
|
+
```
|
|
740
|
+
|
|
741
|
+
### By Technology Stack
|
|
742
|
+
```
|
|
743
|
+
.claude/commands/
|
|
744
|
+
├── frontend/ # React, Vue, Angular commands
|
|
745
|
+
├── backend/ # Node.js, Python, API commands
|
|
746
|
+
├── database/ # SQL, migrations, seeding
|
|
747
|
+
├── infrastructure/ # Docker, K8s, cloud commands
|
|
748
|
+
└── tools/ # Build tools, linting, formatting
|
|
749
|
+
```
|
|
750
|
+
|
|
751
|
+
### By Team Role
|
|
752
|
+
```
|
|
753
|
+
~/.claude/commands/
|
|
754
|
+
├── developer/ # General development commands
|
|
755
|
+
├── devops/ # Infrastructure and deployment
|
|
756
|
+
├── qa/ # Testing and quality assurance
|
|
757
|
+
└── lead/ # Architecture and code review
|
|
758
|
+
```
|
|
759
|
+
|
|
760
|
+
## Troubleshooting Common Issues
|
|
761
|
+
|
|
762
|
+
### Command Not Found
|
|
763
|
+
**Symptoms**: `/command` shows "Command not found"
|
|
764
|
+
**Solutions**:
|
|
765
|
+
- Verify file exists in `.claude/commands/` or `~/.claude/commands/`
|
|
766
|
+
- Check filename matches command name (without `.md`)
|
|
767
|
+
- Ensure markdown file has proper content
|
|
768
|
+
- Restart Claude Code session
|
|
769
|
+
|
|
770
|
+
### Arguments Not Working
|
|
771
|
+
**Symptoms**: `$ARGUMENTS` appears literally in output
|
|
772
|
+
**Solutions**:
|
|
773
|
+
- Ensure arguments are provided when calling command
|
|
774
|
+
- Check `argument-hint` frontmatter is correctly formatted
|
|
775
|
+
- Verify `$ARGUMENTS` placement in command content
|
|
776
|
+
|
|
777
|
+
### Bash Commands Failing
|
|
778
|
+
**Symptoms**: `!command` output shows errors
|
|
779
|
+
**Solutions**:
|
|
780
|
+
- Verify `allowed-tools` includes `Bash` or specific commands
|
|
781
|
+
- Test bash commands work in terminal first
|
|
782
|
+
- Check file paths and permissions
|
|
783
|
+
- Ensure commands are available in system PATH
|
|
784
|
+
|
|
785
|
+
### File References Not Working
|
|
786
|
+
**Symptoms**: `@filename` shows "File not found"
|
|
787
|
+
**Solutions**:
|
|
788
|
+
- Verify file paths are correct relative to working directory
|
|
789
|
+
- Check file permissions are readable
|
|
790
|
+
- Use `/add-dir` to add additional working directories
|
|
791
|
+
- Test file references with absolute paths
|
|
792
|
+
|
|
793
|
+
### Permission Issues
|
|
794
|
+
**Symptoms**: Commands fail with permission errors
|
|
795
|
+
**Solutions**:
|
|
796
|
+
- Use `/permissions` to check current access levels
|
|
797
|
+
- Ensure `allowed-tools` includes necessary tools
|
|
798
|
+
- Check file system permissions
|
|
799
|
+
- Verify MCP server authentication if using MCP commands
|
|
800
|
+
|
|
801
|
+
## Advanced Command Patterns
|
|
802
|
+
|
|
803
|
+
### Conditional Logic
|
|
804
|
+
```markdown
|
|
805
|
+
---
|
|
806
|
+
description: Smart deployment based on environment
|
|
807
|
+
---
|
|
808
|
+
|
|
809
|
+
Analyze the current environment and deploy accordingly:
|
|
810
|
+
|
|
811
|
+
**Current branch**: !`git branch --show-current`
|
|
812
|
+
**Environment config**: @.env
|
|
813
|
+
**Package.json**: @package.json
|
|
814
|
+
|
|
815
|
+
If production branch:
|
|
816
|
+
1. Run full test suite
|
|
817
|
+
2. Build production assets
|
|
818
|
+
3. Deploy with zero downtime
|
|
819
|
+
4. Run smoke tests
|
|
820
|
+
|
|
821
|
+
If staging branch:
|
|
822
|
+
1. Run quick tests
|
|
823
|
+
2. Deploy to staging
|
|
824
|
+
3. Send notification to team
|
|
825
|
+
|
|
826
|
+
If development branch:
|
|
827
|
+
1. Deploy to development environment
|
|
828
|
+
2. Skip extensive testing
|
|
829
|
+
```
|
|
830
|
+
|
|
831
|
+
### Multi-Step Workflows
|
|
832
|
+
```markdown
|
|
833
|
+
---
|
|
834
|
+
allowed-tools: Read, Write, Edit, Bash
|
|
835
|
+
description: Complete feature implementation workflow
|
|
836
|
+
---
|
|
837
|
+
|
|
838
|
+
Implement feature: $ARGUMENTS
|
|
839
|
+
|
|
840
|
+
## Step 1: Planning
|
|
841
|
+
1. Analyze requirements
|
|
842
|
+
2. Check existing code: @src/
|
|
843
|
+
3. Plan implementation approach
|
|
844
|
+
|
|
845
|
+
## Step 2: Implementation
|
|
846
|
+
1. Create necessary files
|
|
847
|
+
2. Implement core functionality
|
|
848
|
+
3. Add error handling
|
|
849
|
+
|
|
850
|
+
## Step 3: Testing
|
|
851
|
+
1. Create unit tests
|
|
852
|
+
2. Create integration tests
|
|
853
|
+
3. Run test suite: !`npm test`
|
|
854
|
+
|
|
855
|
+
## Step 4: Documentation
|
|
856
|
+
1. Update README if needed
|
|
857
|
+
2. Add JSDoc comments
|
|
858
|
+
3. Update API documentation
|
|
859
|
+
|
|
860
|
+
## Step 5: Quality Assurance
|
|
861
|
+
1. Run linting: !`npm run lint`
|
|
862
|
+
2. Format code: !`npm run format`
|
|
863
|
+
3. Check build: !`npm run build`
|
|
864
|
+
|
|
865
|
+
Complete each step before proceeding to the next.
|
|
866
|
+
```
|
|
867
|
+
|
|
868
|
+
### Environment-Aware Commands
|
|
869
|
+
```markdown
|
|
870
|
+
---
|
|
871
|
+
description: Environment-specific database operations
|
|
872
|
+
---
|
|
873
|
+
|
|
874
|
+
**Current environment**: !`echo $NODE_ENV`
|
|
875
|
+
**Database config**: @config/database.js
|
|
876
|
+
|
|
877
|
+
## Environment-Specific Actions
|
|
878
|
+
|
|
879
|
+
### Production Environment
|
|
880
|
+
- Use read-only operations only
|
|
881
|
+
- Require explicit confirmation for changes
|
|
882
|
+
- Enable audit logging
|
|
883
|
+
- Use connection pooling
|
|
884
|
+
|
|
885
|
+
### Staging Environment
|
|
886
|
+
- Allow controlled data modifications
|
|
887
|
+
- Enable detailed logging
|
|
888
|
+
- Use production-like configuration
|
|
889
|
+
- Reset data daily
|
|
890
|
+
|
|
891
|
+
### Development Environment
|
|
892
|
+
- Allow all operations
|
|
893
|
+
- Use local database
|
|
894
|
+
- Enable debug logging
|
|
895
|
+
- Seed with test data
|
|
896
|
+
|
|
897
|
+
Execute database operation: $ARGUMENTS
|
|
898
|
+
```
|
|
899
|
+
|
|
900
|
+
## Conclusion
|
|
901
|
+
|
|
902
|
+
Claude Code commands are a powerful automation tool that can significantly improve your development workflow. With this guide, you can create effective commands that:
|
|
903
|
+
|
|
904
|
+
- **Automate repetitive tasks** with simple slash syntax
|
|
905
|
+
- **Standardize team workflows** through shared project commands
|
|
906
|
+
- **Integrate with external tools** via bash commands and MCP
|
|
907
|
+
- **Provide context-aware assistance** through file references and dynamic arguments
|
|
908
|
+
|
|
909
|
+
Start with simple, focused commands and gradually build more sophisticated workflows as you become comfortable with the system. Remember to test your commands thoroughly and document them well for team collaboration.
|