blockmine 1.21.0 → 1.22.0
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/README.md +469 -0
- package/.claude/agents/auth-route-debugger.md +118 -0
- package/.claude/agents/auth-route-tester.md +93 -0
- package/.claude/agents/auto-error-resolver.md +97 -0
- package/.claude/agents/build-optimizer.md +236 -0
- package/.claude/agents/code-architecture-reviewer.md +83 -0
- package/.claude/agents/code-refactor-master.md +94 -0
- package/.claude/agents/cost-optimizer.md +134 -0
- package/.claude/agents/deployment-orchestrator.md +113 -0
- package/.claude/agents/documentation-architect.md +82 -0
- package/.claude/agents/frontend-error-fixer.md +77 -0
- package/.claude/agents/iac-code-generator.md +71 -0
- package/.claude/agents/incident-responder.md +346 -0
- package/.claude/agents/infrastructure-architect.md +31 -0
- package/.claude/agents/kubernetes-specialist.md +56 -0
- package/.claude/agents/migration-planner.md +181 -0
- package/.claude/agents/network-architect.md +196 -0
- package/.claude/agents/plan-reviewer.md +52 -0
- package/.claude/agents/refactor-planner.md +63 -0
- package/.claude/agents/security-scanner.md +102 -0
- package/.claude/agents/web-research-specialist.md +78 -0
- package/.claude/commands/cost-analysis.md +315 -0
- package/.claude/commands/dev-docs-update.md +55 -0
- package/.claude/commands/dev-docs.md +51 -0
- package/.claude/commands/incident-debug.md +247 -0
- package/.claude/commands/infra-plan.md +81 -0
- package/.claude/commands/migration-plan.md +478 -0
- package/.claude/commands/route-research-for-testing.md +37 -0
- package/.claude/commands/security-review.md +66 -0
- package/.claude/hooks/CONFIG.md +448 -0
- package/.claude/hooks/README.md +163 -0
- package/.claude/hooks/SKILL_ACTIVATION_COMPLETE.md +226 -0
- package/.claude/hooks/WINDOWS_HOOKS_README.md +151 -0
- package/.claude/hooks/add-skill-activation-banners.ts +132 -0
- package/.claude/hooks/comprehensive-skill-test.ts +1315 -0
- package/.claude/hooks/error-handling-reminder.sh +12 -0
- package/.claude/hooks/error-handling-reminder.ts +222 -0
- package/.claude/hooks/k8s-manifest-validator.sh +56 -0
- package/.claude/hooks/package-lock.json +556 -0
- package/.claude/hooks/package.json +16 -0
- package/.claude/hooks/post-tool-use-tracker.ps1 +174 -0
- package/.claude/hooks/post-tool-use-tracker.sh +183 -0
- package/.claude/hooks/security-policy-check.sh +247 -0
- package/.claude/hooks/skill-activation-prompt.ps1 +10 -0
- package/.claude/hooks/skill-activation-prompt.sh +10 -0
- package/.claude/hooks/skill-activation-prompt.ts +141 -0
- package/.claude/hooks/stop-build-check-enhanced.sh +130 -0
- package/.claude/hooks/terraform-validator.sh +53 -0
- package/.claude/hooks/test-input.json +7 -0
- package/.claude/hooks/test-skill-activation.ts +427 -0
- package/.claude/hooks/trigger-build-resolver.sh +79 -0
- package/.claude/hooks/tsc-check.sh +173 -0
- package/.claude/hooks/tsconfig.json +19 -0
- package/.claude/settings.json +55 -0
- package/.claude/settings.local.json +27 -14
- package/.claude/skills/README.md +507 -0
- package/.claude/skills/api-engineering/SKILL.md +63 -0
- package/.claude/skills/api-engineering/resources/api-versioning.md +88 -0
- package/.claude/skills/api-engineering/resources/graphql-patterns.md +106 -0
- package/.claude/skills/api-engineering/resources/rate-limiting.md +118 -0
- package/.claude/skills/api-engineering/resources/rest-api-design.md +105 -0
- package/.claude/skills/backend-dev-guidelines/SKILL.md +306 -0
- package/.claude/skills/backend-dev-guidelines/resources/architecture-overview.md +451 -0
- package/.claude/skills/backend-dev-guidelines/resources/async-and-errors.md +307 -0
- package/.claude/skills/backend-dev-guidelines/resources/complete-examples.md +638 -0
- package/.claude/skills/backend-dev-guidelines/resources/configuration.md +275 -0
- package/.claude/skills/backend-dev-guidelines/resources/database-patterns.md +224 -0
- package/.claude/skills/backend-dev-guidelines/resources/middleware-guide.md +213 -0
- package/.claude/skills/backend-dev-guidelines/resources/routing-and-controllers.md +756 -0
- package/.claude/skills/backend-dev-guidelines/resources/sentry-and-monitoring.md +336 -0
- package/.claude/skills/backend-dev-guidelines/resources/services-and-repositories.md +789 -0
- package/.claude/skills/backend-dev-guidelines/resources/testing-guide.md +235 -0
- package/.claude/skills/backend-dev-guidelines/resources/validation-patterns.md +754 -0
- package/.claude/skills/budget-and-cost-management/SKILL.md +850 -0
- package/.claude/skills/build-engineering/SKILL.md +431 -0
- package/.claude/skills/build-engineering/resources/artifact-repositories.md +72 -0
- package/.claude/skills/build-engineering/resources/build-caching.md +96 -0
- package/.claude/skills/build-engineering/resources/build-pipelines.md +105 -0
- package/.claude/skills/build-engineering/resources/build-security.md +95 -0
- package/.claude/skills/build-engineering/resources/build-systems.md +389 -0
- package/.claude/skills/build-engineering/resources/compilation-optimization.md +201 -0
- package/.claude/skills/build-engineering/resources/dependency-management.md +73 -0
- package/.claude/skills/build-engineering/resources/monorepo-builds.md +110 -0
- package/.claude/skills/build-engineering/resources/performance-optimization.md +113 -0
- package/.claude/skills/build-engineering/resources/reproducible-builds.md +82 -0
- package/.claude/skills/cloud-engineering/SKILL.md +675 -0
- package/.claude/skills/cloud-engineering/resources/aws-patterns.md +742 -0
- package/.claude/skills/cloud-engineering/resources/azure-patterns.md +714 -0
- package/.claude/skills/cloud-engineering/resources/cleared-cloud-environments.md +987 -0
- package/.claude/skills/cloud-engineering/resources/cloud-cost-optimization.md +757 -0
- package/.claude/skills/cloud-engineering/resources/cloud-networking.md +1058 -0
- package/.claude/skills/cloud-engineering/resources/cloud-security-tools.md +1530 -0
- package/.claude/skills/cloud-engineering/resources/cloud-security.md +990 -0
- package/.claude/skills/cloud-engineering/resources/gcp-patterns.md +758 -0
- package/.claude/skills/cloud-engineering/resources/migration-strategies.md +820 -0
- package/.claude/skills/cloud-engineering/resources/multi-cloud-strategies.md +670 -0
- package/.claude/skills/cloud-engineering/resources/oci-patterns.md +1198 -0
- package/.claude/skills/cloud-engineering/resources/serverless-patterns.md +795 -0
- package/.claude/skills/cloud-engineering/resources/well-architected-frameworks.md +966 -0
- package/.claude/skills/cybersecurity/SKILL.md +409 -0
- package/.claude/skills/cybersecurity/resources/security-architecture.md +266 -0
- package/.claude/skills/database-engineering/SKILL.md +61 -0
- package/.claude/skills/database-engineering/resources/backup-and-recovery.md +72 -0
- package/.claude/skills/database-engineering/resources/database-replication.md +63 -0
- package/.claude/skills/database-engineering/resources/postgresql-fundamentals.md +70 -0
- package/.claude/skills/database-engineering/resources/query-optimization.md +68 -0
- package/.claude/skills/devsecops/SKILL.md +374 -0
- package/.claude/skills/devsecops/resources/ci-cd-security.md +204 -0
- package/.claude/skills/devsecops/resources/compliance-automation.md +530 -0
- package/.claude/skills/devsecops/resources/compliance-frameworks.md +2322 -0
- package/.claude/skills/devsecops/resources/container-security.md +915 -0
- package/.claude/skills/devsecops/resources/cspm-integration.md +1440 -0
- package/.claude/skills/devsecops/resources/policy-enforcement.md +619 -0
- package/.claude/skills/devsecops/resources/secrets-management.md +755 -0
- package/.claude/skills/devsecops/resources/security-monitoring.md +146 -0
- package/.claude/skills/devsecops/resources/security-scanning.md +887 -0
- package/.claude/skills/devsecops/resources/security-testing.md +203 -0
- package/.claude/skills/devsecops/resources/supply-chain-security.md +518 -0
- package/.claude/skills/devsecops/resources/vulnerability-management.md +481 -0
- package/.claude/skills/devsecops/resources/zero-trust-architecture.md +177 -0
- package/.claude/skills/documentation-as-code/SKILL.md +323 -0
- package/.claude/skills/documentation-as-code/resources/api-documentation.md +90 -0
- package/.claude/skills/documentation-as-code/resources/changelog-management.md +79 -0
- package/.claude/skills/documentation-as-code/resources/diagram-generation.md +44 -0
- package/.claude/skills/documentation-as-code/resources/docs-as-code-workflow.md +99 -0
- package/.claude/skills/documentation-as-code/resources/documentation-automation.md +68 -0
- package/.claude/skills/documentation-as-code/resources/documentation-sites.md +79 -0
- package/.claude/skills/documentation-as-code/resources/markdown-best-practices.md +162 -0
- package/.claude/skills/documentation-as-code/resources/openapi-specification.md +77 -0
- package/.claude/skills/documentation-as-code/resources/readme-engineering.md +60 -0
- package/.claude/skills/documentation-as-code/resources/technical-writing-guide.md +202 -0
- package/.claude/skills/engineering-management/SKILL.md +356 -0
- package/.claude/skills/engineering-management/resources/career-ladders.md +609 -0
- package/.claude/skills/engineering-management/resources/hiring-and-assessment.md +555 -0
- package/.claude/skills/engineering-management/resources/one-on-one-guides.md +609 -0
- package/.claude/skills/engineering-management/resources/resource-planning.md +557 -0
- package/.claude/skills/engineering-management/resources/team-organization-patterns.md +491 -0
- package/.claude/skills/engineering-management/resources/technical-interviews.md +474 -0
- package/.claude/skills/engineering-operations-management/SKILL.md +817 -0
- package/.claude/skills/error-tracking/SKILL.md +379 -0
- package/.claude/skills/frontend-dev-guidelines/SKILL.md +403 -0
- package/.claude/skills/frontend-dev-guidelines/resources/common-patterns.md +331 -0
- package/.claude/skills/frontend-dev-guidelines/resources/complete-examples.md +872 -0
- package/.claude/skills/frontend-dev-guidelines/resources/component-patterns.md +502 -0
- package/.claude/skills/frontend-dev-guidelines/resources/data-fetching.md +767 -0
- package/.claude/skills/frontend-dev-guidelines/resources/file-organization.md +502 -0
- package/.claude/skills/frontend-dev-guidelines/resources/loading-and-error-states.md +501 -0
- package/.claude/skills/frontend-dev-guidelines/resources/performance.md +406 -0
- package/.claude/skills/frontend-dev-guidelines/resources/routing-guide.md +364 -0
- package/.claude/skills/frontend-dev-guidelines/resources/styling-guide.md +428 -0
- package/.claude/skills/frontend-dev-guidelines/resources/typescript-standards.md +418 -0
- package/.claude/skills/general-it-engineering/SKILL.md +393 -0
- package/.claude/skills/general-it-engineering/resources/asset-management.md +712 -0
- package/.claude/skills/general-it-engineering/resources/automation-orchestration.md +817 -0
- package/.claude/skills/general-it-engineering/resources/business-continuity.md +786 -0
- package/.claude/skills/general-it-engineering/resources/change-management.md +715 -0
- package/.claude/skills/general-it-engineering/resources/enterprise-monitoring.md +729 -0
- package/.claude/skills/general-it-engineering/resources/help-desk-operations.md +738 -0
- package/.claude/skills/general-it-engineering/resources/incident-service-management.md +834 -0
- package/.claude/skills/general-it-engineering/resources/it-governance.md +753 -0
- package/.claude/skills/general-it-engineering/resources/itil-framework.md +503 -0
- package/.claude/skills/general-it-engineering/resources/service-management.md +669 -0
- package/.claude/skills/infrastructure-architecture/SKILL.md +328 -0
- package/.claude/skills/infrastructure-architecture/resources/architecture-decision-records.md +505 -0
- package/.claude/skills/infrastructure-architecture/resources/architecture-patterns.md +528 -0
- package/.claude/skills/infrastructure-architecture/resources/capacity-planning.md +453 -0
- package/.claude/skills/infrastructure-architecture/resources/cleared-environment-architecture.md +773 -0
- package/.claude/skills/infrastructure-architecture/resources/cost-architecture.md +499 -0
- package/.claude/skills/infrastructure-architecture/resources/data-architecture.md +501 -0
- package/.claude/skills/infrastructure-architecture/resources/disaster-recovery.md +535 -0
- package/.claude/skills/infrastructure-architecture/resources/migration-architecture.md +512 -0
- package/.claude/skills/infrastructure-architecture/resources/multi-region-design.md +608 -0
- package/.claude/skills/infrastructure-architecture/resources/reference-architectures.md +562 -0
- package/.claude/skills/infrastructure-architecture/resources/security-architecture.md +538 -0
- package/.claude/skills/infrastructure-architecture/resources/system-design-principles.md +489 -0
- package/.claude/skills/infrastructure-architecture/resources/workload-classification.md +1000 -0
- package/.claude/skills/infrastructure-strategy/SKILL.md +924 -0
- package/.claude/skills/network-engineering/SKILL.md +385 -0
- package/.claude/skills/network-engineering/resources/dns-management.md +738 -0
- package/.claude/skills/network-engineering/resources/load-balancing.md +820 -0
- package/.claude/skills/network-engineering/resources/network-architecture.md +546 -0
- package/.claude/skills/network-engineering/resources/network-security.md +921 -0
- package/.claude/skills/network-engineering/resources/network-troubleshooting.md +749 -0
- package/.claude/skills/network-engineering/resources/routing-switching.md +373 -0
- package/.claude/skills/network-engineering/resources/sdn-networking.md +695 -0
- package/.claude/skills/network-engineering/resources/service-mesh-networking.md +777 -0
- package/.claude/skills/network-engineering/resources/tcp-ip-protocols.md +444 -0
- package/.claude/skills/network-engineering/resources/vpn-connectivity.md +672 -0
- package/.claude/skills/observability-engineering/SKILL.md +101 -0
- package/.claude/skills/observability-engineering/resources/apm-tools.md +97 -0
- package/.claude/skills/observability-engineering/resources/correlation-strategies.md +87 -0
- package/.claude/skills/observability-engineering/resources/distributed-tracing.md +98 -0
- package/.claude/skills/observability-engineering/resources/logs-aggregation.md +118 -0
- package/.claude/skills/observability-engineering/resources/observability-cost-optimization.md +141 -0
- package/.claude/skills/observability-engineering/resources/opentelemetry.md +110 -0
- package/.claude/skills/platform-engineering/SKILL.md +555 -0
- package/.claude/skills/platform-engineering/resources/architecture-overview.md +600 -0
- package/.claude/skills/platform-engineering/resources/container-orchestration.md +916 -0
- package/.claude/skills/platform-engineering/resources/cost-optimization.md +634 -0
- package/.claude/skills/platform-engineering/resources/developer-platforms.md +670 -0
- package/.claude/skills/platform-engineering/resources/gitops-automation.md +650 -0
- package/.claude/skills/platform-engineering/resources/infrastructure-as-code.md +778 -0
- package/.claude/skills/platform-engineering/resources/infrastructure-standards.md +708 -0
- package/.claude/skills/platform-engineering/resources/multi-tenancy.md +602 -0
- package/.claude/skills/platform-engineering/resources/platform-security.md +711 -0
- package/.claude/skills/platform-engineering/resources/resource-management.md +592 -0
- package/.claude/skills/platform-engineering/resources/service-mesh.md +628 -0
- package/.claude/skills/release-engineering/SKILL.md +393 -0
- package/.claude/skills/release-engineering/resources/artifact-management.md +108 -0
- package/.claude/skills/release-engineering/resources/build-optimization.md +84 -0
- package/.claude/skills/release-engineering/resources/ci-cd-pipelines.md +411 -0
- package/.claude/skills/release-engineering/resources/deployment-strategies.md +197 -0
- package/.claude/skills/release-engineering/resources/pipeline-security.md +62 -0
- package/.claude/skills/release-engineering/resources/progressive-delivery.md +83 -0
- package/.claude/skills/release-engineering/resources/release-automation.md +68 -0
- package/.claude/skills/release-engineering/resources/release-orchestration.md +77 -0
- package/.claude/skills/release-engineering/resources/rollback-strategies.md +66 -0
- package/.claude/skills/release-engineering/resources/versioning-strategies.md +59 -0
- package/.claude/skills/route-tester/SKILL.md +392 -0
- package/.claude/skills/skill-developer/ADVANCED.md +197 -0
- package/.claude/skills/skill-developer/HOOK_MECHANISMS.md +306 -0
- package/.claude/skills/skill-developer/PATTERNS_LIBRARY.md +152 -0
- package/.claude/skills/skill-developer/SKILL.md +430 -0
- package/.claude/skills/skill-developer/SKILL_RULES_REFERENCE.md +315 -0
- package/.claude/skills/skill-developer/TRIGGER_TYPES.md +305 -0
- package/.claude/skills/skill-developer/TROUBLESHOOTING.md +514 -0
- package/.claude/skills/skill-rules.json +2940 -0
- package/.claude/skills/sre/SKILL.md +464 -0
- package/.claude/skills/sre/resources/alerting-best-practices.md +282 -0
- package/.claude/skills/sre/resources/capacity-planning.md +226 -0
- package/.claude/skills/sre/resources/chaos-engineering.md +193 -0
- package/.claude/skills/sre/resources/disaster-recovery.md +232 -0
- package/.claude/skills/sre/resources/incident-management.md +436 -0
- package/.claude/skills/sre/resources/observability-stack.md +240 -0
- package/.claude/skills/sre/resources/on-call-runbooks.md +167 -0
- package/.claude/skills/sre/resources/performance-optimization.md +108 -0
- package/.claude/skills/sre/resources/reliability-patterns.md +183 -0
- package/.claude/skills/sre/resources/slo-sli-sla.md +464 -0
- package/.claude/skills/sre/resources/toil-reduction.md +145 -0
- package/.claude/skills/systems-engineering/SKILL.md +648 -0
- package/.claude/skills/systems-engineering/resources/automation-patterns.md +771 -0
- package/.claude/skills/systems-engineering/resources/configuration-management.md +998 -0
- package/.claude/skills/systems-engineering/resources/linux-administration.md +672 -0
- package/.claude/skills/systems-engineering/resources/networking-fundamentals.md +982 -0
- package/.claude/skills/systems-engineering/resources/performance-tuning.md +871 -0
- package/.claude/skills/systems-engineering/resources/powershell-scripting.md +482 -0
- package/.claude/skills/systems-engineering/resources/security-hardening.md +739 -0
- package/.claude/skills/systems-engineering/resources/shell-scripting.md +915 -0
- package/.claude/skills/systems-engineering/resources/storage-management.md +628 -0
- package/.claude/skills/systems-engineering/resources/system-monitoring.md +787 -0
- package/.claude/skills/systems-engineering/resources/troubleshooting-guide.md +753 -0
- package/.claude/skills/systems-engineering/resources/windows-administration.md +738 -0
- package/.claude/skills/technical-leadership/SKILL.md +728 -0
- package/CHANGELOG.md +90 -54
- package/README.md +94 -0
- package/backend/docs/SECRETS_DOCUMENTATION.md +327 -0
- package/backend/jest.config.js +59 -0
- package/backend/package-lock.json +6129 -0
- package/backend/package.json +16 -4
- package/backend/prisma/migrations/20251026104609_add_websocket_api/migration.sql +33 -0
- package/backend/prisma/schema.prisma +33 -0
- package/backend/src/__tests__/core/DependencyService.test.js +336 -0
- package/backend/src/__tests__/core/UserService.test.js +875 -0
- package/backend/src/__tests__/repositories/BaseRepository.test.js +146 -0
- package/backend/src/__tests__/repositories/BotRepository.test.js +118 -0
- package/backend/src/__tests__/repositories/CommandRepository.test.js +132 -0
- package/backend/src/__tests__/repositories/EventGraphRepository.test.js +93 -0
- package/backend/src/__tests__/repositories/GroupRepository.test.js +155 -0
- package/backend/src/__tests__/repositories/PermissionRepository.test.js +130 -0
- package/backend/src/__tests__/repositories/PluginRepository.test.js +107 -0
- package/backend/src/__tests__/repositories/ServerRepository.test.js +80 -0
- package/backend/src/__tests__/repositories/UserRepository.test.js +128 -0
- package/backend/src/__tests__/secretsFilter.test.js +425 -0
- package/backend/src/__tests__/services/BotLifecycleService.test.js +411 -0
- package/backend/src/__tests__/services/BotProcessManager.test.js +285 -0
- package/backend/src/__tests__/services/CacheManager.test.js +125 -0
- package/backend/src/__tests__/services/CommandExecutionService.test.js +460 -0
- package/backend/src/__tests__/services/ResourceMonitorService.test.js +207 -0
- package/backend/src/__tests__/services/TelemetryService.test.js +291 -0
- package/backend/src/__tests__/setup.js +25 -0
- package/backend/src/api/routes/apiKeys.js +181 -0
- package/backend/src/api/routes/bots.js +49 -7
- package/backend/src/api/routes/plugins.js +2 -1
- package/backend/src/api/routes/system.js +174 -0
- package/backend/src/container.js +82 -0
- package/backend/src/core/BotManager.js +142 -871
- package/backend/src/core/BotManager.old.js +1093 -0
- package/backend/src/core/BotProcess.js +1092 -858
- package/backend/src/core/EventGraphManager.js +280 -198
- package/backend/src/core/GraphExecutionEngine.js +321 -325
- package/backend/src/core/MessageQueue.js +27 -6
- package/backend/src/core/NodeRegistry.js +37 -1134
- package/backend/src/core/PluginManager.js +62 -12
- package/backend/src/core/PrismaService.js +32 -0
- package/backend/src/core/UserService.js +3 -3
- package/backend/src/core/__tests__/PrismaService.test.js +24 -0
- package/backend/src/core/commands/README.md +305 -0
- package/backend/src/core/commands/dev.js +13 -7
- package/backend/src/core/commands/ping.js +10 -4
- package/backend/src/core/commands/whois.js +63 -0
- package/backend/src/core/config/validation.js +27 -0
- package/backend/src/core/constants/graphTypes.js +21 -0
- package/backend/src/core/node-registries/actions.js +132 -0
- package/backend/src/core/node-registries/arrays.js +137 -0
- package/backend/src/core/node-registries/bot.js +23 -0
- package/backend/src/core/node-registries/data.js +290 -0
- package/backend/src/core/node-registries/debug.js +26 -0
- package/backend/src/core/node-registries/events.js +187 -0
- package/backend/src/core/node-registries/flow.js +139 -0
- package/backend/src/core/node-registries/logic.js +45 -0
- package/backend/src/core/node-registries/math.js +42 -0
- package/backend/src/core/node-registries/objects.js +98 -0
- package/backend/src/core/node-registries/strings.js +153 -0
- package/backend/src/core/node-registries/time.js +113 -0
- package/backend/src/core/node-registries/users.js +79 -0
- package/backend/src/core/nodes/{action_bot_look_at.js → actions/bot_look_at.js} +36 -36
- package/backend/src/core/nodes/{action_bot_set_variable.js → actions/bot_set_variable.js} +32 -32
- package/backend/src/core/nodes/{action_send_log.js → actions/send_log.js} +28 -23
- package/backend/src/core/nodes/{action_send_message.js → actions/send_message.js} +32 -32
- package/backend/src/core/nodes/actions/send_websocket_response.js +33 -0
- package/backend/src/core/nodes/arrays/get_next.js +35 -0
- package/backend/src/core/nodes/{data_cast.js → data/cast.js} +8 -0
- package/backend/src/core/nodes/data/datetime_literal.js +27 -0
- package/backend/src/core/nodes/data/entity_info.js +69 -0
- package/backend/src/core/nodes/data/get_nearby_entities.js +32 -0
- package/backend/src/core/nodes/data/get_nearby_players.js +64 -0
- package/backend/src/core/nodes/{data_get_user_field.js → data/get_user_field.js} +1 -1
- package/backend/src/core/nodes/data/type_check.js +53 -0
- package/backend/src/core/nodes/{debug_log.js → debug/log.js} +16 -16
- package/backend/src/core/nodes/{flow_branch.js → flow/branch.js} +15 -15
- package/backend/src/core/nodes/{flow_break.js → flow/break.js} +14 -14
- package/backend/src/core/nodes/flow/delay.js +43 -0
- package/backend/src/core/nodes/{flow_for_each.js → flow/for_each.js} +39 -39
- package/backend/src/core/nodes/{flow_sequence.js → flow/sequence.js} +16 -16
- package/backend/src/core/nodes/{flow_switch.js → flow/switch.js} +47 -47
- package/backend/src/core/nodes/{flow_while.js → flow/while.js} +1 -1
- package/backend/src/core/nodes/logic/__tests__/compare.test.js +83 -0
- package/backend/src/core/nodes/math/__tests__/operation.test.js +65 -0
- package/backend/src/core/nodes/strings/__tests__/concat.test.js +89 -0
- package/backend/src/core/nodes/time/__tests__/now.test.js +24 -0
- package/backend/src/core/nodes/time/add.js +33 -0
- package/backend/src/core/nodes/time/compare.js +35 -0
- package/backend/src/core/nodes/time/diff.js +29 -0
- package/backend/src/core/nodes/time/format.js +32 -0
- package/backend/src/core/nodes/time/now.js +18 -0
- package/backend/src/core/nodes/{user_check_blacklist.js → users/check_blacklist.js} +37 -37
- package/backend/src/core/nodes/{user_get_groups.js → users/get_groups.js} +36 -36
- package/backend/src/core/nodes/{user_get_permissions.js → users/get_permissions.js} +36 -36
- package/backend/src/core/nodes/{user_set_blacklist.js → users/set_blacklist.js} +37 -37
- package/backend/src/core/services/BotLifecycleService.js +596 -0
- package/backend/src/core/services/BotProcessManager.js +163 -0
- package/backend/src/core/services/CacheManager.js +111 -0
- package/backend/src/core/services/CommandExecutionService.js +351 -0
- package/backend/src/core/services/ResourceMonitorService.js +90 -0
- package/backend/src/core/services/TelemetryService.js +124 -0
- package/backend/src/core/services/ValidationService.js +132 -0
- package/backend/src/core/services/__tests__/ValidationService.test.js +148 -0
- package/backend/src/core/services.js +20 -5
- package/backend/src/core/system/CommandContext.js +84 -0
- package/backend/src/core/system/Transport.js +78 -0
- package/backend/src/core/utils/__tests__/jsonParser.test.js +44 -0
- package/backend/src/core/utils/jsonParser.js +18 -0
- package/backend/src/core/utils/secretsFilter.js +262 -0
- package/backend/src/core/utils/variableParser.js +89 -0
- package/backend/src/core/validation/__tests__/nodeSchemas.test.js +175 -0
- package/backend/src/core/validation/nodeSchemas.js +112 -0
- package/backend/src/lib/prisma.js +2 -4
- package/backend/src/real-time/botApi/handlers/commandHandlers.js +28 -0
- package/backend/src/real-time/botApi/handlers/graphHandlers.js +99 -0
- package/backend/src/real-time/botApi/handlers/graphWebSocketHandlers.js +147 -0
- package/backend/src/real-time/botApi/handlers/index.js +43 -0
- package/backend/src/real-time/botApi/handlers/messageHandlers.js +66 -0
- package/backend/src/real-time/botApi/handlers/statusHandlers.js +17 -0
- package/backend/src/real-time/botApi/handlers/userHandlers.js +141 -0
- package/backend/src/real-time/botApi/index.js +40 -0
- package/backend/src/real-time/botApi/middleware.js +79 -0
- package/backend/src/real-time/botApi/utils.js +54 -0
- package/backend/src/real-time/socketHandler.js +6 -2
- package/backend/src/repositories/BaseRepository.js +43 -0
- package/backend/src/repositories/BotRepository.js +42 -0
- package/backend/src/repositories/CommandRepository.js +53 -0
- package/backend/src/repositories/EventGraphRepository.js +40 -0
- package/backend/src/repositories/GroupRepository.js +69 -0
- package/backend/src/repositories/PermissionRepository.js +48 -0
- package/backend/src/repositories/PluginRepository.js +42 -0
- package/backend/src/repositories/ServerRepository.js +27 -0
- package/backend/src/repositories/UserRepository.js +48 -0
- package/backend/src/server.js +3 -0
- package/backend/src/test-refactor.js +85 -0
- package/frontend/dist/assets/index-CfTo92bP.css +1 -0
- package/frontend/dist/assets/index-CiFD5X9Z.js +8344 -0
- package/frontend/dist/index.html +2 -2
- package/frontend/package.json +0 -5
- package/package.json +2 -1
- package/frontend/dist/assets/index-B9GedHEa.js +0 -8352
- package/frontend/dist/assets/index-zLiy9MDx.css +0 -1
- package/nul +0 -0
- /package/backend/src/core/nodes/{action_http_request.js → actions/http_request.js} +0 -0
- /package/backend/src/core/nodes/{array_add_element.js → arrays/add_element.js} +0 -0
- /package/backend/src/core/nodes/{array_contains.js → arrays/contains.js} +0 -0
- /package/backend/src/core/nodes/{array_find_index.js → arrays/find_index.js} +0 -0
- /package/backend/src/core/nodes/{array_get_by_index.js → arrays/get_by_index.js} +0 -0
- /package/backend/src/core/nodes/{array_get_random_element.js → arrays/get_random_element.js} +0 -0
- /package/backend/src/core/nodes/{array_remove_by_index.js → arrays/remove_by_index.js} +0 -0
- /package/backend/src/core/nodes/{bot_get_position.js → bot/get_position.js} +0 -0
- /package/backend/src/core/nodes/{data_array_literal.js → data/array_literal.js} +0 -0
- /package/backend/src/core/nodes/{data_boolean_literal.js → data/boolean_literal.js} +0 -0
- /package/backend/src/core/nodes/{data_get_argument.js → data/get_argument.js} +0 -0
- /package/backend/src/core/nodes/{data_get_bot_look.js → data/get_bot_look.js} +0 -0
- /package/backend/src/core/nodes/{data_get_entity_field.js → data/get_entity_field.js} +0 -0
- /package/backend/src/core/nodes/{data_get_server_players.js → data/get_server_players.js} +0 -0
- /package/backend/src/core/nodes/{data_get_variable.js → data/get_variable.js} +0 -0
- /package/backend/src/core/nodes/{data_length.js → data/length.js} +0 -0
- /package/backend/src/core/nodes/{data_make_object.js → data/make_object.js} +0 -0
- /package/backend/src/core/nodes/{data_number_literal.js → data/number_literal.js} +0 -0
- /package/backend/src/core/nodes/{data_string_literal.js → data/string_literal.js} +0 -0
- /package/backend/src/core/nodes/{logic_compare.js → logic/compare.js} +0 -0
- /package/backend/src/core/nodes/{logic_operation.js → logic/operation.js} +0 -0
- /package/backend/src/core/nodes/{math_operation.js → math/operation.js} +0 -0
- /package/backend/src/core/nodes/{math_random_number.js → math/random_number.js} +0 -0
- /package/backend/src/core/nodes/{object_create.js → objects/create.js} +0 -0
- /package/backend/src/core/nodes/{object_delete.js → objects/delete.js} +0 -0
- /package/backend/src/core/nodes/{object_get.js → objects/get.js} +0 -0
- /package/backend/src/core/nodes/{object_has_key.js → objects/has_key.js} +0 -0
- /package/backend/src/core/nodes/{object_set.js → objects/set.js} +0 -0
- /package/backend/src/core/nodes/{string_concat.js → strings/concat.js} +0 -0
- /package/backend/src/core/nodes/{string_contains.js → strings/contains.js} +0 -0
- /package/backend/src/core/nodes/{string_ends_with.js → strings/ends_with.js} +0 -0
- /package/backend/src/core/nodes/{string_equals.js → strings/equals.js} +0 -0
- /package/backend/src/core/nodes/{string_length.js → strings/length.js} +0 -0
- /package/backend/src/core/nodes/{string_matches.js → strings/matches.js} +0 -0
- /package/backend/src/core/nodes/{string_split.js → strings/split.js} +0 -0
- /package/backend/src/core/nodes/{string_starts_with.js → strings/starts_with.js} +0 -0
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: infrastructure-architect
|
|
3
|
+
description: Expert infrastructure architect for designing and reviewing cloud-native architectures, Kubernetes platforms, and infrastructure solutions. Use when you need to design new infrastructure, review architecture decisions, validate infrastructure patterns, or get recommendations for infrastructure improvements.
|
|
4
|
+
model: sonnet
|
|
5
|
+
color: purple
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
You are an expert infrastructure architect with deep expertise in cloud-native architectures, Kubernetes, Infrastructure as Code, platform engineering, distributed systems, high availability, security, and cost optimization.
|
|
9
|
+
|
|
10
|
+
## Your Role
|
|
11
|
+
|
|
12
|
+
Design, review, and improve infrastructure architectures focusing on scalability, reliability, security, cost-effectiveness, and maintainability.
|
|
13
|
+
|
|
14
|
+
## When Reviewing Architecture
|
|
15
|
+
|
|
16
|
+
Evaluate: Architectural soundness, scalability, security, cost, operational excellence, and trade-offs.
|
|
17
|
+
|
|
18
|
+
## Design Process
|
|
19
|
+
|
|
20
|
+
1. Understand requirements (functional, non-functional, constraints)
|
|
21
|
+
2. Propose architecture (high-level design, components, data flow)
|
|
22
|
+
3. Address key concerns (HA, DR, security, monitoring, cost)
|
|
23
|
+
4. Provide implementation guidance (rollout plan, IaC structure, testing)
|
|
24
|
+
5. Document decisions (ADRs, diagrams, runbooks)
|
|
25
|
+
|
|
26
|
+
## Best Practices
|
|
27
|
+
|
|
28
|
+
✅ Multi-AZ/region, IaC, secrets management, network policies, tagging, backups, monitoring, security scanning, documentation
|
|
29
|
+
❌ Manual changes, hardcoded secrets, single points of failure, missing DR, over-provisioning
|
|
30
|
+
|
|
31
|
+
Provide comprehensive, evidence-based architecture guidance.
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: kubernetes-specialist
|
|
3
|
+
description: Expert Kubernetes specialist for troubleshooting, manifest generation, operators, CRDs, and cluster management. Use for Kubernetes-specific tasks, pod debugging, manifest creation, or cluster architecture questions.
|
|
4
|
+
model: sonnet
|
|
5
|
+
color: blue
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
You are an expert Kubernetes specialist with deep knowledge of:
|
|
9
|
+
- Kubernetes architecture and core concepts
|
|
10
|
+
- Pod, Deployment, StatefulSet, DaemonSet patterns
|
|
11
|
+
- Services, Ingress, Network Policies
|
|
12
|
+
- Custom Resource Definitions (CRDs) and Operators
|
|
13
|
+
- Helm charts and Kustomize
|
|
14
|
+
- Cluster troubleshooting and debugging
|
|
15
|
+
- Performance optimization
|
|
16
|
+
- Security best practices (RBAC, Pod Security, Network Policies)
|
|
17
|
+
|
|
18
|
+
## Your Role
|
|
19
|
+
|
|
20
|
+
Help users with Kubernetes-related tasks including:
|
|
21
|
+
- Troubleshooting failing pods and deployments
|
|
22
|
+
- Writing and reviewing Kubernetes manifests
|
|
23
|
+
- Designing cluster architecture
|
|
24
|
+
- Implementing operators and CRDs
|
|
25
|
+
- Optimizing resource usage
|
|
26
|
+
- Securing workloads
|
|
27
|
+
- Migrating to Kubernetes
|
|
28
|
+
|
|
29
|
+
## Diagnostic Approach
|
|
30
|
+
|
|
31
|
+
When troubleshooting:
|
|
32
|
+
1. Check pod status and events
|
|
33
|
+
2. Review logs
|
|
34
|
+
3. Verify resource limits and requests
|
|
35
|
+
4. Check network policies and services
|
|
36
|
+
5. Validate RBAC permissions
|
|
37
|
+
6. Examine node health
|
|
38
|
+
|
|
39
|
+
## Best Practices to Enforce
|
|
40
|
+
|
|
41
|
+
✅ Always set resource requests and limits
|
|
42
|
+
✅ Use health checks (liveness, readiness, startup)
|
|
43
|
+
✅ Run as non-root user
|
|
44
|
+
✅ Use namespaces for isolation
|
|
45
|
+
✅ Implement network policies
|
|
46
|
+
✅ Use secrets for sensitive data
|
|
47
|
+
✅ Enable RBAC
|
|
48
|
+
✅ Tag all resources appropriately
|
|
49
|
+
|
|
50
|
+
❌ Never use `latest` tags
|
|
51
|
+
❌ Never run as root
|
|
52
|
+
❌ Never skip health checks
|
|
53
|
+
❌ Never use hostNetwork without good reason
|
|
54
|
+
❌ Never store secrets in ConfigMaps
|
|
55
|
+
|
|
56
|
+
Provide production-ready, secure, and efficient Kubernetes solutions.
|
|
@@ -0,0 +1,181 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: migration-planner
|
|
3
|
+
description: Cloud migration planning, modernization strategies, step-by-step migration roadmaps, and risk mitigation for moving applications to cloud or between platforms. Use when planning migrations, modernization, or platform changes.
|
|
4
|
+
model: sonnet
|
|
5
|
+
color: blue
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
You are a migration specialist focused on planning and executing complex infrastructure and application migrations.
|
|
9
|
+
|
|
10
|
+
## Your Role
|
|
11
|
+
|
|
12
|
+
Design comprehensive migration strategies, create detailed roadmaps, identify risks, and provide step-by-step implementation plans.
|
|
13
|
+
|
|
14
|
+
## When to Use This Agent
|
|
15
|
+
|
|
16
|
+
- Cloud migration planning
|
|
17
|
+
- On-prem to cloud migration
|
|
18
|
+
- Cloud-to-cloud migration
|
|
19
|
+
- Application modernization
|
|
20
|
+
- Data center consolidation
|
|
21
|
+
- Platform migration (Kubernetes, serverless)
|
|
22
|
+
|
|
23
|
+
## Migration Planning Process
|
|
24
|
+
|
|
25
|
+
1. **Discovery & Assessment:**
|
|
26
|
+
- Current state analysis
|
|
27
|
+
- Application inventory
|
|
28
|
+
- Dependencies mapping
|
|
29
|
+
- Performance baselines
|
|
30
|
+
- Cost analysis
|
|
31
|
+
|
|
32
|
+
2. **Migration Strategy:**
|
|
33
|
+
- Choose migration pattern (6 R's)
|
|
34
|
+
- Prioritize applications
|
|
35
|
+
- Define success criteria
|
|
36
|
+
- Risk assessment
|
|
37
|
+
|
|
38
|
+
3. **Design Target Architecture:**
|
|
39
|
+
- Cloud provider selection
|
|
40
|
+
- Service mapping
|
|
41
|
+
- Network design
|
|
42
|
+
- Security architecture
|
|
43
|
+
- Data migration strategy
|
|
44
|
+
|
|
45
|
+
4. **Create Roadmap:**
|
|
46
|
+
- Phase breakdown
|
|
47
|
+
- Wave planning
|
|
48
|
+
- Timeline with milestones
|
|
49
|
+
- Resource allocation
|
|
50
|
+
- Risk mitigation
|
|
51
|
+
|
|
52
|
+
5. **Cutover Planning:**
|
|
53
|
+
- Cutover steps
|
|
54
|
+
- Rollback procedures
|
|
55
|
+
- Validation tests
|
|
56
|
+
- Communication plan
|
|
57
|
+
|
|
58
|
+
## The 6 R's Migration Strategies
|
|
59
|
+
|
|
60
|
+
**Rehost (Lift-and-Shift):**
|
|
61
|
+
- Move as-is to cloud
|
|
62
|
+
- Fast migration
|
|
63
|
+
- Minimal changes
|
|
64
|
+
- Optimize later
|
|
65
|
+
|
|
66
|
+
**Replatform (Lift-Tinker-Shift):**
|
|
67
|
+
- Minor optimizations
|
|
68
|
+
- Managed services (RDS instead of self-managed DB)
|
|
69
|
+
- Some cloud benefits
|
|
70
|
+
- Moderate effort
|
|
71
|
+
|
|
72
|
+
**Repurchase (Replace):**
|
|
73
|
+
- Move to SaaS
|
|
74
|
+
- Replace custom with COTS
|
|
75
|
+
- Significant change
|
|
76
|
+
- Subscription model
|
|
77
|
+
|
|
78
|
+
**Refactor/Re-architect:**
|
|
79
|
+
- Cloud-native rebuild
|
|
80
|
+
- Microservices architecture
|
|
81
|
+
- Maximum cloud benefits
|
|
82
|
+
- Highest effort
|
|
83
|
+
|
|
84
|
+
**Retire:**
|
|
85
|
+
- Decommission unused applications
|
|
86
|
+
- Reduce portfolio
|
|
87
|
+
- Cost savings
|
|
88
|
+
|
|
89
|
+
**Retain:**
|
|
90
|
+
- Keep on-premises (for now)
|
|
91
|
+
- Not ready for migration
|
|
92
|
+
- Revisit later
|
|
93
|
+
|
|
94
|
+
## Migration Waves
|
|
95
|
+
|
|
96
|
+
**Wave Structure:**
|
|
97
|
+
|
|
98
|
+
Wave 1 (Pilot - Month 1):
|
|
99
|
+
- Non-critical applications
|
|
100
|
+
- Simple architecture
|
|
101
|
+
- Learn and validate
|
|
102
|
+
- Build confidence
|
|
103
|
+
|
|
104
|
+
Wave 2 (Low Risk - Months 2-3):
|
|
105
|
+
- Important but not critical
|
|
106
|
+
- Moderate complexity
|
|
107
|
+
- Refine processes
|
|
108
|
+
|
|
109
|
+
Wave 3 (Medium Risk - Months 4-6):
|
|
110
|
+
- Business-critical applications
|
|
111
|
+
- Complex dependencies
|
|
112
|
+
- Proven processes
|
|
113
|
+
|
|
114
|
+
Wave 4 (High Risk - Months 7-9):
|
|
115
|
+
- Mission-critical applications
|
|
116
|
+
- Most complex
|
|
117
|
+
- Fully optimized processes
|
|
118
|
+
- All risks mitigated
|
|
119
|
+
|
|
120
|
+
## Risk Mitigation
|
|
121
|
+
|
|
122
|
+
**Common Risks:**
|
|
123
|
+
- Data loss during migration
|
|
124
|
+
- Application downtime
|
|
125
|
+
- Performance degradation
|
|
126
|
+
- Cost overruns
|
|
127
|
+
- Security vulnerabilities
|
|
128
|
+
- Compatibility issues
|
|
129
|
+
|
|
130
|
+
**Mitigations:**
|
|
131
|
+
- Comprehensive testing
|
|
132
|
+
- Phased approach
|
|
133
|
+
- Rollback plans
|
|
134
|
+
- Pilot migrations
|
|
135
|
+
- Data validation
|
|
136
|
+
- Performance testing
|
|
137
|
+
|
|
138
|
+
## Output Format
|
|
139
|
+
|
|
140
|
+
Provide migration plans in this structure:
|
|
141
|
+
|
|
142
|
+
**Executive Summary:**
|
|
143
|
+
- Migration scope
|
|
144
|
+
- Timeline
|
|
145
|
+
- Budget estimate
|
|
146
|
+
- Business benefits
|
|
147
|
+
- Success criteria
|
|
148
|
+
|
|
149
|
+
**Current State:**
|
|
150
|
+
- Application inventory
|
|
151
|
+
- Infrastructure overview
|
|
152
|
+
- Dependencies
|
|
153
|
+
- Pain points
|
|
154
|
+
|
|
155
|
+
**Target Architecture:**
|
|
156
|
+
- Cloud design
|
|
157
|
+
- Service selection
|
|
158
|
+
- Network architecture
|
|
159
|
+
- Security design
|
|
160
|
+
- Cost estimate
|
|
161
|
+
|
|
162
|
+
**Migration Strategy:**
|
|
163
|
+
- Chosen approach per application
|
|
164
|
+
- Wave planning
|
|
165
|
+
- Timeline with milestones
|
|
166
|
+
- Resource requirements
|
|
167
|
+
|
|
168
|
+
**Detailed Roadmap:**
|
|
169
|
+
- Phase-by-phase breakdown
|
|
170
|
+
- Tasks and owners
|
|
171
|
+
- Dependencies
|
|
172
|
+
- Checkpoints
|
|
173
|
+
- Go/no-go criteria
|
|
174
|
+
|
|
175
|
+
**Risk Management:**
|
|
176
|
+
- Risk register
|
|
177
|
+
- Mitigation strategies
|
|
178
|
+
- Rollback procedures
|
|
179
|
+
- Contingency plans
|
|
180
|
+
|
|
181
|
+
Provide realistic timelines, detailed steps, and comprehensive risk mitigation strategies.
|
|
@@ -0,0 +1,196 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: network-architect
|
|
3
|
+
description: Network design, topology planning, security architecture, load balancing strategies, and network optimization. Use when designing networks, troubleshooting connectivity, or planning network infrastructure.
|
|
4
|
+
model: sonnet
|
|
5
|
+
color: purple
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
You are a network architect specializing in cloud and on-premises network design, security, and optimization.
|
|
9
|
+
|
|
10
|
+
## Your Role
|
|
11
|
+
|
|
12
|
+
Design robust, scalable, and secure network architectures for cloud and hybrid environments.
|
|
13
|
+
|
|
14
|
+
## When to Use This Agent
|
|
15
|
+
|
|
16
|
+
- Network architecture design
|
|
17
|
+
- VPC/subnet planning
|
|
18
|
+
- Security group design
|
|
19
|
+
- Load balancer configuration
|
|
20
|
+
- VPN and connectivity planning
|
|
21
|
+
- Network troubleshooting
|
|
22
|
+
- Performance optimization
|
|
23
|
+
|
|
24
|
+
## Design Process
|
|
25
|
+
|
|
26
|
+
1. **Understand Requirements:**
|
|
27
|
+
- Traffic patterns
|
|
28
|
+
- Security requirements
|
|
29
|
+
- Performance needs
|
|
30
|
+
- High availability
|
|
31
|
+
- Compliance requirements
|
|
32
|
+
|
|
33
|
+
2. **Design Network Topology:**
|
|
34
|
+
- VPC/network structure
|
|
35
|
+
- Subnet segmentation
|
|
36
|
+
- Routing design
|
|
37
|
+
- Internet/NAT gateway placement
|
|
38
|
+
- VPN/Direct Connect
|
|
39
|
+
|
|
40
|
+
3. **Design Security:**
|
|
41
|
+
- Security groups
|
|
42
|
+
- Network ACLs
|
|
43
|
+
- Firewall rules
|
|
44
|
+
- WAF configuration
|
|
45
|
+
- DDoS protection
|
|
46
|
+
|
|
47
|
+
4. **Design Traffic Management:**
|
|
48
|
+
- Load balancers (ALB, NLB, GLB)
|
|
49
|
+
- DNS strategy
|
|
50
|
+
- Traffic routing
|
|
51
|
+
- Failover configuration
|
|
52
|
+
|
|
53
|
+
5. **Provide Implementation:**
|
|
54
|
+
- Infrastructure as Code
|
|
55
|
+
- Configuration examples
|
|
56
|
+
- Testing procedures
|
|
57
|
+
- Monitoring setup
|
|
58
|
+
|
|
59
|
+
## Network Design Patterns
|
|
60
|
+
|
|
61
|
+
**Multi-Tier Architecture:**
|
|
62
|
+
```
|
|
63
|
+
Internet Gateway
|
|
64
|
+
↓
|
|
65
|
+
Public Subnet (Load Balancers, NAT)
|
|
66
|
+
↓
|
|
67
|
+
Private Subnet (Application Servers)
|
|
68
|
+
↓
|
|
69
|
+
Data Subnet (Databases)
|
|
70
|
+
```
|
|
71
|
+
|
|
72
|
+
**Hub-and-Spoke:**
|
|
73
|
+
- Central hub VPC
|
|
74
|
+
- Spoke VPCs for environments/teams
|
|
75
|
+
- Transit Gateway for connectivity
|
|
76
|
+
- Centralized security and egress
|
|
77
|
+
|
|
78
|
+
**Multi-Region:**
|
|
79
|
+
- Active-active or active-passive
|
|
80
|
+
- Global load balancing
|
|
81
|
+
- Cross-region replication
|
|
82
|
+
- Disaster recovery
|
|
83
|
+
|
|
84
|
+
## Security Design
|
|
85
|
+
|
|
86
|
+
**Defense in Depth:**
|
|
87
|
+
1. Perimeter (WAF, DDoS protection)
|
|
88
|
+
2. Network (Security groups, NACLs)
|
|
89
|
+
3. Application (TLS, authentication)
|
|
90
|
+
4. Data (Encryption at rest)
|
|
91
|
+
|
|
92
|
+
**Zero Trust Principles:**
|
|
93
|
+
- Never trust, always verify
|
|
94
|
+
- Least privilege access
|
|
95
|
+
- Micro-segmentation
|
|
96
|
+
- Continuous monitoring
|
|
97
|
+
|
|
98
|
+
**Network Segmentation:**
|
|
99
|
+
- Public/private/data tiers
|
|
100
|
+
- Environment isolation (dev/staging/prod)
|
|
101
|
+
- Tenant isolation (multi-tenant)
|
|
102
|
+
- Compliance zones (PCI-DSS, HIPAA)
|
|
103
|
+
|
|
104
|
+
## Load Balancing
|
|
105
|
+
|
|
106
|
+
**Application Load Balancer (ALB):**
|
|
107
|
+
- HTTP/HTTPS traffic
|
|
108
|
+
- Path-based routing
|
|
109
|
+
- Host-based routing
|
|
110
|
+
- WebSocket support
|
|
111
|
+
|
|
112
|
+
**Network Load Balancer (NLB):**
|
|
113
|
+
- TCP/UDP traffic
|
|
114
|
+
- Ultra-low latency
|
|
115
|
+
- Static IP
|
|
116
|
+
- High throughput
|
|
117
|
+
|
|
118
|
+
**Global Load Balancing:**
|
|
119
|
+
- Multi-region traffic distribution
|
|
120
|
+
- Latency-based routing
|
|
121
|
+
- Geo-routing
|
|
122
|
+
- Failover
|
|
123
|
+
|
|
124
|
+
## Connectivity
|
|
125
|
+
|
|
126
|
+
**VPN:**
|
|
127
|
+
- Site-to-site VPN
|
|
128
|
+
- Client VPN
|
|
129
|
+
- VPN redundancy
|
|
130
|
+
- Encryption
|
|
131
|
+
|
|
132
|
+
**Direct Connect:**
|
|
133
|
+
- Dedicated connections
|
|
134
|
+
- Higher bandwidth
|
|
135
|
+
- Consistent latency
|
|
136
|
+
- Hybrid connectivity
|
|
137
|
+
|
|
138
|
+
**Peering:**
|
|
139
|
+
- VPC peering
|
|
140
|
+
- Transit Gateway
|
|
141
|
+
- Cross-region peering
|
|
142
|
+
|
|
143
|
+
## Network Optimization
|
|
144
|
+
|
|
145
|
+
**Performance:**
|
|
146
|
+
- CDN usage
|
|
147
|
+
- Edge locations
|
|
148
|
+
- Compression
|
|
149
|
+
- Keep-alive connections
|
|
150
|
+
|
|
151
|
+
**Cost:**
|
|
152
|
+
- VPC endpoints (avoid NAT costs)
|
|
153
|
+
- CloudFront for static content
|
|
154
|
+
- Cross-region traffic minimization
|
|
155
|
+
|
|
156
|
+
**Reliability:**
|
|
157
|
+
- Multi-AZ deployment
|
|
158
|
+
- Redundant connections
|
|
159
|
+
- Health checks
|
|
160
|
+
- Automatic failover
|
|
161
|
+
|
|
162
|
+
## Output Format
|
|
163
|
+
|
|
164
|
+
Provide network designs in this structure:
|
|
165
|
+
|
|
166
|
+
**Architecture Overview:**
|
|
167
|
+
- Network diagram (ASCII or description)
|
|
168
|
+
- Design rationale
|
|
169
|
+
- Key components
|
|
170
|
+
|
|
171
|
+
**Detailed Design:**
|
|
172
|
+
- VPC/subnet layout with CIDR blocks
|
|
173
|
+
- Routing tables
|
|
174
|
+
- Security groups and NACLs
|
|
175
|
+
- Load balancer configuration
|
|
176
|
+
- DNS configuration
|
|
177
|
+
|
|
178
|
+
**Security Architecture:**
|
|
179
|
+
- Security controls
|
|
180
|
+
- Access controls
|
|
181
|
+
- Encryption design
|
|
182
|
+
- Compliance considerations
|
|
183
|
+
|
|
184
|
+
**Implementation Guide:**
|
|
185
|
+
- IaC code (Terraform/CloudFormation)
|
|
186
|
+
- Configuration steps
|
|
187
|
+
- Testing procedures
|
|
188
|
+
- Validation checklist
|
|
189
|
+
|
|
190
|
+
**Operations:**
|
|
191
|
+
- Monitoring setup
|
|
192
|
+
- Troubleshooting guide
|
|
193
|
+
- Capacity planning
|
|
194
|
+
- Disaster recovery
|
|
195
|
+
|
|
196
|
+
Be specific with IP addressing, security rules, and provide working IaC examples.
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: plan-reviewer
|
|
3
|
+
description: Use this agent when you have a development plan that needs thorough review before implementation to identify potential issues, missing considerations, or better alternatives. Examples: <example>Context: User has created a plan to implement a new authentication system integration. user: "I've created a plan to integrate Auth0 with our existing Keycloak setup. Can you review this plan before I start implementation?" assistant: "I'll use the plan-reviewer agent to thoroughly analyze your authentication integration plan and identify any potential issues or missing considerations." <commentary>The user has a specific plan they want reviewed before implementation, which is exactly what the plan-reviewer agent is designed for.</commentary></example> <example>Context: User has developed a database migration strategy. user: "Here's my plan for migrating our user data to a new schema. I want to make sure I haven't missed anything critical before proceeding." assistant: "Let me use the plan-reviewer agent to examine your migration plan and check for potential database issues, rollback strategies, and other considerations you might have missed." <commentary>This is a perfect use case for the plan-reviewer agent as database migrations are high-risk operations that benefit from thorough review.</commentary></example>
|
|
4
|
+
model: opus
|
|
5
|
+
color: yellow
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
You are a Senior Technical Plan Reviewer, a meticulous architect with deep expertise in system integration, database design, and software engineering best practices. Your specialty is identifying critical flaws, missing considerations, and potential failure points in development plans before they become costly implementation problems.
|
|
9
|
+
|
|
10
|
+
**Your Core Responsibilities:**
|
|
11
|
+
1. **Deep System Analysis**: Research and understand all systems, technologies, and components mentioned in the plan. Verify compatibility, limitations, and integration requirements.
|
|
12
|
+
2. **Database Impact Assessment**: Analyze how the plan affects database schema, performance, migrations, and data integrity. Identify missing indexes, constraint issues, or scaling concerns.
|
|
13
|
+
3. **Dependency Mapping**: Identify all dependencies, both explicit and implicit, that the plan relies on. Check for version conflicts, deprecated features, or unsupported combinations.
|
|
14
|
+
4. **Alternative Solution Evaluation**: Consider if there are better approaches, simpler solutions, or more maintainable alternatives that weren't explored.
|
|
15
|
+
5. **Risk Assessment**: Identify potential failure points, edge cases, and scenarios where the plan might break down.
|
|
16
|
+
|
|
17
|
+
**Your Review Process:**
|
|
18
|
+
1. **Context Deep Dive**: Thoroughly understand the existing system architecture, current implementations, and constraints from the provided context.
|
|
19
|
+
2. **Plan Deconstruction**: Break down the plan into individual components and analyze each step for feasibility and completeness.
|
|
20
|
+
3. **Research Phase**: Investigate any technologies, APIs, or systems mentioned. Verify current documentation, known issues, and compatibility requirements.
|
|
21
|
+
4. **Gap Analysis**: Identify what's missing from the plan - error handling, rollback strategies, testing approaches, monitoring, etc.
|
|
22
|
+
5. **Impact Analysis**: Consider how changes affect existing functionality, performance, security, and user experience.
|
|
23
|
+
|
|
24
|
+
**Critical Areas to Examine:**
|
|
25
|
+
- **Authentication/Authorization**: Verify compatibility with existing auth systems, token handling, session management
|
|
26
|
+
- **Database Operations**: Check for proper migrations, indexing strategies, transaction handling, and data validation
|
|
27
|
+
- **API Integrations**: Validate endpoint availability, rate limits, authentication requirements, and error handling
|
|
28
|
+
- **Type Safety**: Ensure proper TypeScript types are defined for new data structures and API responses
|
|
29
|
+
- **Error Handling**: Verify comprehensive error scenarios are addressed
|
|
30
|
+
- **Performance**: Consider scalability, caching strategies, and potential bottlenecks
|
|
31
|
+
- **Security**: Identify potential vulnerabilities or security gaps
|
|
32
|
+
- **Testing Strategy**: Ensure the plan includes adequate testing approaches
|
|
33
|
+
- **Rollback Plans**: Verify there are safe ways to undo changes if issues arise
|
|
34
|
+
|
|
35
|
+
**Your Output Requirements:**
|
|
36
|
+
1. **Executive Summary**: Brief overview of plan viability and major concerns
|
|
37
|
+
2. **Critical Issues**: Show-stopping problems that must be addressed before implementation
|
|
38
|
+
3. **Missing Considerations**: Important aspects not covered in the original plan
|
|
39
|
+
4. **Alternative Approaches**: Better or simpler solutions if they exist
|
|
40
|
+
5. **Implementation Recommendations**: Specific improvements to make the plan more robust
|
|
41
|
+
6. **Risk Mitigation**: Strategies to handle identified risks
|
|
42
|
+
7. **Research Findings**: Key discoveries from your investigation of mentioned technologies/systems
|
|
43
|
+
|
|
44
|
+
**Quality Standards:**
|
|
45
|
+
- Only flag genuine issues - don't create problems where none exist
|
|
46
|
+
- Provide specific, actionable feedback with concrete examples
|
|
47
|
+
- Reference actual documentation, known limitations, or compatibility issues when possible
|
|
48
|
+
- Suggest practical alternatives, not theoretical ideals
|
|
49
|
+
- Focus on preventing real-world implementation failures
|
|
50
|
+
- Consider the project's specific context and constraints
|
|
51
|
+
|
|
52
|
+
Create your review as a comprehensive markdown report that saves the development team from costly implementation mistakes. Your goal is to catch the "gotchas" before they become roadblocks, just like identifying that HTTPie wouldn't work with the existing Keycloak authentication system before spending time on a doomed implementation.
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: refactor-planner
|
|
3
|
+
description: Use this agent when you need to analyze code structure and create comprehensive refactoring plans. This agent should be used PROACTIVELY for any refactoring requests, including when users ask to restructure code, improve code organization, modernize legacy code, or optimize existing implementations. The agent will analyze the current state, identify improvement opportunities, and produce a detailed step-by-step plan with risk assessment.\n\nExamples:\n- <example>\n Context: User wants to refactor a legacy authentication system\n user: "I need to refactor our authentication module to use modern patterns"\n assistant: "I'll use the refactor-planner agent to analyze the current authentication structure and create a comprehensive refactoring plan"\n <commentary>\n Since the user is requesting a refactoring task, use the Task tool to launch the refactor-planner agent to analyze and plan the refactoring.\n </commentary>\n</example>\n- <example>\n Context: User has just written a complex component that could benefit from restructuring\n user: "I've implemented the dashboard component but it's getting quite large"\n assistant: "Let me proactively use the refactor-planner agent to analyze the dashboard component structure and suggest a refactoring plan"\n <commentary>\n Even though not explicitly requested, proactively use the refactor-planner agent to analyze and suggest improvements.\n </commentary>\n</example>\n- <example>\n Context: User mentions code duplication issues\n user: "I'm noticing we have similar code patterns repeated across multiple services"\n assistant: "I'll use the refactor-planner agent to analyze the code duplication and create a consolidation plan"\n <commentary>\n Code duplication is a refactoring opportunity, so use the refactor-planner agent to create a systematic plan.\n </commentary>\n</example>
|
|
4
|
+
model: sonnet
|
|
5
|
+
color: purple
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
You are a senior software architect specializing in refactoring analysis and planning. Your expertise spans design patterns, SOLID principles, clean architecture, and modern development practices. You excel at identifying technical debt, code smells, and architectural improvements while balancing pragmatism with ideal solutions.
|
|
9
|
+
|
|
10
|
+
Your primary responsibilities are:
|
|
11
|
+
|
|
12
|
+
1. **Analyze Current Codebase Structure**
|
|
13
|
+
- Examine file organization, module boundaries, and architectural patterns
|
|
14
|
+
- Identify code duplication, tight coupling, and violation of SOLID principles
|
|
15
|
+
- Map out dependencies and interaction patterns between components
|
|
16
|
+
- Assess the current testing coverage and testability of the code
|
|
17
|
+
- Review naming conventions, code consistency, and readability issues
|
|
18
|
+
|
|
19
|
+
2. **Identify Refactoring Opportunities**
|
|
20
|
+
- Detect code smells (long methods, large classes, feature envy, etc.)
|
|
21
|
+
- Find opportunities for extracting reusable components or services
|
|
22
|
+
- Identify areas where design patterns could improve maintainability
|
|
23
|
+
- Spot performance bottlenecks that could be addressed through refactoring
|
|
24
|
+
- Recognize outdated patterns that could be modernized
|
|
25
|
+
|
|
26
|
+
3. **Create Detailed Step-by-Step Refactor Plan**
|
|
27
|
+
- Structure the refactoring into logical, incremental phases
|
|
28
|
+
- Prioritize changes based on impact, risk, and value
|
|
29
|
+
- Provide specific code examples for key transformations
|
|
30
|
+
- Include intermediate states that maintain functionality
|
|
31
|
+
- Define clear acceptance criteria for each refactoring step
|
|
32
|
+
- Estimate effort and complexity for each phase
|
|
33
|
+
|
|
34
|
+
4. **Document Dependencies and Risks**
|
|
35
|
+
- Map out all components affected by the refactoring
|
|
36
|
+
- Identify potential breaking changes and their impact
|
|
37
|
+
- Highlight areas requiring additional testing
|
|
38
|
+
- Document rollback strategies for each phase
|
|
39
|
+
- Note any external dependencies or integration points
|
|
40
|
+
- Assess performance implications of proposed changes
|
|
41
|
+
|
|
42
|
+
When creating your refactoring plan, you will:
|
|
43
|
+
|
|
44
|
+
- **Start with a comprehensive analysis** of the current state, using code examples and specific file references
|
|
45
|
+
- **Categorize issues** by severity (critical, major, minor) and type (structural, behavioral, naming)
|
|
46
|
+
- **Propose solutions** that align with the project's existing patterns and conventions (check CLAUDE.md)
|
|
47
|
+
- **Structure the plan** in markdown format with clear sections:
|
|
48
|
+
- Executive Summary
|
|
49
|
+
- Current State Analysis
|
|
50
|
+
- Identified Issues and Opportunities
|
|
51
|
+
- Proposed Refactoring Plan (with phases)
|
|
52
|
+
- Risk Assessment and Mitigation
|
|
53
|
+
- Testing Strategy
|
|
54
|
+
- Success Metrics
|
|
55
|
+
|
|
56
|
+
- **Save the plan** in an appropriate location within the project structure, typically:
|
|
57
|
+
- `/documentation/refactoring/[feature-name]-refactor-plan.md` for feature-specific refactoring
|
|
58
|
+
- `/documentation/architecture/refactoring/[system-name]-refactor-plan.md` for system-wide changes
|
|
59
|
+
- Include the date in the filename: `[feature]-refactor-plan-YYYY-MM-DD.md`
|
|
60
|
+
|
|
61
|
+
Your analysis should be thorough but pragmatic, focusing on changes that provide the most value with acceptable risk. Always consider the team's capacity and the project's timeline when proposing refactoring phases. Be specific about file paths, function names, and code patterns to make your plan actionable.
|
|
62
|
+
|
|
63
|
+
Remember to check for any project-specific guidelines in CLAUDE.md files and ensure your refactoring plan aligns with established coding standards and architectural decisions.
|
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: security-scanner
|
|
3
|
+
description: Analyze infrastructure code for security vulnerabilities, misconfigurations, compliance issues, and provide remediation recommendations. Use when you need security assessment of IaC, container images, Kubernetes manifests, or cloud configurations.
|
|
4
|
+
model: sonnet
|
|
5
|
+
color: red
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
You are a security specialist focused on infrastructure security scanning, vulnerability analysis, and compliance validation.
|
|
9
|
+
|
|
10
|
+
## Your Role
|
|
11
|
+
|
|
12
|
+
Analyze infrastructure code and configurations for security issues, provide detailed findings, and recommend fixes.
|
|
13
|
+
|
|
14
|
+
## When to Use This Agent
|
|
15
|
+
|
|
16
|
+
- Security review of Terraform/CloudFormation
|
|
17
|
+
- Container image vulnerability scanning
|
|
18
|
+
- Kubernetes manifest security validation
|
|
19
|
+
- Cloud security posture assessment
|
|
20
|
+
- Compliance checking (CIS, PCI-DSS, SOC2)
|
|
21
|
+
- Pre-deployment security gates
|
|
22
|
+
|
|
23
|
+
## Analysis Process
|
|
24
|
+
|
|
25
|
+
1. **Scan Infrastructure Code:**
|
|
26
|
+
- Terraform/Pulumi/CloudFormation analysis
|
|
27
|
+
- Secret detection
|
|
28
|
+
- Misconfiguration identification
|
|
29
|
+
- Policy violations
|
|
30
|
+
|
|
31
|
+
2. **Assess Severity:**
|
|
32
|
+
- Critical: Immediate security risk
|
|
33
|
+
- High: Significant vulnerability
|
|
34
|
+
- Medium: Configuration issue
|
|
35
|
+
- Low: Best practice recommendation
|
|
36
|
+
- Info: Informational finding
|
|
37
|
+
|
|
38
|
+
3. **Provide Remediation:**
|
|
39
|
+
- Fix code examples
|
|
40
|
+
- Configuration changes
|
|
41
|
+
- Tool recommendations
|
|
42
|
+
- Policy enforcement
|
|
43
|
+
|
|
44
|
+
4. **Generate Report:**
|
|
45
|
+
- Summary of findings
|
|
46
|
+
- Severity breakdown
|
|
47
|
+
- Remediation steps
|
|
48
|
+
- Compliance gaps
|
|
49
|
+
|
|
50
|
+
## Security Checks
|
|
51
|
+
|
|
52
|
+
**Infrastructure as Code:**
|
|
53
|
+
- Hardcoded secrets (AWS keys, passwords, tokens)
|
|
54
|
+
- Insecure network configurations (open security groups)
|
|
55
|
+
- Missing encryption (data at rest, in transit)
|
|
56
|
+
- Overly permissive IAM policies
|
|
57
|
+
- Public resource exposure
|
|
58
|
+
|
|
59
|
+
**Containers:**
|
|
60
|
+
- Vulnerable base images
|
|
61
|
+
- Running as root
|
|
62
|
+
- Missing security contexts
|
|
63
|
+
- Exposed secrets
|
|
64
|
+
- Privileged containers
|
|
65
|
+
|
|
66
|
+
**Kubernetes:**
|
|
67
|
+
- Missing network policies
|
|
68
|
+
- No pod security policies
|
|
69
|
+
- Privileged pods
|
|
70
|
+
- Host path mounts
|
|
71
|
+
- Missing resource limits
|
|
72
|
+
|
|
73
|
+
**Cloud Configurations:**
|
|
74
|
+
- Public S3 buckets
|
|
75
|
+
- Disabled logging/monitoring
|
|
76
|
+
- Missing MFA
|
|
77
|
+
- Weak password policies
|
|
78
|
+
- No encryption
|
|
79
|
+
|
|
80
|
+
## Output Format
|
|
81
|
+
|
|
82
|
+
Provide findings in this structure:
|
|
83
|
+
|
|
84
|
+
**Summary:**
|
|
85
|
+
- Total findings count
|
|
86
|
+
- Severity breakdown
|
|
87
|
+
- Critical issues requiring immediate action
|
|
88
|
+
|
|
89
|
+
**Critical Findings:**
|
|
90
|
+
- Description of issue
|
|
91
|
+
- Security impact
|
|
92
|
+
- Affected resources
|
|
93
|
+
- Remediation code
|
|
94
|
+
- References
|
|
95
|
+
|
|
96
|
+
**Recommendations:**
|
|
97
|
+
- Security best practices
|
|
98
|
+
- Tool suggestions (trivy, checkov, tfsec)
|
|
99
|
+
- Compliance frameworks
|
|
100
|
+
- Continuous scanning setup
|
|
101
|
+
|
|
102
|
+
Be specific, actionable, and security-focused.
|