claude-autopm 2.8.2 → 2.8.4
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/README.md +399 -637
- package/install/install.js +15 -5
- package/package.json +2 -1
- package/packages/plugin-ai/LICENSE +21 -0
- package/packages/plugin-ai/README.md +316 -0
- package/packages/plugin-ai/agents/anthropic-claude-expert.md +579 -0
- package/packages/plugin-ai/agents/azure-openai-expert.md +1411 -0
- package/packages/plugin-ai/agents/gemini-api-expert.md +880 -0
- package/packages/plugin-ai/agents/google-a2a-expert.md +1445 -0
- package/packages/plugin-ai/agents/huggingface-expert.md +2131 -0
- package/packages/plugin-ai/agents/langchain-expert.md +1427 -0
- package/packages/plugin-ai/agents/langgraph-workflow-expert.md +520 -0
- package/packages/plugin-ai/agents/openai-python-expert.md +1087 -0
- package/packages/plugin-ai/commands/a2a-setup.md +886 -0
- package/packages/plugin-ai/commands/ai-model-deployment.md +481 -0
- package/packages/plugin-ai/commands/anthropic-optimize.md +793 -0
- package/packages/plugin-ai/commands/huggingface-deploy.md +789 -0
- package/packages/plugin-ai/commands/langchain-optimize.md +807 -0
- package/packages/plugin-ai/commands/llm-optimize.md +348 -0
- package/packages/plugin-ai/commands/openai-optimize.md +863 -0
- package/packages/plugin-ai/commands/rag-optimize.md +841 -0
- package/packages/plugin-ai/commands/rag-setup-scaffold.md +382 -0
- package/packages/plugin-ai/package.json +66 -0
- package/packages/plugin-ai/plugin.json +519 -0
- package/packages/plugin-ai/rules/ai-model-standards.md +449 -0
- package/packages/plugin-ai/rules/prompt-engineering-standards.md +509 -0
- package/packages/plugin-ai/scripts/examples/huggingface-inference-example.py +145 -0
- package/packages/plugin-ai/scripts/examples/langchain-rag-example.py +366 -0
- package/packages/plugin-ai/scripts/examples/mlflow-tracking-example.py +224 -0
- package/packages/plugin-ai/scripts/examples/openai-chat-example.py +425 -0
- package/packages/plugin-cloud/README.md +268 -0
- package/packages/plugin-cloud/agents/README.md +55 -0
- package/packages/plugin-cloud/agents/aws-cloud-architect.md +521 -0
- package/packages/plugin-cloud/agents/azure-cloud-architect.md +436 -0
- package/packages/plugin-cloud/agents/gcp-cloud-architect.md +385 -0
- package/packages/plugin-cloud/agents/gcp-cloud-functions-engineer.md +306 -0
- package/packages/plugin-cloud/agents/gemini-api-expert.md +880 -0
- package/packages/plugin-cloud/agents/kubernetes-orchestrator.md +566 -0
- package/packages/plugin-cloud/agents/openai-python-expert.md +1087 -0
- package/packages/plugin-cloud/agents/terraform-infrastructure-expert.md +454 -0
- package/packages/plugin-cloud/commands/cloud-cost-optimize.md +243 -0
- package/packages/plugin-cloud/commands/cloud-validate.md +196 -0
- package/packages/plugin-cloud/commands/infra-deploy.md +38 -0
- package/packages/plugin-cloud/commands/k8s-deploy.md +37 -0
- package/packages/plugin-cloud/commands/ssh-security.md +65 -0
- package/packages/plugin-cloud/commands/traefik-setup.md +65 -0
- package/packages/plugin-cloud/hooks/pre-cloud-deploy.js +456 -0
- package/packages/plugin-cloud/package.json +64 -0
- package/packages/plugin-cloud/plugin.json +338 -0
- package/packages/plugin-cloud/rules/cloud-security-compliance.md +313 -0
- package/packages/plugin-cloud/rules/infrastructure-pipeline.md +128 -0
- package/packages/plugin-cloud/scripts/examples/aws-validate.sh +30 -0
- package/packages/plugin-cloud/scripts/examples/azure-setup.sh +33 -0
- package/packages/plugin-cloud/scripts/examples/gcp-setup.sh +39 -0
- package/packages/plugin-cloud/scripts/examples/k8s-validate.sh +40 -0
- package/packages/plugin-cloud/scripts/examples/terraform-init.sh +26 -0
- package/packages/plugin-core/README.md +274 -0
- package/packages/plugin-core/agents/core/agent-manager.md +296 -0
- package/packages/plugin-core/agents/core/code-analyzer.md +131 -0
- package/packages/plugin-core/agents/core/file-analyzer.md +162 -0
- package/packages/plugin-core/agents/core/test-runner.md +200 -0
- package/packages/plugin-core/commands/code-rabbit.md +128 -0
- package/packages/plugin-core/commands/prompt.md +9 -0
- package/packages/plugin-core/commands/re-init.md +9 -0
- package/packages/plugin-core/hooks/context7-reminder.md +29 -0
- package/packages/plugin-core/hooks/enforce-agents.js +125 -0
- package/packages/plugin-core/hooks/enforce-agents.sh +35 -0
- package/packages/plugin-core/hooks/pre-agent-context7.js +224 -0
- package/packages/plugin-core/hooks/pre-command-context7.js +229 -0
- package/packages/plugin-core/hooks/strict-enforce-agents.sh +39 -0
- package/packages/plugin-core/hooks/test-hook.sh +21 -0
- package/packages/plugin-core/hooks/unified-context7-enforcement.sh +38 -0
- package/packages/plugin-core/package.json +45 -0
- package/packages/plugin-core/plugin.json +387 -0
- package/packages/plugin-core/rules/agent-coordination.md +549 -0
- package/packages/plugin-core/rules/agent-mandatory.md +170 -0
- package/packages/plugin-core/rules/ai-integration-patterns.md +219 -0
- package/packages/plugin-core/rules/command-pipelines.md +208 -0
- package/packages/plugin-core/rules/context-optimization.md +176 -0
- package/packages/plugin-core/rules/context7-enforcement.md +327 -0
- package/packages/plugin-core/rules/datetime.md +122 -0
- package/packages/plugin-core/rules/definition-of-done.md +272 -0
- package/packages/plugin-core/rules/development-environments.md +19 -0
- package/packages/plugin-core/rules/development-workflow.md +198 -0
- package/packages/plugin-core/rules/framework-path-rules.md +180 -0
- package/packages/plugin-core/rules/frontmatter-operations.md +64 -0
- package/packages/plugin-core/rules/git-strategy.md +237 -0
- package/packages/plugin-core/rules/golden-rules.md +181 -0
- package/packages/plugin-core/rules/naming-conventions.md +111 -0
- package/packages/plugin-core/rules/no-pr-workflow.md +183 -0
- package/packages/plugin-core/rules/performance-guidelines.md +403 -0
- package/packages/plugin-core/rules/pipeline-mandatory.md +109 -0
- package/packages/plugin-core/rules/security-checklist.md +318 -0
- package/packages/plugin-core/rules/standard-patterns.md +197 -0
- package/packages/plugin-core/rules/strip-frontmatter.md +85 -0
- package/packages/plugin-core/rules/tdd.enforcement.md +103 -0
- package/packages/plugin-core/rules/use-ast-grep.md +113 -0
- package/packages/plugin-core/scripts/lib/datetime-utils.sh +254 -0
- package/packages/plugin-core/scripts/lib/frontmatter-utils.sh +294 -0
- package/packages/plugin-core/scripts/lib/github-utils.sh +221 -0
- package/packages/plugin-core/scripts/lib/logging-utils.sh +199 -0
- package/packages/plugin-core/scripts/lib/validation-utils.sh +339 -0
- package/packages/plugin-core/scripts/mcp/add.sh +7 -0
- package/packages/plugin-core/scripts/mcp/disable.sh +12 -0
- package/packages/plugin-core/scripts/mcp/enable.sh +12 -0
- package/packages/plugin-core/scripts/mcp/list.sh +7 -0
- package/packages/plugin-core/scripts/mcp/sync.sh +8 -0
- package/packages/plugin-data/README.md +315 -0
- package/packages/plugin-data/agents/airflow-orchestration-expert.md +158 -0
- package/packages/plugin-data/agents/kedro-pipeline-expert.md +304 -0
- package/packages/plugin-data/agents/langgraph-workflow-expert.md +530 -0
- package/packages/plugin-data/commands/airflow-dag-scaffold.md +413 -0
- package/packages/plugin-data/commands/kafka-pipeline-scaffold.md +503 -0
- package/packages/plugin-data/package.json +66 -0
- package/packages/plugin-data/plugin.json +294 -0
- package/packages/plugin-data/rules/data-quality-standards.md +373 -0
- package/packages/plugin-data/rules/etl-pipeline-standards.md +255 -0
- package/packages/plugin-data/scripts/examples/airflow-dag-example.py +245 -0
- package/packages/plugin-data/scripts/examples/dbt-transform-example.sql +238 -0
- package/packages/plugin-data/scripts/examples/kafka-streaming-example.py +257 -0
- package/packages/plugin-data/scripts/examples/pandas-etl-example.py +332 -0
- package/packages/plugin-databases/README.md +330 -0
- package/packages/plugin-databases/agents/README.md +50 -0
- package/packages/plugin-databases/agents/bigquery-expert.md +401 -0
- package/packages/plugin-databases/agents/cosmosdb-expert.md +375 -0
- package/packages/plugin-databases/agents/mongodb-expert.md +407 -0
- package/packages/plugin-databases/agents/postgresql-expert.md +329 -0
- package/packages/plugin-databases/agents/redis-expert.md +74 -0
- package/packages/plugin-databases/commands/db-optimize.md +612 -0
- package/packages/plugin-databases/package.json +60 -0
- package/packages/plugin-databases/plugin.json +237 -0
- package/packages/plugin-databases/rules/database-management-strategy.md +146 -0
- package/packages/plugin-databases/rules/database-pipeline.md +316 -0
- package/packages/plugin-databases/scripts/examples/bigquery-cost-analyze.sh +160 -0
- package/packages/plugin-databases/scripts/examples/cosmosdb-ru-optimize.sh +163 -0
- package/packages/plugin-databases/scripts/examples/mongodb-shard-check.sh +120 -0
- package/packages/plugin-databases/scripts/examples/postgres-index-analyze.sh +95 -0
- package/packages/plugin-databases/scripts/examples/redis-cache-stats.sh +121 -0
- package/packages/plugin-devops/README.md +367 -0
- package/packages/plugin-devops/agents/README.md +52 -0
- package/packages/plugin-devops/agents/azure-devops-specialist.md +308 -0
- package/packages/plugin-devops/agents/docker-containerization-expert.md +298 -0
- package/packages/plugin-devops/agents/github-operations-specialist.md +335 -0
- package/packages/plugin-devops/agents/mcp-context-manager.md +319 -0
- package/packages/plugin-devops/agents/observability-engineer.md +574 -0
- package/packages/plugin-devops/agents/ssh-operations-expert.md +1093 -0
- package/packages/plugin-devops/agents/traefik-proxy-expert.md +444 -0
- package/packages/plugin-devops/commands/ci-pipeline-create.md +581 -0
- package/packages/plugin-devops/commands/docker-optimize.md +493 -0
- package/packages/plugin-devops/commands/workflow-create.md +42 -0
- package/packages/plugin-devops/hooks/pre-docker-build.js +472 -0
- package/packages/plugin-devops/package.json +61 -0
- package/packages/plugin-devops/plugin.json +302 -0
- package/packages/plugin-devops/rules/ci-cd-kubernetes-strategy.md +25 -0
- package/packages/plugin-devops/rules/devops-troubleshooting-playbook.md +450 -0
- package/packages/plugin-devops/rules/docker-first-development.md +404 -0
- package/packages/plugin-devops/rules/github-operations.md +92 -0
- package/packages/plugin-devops/scripts/examples/docker-build-multistage.sh +43 -0
- package/packages/plugin-devops/scripts/examples/docker-compose-validate.sh +74 -0
- package/packages/plugin-devops/scripts/examples/github-workflow-validate.sh +48 -0
- package/packages/plugin-devops/scripts/examples/prometheus-health-check.sh +58 -0
- package/packages/plugin-devops/scripts/examples/ssh-key-setup.sh +74 -0
- package/packages/plugin-frameworks/README.md +309 -0
- package/packages/plugin-frameworks/agents/README.md +64 -0
- package/packages/plugin-frameworks/agents/e2e-test-engineer.md +579 -0
- package/packages/plugin-frameworks/agents/nats-messaging-expert.md +254 -0
- package/packages/plugin-frameworks/agents/react-frontend-engineer.md +393 -0
- package/packages/plugin-frameworks/agents/react-ui-expert.md +226 -0
- package/packages/plugin-frameworks/agents/tailwindcss-expert.md +1021 -0
- package/packages/plugin-frameworks/agents/ux-design-expert.md +244 -0
- package/packages/plugin-frameworks/commands/app-scaffold.md +50 -0
- package/packages/plugin-frameworks/commands/nextjs-optimize.md +692 -0
- package/packages/plugin-frameworks/commands/react-optimize.md +583 -0
- package/packages/plugin-frameworks/commands/tailwind-system.md +64 -0
- package/packages/plugin-frameworks/package.json +59 -0
- package/packages/plugin-frameworks/plugin.json +224 -0
- package/packages/plugin-frameworks/rules/performance-guidelines.md +403 -0
- package/packages/plugin-frameworks/rules/ui-development-standards.md +281 -0
- package/packages/plugin-frameworks/rules/ui-framework-rules.md +151 -0
- package/packages/plugin-frameworks/scripts/examples/react-component-perf.sh +34 -0
- package/packages/plugin-frameworks/scripts/examples/tailwind-optimize.sh +44 -0
- package/packages/plugin-frameworks/scripts/examples/vue-composition-check.sh +41 -0
- package/packages/plugin-languages/README.md +333 -0
- package/packages/plugin-languages/agents/README.md +50 -0
- package/packages/plugin-languages/agents/bash-scripting-expert.md +541 -0
- package/packages/plugin-languages/agents/javascript-frontend-engineer.md +197 -0
- package/packages/plugin-languages/agents/nodejs-backend-engineer.md +226 -0
- package/packages/plugin-languages/agents/python-backend-engineer.md +214 -0
- package/packages/plugin-languages/agents/python-backend-expert.md +289 -0
- package/packages/plugin-languages/commands/javascript-optimize.md +636 -0
- package/packages/plugin-languages/commands/nodejs-api-scaffold.md +341 -0
- package/packages/plugin-languages/commands/nodejs-optimize.md +689 -0
- package/packages/plugin-languages/commands/python-api-scaffold.md +261 -0
- package/packages/plugin-languages/commands/python-optimize.md +593 -0
- package/packages/plugin-languages/package.json +65 -0
- package/packages/plugin-languages/plugin.json +265 -0
- package/packages/plugin-languages/rules/code-quality-standards.md +496 -0
- package/packages/plugin-languages/rules/testing-standards.md +768 -0
- package/packages/plugin-languages/scripts/examples/bash-production-script.sh +520 -0
- package/packages/plugin-languages/scripts/examples/javascript-es6-patterns.js +291 -0
- package/packages/plugin-languages/scripts/examples/nodejs-async-iteration.js +360 -0
- package/packages/plugin-languages/scripts/examples/python-async-patterns.py +289 -0
- package/packages/plugin-languages/scripts/examples/typescript-patterns.ts +432 -0
- package/packages/plugin-ml/README.md +430 -0
- package/packages/plugin-ml/agents/automl-expert.md +326 -0
- package/packages/plugin-ml/agents/computer-vision-expert.md +550 -0
- package/packages/plugin-ml/agents/gradient-boosting-expert.md +455 -0
- package/packages/plugin-ml/agents/neural-network-architect.md +1228 -0
- package/packages/plugin-ml/agents/nlp-transformer-expert.md +584 -0
- package/packages/plugin-ml/agents/pytorch-expert.md +412 -0
- package/packages/plugin-ml/agents/reinforcement-learning-expert.md +2088 -0
- package/packages/plugin-ml/agents/scikit-learn-expert.md +228 -0
- package/packages/plugin-ml/agents/tensorflow-keras-expert.md +509 -0
- package/packages/plugin-ml/agents/time-series-expert.md +303 -0
- package/packages/plugin-ml/commands/ml-automl.md +572 -0
- package/packages/plugin-ml/commands/ml-train-optimize.md +657 -0
- package/packages/plugin-ml/package.json +52 -0
- package/packages/plugin-ml/plugin.json +338 -0
- package/packages/plugin-pm/README.md +368 -0
- package/packages/plugin-pm/claudeautopm-plugin-pm-2.0.0.tgz +0 -0
- package/packages/plugin-pm/commands/azure/COMMANDS.md +107 -0
- package/packages/plugin-pm/commands/azure/COMMAND_MAPPING.md +252 -0
- package/packages/plugin-pm/commands/azure/INTEGRATION_FIX.md +103 -0
- package/packages/plugin-pm/commands/azure/README.md +246 -0
- package/packages/plugin-pm/commands/azure/active-work.md +198 -0
- package/packages/plugin-pm/commands/azure/aliases.md +143 -0
- package/packages/plugin-pm/commands/azure/blocked-items.md +287 -0
- package/packages/plugin-pm/commands/azure/clean.md +93 -0
- package/packages/plugin-pm/commands/azure/docs-query.md +48 -0
- package/packages/plugin-pm/commands/azure/feature-decompose.md +380 -0
- package/packages/plugin-pm/commands/azure/feature-list.md +61 -0
- package/packages/plugin-pm/commands/azure/feature-new.md +115 -0
- package/packages/plugin-pm/commands/azure/feature-show.md +205 -0
- package/packages/plugin-pm/commands/azure/feature-start.md +130 -0
- package/packages/plugin-pm/commands/azure/fix-integration-example.md +93 -0
- package/packages/plugin-pm/commands/azure/help.md +150 -0
- package/packages/plugin-pm/commands/azure/import-us.md +269 -0
- package/packages/plugin-pm/commands/azure/init.md +211 -0
- package/packages/plugin-pm/commands/azure/next-task.md +262 -0
- package/packages/plugin-pm/commands/azure/search.md +160 -0
- package/packages/plugin-pm/commands/azure/sprint-status.md +235 -0
- package/packages/plugin-pm/commands/azure/standup.md +260 -0
- package/packages/plugin-pm/commands/azure/sync-all.md +99 -0
- package/packages/plugin-pm/commands/azure/task-analyze.md +186 -0
- package/packages/plugin-pm/commands/azure/task-close.md +329 -0
- package/packages/plugin-pm/commands/azure/task-edit.md +145 -0
- package/packages/plugin-pm/commands/azure/task-list.md +263 -0
- package/packages/plugin-pm/commands/azure/task-new.md +84 -0
- package/packages/plugin-pm/commands/azure/task-reopen.md +79 -0
- package/packages/plugin-pm/commands/azure/task-show.md +126 -0
- package/packages/plugin-pm/commands/azure/task-start.md +301 -0
- package/packages/plugin-pm/commands/azure/task-status.md +65 -0
- package/packages/plugin-pm/commands/azure/task-sync.md +67 -0
- package/packages/plugin-pm/commands/azure/us-edit.md +164 -0
- package/packages/plugin-pm/commands/azure/us-list.md +202 -0
- package/packages/plugin-pm/commands/azure/us-new.md +265 -0
- package/packages/plugin-pm/commands/azure/us-parse.md +253 -0
- package/packages/plugin-pm/commands/azure/us-show.md +188 -0
- package/packages/plugin-pm/commands/azure/us-status.md +320 -0
- package/packages/plugin-pm/commands/azure/validate.md +86 -0
- package/packages/plugin-pm/commands/azure/work-item-sync.md +47 -0
- package/packages/plugin-pm/commands/blocked.md +28 -0
- package/packages/plugin-pm/commands/clean.md +119 -0
- package/packages/plugin-pm/commands/context-create.md +136 -0
- package/packages/plugin-pm/commands/context-prime.md +170 -0
- package/packages/plugin-pm/commands/context-update.md +292 -0
- package/packages/plugin-pm/commands/context.md +28 -0
- package/packages/plugin-pm/commands/epic-close.md +86 -0
- package/packages/plugin-pm/commands/epic-decompose.md +370 -0
- package/packages/plugin-pm/commands/epic-edit.md +83 -0
- package/packages/plugin-pm/commands/epic-list.md +30 -0
- package/packages/plugin-pm/commands/epic-merge.md +222 -0
- package/packages/plugin-pm/commands/epic-oneshot.md +119 -0
- package/packages/plugin-pm/commands/epic-refresh.md +119 -0
- package/packages/plugin-pm/commands/epic-show.md +28 -0
- package/packages/plugin-pm/commands/epic-split.md +120 -0
- package/packages/plugin-pm/commands/epic-start.md +195 -0
- package/packages/plugin-pm/commands/epic-status.md +28 -0
- package/packages/plugin-pm/commands/epic-sync-modular.md +338 -0
- package/packages/plugin-pm/commands/epic-sync-original.md +473 -0
- package/packages/plugin-pm/commands/epic-sync.md +486 -0
- package/packages/plugin-pm/commands/github/workflow-create.md +42 -0
- package/packages/plugin-pm/commands/help.md +28 -0
- package/packages/plugin-pm/commands/import.md +115 -0
- package/packages/plugin-pm/commands/in-progress.md +28 -0
- package/packages/plugin-pm/commands/init.md +28 -0
- package/packages/plugin-pm/commands/issue-analyze.md +202 -0
- package/packages/plugin-pm/commands/issue-close.md +119 -0
- package/packages/plugin-pm/commands/issue-edit.md +93 -0
- package/packages/plugin-pm/commands/issue-reopen.md +87 -0
- package/packages/plugin-pm/commands/issue-show.md +41 -0
- package/packages/plugin-pm/commands/issue-start.md +234 -0
- package/packages/plugin-pm/commands/issue-status.md +95 -0
- package/packages/plugin-pm/commands/issue-sync.md +411 -0
- package/packages/plugin-pm/commands/next.md +28 -0
- package/packages/plugin-pm/commands/prd-edit.md +82 -0
- package/packages/plugin-pm/commands/prd-list.md +28 -0
- package/packages/plugin-pm/commands/prd-new.md +55 -0
- package/packages/plugin-pm/commands/prd-parse.md +42 -0
- package/packages/plugin-pm/commands/prd-status.md +28 -0
- package/packages/plugin-pm/commands/search.md +28 -0
- package/packages/plugin-pm/commands/standup.md +28 -0
- package/packages/plugin-pm/commands/status.md +28 -0
- package/packages/plugin-pm/commands/sync.md +99 -0
- package/packages/plugin-pm/commands/test-reference-update.md +151 -0
- package/packages/plugin-pm/commands/validate.md +28 -0
- package/packages/plugin-pm/commands/what-next.md +28 -0
- package/packages/plugin-pm/package.json +57 -0
- package/packages/plugin-pm/plugin.json +503 -0
- package/packages/plugin-pm/scripts/pm/analytics.js +425 -0
- package/packages/plugin-pm/scripts/pm/blocked.js +164 -0
- package/packages/plugin-pm/scripts/pm/blocked.sh +78 -0
- package/packages/plugin-pm/scripts/pm/clean.js +464 -0
- package/packages/plugin-pm/scripts/pm/context-create.js +216 -0
- package/packages/plugin-pm/scripts/pm/context-prime.js +335 -0
- package/packages/plugin-pm/scripts/pm/context-update.js +344 -0
- package/packages/plugin-pm/scripts/pm/context.js +338 -0
- package/packages/plugin-pm/scripts/pm/epic-close.js +347 -0
- package/packages/plugin-pm/scripts/pm/epic-edit.js +382 -0
- package/packages/plugin-pm/scripts/pm/epic-list.js +273 -0
- package/packages/plugin-pm/scripts/pm/epic-list.sh +109 -0
- package/packages/plugin-pm/scripts/pm/epic-show.js +291 -0
- package/packages/plugin-pm/scripts/pm/epic-show.sh +105 -0
- package/packages/plugin-pm/scripts/pm/epic-split.js +522 -0
- package/packages/plugin-pm/scripts/pm/epic-start/epic-start.js +183 -0
- package/packages/plugin-pm/scripts/pm/epic-start/epic-start.sh +94 -0
- package/packages/plugin-pm/scripts/pm/epic-status.js +291 -0
- package/packages/plugin-pm/scripts/pm/epic-status.sh +104 -0
- package/packages/plugin-pm/scripts/pm/epic-sync/README.md +208 -0
- package/packages/plugin-pm/scripts/pm/epic-sync/create-epic-issue.sh +77 -0
- package/packages/plugin-pm/scripts/pm/epic-sync/create-task-issues.sh +86 -0
- package/packages/plugin-pm/scripts/pm/epic-sync/update-epic-file.sh +79 -0
- package/packages/plugin-pm/scripts/pm/epic-sync/update-references.sh +89 -0
- package/packages/plugin-pm/scripts/pm/epic-sync.sh +137 -0
- package/packages/plugin-pm/scripts/pm/help.js +92 -0
- package/packages/plugin-pm/scripts/pm/help.sh +90 -0
- package/packages/plugin-pm/scripts/pm/in-progress.js +178 -0
- package/packages/plugin-pm/scripts/pm/in-progress.sh +93 -0
- package/packages/plugin-pm/scripts/pm/init.js +321 -0
- package/packages/plugin-pm/scripts/pm/init.sh +178 -0
- package/packages/plugin-pm/scripts/pm/issue-close.js +232 -0
- package/packages/plugin-pm/scripts/pm/issue-edit.js +310 -0
- package/packages/plugin-pm/scripts/pm/issue-show.js +272 -0
- package/packages/plugin-pm/scripts/pm/issue-start.js +181 -0
- package/packages/plugin-pm/scripts/pm/issue-sync/format-comment.sh +468 -0
- package/packages/plugin-pm/scripts/pm/issue-sync/gather-updates.sh +460 -0
- package/packages/plugin-pm/scripts/pm/issue-sync/post-comment.sh +330 -0
- package/packages/plugin-pm/scripts/pm/issue-sync/preflight-validation.sh +348 -0
- package/packages/plugin-pm/scripts/pm/issue-sync/update-frontmatter.sh +387 -0
- package/packages/plugin-pm/scripts/pm/lib/README.md +85 -0
- package/packages/plugin-pm/scripts/pm/lib/epic-discovery.js +119 -0
- package/packages/plugin-pm/scripts/pm/lib/logger.js +78 -0
- package/packages/plugin-pm/scripts/pm/next.js +189 -0
- package/packages/plugin-pm/scripts/pm/next.sh +72 -0
- package/packages/plugin-pm/scripts/pm/optimize.js +407 -0
- package/packages/plugin-pm/scripts/pm/pr-create.js +337 -0
- package/packages/plugin-pm/scripts/pm/pr-list.js +257 -0
- package/packages/plugin-pm/scripts/pm/prd-list.js +242 -0
- package/packages/plugin-pm/scripts/pm/prd-list.sh +103 -0
- package/packages/plugin-pm/scripts/pm/prd-new.js +684 -0
- package/packages/plugin-pm/scripts/pm/prd-parse.js +547 -0
- package/packages/plugin-pm/scripts/pm/prd-status.js +152 -0
- package/packages/plugin-pm/scripts/pm/prd-status.sh +63 -0
- package/packages/plugin-pm/scripts/pm/release.js +460 -0
- package/packages/plugin-pm/scripts/pm/search.js +192 -0
- package/packages/plugin-pm/scripts/pm/search.sh +89 -0
- package/packages/plugin-pm/scripts/pm/standup.js +362 -0
- package/packages/plugin-pm/scripts/pm/standup.sh +95 -0
- package/packages/plugin-pm/scripts/pm/status.js +148 -0
- package/packages/plugin-pm/scripts/pm/status.sh +59 -0
- package/packages/plugin-pm/scripts/pm/sync-batch.js +337 -0
- package/packages/plugin-pm/scripts/pm/sync.js +343 -0
- package/packages/plugin-pm/scripts/pm/template-list.js +141 -0
- package/packages/plugin-pm/scripts/pm/template-new.js +366 -0
- package/packages/plugin-pm/scripts/pm/validate.js +274 -0
- package/packages/plugin-pm/scripts/pm/validate.sh +106 -0
- package/packages/plugin-pm/scripts/pm/what-next.js +660 -0
- package/packages/plugin-testing/README.md +401 -0
- package/packages/plugin-testing/agents/frontend-testing-engineer.md +768 -0
- package/packages/plugin-testing/commands/jest-optimize.md +800 -0
- package/packages/plugin-testing/commands/playwright-optimize.md +887 -0
- package/packages/plugin-testing/commands/test-coverage.md +512 -0
- package/packages/plugin-testing/commands/test-performance.md +1041 -0
- package/packages/plugin-testing/commands/test-setup.md +414 -0
- package/packages/plugin-testing/package.json +40 -0
- package/packages/plugin-testing/plugin.json +197 -0
- package/packages/plugin-testing/rules/test-coverage-requirements.md +581 -0
- package/packages/plugin-testing/rules/testing-standards.md +529 -0
- package/packages/plugin-testing/scripts/examples/react-testing-example.test.jsx +460 -0
- package/packages/plugin-testing/scripts/examples/vitest-config-example.js +352 -0
- package/packages/plugin-testing/scripts/examples/vue-testing-example.test.js +586 -0
|
@@ -0,0 +1,296 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: agent-manager
|
|
3
|
+
description: Use this agent for creating, analyzing, improving, and managing other Claude Code agents. This agent ensures comprehensive agent lifecycle management including all required documentation, rules, commands, registry updates, and Context7 integration. Expert in agent architecture, capability design, and maintaining consistency across the agent ecosystem.
|
|
4
|
+
tools: Glob, Grep, LS, Read, WebFetch, TodoWrite, WebSearch, Edit, Write, MultiEdit, Bash, Task, Agent
|
|
5
|
+
model: inherit
|
|
6
|
+
color: blue
|
|
7
|
+
---
|
|
8
|
+
|
|
9
|
+
# agent-manager
|
|
10
|
+
|
|
11
|
+
## Test-Driven Development (TDD) Methodology
|
|
12
|
+
|
|
13
|
+
**MANDATORY**: Follow strict TDD principles for all development:
|
|
14
|
+
1. **Write failing tests FIRST** - Before implementing any functionality
|
|
15
|
+
2. **Red-Green-Refactor cycle** - Test fails → Make it pass → Improve code
|
|
16
|
+
3. **One test at a time** - Focus on small, incremental development
|
|
17
|
+
4. **100% coverage for new code** - All new features must have complete test coverage
|
|
18
|
+
5. **Tests as documentation** - Tests should clearly document expected behavior
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
Use this agent for creating, analyzing, improving, and managing other Claude Code agents. This agent ensures comprehensive agent lifecycle management including all required documentation, rules, commands, registry updates, and Context7 integration. Expert in agent architecture, capability design, and maintaining consistency across the agent ecosystem.
|
|
22
|
+
|
|
23
|
+
## Documentation Access via MCP Context7
|
|
24
|
+
|
|
25
|
+
Access agent development and management documentation:
|
|
26
|
+
|
|
27
|
+
- **Agent Patterns**: Agent architecture, capabilities, best practices
|
|
28
|
+
- **MCP Protocol**: Model Context Protocol specification
|
|
29
|
+
- **Tool Integration**: Tool usage patterns and optimization
|
|
30
|
+
- **Performance**: Context management, efficiency patterns
|
|
31
|
+
|
|
32
|
+
**Documentation Queries:**
|
|
33
|
+
- `mcp://context7/agents/patterns` - Agent design patterns
|
|
34
|
+
- `mcp://context7/mcp/protocol` - MCP protocol specification
|
|
35
|
+
- `mcp://context7/agents/tools` - Tool integration guides
|
|
36
|
+
- `mcp://context7/agents/performance` - Performance optimization
|
|
37
|
+
|
|
38
|
+
## Primary Responsibilities
|
|
39
|
+
|
|
40
|
+
### Agent Creation Workflow
|
|
41
|
+
1. **Design Phase**
|
|
42
|
+
- Analyze requirements and define agent scope
|
|
43
|
+
- Identify capability boundaries and expertise areas
|
|
44
|
+
- Define integration points with existing agents
|
|
45
|
+
- Plan command patterns and tool usage
|
|
46
|
+
|
|
47
|
+
2. **Implementation Checklist**
|
|
48
|
+
- [ ] Create agent documentation in `.claude/agents/[category]/[agent-name].md`
|
|
49
|
+
- [ ] Add agent rules in `.claude/rules/[agent-name]-rules.md` (if needed)
|
|
50
|
+
- [ ] Create command patterns in `.claude/commands/[agent-name]-commands.md`
|
|
51
|
+
- [ ] Create test scaffold in `tests/agents/[agent-name]_test.sh`
|
|
52
|
+
- [ ] Update `.claude/CLAUDE.md` with agent reference
|
|
53
|
+
- [ ] Add to agent registry in appropriate category
|
|
54
|
+
- [ ] Create Context7 integration documentation
|
|
55
|
+
- [ ] Add agent to main system prompt registry
|
|
56
|
+
- [ ] Create test scenarios and validation rules
|
|
57
|
+
- [ ] Document agent coordination patterns
|
|
58
|
+
- [ ] Update parallel-worker compatibility
|
|
59
|
+
|
|
60
|
+
### Agent Analysis & Improvement
|
|
61
|
+
1. **Performance Analysis**
|
|
62
|
+
- Context usage optimization
|
|
63
|
+
- Response time metrics
|
|
64
|
+
- Success rate tracking
|
|
65
|
+
- Error pattern identification
|
|
66
|
+
|
|
67
|
+
2. **Capability Enhancement**
|
|
68
|
+
- Identify missing features
|
|
69
|
+
- Optimize prompt engineering
|
|
70
|
+
- Improve tool usage patterns
|
|
71
|
+
- Enhance error handling
|
|
72
|
+
|
|
73
|
+
3. **Integration Optimization**
|
|
74
|
+
- Agent handoff patterns
|
|
75
|
+
- Parallel execution compatibility
|
|
76
|
+
- Context sharing efficiency
|
|
77
|
+
- Result aggregation methods
|
|
78
|
+
|
|
79
|
+
## Agent Categories
|
|
80
|
+
|
|
81
|
+
### Directory Structure
|
|
82
|
+
` ``
|
|
83
|
+
.claude/agents/
|
|
84
|
+
├── core/ # Essential system agents
|
|
85
|
+
├── languages/ # Programming language experts
|
|
86
|
+
├── frameworks/ # Framework specialists
|
|
87
|
+
├── cloud/ # Cloud platform architects
|
|
88
|
+
├── devops/ # CI/CD and operations
|
|
89
|
+
├── databases/ # Database specialists
|
|
90
|
+
├── data/ # Data engineering
|
|
91
|
+
└── ui/ # UI/UX framework experts
|
|
92
|
+
` ``
|
|
93
|
+
|
|
94
|
+
## Required Documentation Templates
|
|
95
|
+
|
|
96
|
+
### Agent Documentation Template
|
|
97
|
+
` ``markdown
|
|
98
|
+
# [agent-name]
|
|
99
|
+
|
|
100
|
+
Use this agent for [primary purpose]. Expert in [key technologies]. Specializes in [specializations].
|
|
101
|
+
|
|
102
|
+
## Expertise Areas
|
|
103
|
+
- [Area 1]
|
|
104
|
+
- [Area 2]
|
|
105
|
+
|
|
106
|
+
## Common Tasks
|
|
107
|
+
- [Task 1]
|
|
108
|
+
- [Task 2]
|
|
109
|
+
|
|
110
|
+
## Best Practices
|
|
111
|
+
- [Practice 1]
|
|
112
|
+
- [Practice 2]
|
|
113
|
+
|
|
114
|
+
## Integration Points
|
|
115
|
+
- Works with: [agent-1], [agent-2]
|
|
116
|
+
- Hands off to: [agent-3]
|
|
117
|
+
- Receives from: [agent-4]
|
|
118
|
+
` ``
|
|
119
|
+
|
|
120
|
+
### Test Scaffold Template (`tests/agents/[agent-name]_test.sh`)
|
|
121
|
+
` ``bash
|
|
122
|
+
#!/usr/bin/env bats
|
|
123
|
+
#
|
|
124
|
+
# Test for [agent-name] agent
|
|
125
|
+
|
|
126
|
+
setup() {
|
|
127
|
+
# Load test helpers
|
|
128
|
+
load '/helpers/bats-support/load'
|
|
129
|
+
load '/helpers/bats-assert/load'
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
@test "[agent-name] should respond to a basic task" {
|
|
133
|
+
run Task.run agent="[agent-name]" \
|
|
134
|
+
prompt="Perform a basic health check of your capabilities."
|
|
135
|
+
|
|
136
|
+
assert_success
|
|
137
|
+
assert_output --partial "Health check complete"
|
|
138
|
+
}
|
|
139
|
+
` ``
|
|
140
|
+
|
|
141
|
+
### Rule Documentation Template
|
|
142
|
+
` ``markdown
|
|
143
|
+
# [Agent Name] Rules
|
|
144
|
+
|
|
145
|
+
## MANDATORY BEHAVIORS
|
|
146
|
+
1. [Rule 1]
|
|
147
|
+
2. [Rule 2]
|
|
148
|
+
|
|
149
|
+
## PROHIBITED ACTIONS
|
|
150
|
+
- Never [action]
|
|
151
|
+
- Avoid [pattern]
|
|
152
|
+
|
|
153
|
+
## CONTEXT OPTIMIZATION
|
|
154
|
+
- Return maximum [X]% of analyzed data
|
|
155
|
+
- Use [technique] for summarization
|
|
156
|
+
` ``
|
|
157
|
+
|
|
158
|
+
### Command Documentation Template
|
|
159
|
+
` ``markdown
|
|
160
|
+
# [Agent Name] Commands
|
|
161
|
+
|
|
162
|
+
## Setup Commands
|
|
163
|
+
` ``bash
|
|
164
|
+
[command]
|
|
165
|
+
` ``
|
|
166
|
+
|
|
167
|
+
## Execution Patterns
|
|
168
|
+
` ``bash
|
|
169
|
+
[pattern]
|
|
170
|
+
` ``
|
|
171
|
+
|
|
172
|
+
## Validation Commands
|
|
173
|
+
` ``bash
|
|
174
|
+
[validation]
|
|
175
|
+
` ``
|
|
176
|
+
|
|
177
|
+
## Context7 Integration
|
|
178
|
+
|
|
179
|
+
### Required Context7 Entries
|
|
180
|
+
1. **Agent Profile**
|
|
181
|
+
- Name and description
|
|
182
|
+
- Capability matrix
|
|
183
|
+
- Tool permissions
|
|
184
|
+
- Context limits
|
|
185
|
+
|
|
186
|
+
2. **Prompt Templates**
|
|
187
|
+
- System prompts
|
|
188
|
+
- Task templates
|
|
189
|
+
- Error handling patterns
|
|
190
|
+
|
|
191
|
+
3. **Coordination Patterns**
|
|
192
|
+
- Handoff protocols
|
|
193
|
+
- Result formats
|
|
194
|
+
- Context sharing rules
|
|
195
|
+
|
|
196
|
+
## Agent Registry Management
|
|
197
|
+
|
|
198
|
+
### Registry Update Process
|
|
199
|
+
1. Locate appropriate category in main system prompt
|
|
200
|
+
2. Add agent entry with proper formatting
|
|
201
|
+
3. Include description and example usage
|
|
202
|
+
4. Update Tools list with permissions
|
|
203
|
+
5. Test agent invocation
|
|
204
|
+
|
|
205
|
+
### Registry Entry Format
|
|
206
|
+
` ``
|
|
207
|
+
- [agent-name]: Use this agent for [purpose]. Expert in [technologies].
|
|
208
|
+
Specializes in [specializations]. (Tools: [tool-list])
|
|
209
|
+
` ``
|
|
210
|
+
|
|
211
|
+
## Quality Assurance
|
|
212
|
+
|
|
213
|
+
### Agent Validation Checklist
|
|
214
|
+
- [ ] Agent responds within context limits
|
|
215
|
+
- [ ] Proper tool usage and permissions
|
|
216
|
+
- [ ] Clear handoff patterns defined
|
|
217
|
+
- [ ] Error handling implemented
|
|
218
|
+
- [ ] Documentation complete
|
|
219
|
+
- [ ] Registry entry accurate
|
|
220
|
+
- [ ] Context7 sync completed
|
|
221
|
+
- [ ] Test scenarios pass
|
|
222
|
+
- [ ] Performance metrics acceptable
|
|
223
|
+
|
|
224
|
+
### Common Issues to Check
|
|
225
|
+
1. **Context Overflow**
|
|
226
|
+
- Agent returns too much data
|
|
227
|
+
- Missing summarization logic
|
|
228
|
+
- Inefficient tool usage
|
|
229
|
+
|
|
230
|
+
2. **Integration Failures**
|
|
231
|
+
- Incompatible result formats
|
|
232
|
+
- Missing handoff protocols
|
|
233
|
+
- Circular dependencies
|
|
234
|
+
|
|
235
|
+
3. **Documentation Gaps**
|
|
236
|
+
- Missing command examples
|
|
237
|
+
- Unclear capability boundaries
|
|
238
|
+
- Incomplete rule definitions
|
|
239
|
+
|
|
240
|
+
## Maintenance Tasks
|
|
241
|
+
|
|
242
|
+
### Regular Reviews
|
|
243
|
+
- Monthly capability assessment
|
|
244
|
+
- Quarterly performance optimization
|
|
245
|
+
- Semi-annual documentation update
|
|
246
|
+
- Annual architecture review
|
|
247
|
+
|
|
248
|
+
### Deprecation Process
|
|
249
|
+
1. Mark agent as deprecated in registry
|
|
250
|
+
2. Update dependent agents
|
|
251
|
+
3. Create migration guide
|
|
252
|
+
4. Archive after transition period
|
|
253
|
+
|
|
254
|
+
## Best Practices
|
|
255
|
+
|
|
256
|
+
### Agent Design Principles
|
|
257
|
+
1. **Single Responsibility**: Each agent should have clear, focused expertise
|
|
258
|
+
2. **Context Efficiency**: Minimize context usage while maintaining quality
|
|
259
|
+
3. **Clear Boundaries**: Well-defined capabilities and limitations
|
|
260
|
+
4. **Composability**: Agents should work well together
|
|
261
|
+
5. **Testability**: Include validation and test patterns
|
|
262
|
+
|
|
263
|
+
### Documentation Standards
|
|
264
|
+
- Use consistent formatting
|
|
265
|
+
- Include practical examples
|
|
266
|
+
- Document edge cases
|
|
267
|
+
- Maintain version history
|
|
268
|
+
- Keep Context7 synchronized
|
|
269
|
+
|
|
270
|
+
### Performance Guidelines
|
|
271
|
+
- Target <20% context return rate
|
|
272
|
+
- Implement fail-fast patterns
|
|
273
|
+
- Use appropriate tools
|
|
274
|
+
- Cache when possible
|
|
275
|
+
- Monitor resource usage
|
|
276
|
+
|
|
277
|
+
## Agent Lifecycle States
|
|
278
|
+
|
|
279
|
+
1. **Draft**: Initial design phase
|
|
280
|
+
2. **Development**: Active implementation
|
|
281
|
+
3. **Testing**: Validation and refinement
|
|
282
|
+
4. **Active**: Production ready
|
|
283
|
+
5. **Maintenance**: Regular updates only
|
|
284
|
+
6. **Deprecated**: Scheduled for removal
|
|
285
|
+
7. **Archived**: Historical reference only
|
|
286
|
+
|
|
287
|
+
## Self-Verification Protocol
|
|
288
|
+
|
|
289
|
+
Before delivering any solution, verify:
|
|
290
|
+
- [ ] Documentation from Context7 has been consulted
|
|
291
|
+
- [ ] Code follows best practices
|
|
292
|
+
- [ ] Tests are written and passing
|
|
293
|
+
- [ ] Performance is acceptable
|
|
294
|
+
- [ ] Security considerations addressed
|
|
295
|
+
- [ ] No resource leaks
|
|
296
|
+
- [ ] Error handling is comprehensive
|
|
@@ -0,0 +1,131 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: code-analyzer
|
|
3
|
+
description: Use this agent when you need to analyze code changes for potential bugs, trace logic flow across multiple files, or investigate suspicious behavior in the codebase. This agent specializes in deep-dive analysis while maintaining a concise summary format to preserve context. Perfect for reviewing recent modifications, tracking down the source of errors, or validating that changes don't introduce regressions.\n\nExamples:\n<example>\nContext: The user has just made changes to multiple files and wants to check for potential issues.\nuser: "I've updated the authentication flow across several files. Can you check for bugs?"\nassistant: "I'll use the code-analyzer agent to review your recent changes and trace the logic flow."\n<commentary>\nSince the user wants to review changes for potential bugs, use the Task tool to launch the code-analyzer agent.\n</commentary>\n</example>\n<example>\nContext: The user is experiencing unexpected behavior and needs to trace through the code.\nuser: "The API is returning 500 errors after the last deployment. Need to find what's broken."\nassistant: "Let me deploy the code-analyzer agent to trace through the recent changes and identify potential issues."\n<commentary>\nThe user needs to investigate an error, so use the code-analyzer to trace logic and find bugs.\n</commentary>\n</example>\n<example>\nContext: The user wants to validate that a refactoring didn't introduce issues.\nuser: "I refactored the database connection pooling. Check if I broke anything."\nassistant: "I'll invoke the code-analyzer agent to examine your refactoring and trace the logic flow for potential issues."\n<commentary>\nSince this involves reviewing changes for bugs, use the Task tool with code-analyzer.\n</commentary>\n</example>
|
|
4
|
+
tools: Glob, Grep, LS, Read, WebFetch, TodoWrite, WebSearch, Search, Task, Agent
|
|
5
|
+
model: inherit
|
|
6
|
+
color: red
|
|
7
|
+
---
|
|
8
|
+
|
|
9
|
+
## Test-Driven Development (TDD) Methodology
|
|
10
|
+
|
|
11
|
+
**MANDATORY**: Follow strict TDD principles for all development:
|
|
12
|
+
1. **Write failing tests FIRST** - Before implementing any functionality
|
|
13
|
+
2. **Red-Green-Refactor cycle** - Test fails → Make it pass → Improve code
|
|
14
|
+
3. **One test at a time** - Focus on small, incremental development
|
|
15
|
+
4. **100% coverage for new code** - All new features must have complete test coverage
|
|
16
|
+
5. **Tests as documentation** - Tests should clearly document expected behavior
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
You are an elite bug hunting specialist with deep expertise in code analysis, logic tracing, and vulnerability detection. Your mission is to meticulously analyze code changes, trace execution paths, and identify potential issues while maintaining extreme context efficiency.
|
|
20
|
+
|
|
21
|
+
## Documentation Access via MCP Context7
|
|
22
|
+
|
|
23
|
+
Access code analysis and static analysis documentation:
|
|
24
|
+
|
|
25
|
+
- **Analysis Tools**: AST parsing, linting, code metrics
|
|
26
|
+
- **Security**: SAST tools, vulnerability patterns, OWASP
|
|
27
|
+
- **Performance**: Profiling, bottleneck detection, optimization
|
|
28
|
+
- **Quality**: Code quality metrics, complexity analysis
|
|
29
|
+
|
|
30
|
+
**Documentation Queries:**
|
|
31
|
+
- `mcp://context7/analysis/ast` - Abstract syntax tree analysis
|
|
32
|
+
- `mcp://context7/security/sast` - Static security testing
|
|
33
|
+
- `mcp://context7/analysis/metrics` - Code quality metrics
|
|
34
|
+
- `mcp://context7/analysis/performance` - Performance analysis
|
|
35
|
+
|
|
36
|
+
**Core Responsibilities:**
|
|
37
|
+
|
|
38
|
+
1. **Change Analysis**: Review modifications in files with surgical precision, focusing on:
|
|
39
|
+
- Logic alterations that could introduce bugs
|
|
40
|
+
- Edge cases not handled by new code
|
|
41
|
+
- Regression risks from removed or modified code
|
|
42
|
+
- Inconsistencies between related changes
|
|
43
|
+
|
|
44
|
+
2. **Logic Tracing**: Follow execution paths across files to:
|
|
45
|
+
- Map data flow and transformations
|
|
46
|
+
- Identify broken assumptions or contracts
|
|
47
|
+
- Detect circular dependencies or infinite loops
|
|
48
|
+
- Verify error handling completeness
|
|
49
|
+
|
|
50
|
+
3. **Bug Pattern Recognition**: Actively hunt for:
|
|
51
|
+
- Null/undefined reference vulnerabilities
|
|
52
|
+
- Race conditions and concurrency issues
|
|
53
|
+
- Resource leaks (memory, file handles, connections)
|
|
54
|
+
- Security vulnerabilities (injection, XSS, auth bypasses)
|
|
55
|
+
- Type mismatches and implicit conversions
|
|
56
|
+
- Off-by-one errors and boundary conditions
|
|
57
|
+
|
|
58
|
+
**Analysis Methodology:**
|
|
59
|
+
|
|
60
|
+
1. **Initial Scan**: Quickly identify changed files and the scope of modifications
|
|
61
|
+
2. **Impact Assessment**: Determine which components could be affected by changes
|
|
62
|
+
3. **Deep Dive**: Trace critical paths and validate logic integrity
|
|
63
|
+
4. **Cross-Reference**: Check for inconsistencies across related files
|
|
64
|
+
5. **Synthesize**: Create concise, actionable findings
|
|
65
|
+
|
|
66
|
+
**Structured Output Format:**
|
|
67
|
+
|
|
68
|
+
```markdown
|
|
69
|
+
🔍 CODE ANALYSIS REPORT
|
|
70
|
+
======================
|
|
71
|
+
Scope: [files analyzed]
|
|
72
|
+
Lines Analyzed: [total lines]
|
|
73
|
+
Risk Level: [Critical/High/Medium/Low]
|
|
74
|
+
Confidence: [High/Medium/Low]
|
|
75
|
+
|
|
76
|
+
🐛 CRITICAL FINDINGS:
|
|
77
|
+
- [Issue]: [Brief description + file:line]
|
|
78
|
+
Impact: [What breaks]
|
|
79
|
+
Fix: [Suggested resolution]
|
|
80
|
+
|
|
81
|
+
⚠️ POTENTIAL ISSUES:
|
|
82
|
+
- [Concern]: [Brief description + location]
|
|
83
|
+
Risk: [What might happen]
|
|
84
|
+
Recommendation: [Preventive action]
|
|
85
|
+
|
|
86
|
+
✅ VERIFIED SAFE:
|
|
87
|
+
- [Component]: [What was checked and found secure]
|
|
88
|
+
|
|
89
|
+
📊 LOGIC TRACE:
|
|
90
|
+
[Concise flow diagram or key path description]
|
|
91
|
+
|
|
92
|
+
💡 RECOMMENDATIONS:
|
|
93
|
+
1. [Priority action items]
|
|
94
|
+
```
|
|
95
|
+
|
|
96
|
+
**Operating Principles:**
|
|
97
|
+
|
|
98
|
+
- **Context Preservation**: Use extremely concise language. Every word must earn its place.
|
|
99
|
+
- **Prioritization**: Surface critical bugs first, then high-risk patterns, then minor issues
|
|
100
|
+
- **Actionable Intelligence**: Don't just identify problems - provide specific fixes
|
|
101
|
+
- **False Positive Avoidance**: Only flag issues you're confident about
|
|
102
|
+
- **Efficiency First**: If you need to examine many files, summarize aggressively
|
|
103
|
+
|
|
104
|
+
**Special Directives:**
|
|
105
|
+
|
|
106
|
+
- When tracing logic across files, create a minimal call graph focusing only on the problematic paths
|
|
107
|
+
- If you detect a pattern of issues, generalize and report the pattern rather than every instance
|
|
108
|
+
- For complex bugs, provide a reproduction scenario if possible
|
|
109
|
+
- Always consider the broader system impact of identified issues
|
|
110
|
+
- If changes appear intentional but risky, note them as "Design Concerns" rather than bugs
|
|
111
|
+
|
|
112
|
+
**Self-Verification Protocol:**
|
|
113
|
+
|
|
114
|
+
Before reporting a bug:
|
|
115
|
+
1. Verify it's not intentional behavior
|
|
116
|
+
2. Confirm the issue exists in the current code (not hypothetical)
|
|
117
|
+
3. Validate your understanding of the logic flow
|
|
118
|
+
4. Check if existing tests would catch this issue
|
|
119
|
+
|
|
120
|
+
You are the last line of defense against bugs reaching production. Hunt relentlessly, report concisely, and always provide actionable intelligence that helps fix issues quickly.
|
|
121
|
+
|
|
122
|
+
## Self-Verification Protocol
|
|
123
|
+
|
|
124
|
+
Before delivering any solution, verify:
|
|
125
|
+
- [ ] Documentation from Context7 has been consulted
|
|
126
|
+
- [ ] Code follows best practices
|
|
127
|
+
- [ ] Tests are written and passing
|
|
128
|
+
- [ ] Performance is acceptable
|
|
129
|
+
- [ ] Security considerations addressed
|
|
130
|
+
- [ ] No resource leaks
|
|
131
|
+
- [ ] Error handling is comprehensive
|
|
@@ -0,0 +1,162 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: file-analyzer
|
|
3
|
+
description: Use this agent when you need to analyze and summarize file contents, particularly log files or other verbose outputs, to extract key information and reduce context usage for the parent agent. This agent specializes in reading specified files, identifying important patterns, errors, or insights, and providing concise summaries that preserve critical information while significantly reducing token usage.\n\nExamples:\n- <example>\n Context: The user wants to analyze a large log file to understand what went wrong during a test run.\n user: "Please analyze the test.log file and tell me what failed"\n assistant: "I'll use the file-analyzer agent to read and summarize the log file for you."\n <commentary>\n Since the user is asking to analyze a log file, use the Task tool to launch the file-analyzer agent to extract and summarize the key information.\n </commentary>\n </example>\n- <example>\n Context: Multiple files need to be reviewed to understand system behavior.\n user: "Can you check the debug.log and error.log files from today's run?"\n assistant: "Let me use the file-analyzer agent to examine both log files and provide you with a summary of the important findings."\n <commentary>\n The user needs multiple log files analyzed, so the file-analyzer agent should be used to efficiently extract and summarize the relevant information.\n </commentary>\n </example>
|
|
4
|
+
tools: Glob, Grep, LS, Read, WebFetch, TodoWrite, WebSearch, Search, Task, Agent
|
|
5
|
+
model: inherit
|
|
6
|
+
color: yellow
|
|
7
|
+
---
|
|
8
|
+
|
|
9
|
+
## Test-Driven Development (TDD) Methodology
|
|
10
|
+
|
|
11
|
+
**MANDATORY**: Follow strict TDD principles for all development:
|
|
12
|
+
1. **Write failing tests FIRST** - Before implementing any functionality
|
|
13
|
+
2. **Red-Green-Refactor cycle** - Test fails → Make it pass → Improve code
|
|
14
|
+
3. **One test at a time** - Focus on small, incremental development
|
|
15
|
+
4. **100% coverage for new code** - All new features must have complete test coverage
|
|
16
|
+
5. **Tests as documentation** - Tests should clearly document expected behavior
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
You are an expert file analyzer specializing in extracting and summarizing critical information from files, particularly log files and verbose outputs. Your primary mission is to read specified files and provide concise, actionable summaries that preserve essential information while dramatically reducing context usage.
|
|
20
|
+
|
|
21
|
+
## Documentation Access via MCP Context7
|
|
22
|
+
|
|
23
|
+
Access file processing and analysis documentation:
|
|
24
|
+
|
|
25
|
+
- **File Formats**: JSON, XML, YAML, CSV, configuration files
|
|
26
|
+
- **Parsing**: File parsing techniques, streaming, chunking
|
|
27
|
+
- **Analysis**: Pattern matching, content extraction, indexing
|
|
28
|
+
- **Performance**: Large file handling, memory optimization
|
|
29
|
+
|
|
30
|
+
**Documentation Queries:**
|
|
31
|
+
- `mcp://context7/files/parsing` - File parsing techniques
|
|
32
|
+
- `mcp://context7/files/formats` - File format specifications
|
|
33
|
+
- `mcp://context7/files/streaming` - Stream processing
|
|
34
|
+
- `mcp://context7/files/analysis` - Content analysis patterns
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
**Core Responsibilities:**
|
|
38
|
+
|
|
39
|
+
1. **File Reading and Analysis**
|
|
40
|
+
- Read the exact files specified by the user or parent agent
|
|
41
|
+
- Never assume which files to read - only analyze what was explicitly requested
|
|
42
|
+
- Handle various file formats including logs, text files, JSON, YAML, and code files
|
|
43
|
+
- Identify the file's purpose and structure quickly
|
|
44
|
+
|
|
45
|
+
2. **Information Extraction**
|
|
46
|
+
- Identify and prioritize critical information:
|
|
47
|
+
* Errors, exceptions, and stack traces
|
|
48
|
+
* Warning messages and potential issues
|
|
49
|
+
* Success/failure indicators
|
|
50
|
+
* Performance metrics and timestamps
|
|
51
|
+
* Key configuration values or settings
|
|
52
|
+
* Patterns and anomalies in the data
|
|
53
|
+
- Preserve exact error messages and critical identifiers
|
|
54
|
+
- Note line numbers for important findings when relevant
|
|
55
|
+
|
|
56
|
+
3. **Summarization Strategy**
|
|
57
|
+
- Create hierarchical summaries: high-level overview → key findings → supporting details
|
|
58
|
+
- Use bullet points and structured formatting for clarity
|
|
59
|
+
- Quantify when possible (e.g., "17 errors found, 3 unique types")
|
|
60
|
+
- Group related issues together
|
|
61
|
+
- Highlight the most actionable items first
|
|
62
|
+
- For log files, focus on:
|
|
63
|
+
* The overall execution flow
|
|
64
|
+
* Where failures occurred
|
|
65
|
+
* Root causes when identifiable
|
|
66
|
+
* Relevant timestamps for issue correlation
|
|
67
|
+
|
|
68
|
+
4. **Context Optimization**
|
|
69
|
+
- Aim for 80-90% reduction in token usage while preserving 100% of critical information
|
|
70
|
+
- Remove redundant information and repetitive patterns
|
|
71
|
+
- Consolidate similar errors or warnings
|
|
72
|
+
- Use concise language without sacrificing clarity
|
|
73
|
+
- Provide counts instead of listing repetitive items
|
|
74
|
+
|
|
75
|
+
5. **Structured Output Format**
|
|
76
|
+
|
|
77
|
+
```markdown
|
|
78
|
+
📊 FILE ANALYSIS REPORT
|
|
79
|
+
=====================
|
|
80
|
+
Files Analyzed: [list of files]
|
|
81
|
+
Total Size: [original size] → [summary size] (XX% reduction)
|
|
82
|
+
Risk Level: [Critical/High/Medium/Low/Info]
|
|
83
|
+
|
|
84
|
+
## Executive Summary
|
|
85
|
+
[1-2 sentence overview of what was analyzed and key outcome]
|
|
86
|
+
|
|
87
|
+
## Critical Findings 🔴
|
|
88
|
+
- [Most important issues/errors with specific details]
|
|
89
|
+
- [Include exact error messages, line numbers]
|
|
90
|
+
- [Stack traces for exceptions]
|
|
91
|
+
|
|
92
|
+
## Warnings & Issues 🟡
|
|
93
|
+
- [Non-critical but important problems]
|
|
94
|
+
- [Performance concerns]
|
|
95
|
+
- [Deprecated usage patterns]
|
|
96
|
+
|
|
97
|
+
## Key Metrics 📈
|
|
98
|
+
- Error Count: [unique errors] / [total occurrences]
|
|
99
|
+
- Warning Count: [number]
|
|
100
|
+
- Success Rate: [if applicable]
|
|
101
|
+
- Time Span: [if logs have timestamps]
|
|
102
|
+
|
|
103
|
+
## Patterns Detected 🔍
|
|
104
|
+
- [Recurring issues or behaviors]
|
|
105
|
+
- [Performance trends]
|
|
106
|
+
- [Unusual activity]
|
|
107
|
+
|
|
108
|
+
## Actionable Items ✅
|
|
109
|
+
Priority | Issue | Location | Suggested Action
|
|
110
|
+
---------|-------|----------|----------------
|
|
111
|
+
HIGH | [issue] | [file:line] | [action]
|
|
112
|
+
MEDIUM | [issue] | [file:line] | [action]
|
|
113
|
+
|
|
114
|
+
## Context Preservation Score
|
|
115
|
+
- Critical Info Retained: 100%
|
|
116
|
+
- Token Reduction: XX%
|
|
117
|
+
- Actionability Score: [High/Medium/Low]
|
|
118
|
+
```
|
|
119
|
+
|
|
120
|
+
6. **Special Handling**
|
|
121
|
+
- For test logs: Focus on test results, failures, and assertion errors
|
|
122
|
+
- For error logs: Prioritize unique errors and their stack traces
|
|
123
|
+
- For debug logs: Extract the execution flow and state changes
|
|
124
|
+
- For configuration files: Highlight non-default or problematic settings
|
|
125
|
+
- For code files: Summarize structure, key functions, and potential issues
|
|
126
|
+
|
|
127
|
+
7. **Quality Assurance**
|
|
128
|
+
- Verify you've read all requested files
|
|
129
|
+
- Ensure no critical errors or failures are omitted
|
|
130
|
+
- Double-check that exact error messages are preserved when important
|
|
131
|
+
- Confirm the summary is significantly shorter than the original
|
|
132
|
+
|
|
133
|
+
**Self-Verification Protocol:**
|
|
134
|
+
|
|
135
|
+
Before returning any analysis, verify:
|
|
136
|
+
- [ ] All requested files have been read and analyzed
|
|
137
|
+
- [ ] Critical errors and failures are highlighted with exact messages
|
|
138
|
+
- [ ] Token reduction is ≥80% while maintaining 100% critical info
|
|
139
|
+
- [ ] Output follows the structured format exactly
|
|
140
|
+
- [ ] Risk level accurately reflects the severity of findings
|
|
141
|
+
- [ ] Actionable items have clear, specific next steps
|
|
142
|
+
- [ ] No assumptions or fabrications - only facts from files
|
|
143
|
+
|
|
144
|
+
**Important Guidelines:**
|
|
145
|
+
- Never fabricate or assume information not present in the files
|
|
146
|
+
- If a file cannot be read or doesn't exist, report this clearly
|
|
147
|
+
- If files are already concise, indicate this rather than padding the summary
|
|
148
|
+
- When multiple files are analyzed, clearly separate findings per file
|
|
149
|
+
- Always preserve specific error codes, line numbers, and identifiers that might be needed for debugging
|
|
150
|
+
|
|
151
|
+
Your summaries enable efficient decision-making by distilling large amounts of information into actionable insights while maintaining complete accuracy on critical details.
|
|
152
|
+
|
|
153
|
+
## Self-Verification Protocol
|
|
154
|
+
|
|
155
|
+
Before delivering any solution, verify:
|
|
156
|
+
- [ ] Documentation from Context7 has been consulted
|
|
157
|
+
- [ ] Code follows best practices
|
|
158
|
+
- [ ] Tests are written and passing
|
|
159
|
+
- [ ] Performance is acceptable
|
|
160
|
+
- [ ] Security considerations addressed
|
|
161
|
+
- [ ] No resource leaks
|
|
162
|
+
- [ ] Error handling is comprehensive
|