claude-flow-novice 2.18.5 → 2.18.6
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/.cfn-initialized +1 -0
- package/.claude/FILE_MANIFEST.md +50 -0
- package/.claude/MANIFEST_INDEX.md +224 -0
- package/.claude/MANIFEST_README.md +308 -0
- package/.claude/TRIGGER_TASKS_MANIFEST.md +11 -0
- package/.claude/WORKING-SETUP.md +67 -0
- package/.claude/adaptive-context/cfn-v3-reflection.json +21 -0
- package/.claude/agent-principles/SPARSE_LANGUAGE_FINDINGS.md +991 -0
- package/.claude/agent-principles/agent-template.md +96 -0
- package/.claude/agent-principles/prompt-engineering.md +501 -0
- package/.claude/agents/AGENT_LIFECYCLE.md +532 -0
- package/.claude/agents/README-AGENT_LIFECYCLE.md +522 -0
- package/.claude/agents/README-VALIDATION.md +243 -0
- package/.claude/agents/SHARED_PROTOCOL.md +64 -0
- package/.claude/agents/cfn-dev-team/CLAUDE.md +1000 -0
- package/.claude/agents/cfn-dev-team/README.md +219 -0
- package/.claude/agents/cfn-dev-team/analysts/analyst.md +120 -0
- package/.claude/agents/cfn-dev-team/analysts/root-cause-analyst.md +264 -0
- package/.claude/agents/cfn-dev-team/architecture/api-designer-persona.md +152 -0
- package/.claude/agents/cfn-dev-team/architecture/base-template-generator.md +157 -0
- package/.claude/agents/cfn-dev-team/architecture/goal-planner.md +180 -0
- package/.claude/agents/cfn-dev-team/architecture/planner.md +139 -0
- package/.claude/agents/cfn-dev-team/architecture/system-architect.md +132 -0
- package/.claude/agents/cfn-dev-team/coordinators/README.md +42 -0
- package/.claude/agents/cfn-dev-team/coordinators/cfn-frontend-coordinator.md +893 -0
- package/.claude/agents/cfn-dev-team/coordinators/consensus-builder.md +480 -0
- package/.claude/agents/cfn-dev-team/coordinators/handoff-coordinator.md +747 -0
- package/.claude/agents/cfn-dev-team/coordinators/multi-sprint-coordinator.md +510 -0
- package/.claude/agents/cfn-dev-team/dev-ops/devops-engineer.md +157 -0
- package/.claude/agents/cfn-dev-team/dev-ops/docker-specialist.md +671 -0
- package/.claude/agents/cfn-dev-team/dev-ops/github-commit-agent.md +123 -0
- package/.claude/agents/cfn-dev-team/dev-ops/kubernetes-specialist.md +624 -0
- package/.claude/agents/cfn-dev-team/developers/README.md +69 -0
- package/.claude/agents/cfn-dev-team/developers/api-gateway-specialist.md +977 -0
- package/.claude/agents/cfn-dev-team/developers/backend-developer-cerebras.md +210 -0
- package/.claude/agents/cfn-dev-team/developers/backend-developer.md +206 -0
- package/.claude/agents/cfn-dev-team/developers/data/data-engineer.md +672 -0
- package/.claude/agents/cfn-dev-team/developers/database/database-architect.md +376 -0
- package/.claude/agents/cfn-dev-team/developers/database/supabase-specialist.md +746 -0
- package/.claude/agents/cfn-dev-team/developers/frontend/mobile-dev.md +247 -0
- package/.claude/agents/cfn-dev-team/developers/frontend/react-frontend-engineer.md +272 -0
- package/.claude/agents/cfn-dev-team/developers/frontend/typescript-specialist.md +396 -0
- package/.claude/agents/cfn-dev-team/developers/frontend/ui-designer.md +221 -0
- package/.claude/agents/cfn-dev-team/developers/graphql-specialist.md +707 -0
- package/.claude/agents/cfn-dev-team/developers/rust-developer.md +228 -0
- package/.claude/agents/cfn-dev-team/documentation/README-VALIDATION.md +245 -0
- package/.claude/agents/cfn-dev-team/documentation/agent-type-guidelines.md +476 -0
- package/.claude/agents/cfn-dev-team/documentation/api-documentation.md +111 -0
- package/.claude/agents/cfn-dev-team/documentation/pseudocode.md +144 -0
- package/.claude/agents/cfn-dev-team/documentation/specification-agent.md +152 -0
- package/.claude/agents/cfn-dev-team/product-owners/accessibility-advocate-persona.md +119 -0
- package/.claude/agents/cfn-dev-team/product-owners/cto-agent.md +138 -0
- package/.claude/agents/cfn-dev-team/product-owners/power-user-persona.md +151 -0
- package/.claude/agents/cfn-dev-team/product-owners/product-owner.md +483 -0
- package/.claude/agents/cfn-dev-team/reviewers/README.md +58 -0
- package/.claude/agents/cfn-dev-team/reviewers/code-reviewer.md +303 -0
- package/.claude/agents/cfn-dev-team/reviewers/quality/code-quality-validator.md +220 -0
- package/.claude/agents/cfn-dev-team/reviewers/quality/cyclomatic-complexity-reducer.md +334 -0
- package/.claude/agents/cfn-dev-team/reviewers/quality/perf-analyzer.md +257 -0
- package/.claude/agents/cfn-dev-team/reviewers/quality/performance-benchmarker.md +160 -0
- package/.claude/agents/cfn-dev-team/reviewers/quality/quality-metrics.md +386 -0
- package/.claude/agents/cfn-dev-team/testers/README.md +94 -0
- package/.claude/agents/cfn-dev-team/testers/api-testing-specialist.md +757 -0
- package/.claude/agents/cfn-dev-team/testers/chaos-engineering-specialist.md +944 -0
- package/.claude/agents/cfn-dev-team/testers/contract-tester.md +687 -0
- package/.claude/agents/cfn-dev-team/testers/e2e/playwright-tester.md +124 -0
- package/.claude/agents/cfn-dev-team/testers/integration-tester.md +785 -0
- package/.claude/agents/cfn-dev-team/testers/interaction-tester.md +188 -0
- package/.claude/agents/cfn-dev-team/testers/load-testing-specialist.md +505 -0
- package/.claude/agents/cfn-dev-team/testers/mutation-testing-specialist.md +643 -0
- package/.claude/agents/cfn-dev-team/testers/playwright-tester.md +253 -0
- package/.claude/agents/cfn-dev-team/testers/tester.md +224 -0
- package/.claude/agents/cfn-dev-team/testers/unit/tdd-london-unit-swarm.md +37 -0
- package/.claude/agents/cfn-dev-team/testers/validation/validation-production-validator.md +27 -0
- package/.claude/agents/cfn-dev-team/testing/test-validation-agent.md +280 -0
- package/.claude/agents/cfn-dev-team/utility/agent-builder.md +487 -0
- package/.claude/agents/cfn-dev-team/utility/context-curator.md +69 -0
- package/.claude/agents/cfn-dev-team/utility/epic-creator-v2.md +2 -0
- package/.claude/agents/cfn-dev-team/utility/epic-creator.md +7 -0
- package/.claude/agents/cfn-dev-team/utility/memory-leak-specialist.md +177 -0
- package/.claude/agents/cfn-dev-team/utility/researcher.md +116 -0
- package/.claude/agents/cfn-dev-team/utility/z-ai-specialist.md +218 -0
- package/.claude/agents/csuite/cto-agent.md +371 -0
- package/.claude/agents/custom/cfn-docker-expert.md +132 -0
- package/.claude/agents/custom/cfn-loops-cli-expert.md +9 -0
- package/.claude/agents/custom/cfn-redis-operations.md +538 -0
- package/.claude/agents/custom/cfn-system-expert.md +489 -0
- package/.claude/agents/custom/claude-code-expert.md +298 -0
- package/.claude/agents/custom/mdap-trigger-specialist.md +82 -0
- package/.claude/agents/custom/trigger-dev-expert.md +386 -0
- package/.claude/agents/docker-coordinators/cfn-docker-v3-coordinator.md +1101 -0
- package/.claude/agents/docker-ts-fixer.md +65 -0
- package/.claude/agents/project-only-agents/npm-package-specialist.md +334 -0
- package/.claude/agents/validate-agent.js +841 -0
- package/.claude/cfn-config/team-providers.json +102 -0
- package/.claude/cfn-extras/.gs-api-quota.json +16 -0
- package/.claude/cfn-extras/.gs-progress-state.json +22 -0
- package/.claude/cfn-extras/agents/cfn-coordinator-enterprise.md +1303 -0
- package/.claude/cfn-extras/agents/cfn-coordinator-mvp.md +942 -0
- package/.claude/cfn-extras/agents/cfn-coordinator-standard.md +1062 -0
- package/.claude/cfn-extras/agents/cfn-loop-coordinator.md +157 -0
- package/.claude/cfn-extras/agents/cfn-v3-coordinator.md +517 -0
- package/.claude/cfn-extras/agents/code-booster.md +67 -0
- package/.claude/cfn-extras/agents/coordinator.md +182 -0
- package/.claude/cfn-extras/agents/cost-savings-cfn-loop-coordinator.md +760 -0
- package/.claude/cfn-extras/agents/cost-savings-coordinator.md +173 -0
- package/.claude/cfn-extras/agents/deprecated-coordinators/adaptive-coordinator-enhanced.md +147 -0
- package/.claude/cfn-extras/agents/deprecated-coordinators/adaptive-coordinator.md +162 -0
- package/.claude/cfn-extras/agents/deprecated-coordinators/blocking-coordinator-example.md +729 -0
- package/.claude/cfn-extras/agents/deprecated-coordinators/byzantine-coordinator.md +100 -0
- package/.claude/cfn-extras/agents/deprecated-coordinators/cfn-coordinator-enterprise.md +323 -0
- package/.claude/cfn-extras/agents/deprecated-coordinators/cfn-coordinator-mvp.md +157 -0
- package/.claude/cfn-extras/agents/deprecated-coordinators/cfn-coordinator-standard.md +229 -0
- package/.claude/cfn-extras/agents/deprecated-coordinators/cfn-coordinator-unified.md +149 -0
- package/.claude/cfn-extras/agents/deprecated-coordinators/coordinator-hybrid.md +231 -0
- package/.claude/cfn-extras/agents/deprecated-coordinators/gossip-coordinator.md +165 -0
- package/.claude/cfn-extras/agents/deprecated-coordinators/hierarchical-coordinator.md +95 -0
- package/.claude/cfn-extras/agents/deprecated-coordinators/mesh-coordinator.md +132 -0
- package/.claude/cfn-extras/agents/deprecated-coordinators/task-coordinator.md +109 -0
- package/.claude/cfn-extras/agents/deprecated-coordinators/test-coordinator.md +142 -0
- package/.claude/cfn-extras/agents/docker-team/csuite/c-suite-template.md +529 -0
- package/.claude/cfn-extras/agents/docker-team/infrastructure/team-coordinator-template.md +467 -0
- package/.claude/cfn-extras/agents/docker-team/micro-sprint-planner.md +747 -0
- package/.claude/cfn-extras/agents/google-sheets/README.md +114 -0
- package/.claude/cfn-extras/agents/google-sheets/google-sheets-advanced-analytics-specialist.md +288 -0
- package/.claude/cfn-extras/agents/google-sheets/google-sheets-api-integrator.md +127 -0
- package/.claude/cfn-extras/agents/google-sheets/google-sheets-automation-scripting-specialist.md +195 -0
- package/.claude/cfn-extras/agents/google-sheets/google-sheets-business-validator.md +179 -0
- package/.claude/cfn-extras/agents/google-sheets/google-sheets-collaboration-security-specialist.md +240 -0
- package/.claude/cfn-extras/agents/google-sheets/google-sheets-coordinator.md +214 -0
- package/.claude/cfn-extras/agents/google-sheets/google-sheets-data-transformer.md +127 -0
- package/.claude/cfn-extras/agents/google-sheets/google-sheets-data-validation-quality-specialist.md +177 -0
- package/.claude/cfn-extras/agents/google-sheets/google-sheets-data-validator.md +119 -0
- package/.claude/cfn-extras/agents/google-sheets/google-sheets-data-visualization-specialist.md +135 -0
- package/.claude/cfn-extras/agents/google-sheets/google-sheets-design-layout-specialist.md +109 -0
- package/.claude/cfn-extras/agents/google-sheets/google-sheets-formula-engineer.md +127 -0
- package/.claude/cfn-extras/agents/google-sheets/google-sheets-formula-engineering-specialist.md +138 -0
- package/.claude/cfn-extras/agents/google-sheets/google-sheets-formula-validator.md +128 -0
- package/.claude/cfn-extras/agents/google-sheets/google-sheets-generalist.md +645 -0
- package/.claude/cfn-extras/agents/google-sheets/google-sheets-integration-api-specialist.md +258 -0
- package/.claude/cfn-extras/agents/google-sheets/google-sheets-performance-analyst.md +125 -0
- package/.claude/cfn-extras/agents/google-sheets/google-sheets-performance-optimization-specialist.md +211 -0
- package/.claude/cfn-extras/agents/google-sheets/google-sheets-schema-designer.md +130 -0
- package/.claude/cfn-extras/agents/google-sheets/google-sheets-template-architecture-specialist.md +259 -0
- package/.claude/cfn-extras/agents/google-sheets-specialist.md +614 -0
- package/.claude/cfn-extras/commands/cfn-docker/CFN_DOCKER_CLI.md +527 -0
- package/.claude/cfn-extras/commands/cfn-docker/CFN_DOCKER_LOOP.md +377 -0
- package/.claude/cfn-extras/commands/cfn-docker/CFN_DOCKER_NATIVE.md +295 -0
- package/.claude/cfn-extras/commands/cfn-docker/CFN_DOCKER_TASK.md +490 -0
- package/.claude/cfn-extras/commands/cfn-docker/cfn-docker-core-test-suite.md +326 -0
- package/.claude/cfn-extras/commands/deprecated/CFN_EXPERT_UPDATE.md +142 -0
- package/.claude/cfn-extras/commands/deprecated/README.md +55 -0
- package/.claude/cfn-extras/commands/deprecated/cfn-loop-epic.md +478 -0
- package/.claude/cfn-extras/commands/deprecated/cfn-loop-single.md +256 -0
- package/.claude/cfn-extras/commands/deprecated/cfn-loop-sprints.md +396 -0
- package/.claude/cfn-extras/commands/deprecated/context-curate.md +200 -0
- package/.claude/cfn-extras/commands/deprecated/context-inject.md +251 -0
- package/.claude/cfn-extras/commands/deprecated/context-query.md +210 -0
- package/.claude/cfn-extras/commands/deprecated/context-stats.md +269 -0
- package/.claude/cfn-extras/commands/deprecated/cost-savings-off.md +35 -0
- package/.claude/cfn-extras/commands/deprecated/cost-savings-on.md +35 -0
- package/.claude/cfn-extras/commands/deprecated/custom-routing-activate.md +55 -0
- package/.claude/cfn-extras/commands/deprecated/custom-routing-deactivate.md +46 -0
- package/.claude/cfn-extras/commands/deprecated/github-commit.md +289 -0
- package/.claude/cfn-extras/commands/deprecated/github.md +221 -0
- package/.claude/cfn-extras/commands/deprecated/hello-world-tests.md +381 -0
- package/.claude/cfn-extras/commands/deprecated/parse-epic.md +357 -0
- package/.claude/cfn-extras/commands/deprecated/run-tests.md +119 -0
- package/.claude/cfn-extras/commands/deprecated/suggest-improvements.md +95 -0
- package/.claude/cfn-extras/commands/google-sheets/google-sheets-loop.md +289 -0
- package/.claude/cfn-extras/docs/GOOGLE_SHEETS_CFN_LOOP.md +619 -0
- package/.claude/cfn-extras/skills/GOOGLE_SHEETS_SKILLS_README.md +453 -0
- package/.claude/cfn-extras/skills/advanced-features/cfn-agent-swap/SKILL.md +36 -0
- package/.claude/cfn-extras/skills/advanced-features/cfn-agent-swap/recommend-swap.sh +60 -0
- package/.claude/cfn-extras/skills/advanced-features/cfn-api-validation/test-endpoints.sh +54 -0
- package/.claude/cfn-extras/skills/advanced-features/cfn-context-pruner/SKILL.md +75 -0
- package/.claude/cfn-extras/skills/advanced-features/cfn-context-pruner/prune-context.sh +73 -0
- package/.claude/cfn-extras/skills/advanced-features/cfn-event-bus/README.md +299 -0
- package/.claude/cfn-extras/skills/advanced-features/cfn-event-bus/SKILL.md +412 -0
- package/.claude/cfn-extras/skills/advanced-features/cfn-event-bus/config.json +111 -0
- package/.claude/cfn-extras/skills/advanced-features/cfn-event-bus/eventbus-wrapper.cjs +69 -0
- package/.claude/cfn-extras/skills/advanced-features/cfn-event-bus/invoke-event-publish.sh +147 -0
- package/.claude/cfn-extras/skills/advanced-features/cfn-event-bus/invoke-event-subscribe.sh +171 -0
- package/.claude/cfn-extras/skills/advanced-features/cfn-event-bus/invoke-lifecycle-track.sh +201 -0
- package/.claude/cfn-extras/skills/advanced-features/cfn-event-bus/test-event-bus.sh +280 -0
- package/.claude/cfn-extras/skills/advanced-features/cfn-fleet-manager/README.md +74 -0
- package/.claude/cfn-extras/skills/advanced-features/cfn-fleet-manager/SKILL.md +412 -0
- package/.claude/cfn-extras/skills/advanced-features/cfn-fleet-manager/config.json +60 -0
- package/.claude/cfn-extras/skills/advanced-features/cfn-fleet-manager/invoke-fleet-allocate.sh +182 -0
- package/.claude/cfn-extras/skills/advanced-features/cfn-fleet-manager/invoke-fleet-balance.sh +239 -0
- package/.claude/cfn-extras/skills/advanced-features/cfn-fleet-manager/invoke-fleet-metrics.sh +193 -0
- package/.claude/cfn-extras/skills/advanced-features/cfn-fleet-manager/invoke-fleet-register.sh +124 -0
- package/.claude/cfn-extras/skills/advanced-features/cfn-fleet-manager/test-fleet-manager.sh +345 -0
- package/.claude/cfn-extras/skills/advanced-features/cfn-task-mode-safety/cli-coordination.sh +519 -0
- package/.claude/cfn-extras/skills/advanced-features/cfn-task-mode-safety/mode-detection.sh +326 -0
- package/.claude/cfn-extras/skills/advanced-features/cfn-task-mode-sanitize/task-mode-env-sanitizer.sh +267 -0
- package/.claude/cfn-extras/skills/deprecated/cfn-agent-discovery/SKILL.md +40 -0
- package/.claude/cfn-extras/skills/deprecated/cfn-agent-discovery/agents-registry-clean.json +0 -0
- package/.claude/cfn-extras/skills/deprecated/cfn-agent-discovery/agents-registry-fixed.json +19 -0
- package/.claude/cfn-extras/skills/deprecated/cfn-agent-discovery/agents-registry.json +719 -0
- package/.claude/cfn-extras/skills/deprecated/cfn-agent-discovery/discover-agents.py +184 -0
- package/.claude/cfn-extras/skills/deprecated/cfn-agent-discovery/discover-agents.sh +87 -0
- package/.claude/cfn-extras/skills/deprecated/cfn-agent-discovery/invoke-registry.sh +11 -0
- package/.claude/cfn-extras/skills/deprecated/cfn-agent-discovery/temp_script.py +0 -0
- package/.claude/cfn-extras/skills/deprecated/cfn-agent-selector/SKILL.md +91 -0
- package/.claude/cfn-extras/skills/deprecated/cfn-agent-selector/select-agents.sh +112 -0
- package/.claude/cfn-extras/skills/deprecated/cfn-cli-setup/validate-cli-environment.sh +192 -0
- package/.claude/cfn-extras/skills/deprecated/cfn-simplified-agent-lifecycle/DESIGN.md +98 -0
- package/.claude/cfn-extras/skills/google-sheets-api-coordinator/SKILL.md +272 -0
- package/.claude/cfn-extras/skills/google-sheets-api-coordinator/api-call.sh +254 -0
- package/.claude/cfn-extras/skills/google-sheets-api-coordinator/test.sh +174 -0
- package/.claude/cfn-extras/skills/google-sheets-api-coordinator/validate.sh +98 -0
- package/.claude/cfn-extras/skills/google-sheets-decomposition/SKILL.md +269 -0
- package/.claude/cfn-extras/skills/google-sheets-decomposition/decompose.sh +313 -0
- package/.claude/cfn-extras/skills/google-sheets-formula-builder/SKILL.md +237 -0
- package/.claude/cfn-extras/skills/google-sheets-formula-builder/build-formula.sh +220 -0
- package/.claude/cfn-extras/skills/google-sheets-formula-builder/test.sh +172 -0
- package/.claude/cfn-extras/skills/google-sheets-formula-builder/validate.sh +98 -0
- package/.claude/cfn-extras/skills/google-sheets-progress/SKILL.md +287 -0
- package/.claude/cfn-extras/skills/google-sheets-progress/test.sh +385 -0
- package/.claude/cfn-extras/skills/google-sheets-progress/track-progress.sh +516 -0
- package/.claude/cfn-extras/skills/google-sheets-progress/validate.sh +119 -0
- package/.claude/cfn-extras/skills/google-sheets-sprint-order/SKILL.md +277 -0
- package/.claude/cfn-extras/skills/google-sheets-sprint-order/order-sprints.sh +233 -0
- package/.claude/cfn-extras/skills/google-sheets-validation/SKILL.md +352 -0
- package/.claude/cfn-extras/skills/google-sheets-validation/test.sh +355 -0
- package/.claude/cfn-extras/skills/google-sheets-validation/validate-state.sh +374 -0
- package/.claude/cfn-extras/skills/google-sheets-validation/validate.sh +128 -0
- package/.claude/cfn-extras/skills/marketing/cfn-marketing-ad-campaigns/SKILL.md +392 -0
- package/.claude/cfn-extras/skills/marketing/cfn-marketing-ad-campaigns/operations/create-campaign.sh +231 -0
- package/.claude/cfn-extras/skills/marketing/cfn-marketing-ad-campaigns/operations/get-campaign-performance.sh +190 -0
- package/.claude/cfn-extras/skills/marketing/cfn-marketing-ad-campaigns/operations/pause-campaign.sh +142 -0
- package/.claude/cfn-extras/skills/marketing/cfn-marketing-ad-campaigns/operations/set-budget.sh +181 -0
- package/.claude/cfn-extras/skills/marketing/cfn-marketing-ad-campaigns/operations/update-bid-strategy.sh +133 -0
- package/.claude/cfn-extras/skills/marketing/cfn-marketing-analytics-data/SKILL.md +124 -0
- package/.claude/cfn-extras/skills/marketing/cfn-marketing-analytics-data/operations/get-ad-performance.sh +105 -0
- package/.claude/cfn-extras/skills/marketing/cfn-marketing-analytics-data/operations/get-conversion-funnel.sh +102 -0
- package/.claude/cfn-extras/skills/marketing/cfn-marketing-analytics-data/operations/get-email-performance.sh +105 -0
- package/.claude/cfn-extras/skills/marketing/cfn-marketing-analytics-data/operations/get-social-engagement.sh +105 -0
- package/.claude/cfn-extras/skills/marketing/cfn-marketing-analytics-data/operations/get-website-traffic.sh +107 -0
- package/.claude/cfn-extras/skills/marketing/cfn-marketing-chatbot-conversations/SKILL.md +340 -0
- package/.claude/cfn-extras/skills/marketing/cfn-marketing-chatbot-conversations/operations/get-conversation-history.sh +121 -0
- package/.claude/cfn-extras/skills/marketing/cfn-marketing-chatbot-conversations/operations/qualify-lead.sh +156 -0
- package/.claude/cfn-extras/skills/marketing/cfn-marketing-chatbot-conversations/operations/schedule-demo.sh +181 -0
- package/.claude/cfn-extras/skills/marketing/cfn-marketing-chatbot-conversations/operations/send-message.sh +137 -0
- package/.claude/cfn-extras/skills/marketing/cfn-marketing-chatbot-conversations/operations/transfer-to-human.sh +179 -0
- package/.claude/cfn-extras/skills/marketing/cfn-marketing-competitive-intel/SKILL.md +350 -0
- package/.claude/cfn-extras/skills/marketing/cfn-marketing-competitive-intel/operations/get-backlink-profile.sh +154 -0
- package/.claude/cfn-extras/skills/marketing/cfn-marketing-competitive-intel/operations/get-keyword-rankings.sh +173 -0
- package/.claude/cfn-extras/skills/marketing/cfn-marketing-competitive-intel/operations/get-trending-topics.sh +147 -0
- package/.claude/cfn-extras/skills/marketing/cfn-marketing-competitive-intel/operations/monitor-competitor.sh +146 -0
- package/.claude/cfn-extras/skills/marketing/cfn-marketing-competitive-intel/operations/search-brand-mentions.sh +167 -0
- package/.claude/cfn-extras/skills/marketing/cfn-marketing-crm-contacts/SKILL.md +116 -0
- package/.claude/cfn-extras/skills/marketing/cfn-marketing-crm-contacts/operations/add-to-segment.sh +78 -0
- package/.claude/cfn-extras/skills/marketing/cfn-marketing-crm-contacts/operations/create-contact.sh +113 -0
- package/.claude/cfn-extras/skills/marketing/cfn-marketing-crm-contacts/operations/get-contact.sh +86 -0
- package/.claude/cfn-extras/skills/marketing/cfn-marketing-crm-contacts/operations/remove-from-segment.sh +78 -0
- package/.claude/cfn-extras/skills/marketing/cfn-marketing-crm-contacts/operations/update-contact.sh +120 -0
- package/.claude/cfn-extras/skills/marketing/cfn-marketing-email-campaigns/SKILL.md +106 -0
- package/.claude/cfn-extras/skills/marketing/cfn-marketing-email-campaigns/operations/create-campaign.sh +123 -0
- package/.claude/cfn-extras/skills/marketing/cfn-marketing-email-campaigns/operations/get-campaign-stats.sh +66 -0
- package/.claude/cfn-extras/skills/marketing/cfn-marketing-email-campaigns/operations/list-templates.sh +68 -0
- package/.claude/cfn-extras/skills/marketing/cfn-marketing-email-campaigns/operations/schedule-campaign.sh +85 -0
- package/.claude/cfn-extras/skills/marketing/cfn-marketing-email-campaigns/operations/send-test-email.sh +81 -0
- package/.claude/cfn-extras/skills/marketing/cfn-marketing-landing-pages/SKILL.md +366 -0
- package/.claude/cfn-extras/skills/marketing/cfn-marketing-landing-pages/operations/create-ab-test.sh +231 -0
- package/.claude/cfn-extras/skills/marketing/cfn-marketing-landing-pages/operations/create-landing-page.sh +190 -0
- package/.claude/cfn-extras/skills/marketing/cfn-marketing-landing-pages/operations/get-page-performance.sh +137 -0
- package/.claude/cfn-extras/skills/marketing/cfn-marketing-landing-pages/operations/publish-page.sh +120 -0
- package/.claude/cfn-extras/skills/marketing/cfn-marketing-landing-pages/operations/unpublish-page.sh +108 -0
- package/.claude/cfn-extras/skills/marketing/cfn-marketing-media-monitoring/SKILL.md +202 -0
- package/.claude/cfn-extras/skills/marketing/cfn-marketing-media-monitoring/operations/create-crisis-alert.sh +104 -0
- package/.claude/cfn-extras/skills/marketing/cfn-marketing-media-monitoring/operations/export-report.sh +92 -0
- package/.claude/cfn-extras/skills/marketing/cfn-marketing-media-monitoring/operations/get-sentiment-analysis.sh +85 -0
- package/.claude/cfn-extras/skills/marketing/cfn-marketing-media-monitoring/operations/search-mentions.sh +86 -0
- package/.claude/cfn-extras/skills/marketing/cfn-marketing-media-outreach/SKILL.md +168 -0
- package/.claude/cfn-extras/skills/marketing/cfn-marketing-media-outreach/operations/search-journalists.sh +74 -0
- package/.claude/cfn-extras/skills/marketing/cfn-marketing-media-outreach/operations/send-pitch.sh +80 -0
- package/.claude/cfn-extras/skills/marketing/cfn-marketing-media-outreach/operations/submit-haro-response.sh +88 -0
- package/.claude/cfn-extras/skills/marketing/cfn-marketing-media-outreach/operations/track-pitch-engagement.sh +66 -0
- package/.claude/cfn-extras/skills/marketing/cfn-marketing-press-distribution/SKILL.md +159 -0
- package/.claude/cfn-extras/skills/marketing/cfn-marketing-press-distribution/operations/distribute-press-release.sh +94 -0
- package/.claude/cfn-extras/skills/marketing/cfn-marketing-press-distribution/operations/get-distribution-status.sh +59 -0
- package/.claude/cfn-extras/skills/marketing/cfn-marketing-press-distribution/operations/get-pickup-metrics.sh +72 -0
- package/.claude/cfn-extras/skills/marketing/cfn-marketing-press-distribution/operations/list-templates.sh +53 -0
- package/.claude/cfn-extras/skills/marketing/cfn-marketing-sms-campaigns/SKILL.md +429 -0
- package/.claude/cfn-extras/skills/marketing/cfn-marketing-sms-campaigns/operations/create-campaign.sh +183 -0
- package/.claude/cfn-extras/skills/marketing/cfn-marketing-sms-campaigns/operations/get-delivery-status.sh +139 -0
- package/.claude/cfn-extras/skills/marketing/cfn-marketing-sms-campaigns/operations/opt-out.sh +150 -0
- package/.claude/cfn-extras/skills/marketing/cfn-marketing-sms-campaigns/operations/schedule-campaign.sh +187 -0
- package/.claude/cfn-extras/skills/marketing/cfn-marketing-sms-campaigns/operations/send-sms.sh +181 -0
- package/.claude/cfn-extras/skills/marketing/cfn-marketing-social-publishing/SKILL.md +108 -0
- package/.claude/cfn-extras/skills/marketing/cfn-marketing-social-publishing/operations/create-post.sh +104 -0
- package/.claude/cfn-extras/skills/marketing/cfn-marketing-social-publishing/operations/delete-post.sh +76 -0
- package/.claude/cfn-extras/skills/marketing/cfn-marketing-social-publishing/operations/get-post-stats.sh +66 -0
- package/.claude/cfn-extras/skills/marketing/cfn-marketing-social-publishing/operations/schedule-post.sh +85 -0
- package/.claude/cfn-extras/skills/marketing/cfn-marketing-social-publishing/operations/upload-media.sh +88 -0
- package/.claude/cfn-extras/skills/ui-portal/cfn-web-portal/DESIGN.md +117 -0
- package/.claude/cfn-extras/skills/ui-portal/cfn-web-portal/SKILL.md +679 -0
- package/.claude/cfn-extras/skills/ui-portal/cfn-web-portal/invoke-portal-agents.sh +129 -0
- package/.claude/cfn-extras/skills/ui-portal/cfn-web-portal/invoke-portal-dashboard.sh +85 -0
- package/.claude/cfn-extras/skills/ui-portal/cfn-web-portal/invoke-portal-events.sh +125 -0
- package/.claude/cfn-extras/skills/ui-portal/cfn-web-portal/invoke-portal-metrics.sh +112 -0
- package/.claude/cfn-extras/skills/ui-portal/cfn-web-portal/invoke-portal-start.sh +135 -0
- package/.claude/cfn-extras/skills/ui-portal/cfn-web-portal/invoke-portal-stop.sh +121 -0
- package/.claude/cfn-extras/skills/ui-portal/cfn-web-portal/test-web-portal-skill.sh +51 -0
- package/.claude/cfn-extras/skills/ui-portal/cfn-web-portal/validate-deployment.sh +85 -0
- package/.claude/cfn-extras/skills/utility/cfn-environment-sanitization/SKILL.md +200 -0
- package/.claude/cfn-extras/skills/utility/cfn-environment-sanitization/sanitize-environment.sh +244 -0
- package/.claude/cfn-extras/skills/utility/cfn-process-instrumentation/SKILL.md +279 -0
- package/.claude/cfn-extras/skills/utility/cfn-process-instrumentation/instrument-process.sh +327 -0
- package/.claude/cfn-extras/workflows/marketing-ad-campaigns.json +125 -0
- package/.claude/cfn-extras/workflows/marketing-analytics-data.json +93 -0
- package/.claude/cfn-extras/workflows/marketing-chatbot-conversations.json +89 -0
- package/.claude/cfn-extras/workflows/marketing-competitive-intel.json +140 -0
- package/.claude/cfn-extras/workflows/marketing-crm-contacts.json +86 -0
- package/.claude/cfn-extras/workflows/marketing-email-campaigns.json +86 -0
- package/.claude/cfn-extras/workflows/marketing-landing-pages.json +137 -0
- package/.claude/cfn-extras/workflows/marketing-media-outreach.json +211 -0
- package/.claude/cfn-extras/workflows/marketing-press-distribution.json +224 -0
- package/.claude/cfn-extras/workflows/marketing-sms-campaigns.json +81 -0
- package/.claude/cfn-extras/workflows/marketing-social-publishing.json +86 -0
- package/.claude/commands/README.md +204 -0
- package/.claude/commands/cfn-loop/CFN_LOOP_FRONTEND.md +741 -0
- package/.claude/commands/cfn-loop/cfn-loop-cli.md +273 -0
- package/.claude/commands/cfn-loop/cfn-loop-document.md +499 -0
- package/.claude/commands/cfn-loop/cfn-loop-task.md +490 -0
- package/.claude/commands/cfn-loop/cfn-loop-trigger.md +56 -0
- package/.claude/commands/cfn-loop/cfn-mode.md +20 -0
- package/.claude/commands/cfn-loop/cfn-optimize-agents.md +103 -0
- package/.claude/commands/cfn-loop/list-agents-rebuild.md +205 -0
- package/.claude/commands/cfn-ruvector/codebase-reindex.md +37 -0
- package/.claude/commands/cfn-ruvector/codebase-search.md +38 -0
- package/.claude/commands/cfn-ruvector/detect-stale-docs.md +41 -0
- package/.claude/commands/cfn-test-framework +5 -0
- package/.claude/commands/check-errors.md +34 -0
- package/.claude/commands/cost-routing/switch-api.md +109 -0
- package/.claude/commands/detect-stale-docs.md +26 -0
- package/.claude/commands/epic-creator-v2.md +10 -0
- package/.claude/commands/ruvector-search.md +46 -0
- package/.claude/commands/sparc.md +46 -0
- package/.claude/commands/update-search-index.md +31 -0
- package/.claude/commands/workflow.md +295 -0
- package/.claude/commands/write-plan.md +275 -0
- package/.claude/coordinator-feedback-pattern.md +326 -0
- package/.claude/coordinator-patterns.md +126 -0
- package/.claude/core/agent-manager.js +80 -0
- package/.claude/core/agent-manager.js.map +1 -0
- package/.claude/core/config.js +1241 -0
- package/.claude/core/config.js.map +1 -0
- package/.claude/core/event-bus.js +136 -0
- package/.claude/core/event-bus.js.map +1 -0
- package/.claude/core/index.js +6 -0
- package/.claude/core/index.js.map +1 -0
- package/.claude/core/json-persistence.js +112 -0
- package/.claude/core/json-persistence.js.map +1 -0
- package/.claude/core/logger.js +245 -0
- package/.claude/core/logger.js.map +1 -0
- package/.claude/core/orchestrator-fixed.js +236 -0
- package/.claude/core/orchestrator-fixed.js.map +1 -0
- package/.claude/core/orchestrator.js +1136 -0
- package/.claude/core/orchestrator.js.map +1 -0
- package/.claude/core/persistence.js +185 -0
- package/.claude/core/persistence.js.map +1 -0
- package/.claude/core/project-manager.js +80 -0
- package/.claude/core/project-manager.js.map +1 -0
- package/.claude/core/slash-command.js +24 -0
- package/.claude/core/version.js +35 -0
- package/.claude/core/version.js.map +1 -0
- package/.claude/helpers/checkpoint-manager.sh +251 -0
- package/.claude/helpers/github-safe.js +106 -0
- package/.claude/helpers/github-setup.sh +28 -0
- package/.claude/helpers/quick-start.sh +19 -0
- package/.claude/helpers/setup-mcp.sh +18 -0
- package/.claude/helpers/standard-checkpoint-hooks.sh +179 -0
- package/.claude/hooks/GIT-HOOKS-USAGE-EXAMPLES.md +116 -0
- package/.claude/hooks/README-GIT-HOOKS.md +443 -0
- package/.claude/hooks/SKILL.md +518 -0
- package/.claude/hooks/SKILL.md.backup +471 -0
- package/.claude/hooks/cfn-BACKUP_USAGE.md +243 -0
- package/.claude/hooks/cfn-invoke-post-edit-ts.sh +100 -0
- package/.claude/hooks/cfn-invoke-post-edit.sh +135 -0
- package/.claude/hooks/cfn-invoke-pre-edit-ts.sh +116 -0
- package/.claude/hooks/cfn-invoke-pre-edit.sh +110 -0
- package/.claude/hooks/cfn-invoke-security-validation.sh +70 -0
- package/.claude/hooks/cfn-lint-sql-injection.sh +61 -0
- package/.claude/hooks/cfn-post-edit-cfn-retrospective.sh +110 -0
- package/.claude/hooks/cfn-post-edit.config.json +51 -0
- package/.claude/hooks/cfn-post-edit.sh +21 -0
- package/.claude/hooks/cfn-post-execution/memory-cleanup.sh +20 -0
- package/.claude/hooks/cfn-pre-edit-backup.sh +71 -0
- package/.claude/hooks/cfn-pre-edit-security-warning.sh +40 -0
- package/.claude/hooks/cfn-pre-execution/SESSION_START_README.md +87 -0
- package/.claude/hooks/cfn-pre-execution/TEST_SESSION_START.md +128 -0
- package/.claude/hooks/cfn-pre-execution/memory-check.sh +20 -0
- package/.claude/hooks/cfn-pre-execution/session-start-context.sh +111 -0
- package/.claude/hooks/cfn-restore-from-backup.sh +37 -0
- package/.claude/hooks/detect-hardcoded-credentials.sh +212 -0
- package/.claude/hooks/install-git-hooks.sh +243 -0
- package/.claude/hooks/post-commit-codebase-index +75 -0
- package/.claude/hooks/subagent-start.sh +98 -0
- package/.claude/hooks/subagent-stop.sh +93 -0
- package/.claude/hooks/validators/credential-scanner.sh +172 -0
- package/.claude/hooks.json +33 -0
- package/.claude/logs/sprint1-hybrid-routing-v2-decision.json +18 -0
- package/.claude/prompts/cfn-loop-context.md +115 -0
- package/.claude/prompts/loop-specific/loop2.md +50 -0
- package/.claude/prompts/loop-specific/loop3.md +43 -0
- package/.claude/prompts/loop-specific/loop4.md +54 -0
- package/.claude/root-claude-distribute/CFN-CLAUDE.md +513 -0
- package/.claude/settings.json +172 -0
- package/.claude/settings.local.json +41 -0
- package/.claude/settings.playwright.json +198 -0
- package/.claude/skills/.cfn/task-configs/task-test-123.json +48 -0
- package/.claude/skills/SKILL_TEMPLATE.md +774 -0
- package/.claude/skills/bulk-add-ruvector-instructions.sh +89 -0
- package/.claude/skills/cfn-agent-lifecycle/SKILL.md +290 -0
- package/.claude/skills/cfn-agent-lifecycle/cli/lifecycle-hook.sh +5 -0
- package/.claude/skills/cfn-agent-lifecycle/cli/select-agents.sh +5 -0
- package/.claude/skills/cfn-agent-lifecycle/cli/spawn-agent.sh +5 -0
- package/.claude/skills/cfn-agent-lifecycle/execute.sh +355 -0
- package/.claude/skills/cfn-agent-lifecycle/lib/audit/execute-lifecycle-hook.sh +544 -0
- package/.claude/skills/cfn-agent-lifecycle/lib/audit/simple-audit.sh +58 -0
- package/.claude/skills/cfn-agent-lifecycle/lib/output/README.md +359 -0
- package/.claude/skills/cfn-agent-lifecycle/lib/selection/SKILL.md +29 -0
- package/.claude/skills/cfn-agent-lifecycle/lib/selection/agent-mappings.json +142 -0
- package/.claude/skills/cfn-agent-lifecycle/lib/selection/select-agents-with-fallback.sh +195 -0
- package/.claude/skills/cfn-agent-lifecycle/lib/selection/select-agents.sh +94 -0
- package/.claude/skills/cfn-agent-lifecycle/lib/selection/src/agent-selector.ts +350 -0
- package/.claude/skills/cfn-agent-lifecycle/lib/selection/src/cli.ts +74 -0
- package/.claude/skills/cfn-agent-lifecycle/lib/selection/task-classifier.sh +93 -0
- package/.claude/skills/cfn-agent-lifecycle/lib/spawning/SKILL.md +38 -0
- package/.claude/skills/cfn-agent-lifecycle/lib/spawning/check-dependencies.sh +52 -0
- package/.claude/skills/cfn-agent-lifecycle/lib/spawning/execute-agent.sh +126 -0
- package/.claude/skills/cfn-agent-lifecycle/lib/spawning/get-agent-provider-env.sh +149 -0
- package/.claude/skills/cfn-agent-lifecycle/lib/spawning/parse-agent-provider.sh +81 -0
- package/.claude/skills/cfn-agent-lifecycle/lib/spawning/spawn-agent-wrapper.sh +63 -0
- package/.claude/skills/cfn-agent-lifecycle/lib/spawning/spawn-agent.sh +308 -0
- package/.claude/skills/cfn-agent-lifecycle/lib/spawning/spawn-templates.sh +635 -0
- package/.claude/skills/cfn-agent-lifecycle/lib/spawning/spawn-worker.sh +198 -0
- package/.claude/skills/cfn-agent-tooling/SKILL.md +52 -0
- package/.claude/skills/cfn-agent-tooling/lib/generator/SKILL.md +440 -0
- package/.claude/skills/cfn-agent-tooling/lib/generator/generate-agent.sh +405 -0
- package/.claude/skills/cfn-agent-tooling/lib/linter/SKILL.md +589 -0
- package/.claude/skills/cfn-agent-tooling/lib/linter/lint-agents.sh +271 -0
- package/.claude/skills/cfn-cerebras-code-generator/SKILL.md +53 -0
- package/.claude/skills/cfn-cerebras-code-generator/context-analyzer.sh +96 -0
- package/.claude/skills/cfn-cerebras-code-generator/generate-code.sh +205 -0
- package/.claude/skills/cfn-cerebras-coordinator/SKILL.md +103 -0
- package/.claude/skills/cfn-cerebras-coordinator/TEST_RESULTS.md +98 -0
- package/.claude/skills/cfn-cerebras-coordinator/coordinate-generation.sh +381 -0
- package/.claude/skills/cfn-cerebras-coordinator/example-fix-scenario.md +254 -0
- package/.claude/skills/cfn-cerebras-coordinator/example-workflow.md +142 -0
- package/.claude/skills/cfn-cerebras-coordinator/feedback-logger.sh +254 -0
- package/.claude/skills/cfn-cerebras-coordinator/fix-existing-code-v2.sh +443 -0
- package/.claude/skills/cfn-cerebras-coordinator/fix-existing-code.sh +519 -0
- package/.claude/skills/cfn-cerebras-coordinator/pattern-examples.md +317 -0
- package/.claude/skills/cfn-cerebras-coordinator/query-patterns.sh +182 -0
- package/.claude/skills/cfn-cerebras-coordinator/tdd-coordinator.sh +638 -0
- package/.claude/skills/cfn-cerebras-coordinator/test-runner.sh +335 -0
- package/.claude/skills/cfn-cerebras-mcp/SKILL.md +64 -0
- package/.claude/skills/cfn-compilation-error-fixer/HANDOFF.md +29 -0
- package/.claude/skills/cfn-compilation-error-fixer/README.md +202 -0
- package/.claude/skills/cfn-compilation-error-fixer/SKILL.md +426 -0
- package/.claude/skills/cfn-compilation-error-fixer/bin/fix-errors.sh +75 -0
- package/.claude/skills/cfn-compilation-error-fixer/index.js +81 -0
- package/.claude/skills/cfn-compilation-error-fixer/install.sh +60 -0
- package/.claude/skills/cfn-compilation-error-fixer/lib/fixer/README-TypeScript.md +164 -0
- package/.claude/skills/cfn-compilation-error-fixer/lib/fixer/cerebras-gated-fixer-v2.ts +1475 -0
- package/.claude/skills/cfn-compilation-error-fixer/lib/fixer/cerebras-gated-fixer-v2.ts.bak +1475 -0
- package/.claude/skills/cfn-compilation-error-fixer/lib/fixer/cerebras-sdk.d.ts +30 -0
- package/.claude/skills/cfn-compilation-error-fixer/lib/fixer/cerebras-wrapper.ts +93 -0
- package/.claude/skills/cfn-compilation-error-fixer/lib/fixer/package.json +30 -0
- package/.claude/skills/cfn-compilation-error-fixer/lib/fixer/package.json.bak +23 -0
- package/.claude/skills/cfn-compilation-error-fixer/lib/fixer/typescript-gated-fixer-v2.ts +977 -0
- package/.claude/skills/cfn-compilation-error-fixer/lib/gates/typescript-gates.ts +704 -0
- package/.claude/skills/cfn-compilation-error-fixer/package.json +47 -0
- package/.claude/skills/cfn-compilation-error-fixer/test-fixer-logic.sh +96 -0
- package/.claude/skills/cfn-compilation-error-fixer/test-installation.sh +97 -0
- package/.claude/skills/cfn-compilation-error-fixer/test-rust-fixer-validation.sh +54 -0
- package/.claude/skills/cfn-compilation-error-fixer/test-rust-fixer.sh +380 -0
- package/.claude/skills/cfn-compilation-error-fixer/test-typescript-fixer.sh +278 -0
- package/.claude/skills/cfn-compilation-error-fixer/validate-setup.md +70 -0
- package/.claude/skills/cfn-config/SKILL.md +52 -0
- package/.claude/skills/cfn-config/lib/management/README.md +42 -0
- package/.claude/skills/cfn-config/lib/management/SKILL.md +34 -0
- package/.claude/skills/cfn-config/lib/management/check-dependencies.sh +56 -0
- package/.claude/skills/cfn-config/lib/management/config.json +32 -0
- package/.claude/skills/cfn-config/lib/management/manage-config.sh +115 -0
- package/.claude/skills/cfn-config/lib/sanitization/sanitize-environment.sh +48 -0
- package/.claude/skills/cfn-conversation-sync/README.md +133 -0
- package/.claude/skills/cfn-conversation-sync/SKILL.md +82 -0
- package/.claude/skills/cfn-conversation-sync/sync-conversations.sh +229 -0
- package/.claude/skills/cfn-dependency-management/SKILL.md +118 -0
- package/.claude/skills/cfn-dependency-management/cfn-dependency-management.sh +18 -0
- package/.claude/skills/cfn-dependency-management/execute.sh +306 -0
- package/.claude/skills/cfn-dependency-management/lib/extractor/SKILL.md +35 -0
- package/.claude/skills/cfn-dependency-management/lib/extractor/extract-dependencies.sh +66 -0
- package/.claude/skills/cfn-dependency-management/lib/ingestion/README.md +101 -0
- package/.claude/skills/cfn-dependency-management/lib/ingestion/SKILL.md +397 -0
- package/.claude/skills/cfn-dependency-management/lib/ingestion/build.sh +23 -0
- package/.claude/skills/cfn-dependency-management/lib/ingestion/ingest-dependencies.sh +295 -0
- package/.claude/skills/cfn-dependency-management/lib/ingestion/ingest.sh +237 -0
- package/.claude/skills/cfn-dependency-management/lib/ingestion/manifests/cli-mode-dependencies.txt +219 -0
- package/.claude/skills/cfn-dependency-management/lib/ingestion/manifests/shared-dependencies.txt +57 -0
- package/.claude/skills/cfn-dependency-management/lib/ingestion/manifests/trigger-dev-dependencies.txt +82 -0
- package/.claude/skills/cfn-dependency-management/lib/ingestion/manifests/trigger-mode-dependencies.txt +80 -0
- package/.claude/skills/cfn-dependency-management/lib/ingestion/src/ingest-dependencies.ts +563 -0
- package/.claude/skills/cfn-deployment-lifecycle/SKILL.md +53 -0
- package/.claude/skills/cfn-deployment-lifecycle/lib/deployment/SKILL.md +293 -0
- package/.claude/skills/cfn-deployment-lifecycle/lib/deployment/execute.sh +21 -0
- package/.claude/skills/cfn-deployment-lifecycle/lib/promotion/SKILL.md +305 -0
- package/.claude/skills/cfn-docker-runtime/SKILL.md +84 -0
- package/.claude/skills/cfn-docker-runtime/execute.sh +386 -0
- package/.claude/skills/cfn-docker-runtime/lib/coordination/README.md +349 -0
- package/.claude/skills/cfn-docker-runtime/lib/coordination/docker-helpers.sh +433 -0
- package/.claude/skills/cfn-docker-runtime/lib/coordination/package.json +38 -0
- package/.claude/skills/cfn-docker-runtime/lib/coordination/src/agent-container.ts +471 -0
- package/.claude/skills/cfn-docker-runtime/lib/coordination/src/docker-client.ts +483 -0
- package/.claude/skills/cfn-docker-runtime/lib/coordination/src/health-checker.ts +418 -0
- package/.claude/skills/cfn-docker-runtime/lib/coordination/src/index.ts +45 -0
- package/.claude/skills/cfn-docker-runtime/lib/coordination/src/network-manager.ts +377 -0
- package/.claude/skills/cfn-docker-runtime/lib/coordination/src/types.ts +412 -0
- package/.claude/skills/cfn-docker-runtime/lib/coordination/src/volume-manager.ts +389 -0
- package/.claude/skills/cfn-docker-runtime/lib/logging/INTEGRATION.md +268 -0
- package/.claude/skills/cfn-docker-runtime/lib/logging/SAMPLE_OUTPUTS.md +237 -0
- package/.claude/skills/cfn-docker-runtime/lib/logging/SKILL.md +442 -0
- package/.claude/skills/cfn-docker-runtime/lib/logging/capture-container-logs.sh +120 -0
- package/.claude/skills/cfn-docker-runtime/lib/logging/enable-logging.sh +430 -0
- package/.claude/skills/cfn-docker-runtime/lib/logging/init-hybrid-logging.sh +210 -0
- package/.claude/skills/cfn-docker-runtime/lib/logging/queries/analytics-summary.sh +87 -0
- package/.claude/skills/cfn-docker-runtime/lib/logging/queries/query-agent-timeline.sh +51 -0
- package/.claude/skills/cfn-docker-runtime/lib/logging/queries/query-consensus-history.sh +56 -0
- package/.claude/skills/cfn-docker-runtime/lib/logging/queries/query-coordination-timeline.sh +39 -0
- package/.claude/skills/cfn-docker-runtime/lib/logging/queries/query-failed-containers.sh +40 -0
- package/.claude/skills/cfn-docker-runtime/lib/logging/queries/query-gate-checks.sh +39 -0
- package/.claude/skills/cfn-docker-runtime/lib/logging/schema.sql +111 -0
- package/.claude/skills/cfn-docker-runtime/lib/logging/sqlite-helpers.sh +240 -0
- package/.claude/skills/cfn-docker-runtime/lib/logging/test-hybrid-logging.sh +331 -0
- package/.claude/skills/cfn-docker-runtime/lib/mcp/SKILL.md +555 -0
- package/.claude/skills/cfn-docker-runtime/lib/mcp/skill-mcp-selector.js +472 -0
- package/.claude/skills/cfn-docker-runtime/lib/orchestration/SKILL.md +449 -0
- package/.claude/skills/cfn-docker-runtime/lib/orchestration/orchestrate.sh +1722 -0
- package/.claude/skills/cfn-docker-runtime/lib/spawning/SKILL.md +418 -0
- package/.claude/skills/cfn-docker-runtime/lib/spawning/spawn-agent.sh +569 -0
- package/.claude/skills/cfn-docker-runtime/lib/waves/SKILL.md +944 -0
- package/.claude/skills/cfn-docker-runtime/lib/waves/cleanup-wave.sh +445 -0
- package/.claude/skills/cfn-docker-runtime/lib/waves/lib/docker-helpers.sh +804 -0
- package/.claude/skills/cfn-docker-runtime/lib/waves/monitor-wave.sh +485 -0
- package/.claude/skills/cfn-docker-runtime/lib/waves/spawn-wave.sh +547 -0
- package/.claude/skills/cfn-edit-safety/README.md +160 -0
- package/.claude/skills/cfn-edit-safety/SKILL.md +62 -0
- package/.claude/skills/cfn-edit-safety/cli/edit-safety-cli.sh +337 -0
- package/.claude/skills/cfn-edit-safety/edit-safety.sh +375 -0
- package/.claude/skills/cfn-edit-safety/lib/backup/SKILL.md +324 -0
- package/.claude/skills/cfn-edit-safety/lib/backup/SKILL.md.backup +277 -0
- package/.claude/skills/cfn-edit-safety/lib/backup/backup.sh +129 -0
- package/.claude/skills/cfn-edit-safety/lib/backup/backup.sh.backup +107 -0
- package/.claude/skills/cfn-edit-safety/lib/hooks/README.md +74 -0
- package/.claude/skills/cfn-edit-safety/lib/hooks/SKILL.md +148 -0
- package/.claude/skills/cfn-edit-safety/lib/hooks/auto-resolve.sh +66 -0
- package/.claude/skills/cfn-edit-safety/lib/hooks/check-dependencies.sh +40 -0
- package/.claude/skills/cfn-edit-safety/lib/hooks/feedback-resolver.sh +452 -0
- package/.claude/skills/cfn-edit-safety/lib/hooks/post-edit-handler.sh +155 -0
- package/.claude/skills/cfn-edit-safety/lib/hooks/security-scan.json +60 -0
- package/.claude/skills/cfn-edit-safety/lib/hooks/security-scanner.sh +121 -0
- package/.claude/skills/cfn-edit-safety/lib/hooks/test-root-warning-resolution.sh +148 -0
- package/.claude/skills/cfn-epic-parser/SKILL.md +220 -0
- package/.claude/skills/cfn-epic-parser/example-epic.md +49 -0
- package/.claude/skills/cfn-epic-parser/parse.sh +517 -0
- package/.claude/skills/cfn-epic-parser/test-parser.sh +299 -0
- package/.claude/skills/cfn-error-management/SKILL.md +176 -0
- package/.claude/skills/cfn-error-management/cli/batch-errors.sh +4 -0
- package/.claude/skills/cfn-error-management/cli/capture-error.sh +4 -0
- package/.claude/skills/cfn-error-management/cli/log-error.sh +4 -0
- package/.claude/skills/cfn-error-management/lib/batching/README.md +1016 -0
- package/.claude/skills/cfn-error-management/lib/batching/analyze-errors.sh +327 -0
- package/.claude/skills/cfn-error-management/lib/batching/calculate-waves.sh +256 -0
- package/.claude/skills/cfn-error-management/lib/batching/cli.sh +523 -0
- package/.claude/skills/cfn-error-management/lib/batching/cluster-files.sh +196 -0
- package/.claude/skills/cfn-error-management/lib/batching/create-batches.sh +261 -0
- package/.claude/skills/cfn-error-management/lib/capture/README.md +56 -0
- package/.claude/skills/cfn-error-management/lib/capture/capture-agent-error.sh +87 -0
- package/.claude/skills/cfn-error-management/lib/logging/README.md +339 -0
- package/.claude/skills/cfn-error-management/lib/logging/cleanup-error-logs.sh +334 -0
- package/.claude/skills/cfn-error-management/lib/logging/integrate-cli.sh +232 -0
- package/.claude/skills/cfn-error-management/lib/logging/integrate-docker.sh +294 -0
- package/.claude/skills/cfn-error-management/lib/logging/invoke-error-logging.sh +839 -0
- package/.claude/skills/cfn-error-management/lib/logging/src/error-logger.ts +1042 -0
- package/.claude/skills/cfn-error-management/lib/logging/src/index.ts +12 -0
- package/.claude/skills/cfn-error-management/lib/logging/src/types.ts +456 -0
- package/.claude/skills/cfn-error-management/lib/logging/test-error-logging.sh +475 -0
- package/.claude/skills/cfn-expert-update/SKILL.md +149 -0
- package/.claude/skills/cfn-expert-update/test-expert-update.sh +254 -0
- package/.claude/skills/cfn-expert-update/update-expert.sh +484 -0
- package/.claude/skills/cfn-intervention-system/SKILL.md +52 -0
- package/.claude/skills/cfn-intervention-system/lib/detector/SKILL.md +39 -0
- package/.claude/skills/cfn-intervention-system/lib/detector/detect-intervention.sh +106 -0
- package/.claude/skills/cfn-intervention-system/lib/orchestrator/SKILL.md +43 -0
- package/.claude/skills/cfn-intervention-system/lib/orchestrator/execute-intervention.sh +59 -0
- package/.claude/skills/cfn-knowledge-base/SKILL.md +109 -0
- package/.claude/skills/cfn-knowledge-base/cli/knowledge-base.sh +435 -0
- package/.claude/skills/cfn-knowledge-base/execute.sh +163 -0
- package/.claude/skills/cfn-knowledge-base/lib/playbook/SKILL.md +153 -0
- package/.claude/skills/cfn-knowledge-base/lib/playbook/init-playbook.sh +54 -0
- package/.claude/skills/cfn-knowledge-base/lib/playbook/lib/auto-update/auto-update-playbook.sh +86 -0
- package/.claude/skills/cfn-knowledge-base/lib/playbook/query-playbook.sh +89 -0
- package/.claude/skills/cfn-knowledge-base/lib/playbook/update-playbook.sh +67 -0
- package/.claude/skills/cfn-knowledge-base/lib/workflow/APPROVAL_WORKFLOW.md +806 -0
- package/.claude/skills/cfn-knowledge-base/lib/workflow/COST_TRACKING.md +637 -0
- package/.claude/skills/cfn-knowledge-base/lib/workflow/DEPLOY_QUICK_REFERENCE.md +106 -0
- package/.claude/skills/cfn-knowledge-base/lib/workflow/EDGE_CASE_TRACKING.md +404 -0
- package/.claude/skills/cfn-knowledge-base/lib/workflow/PROPAGATE_UPDATE_QUICK_REFERENCE.md +366 -0
- package/.claude/skills/cfn-knowledge-base/lib/workflow/README_PHASE4.md +457 -0
- package/.claude/skills/cfn-knowledge-base/lib/workflow/SKILL.md +110 -0
- package/.claude/skills/cfn-knowledge-base/lib/workflow/approval-workflow.sh +514 -0
- package/.claude/skills/cfn-knowledge-base/lib/workflow/deploy-approved-skill.sh +481 -0
- package/.claude/skills/cfn-knowledge-base/lib/workflow/deploy-approved-skill.sh.backup-1763392820 +512 -0
- package/.claude/skills/cfn-knowledge-base/lib/workflow/generate-skill-update.sh +525 -0
- package/.claude/skills/cfn-knowledge-base/lib/workflow/lib/security-utils.sh +204 -0
- package/.claude/skills/cfn-knowledge-base/lib/workflow/package.json +30 -0
- package/.claude/skills/cfn-knowledge-base/lib/workflow/propagate-skill-update.sh +654 -0
- package/.claude/skills/cfn-knowledge-base/lib/workflow/propagate-skill-update.sh.backup-1763392820 +664 -0
- package/.claude/skills/cfn-knowledge-base/lib/workflow/review-skill.sh +643 -0
- package/.claude/skills/cfn-knowledge-base/lib/workflow/src/index.ts +24 -0
- package/.claude/skills/cfn-knowledge-base/lib/workflow/src/pattern-analyzer.ts +537 -0
- package/.claude/skills/cfn-knowledge-base/lib/workflow/src/types.ts +180 -0
- package/.claude/skills/cfn-knowledge-base/lib/workflow/test-integration.sh +296 -0
- package/.claude/skills/cfn-knowledge-base/lib/workflow/test-metadata-update.sh +350 -0
- package/.claude/skills/cfn-knowledge-base/lib/workflow/track-cost-savings.sh +486 -0
- package/.claude/skills/cfn-knowledge-base/lib/workflow/track-cost-savings.sh.backup-1763392821 +445 -0
- package/.claude/skills/cfn-knowledge-base/lib/workflow/track-edge-case.sh +290 -0
- package/.claude/skills/cfn-local-ruvector-accelerator/Cargo.toml +40 -0
- package/.claude/skills/cfn-local-ruvector-accelerator/README.md +563 -0
- package/.claude/skills/cfn-local-ruvector-accelerator/SKILL.md +343 -0
- package/.claude/skills/cfn-local-ruvector-accelerator/cfn-integration.sh +179 -0
- package/.claude/skills/cfn-local-ruvector-accelerator/embeddings_manager.py +289 -0
- package/.claude/skills/cfn-local-ruvector-accelerator/index-code.sh +234 -0
- package/.claude/skills/cfn-local-ruvector-accelerator/init-local-ruvector.sh +112 -0
- package/.claude/skills/cfn-local-ruvector-accelerator/project-structure.md +53 -0
- package/.claude/skills/cfn-local-ruvector-accelerator/query-local.sh +169 -0
- package/.claude/skills/cfn-local-ruvector-accelerator/requirements.txt +2 -0
- package/.claude/skills/cfn-local-ruvector-accelerator/search_engine.py +200 -0
- package/.claude/skills/cfn-local-ruvector-accelerator/search_engine_v2.py +238 -0
- package/.claude/skills/cfn-local-ruvector-accelerator/sqlite_store.py +220 -0
- package/.claude/skills/cfn-local-ruvector-accelerator/src/cli/cleanup.rs +134 -0
- package/.claude/skills/cfn-local-ruvector-accelerator/src/cli/export.rs +40 -0
- package/.claude/skills/cfn-local-ruvector-accelerator/src/cli/index.rs +301 -0
- package/.claude/skills/cfn-local-ruvector-accelerator/src/cli/init.rs +127 -0
- package/.claude/skills/cfn-local-ruvector-accelerator/src/cli/migration.rs +74 -0
- package/.claude/skills/cfn-local-ruvector-accelerator/src/cli/mod.rs +18 -0
- package/.claude/skills/cfn-local-ruvector-accelerator/src/cli/query.rs +222 -0
- package/.claude/skills/cfn-local-ruvector-accelerator/src/cli/reset.rs +37 -0
- package/.claude/skills/cfn-local-ruvector-accelerator/src/cli/stats.rs +133 -0
- package/.claude/skills/cfn-local-ruvector-accelerator/src/embeddings.rs +121 -0
- package/.claude/skills/cfn-local-ruvector-accelerator/src/main.rs +359 -0
- package/.claude/skills/cfn-local-ruvector-accelerator/src/migration.rs +318 -0
- package/.claude/skills/cfn-local-ruvector-accelerator/src/search_engine.rs +281 -0
- package/.claude/skills/cfn-local-ruvector-accelerator/src/sqlite_store.rs +211 -0
- package/.claude/skills/cfn-local-ruvector-accelerator/test-local-ruvector.sh +250 -0
- package/.claude/skills/cfn-loop-orchestration-v2/SKILL.md +57 -0
- package/.claude/skills/cfn-loop-orchestration-v2/cli/cfn-orchestrator.cjs +49 -0
- package/.claude/skills/cfn-loop-orchestration-v2/cli/orchestrate.sh +21 -0
- package/.claude/skills/cfn-loop-orchestration-v2/cli/resolve-provider-model.cjs +69 -0
- package/.claude/skills/cfn-loop-orchestration-v2/lib/coordination/agent-completion.sh.backup +36 -0
- package/.claude/skills/cfn-loop-orchestration-v2/lib/coordination/coordination-patterns.ts +194 -0
- package/.claude/skills/cfn-loop-orchestration-v2/lib/coordination/coordination-signal.sh.backup +36 -0
- package/.claude/skills/cfn-loop-orchestration-v2/lib/coordination/coordination-wait.sh.backup +36 -0
- package/.claude/skills/cfn-loop-orchestration-v2/lib/coordination/index.ts +25 -0
- package/.claude/skills/cfn-loop-orchestration-v2/lib/decision/SKILL.md +664 -0
- package/.claude/skills/cfn-loop-orchestration-v2/lib/decision/TYPESCRIPT_IMPLEMENTATION.md +653 -0
- package/.claude/skills/cfn-loop-orchestration-v2/lib/decision/parse-decision.sh +66 -0
- package/.claude/skills/cfn-loop-orchestration-v2/lib/decision/test-backlog-integration.sh +148 -0
- package/.claude/skills/cfn-loop-orchestration-v2/lib/decision/validate-deliverables.sh +82 -0
- package/.claude/skills/cfn-loop-orchestration-v2/lib/orchestrator/CONFIGURATION_IMPROVEMENTS.md +318 -0
- package/.claude/skills/cfn-loop-orchestration-v2/lib/orchestrator/CONTEXT_LOOKUP_QUICK_START.md +378 -0
- package/.claude/skills/cfn-loop-orchestration-v2/lib/orchestrator/NORTH_STAR_INDEX.md +323 -0
- package/.claude/skills/cfn-loop-orchestration-v2/lib/orchestrator/ORCHESTRATOR_IMPLEMENTATION.md +493 -0
- package/.claude/skills/cfn-loop-orchestration-v2/lib/orchestrator/ORCHESTRATOR_QUICK_START.md +499 -0
- package/.claude/skills/cfn-loop-orchestration-v2/lib/orchestrator/README.md +149 -0
- package/.claude/skills/cfn-loop-orchestration-v2/lib/orchestrator/SKILL.md +418 -0
- package/.claude/skills/cfn-loop-orchestration-v2/lib/orchestrator/SPAWN_AGENTS_IMPLEMENTATION.md +188 -0
- package/.claude/skills/cfn-loop-orchestration-v2/lib/orchestrator/VALIDATION_SUMMARY.txt +196 -0
- package/.claude/skills/cfn-loop-orchestration-v2/lib/orchestrator/VALIDATOR_MODULE_GUIDE.md +526 -0
- package/.claude/skills/cfn-loop-orchestration-v2/lib/orchestrator/e2e-validation-fixed.js +240 -0
- package/.claude/skills/cfn-loop-orchestration-v2/lib/orchestrator/e2e-validation.js +213 -0
- package/.claude/skills/cfn-loop-orchestration-v2/lib/orchestrator/package.json +53 -0
- package/.claude/skills/cfn-loop-orchestration-v2/lib/orchestrator/run-north-star-e2e.ts +210 -0
- package/.claude/skills/cfn-loop-orchestration-v2/lib/orchestrator/security_utils.sh +123 -0
- package/.claude/skills/cfn-loop-orchestration-v2/lib/orchestrator/src/agent-spawner/agent-spawner.ts +34 -0
- package/.claude/skills/cfn-loop-orchestration-v2/lib/orchestrator/src/cli/orchestrator-cli.ts +396 -0
- package/.claude/skills/cfn-loop-orchestration-v2/lib/orchestrator/src/gate-checker/gate-checker.ts +36 -0
- package/.claude/skills/cfn-loop-orchestration-v2/lib/orchestrator/src/helpers/CONFIDENCE_AGGREGATOR.md +564 -0
- package/.claude/skills/cfn-loop-orchestration-v2/lib/orchestrator/src/helpers/CONFIDENCE_AGGREGATOR_QUICK_REF.md +241 -0
- package/.claude/skills/cfn-loop-orchestration-v2/lib/orchestrator/src/helpers/CONTEXT_INJECTOR_QUICK_REFERENCE.md +362 -0
- package/.claude/skills/cfn-loop-orchestration-v2/lib/orchestrator/src/helpers/CONTEXT_INJECTOR_README.md +307 -0
- package/.claude/skills/cfn-loop-orchestration-v2/lib/orchestrator/src/helpers/CONTEXT_INJECTOR_USAGE_GUIDE.md +508 -0
- package/.claude/skills/cfn-loop-orchestration-v2/lib/orchestrator/src/helpers/confidence-aggregator.ts +473 -0
- package/.claude/skills/cfn-loop-orchestration-v2/lib/orchestrator/src/helpers/consensus.ts +87 -0
- package/.claude/skills/cfn-loop-orchestration-v2/lib/orchestrator/src/helpers/context-injector.ts +349 -0
- package/.claude/skills/cfn-loop-orchestration-v2/lib/orchestrator/src/helpers/context-lookup.ts +486 -0
- package/.claude/skills/cfn-loop-orchestration-v2/lib/orchestrator/src/helpers/deliverable-verifier.ts +107 -0
- package/.claude/skills/cfn-loop-orchestration-v2/lib/orchestrator/src/helpers/gate-check.ts +115 -0
- package/.claude/skills/cfn-loop-orchestration-v2/lib/orchestrator/src/helpers/iteration-manager.ts +45 -0
- package/.claude/skills/cfn-loop-orchestration-v2/lib/orchestrator/src/helpers/parse-test-results.ts +372 -0
- package/.claude/skills/cfn-loop-orchestration-v2/lib/orchestrator/src/helpers/product-owner-decision.ts +316 -0
- package/.claude/skills/cfn-loop-orchestration-v2/lib/orchestrator/src/helpers/spawn-agents.ts +357 -0
- package/.claude/skills/cfn-loop-orchestration-v2/lib/orchestrator/src/helpers/timeout-calculator.ts +41 -0
- package/.claude/skills/cfn-loop-orchestration-v2/lib/orchestrator/src/helpers/validator.ts +276 -0
- package/.claude/skills/cfn-loop-orchestration-v2/lib/orchestrator/src/index.ts +16 -0
- package/.claude/skills/cfn-loop-orchestration-v2/lib/orchestrator/src/orchestrate.ts +1389 -0
- package/.claude/skills/cfn-loop-orchestration-v2/lib/orchestrator/src/orchestrator/orchestrator.ts +31 -0
- package/.claude/skills/cfn-loop-orchestration-v2/lib/orchestrator/src/redis/redis-coordinator.ts +72 -0
- package/.claude/skills/cfn-loop-orchestration-v2/lib/orchestrator/src/types.ts +244 -0
- package/.claude/skills/cfn-loop-orchestration-v2/lib/orchestrator/src/utils/logger.ts +32 -0
- package/.claude/skills/cfn-loop-orchestration-v2/lib/orchestrator/test-cfn-orchestration.sh +281 -0
- package/.claude/skills/cfn-loop-orchestration-v2/lib/orchestrator/test-cli.sh +92 -0
- package/.claude/skills/cfn-loop-orchestration-v2/lib/orchestrator/test-edge-cases.sh +188 -0
- package/.claude/skills/cfn-loop-orchestration-v2/lib/orchestrator/test-iteration-context-injection.sh +366 -0
- package/.claude/skills/cfn-loop-orchestration-v2/lib/orchestrator/test-typescript-integration.sh +442 -0
- package/.claude/skills/cfn-loop-orchestration-v2/lib/output/DELIVERY_SUMMARY.txt +462 -0
- package/.claude/skills/cfn-loop-orchestration-v2/lib/output/EXAMPLES.md +609 -0
- package/.claude/skills/cfn-loop-orchestration-v2/lib/output/INDEX.md +531 -0
- package/.claude/skills/cfn-loop-orchestration-v2/lib/output/README.md +114 -0
- package/.claude/skills/cfn-loop-orchestration-v2/lib/output/SKILL.md +633 -0
- package/.claude/skills/cfn-loop-orchestration-v2/lib/output/index.ts +6 -0
- package/.claude/skills/cfn-loop-orchestration-v2/lib/output/output-processor.ts +183 -0
- package/.claude/skills/cfn-loop-orchestration-v2/lib/output/package.json +50 -0
- package/.claude/skills/cfn-loop-orchestration-v2/lib/output/src/cli/process-loop2.ts +195 -0
- package/.claude/skills/cfn-loop-orchestration-v2/lib/output/src/cli/process-loop3.ts +157 -0
- package/.claude/skills/cfn-loop-orchestration-v2/lib/output/src/output-processor.ts +632 -0
- package/.claude/skills/cfn-loop-orchestration-v2/lib/validation/INDEX.md +531 -0
- package/.claude/skills/cfn-loop-orchestration-v2/lib/validation/README.md +256 -0
- package/.claude/skills/cfn-loop-orchestration-v2/lib/validation/README_TYPESCRIPT.md +454 -0
- package/.claude/skills/cfn-loop-orchestration-v2/lib/validation/SKILL.md +400 -0
- package/.claude/skills/cfn-loop-orchestration-v2/lib/validation/SKILL.md.backup +353 -0
- package/.claude/skills/cfn-loop-orchestration-v2/lib/validation/SKILL_TYPESCRIPT.md +782 -0
- package/.claude/skills/cfn-loop-orchestration-v2/lib/validation/VAPOR_DETECTION_EXAMPLES.md +598 -0
- package/.claude/skills/cfn-loop-orchestration-v2/lib/validation/check-dependencies.sh +53 -0
- package/.claude/skills/cfn-loop-orchestration-v2/lib/validation/check-dependencies.sh.backup +31 -0
- package/.claude/skills/cfn-loop-orchestration-v2/lib/validation/config.json +161 -0
- package/.claude/skills/cfn-loop-orchestration-v2/lib/validation/consensus-calculator.js +477 -0
- package/.claude/skills/cfn-loop-orchestration-v2/lib/validation/detect-vapor.sh +59 -0
- package/.claude/skills/cfn-loop-orchestration-v2/lib/validation/detect-vapor.sh.backup +37 -0
- package/.claude/skills/cfn-loop-orchestration-v2/lib/validation/evidence-chain.sql +163 -0
- package/.claude/skills/cfn-loop-orchestration-v2/lib/validation/index.ts +12 -0
- package/.claude/skills/cfn-loop-orchestration-v2/lib/validation/orchestrate-cfn-loop.sh +274 -0
- package/.claude/skills/cfn-loop-orchestration-v2/lib/validation/orchestrate-cfn-loop.sh.backup +252 -0
- package/.claude/skills/cfn-loop-orchestration-v2/lib/validation/package.json +93 -0
- package/.claude/skills/cfn-loop-orchestration-v2/lib/validation/src/cli/detect-vapor.ts +177 -0
- package/.claude/skills/cfn-loop-orchestration-v2/lib/validation/src/cli/validate-deliverables.ts +161 -0
- package/.claude/skills/cfn-loop-orchestration-v2/lib/validation/src/cli/validate-gate.ts +139 -0
- package/.claude/skills/cfn-loop-orchestration-v2/lib/validation/src/types.ts +215 -0
- package/.claude/skills/cfn-loop-orchestration-v2/lib/validation/src/validator.ts +503 -0
- package/.claude/skills/cfn-loop-orchestration-v2/lib/validation/validate-deliverables.sh +59 -0
- package/.claude/skills/cfn-loop-orchestration-v2/lib/validation/validate-deliverables.sh.backup +37 -0
- package/.claude/skills/cfn-loop-orchestration-v2/lib/validation/validate-gate.sh +63 -0
- package/.claude/skills/cfn-loop-orchestration-v2/lib/validation/validate-gate.sh.backup +41 -0
- package/.claude/skills/cfn-loop-orchestration-v2/lib/validation/validate-iteration.sh +156 -0
- package/.claude/skills/cfn-loop-orchestration-v2/lib/validation/validate-iteration.sh.backup +134 -0
- package/.claude/skills/cfn-loop-orchestration-v2/lib/validation/validation-framework.ts +237 -0
- package/.claude/skills/cfn-mdap-context-injection/SKILL.md +21 -0
- package/.claude/skills/cfn-mdap-context-injection/inject.sh +348 -0
- package/.claude/skills/cfn-mdap-error-fixer/HANDOFF.md +383 -0
- package/.claude/skills/cfn-mdap-error-fixer/lib/fixer/cerebras-gated-fixer-v2.ts +1500 -0
- package/.claude/skills/cfn-mdap-error-fixer/lib/fixer/package.json +20 -0
- package/.claude/skills/cfn-mdap-error-fixer/skill.md +205 -0
- package/.claude/skills/cfn-memory-persistence/SKILL.md +59 -0
- package/.claude/skills/cfn-memory-persistence/lib/auto/SKILL.md +73 -0
- package/.claude/skills/cfn-memory-persistence/lib/auto/persist-agent-output.sh +49 -0
- package/.claude/skills/cfn-memory-persistence/lib/auto/query-agent-history.sh +35 -0
- package/.claude/skills/cfn-memory-persistence/lib/auto/test-memory-persistence.sh +230 -0
- package/.claude/skills/cfn-memory-persistence/lib/management/SKILL.md +271 -0
- package/.claude/skills/cfn-memory-persistence/lib/management/check-memory.sh +160 -0
- package/.claude/skills/cfn-memory-persistence/lib/management/cleanup-memory.sh +197 -0
- package/.claude/skills/cfn-memory-persistence/lib/redis/SKILL.md +42 -0
- package/.claude/skills/cfn-memory-persistence/lib/redis/agent-log.sh.backup +128 -0
- package/.claude/skills/cfn-memory-persistence/lib/redis/agent-recovery.sh.backup +75 -0
- package/.claude/skills/cfn-memory-persistence/lib/redis/analyze-task-complexity.sh.backup +277 -0
- package/.claude/skills/cfn-memory-persistence/lib/redis/bash-wrappers/store-context.sh.backup +23 -0
- package/.claude/skills/cfn-memory-persistence/lib/redis/cancel-swarm.sh.backup +221 -0
- package/.claude/skills/cfn-memory-persistence/lib/redis/cfn-loop-exec.sh.backup +468 -0
- package/.claude/skills/cfn-memory-persistence/lib/redis/cfn-loop-relaunch.sh.backup +29 -0
- package/.claude/skills/cfn-memory-persistence/lib/redis/collect-confidence-scores.sh.backup +209 -0
- package/.claude/skills/cfn-memory-persistence/lib/redis/collect-results.sh.backup +75 -0
- package/.claude/skills/cfn-memory-persistence/lib/redis/complete-swarm.sh.backup +75 -0
- package/.claude/skills/cfn-memory-persistence/lib/redis/get-context.sh.backup +146 -0
- package/.claude/skills/cfn-memory-persistence/lib/redis/get-success-criteria.sh.backup +54 -0
- package/.claude/skills/cfn-memory-persistence/lib/redis/invoke-waiting-mode.sh.backup +225 -0
- package/.claude/skills/cfn-memory-persistence/lib/redis/redis-cli-wrapper.sh.backup +43 -0
- package/.claude/skills/cfn-memory-persistence/lib/redis/redis-functions.sh.backup +34 -0
- package/.claude/skills/cfn-memory-persistence/lib/redis/report-completion.sh.backup +134 -0
- package/.claude/skills/cfn-memory-persistence/lib/redis/store-context.sh.backup +123 -0
- package/.claude/skills/cfn-memory-persistence/lib/sqlite/QUICK_REFERENCE.md +204 -0
- package/.claude/skills/cfn-memory-persistence/lib/sqlite/README.md +65 -0
- package/.claude/skills/cfn-memory-persistence/lib/sqlite/SKILL.md +415 -0
- package/.claude/skills/cfn-memory-persistence/lib/sqlite/acl-queries.sql +452 -0
- package/.claude/skills/cfn-memory-persistence/lib/sqlite/check-dependencies.sh +36 -0
- package/.claude/skills/cfn-memory-persistence/lib/sqlite/config.json +45 -0
- package/.claude/skills/cfn-memory-persistence/lib/sqlite/memory-cli.sh +74 -0
- package/.claude/skills/cfn-memory-persistence/lib/sqlite/test-state-persistence.js +187 -0
- package/.claude/skills/cfn-memory-persistence/lib/sqlite/ttl-cleanup.sh +266 -0
- package/.claude/skills/cfn-node-heap-sizer/SKILL.md +313 -0
- package/.claude/skills/cfn-node-heap-sizer/task-mode-heap-limiter.sh +326 -0
- package/.claude/skills/cfn-operations/SKILL.md +52 -0
- package/.claude/skills/cfn-operations/execute.sh +175 -0
- package/.claude/skills/cfn-operations/lib/file/SKILL.md +290 -0
- package/.claude/skills/cfn-operations/lib/file/execute.sh +129 -0
- package/.claude/skills/cfn-operations/lib/file/lib/atomic-write.sh +294 -0
- package/.claude/skills/cfn-operations/lib/file/lib/lock.sh +361 -0
- package/.claude/skills/cfn-operations/lib/file/test.sh +373 -0
- package/.claude/skills/cfn-operations/lib/log/SKILL.md +308 -0
- package/.claude/skills/cfn-operations/lib/log/execute.sh +420 -0
- package/.claude/skills/cfn-operations/lib/log/lib/rotate.sh +406 -0
- package/.claude/skills/cfn-operations/lib/log/lib/search.sh +448 -0
- package/.claude/skills/cfn-operations/lib/log/test.sh +400 -0
- package/.claude/skills/cfn-parameterized-queries/SKILL.md +368 -0
- package/.claude/skills/cfn-parameterized-queries/parameterized-queries.sh +249 -0
- package/.claude/skills/cfn-parameterized-queries/test-implementation.sh +237 -0
- package/.claude/skills/cfn-planning/SKILL.md +55 -0
- package/.claude/skills/cfn-planning/execute.sh +159 -0
- package/.claude/skills/cfn-planning/lib/coordinator/README.md +256 -0
- package/.claude/skills/cfn-planning/lib/coordinator/SKILL.md +62 -0
- package/.claude/skills/cfn-planning/lib/coordinator/map-dependencies-conflicts.sh +376 -0
- package/.claude/skills/cfn-planning/lib/coordinator/plan-coordinator-resources.sh +258 -0
- package/.claude/skills/cfn-planning/lib/coordinator/plan-multi-coordinator-work.sh +267 -0
- package/.claude/skills/cfn-planning/lib/coordinator/plan-risk-rollout.sh +350 -0
- package/.claude/skills/cfn-planning/lib/coordinator/test-multi-coordinator-planning.sh +338 -0
- package/.claude/skills/cfn-planning/lib/coordinator/validate-task-planning.sh +189 -0
- package/.claude/skills/cfn-planning/lib/epic/SKILL.md +44 -0
- package/.claude/skills/cfn-planning/lib/epic/decompose-epic.sh +104 -0
- package/.claude/skills/cfn-planning/lib/scope/SKILL.md +37 -0
- package/.claude/skills/cfn-planning/lib/scope/simplify-scope.sh +68 -0
- package/.claude/skills/cfn-process-management/SKILL.md +52 -0
- package/.claude/skills/cfn-process-management/cfn-process +16 -0
- package/.claude/skills/cfn-process-management/cli/process-manager +186 -0
- package/.claude/skills/cfn-process-management/lib/instrumentation/instrument-process.sh +44 -0
- package/.claude/skills/cfn-process-management/lib/lifecycle/README.md +43 -0
- package/.claude/skills/cfn-process-management/lib/lifecycle/SKILL.md +39 -0
- package/.claude/skills/cfn-process-management/lib/lifecycle/check-dependencies.sh +58 -0
- package/.claude/skills/cfn-process-management/lib/lifecycle/config.json +39 -0
- package/.claude/skills/cfn-process-management/lib/lifecycle/process-manager.sh +334 -0
- package/.claude/skills/cfn-project-management/SKILL.md +60 -0
- package/.claude/skills/cfn-project-management/lib/backlog/SKILL.md +199 -0
- package/.claude/skills/cfn-project-management/lib/backlog/add-backlog-item.sh +208 -0
- package/.claude/skills/cfn-project-management/lib/changelog/SKILL.md +349 -0
- package/.claude/skills/cfn-project-management/lib/changelog/add-changelog-entry.sh +202 -0
- package/.claude/skills/cfn-project-management/lib/changelog/bulk-import.sh +268 -0
- package/.claude/skills/cfn-project-management/lib/changelog/lib/README.md +212 -0
- package/.claude/skills/cfn-project-management/lib/changelog/lib/validation.sh +72 -0
- package/.claude/skills/cfn-routing-config/SKILL.md +52 -0
- package/.claude/skills/cfn-routing-config/lib/hybrid/README.md +50 -0
- package/.claude/skills/cfn-routing-config/lib/hybrid/SKILL.md +54 -0
- package/.claude/skills/cfn-routing-config/lib/hybrid/check-dependencies.sh +52 -0
- package/.claude/skills/cfn-routing-config/lib/hybrid/config.json +26 -0
- package/.claude/skills/cfn-routing-config/lib/hybrid/spawn-worker.sh +44 -0
- package/.claude/skills/cfn-routing-config/lib/provider/README.md +129 -0
- package/.claude/skills/cfn-routing-config/lib/provider/SKILL.md +215 -0
- package/.claude/skills/cfn-routing-config/lib/provider/resolve-provider-model.ts +252 -0
- package/.claude/skills/cfn-session-handoff/SKILL.md +53 -0
- package/.claude/skills/cfn-skill-management/FIXES_APPLIED.md +80 -0
- package/.claude/skills/cfn-skill-management/SKILL.md +55 -0
- package/.claude/skills/cfn-skill-management/lib/builder/SKILL.md +910 -0
- package/.claude/skills/cfn-skill-management/lib/loader/SKILL.md +466 -0
- package/.claude/skills/cfn-skill-management/lib/loader/execute.sh +344 -0
- package/.claude/skills/cfn-skill-management/lib/propagation/README.md +233 -0
- package/.claude/skills/cfn-skill-management/lib/propagation/package.json +56 -0
- package/.claude/skills/cfn-skill-management/lib/propagation/propagate-skill-update.sh +32 -0
- package/.claude/skills/cfn-skill-management/lib/propagation/src/cli.ts +75 -0
- package/.claude/skills/cfn-skill-management/lib/propagation/src/database-adapter.ts +239 -0
- package/.claude/skills/cfn-skill-management/lib/propagation/src/file-system-adapter.ts +113 -0
- package/.claude/skills/cfn-skill-management/lib/propagation/src/index.ts +72 -0
- package/.claude/skills/cfn-skill-management/lib/propagation/src/logger.ts +43 -0
- package/.claude/skills/cfn-skill-management/lib/propagation/src/metadata-parser.ts +154 -0
- package/.claude/skills/cfn-skill-management/lib/propagation/src/skill-propagator.ts +274 -0
- package/.claude/skills/cfn-skill-management/lib/propagation/src/skill-validator.ts +179 -0
- package/.claude/skills/cfn-skill-management/lib/propagation/src/types.ts +143 -0
- package/.claude/skills/cfn-skill-management/lib/propagation/src/version-manager.ts +118 -0
- package/.claude/skills/cfn-skill-management/src/cli/skill-loader.ts +364 -0
- package/.claude/skills/cfn-skill-management/src/lib/database-service.ts +313 -0
- package/.claude/skills/cfn-sprint-execution/SKILL.md +55 -0
- package/.claude/skills/cfn-sprint-execution/execute.sh +257 -0
- package/.claude/skills/cfn-sprint-execution/lib/checkpoint/SKILL.md +333 -0
- package/.claude/skills/cfn-sprint-execution/lib/checkpoint/cleanup-orphans.sh +374 -0
- package/.claude/skills/cfn-sprint-execution/lib/checkpoint/resume-wave.sh +325 -0
- package/.claude/skills/cfn-sprint-execution/lib/checkpoint/save-checkpoint.sh +284 -0
- package/.claude/skills/cfn-sprint-execution/lib/execution/SKILL.md +27 -0
- package/.claude/skills/cfn-sprint-execution/lib/execution/execute-sprint-task.sh +68 -0
- package/.claude/skills/cfn-sprint-execution/lib/execution/execute-sprint.sh +65 -0
- package/.claude/skills/cfn-task-decomposition/explore-123-subtasks.json +27 -0
- package/.claude/skills/cfn-task-decomposition/prompts/explore-123-analyze-prompt.md +36 -0
- package/.claude/skills/cfn-task-decomposition/prompts/explore-123-scan-prompt.md +36 -0
- package/.claude/skills/cfn-task-decomposition/prompts/test-final-fix-prompt.md +36 -0
- package/.claude/skills/cfn-task-decomposition/prompts/test-final-pattern-prompt.md +36 -0
- package/.claude/skills/cfn-task-decomposition/prompts/test-final-recon-prompt.md +36 -0
- package/.claude/skills/cfn-task-decomposition/prompts/test-final-validate-prompt.md +36 -0
- package/.claude/skills/cfn-task-decomposition/test-456-subtasks.json +60 -0
- package/.claude/skills/cfn-task-decomposition/test-789-subtasks.json +60 -0
- package/.claude/skills/cfn-task-decomposition/test-999-subtasks.json +27 -0
- package/.claude/skills/cfn-task-decomposition/test-debug-subtasks.json +60 -0
- package/.claude/skills/cfn-task-decomposition/test-debug2-subtasks.json +60 -0
- package/.claude/skills/cfn-task-decomposition/test-final-subtasks.json +60 -0
- package/.claude/skills/cfn-task-decomposition/test-simple-subtasks.json +60 -0
- package/.claude/skills/cfn-task-intelligence/SKILL.md +18 -0
- package/.claude/skills/cfn-task-intelligence/cfn-task-intelligence.sh +158 -0
- package/.claude/skills/cfn-task-intelligence/lib/classifier/SKILL.md +81 -0
- package/.claude/skills/cfn-task-intelligence/lib/classifier/classify-task.sh +297 -0
- package/.claude/skills/cfn-task-intelligence/lib/complexity/SKILL.md +96 -0
- package/.claude/skills/cfn-task-intelligence/lib/complexity/estimate-complexity.sh +144 -0
- package/.claude/skills/cfn-task-intelligence/lib/integration/SKILL.md +339 -0
- package/.claude/skills/cfn-task-intelligence/lib/integration/learning-loop.sh +127 -0
- package/.claude/skills/cfn-task-intelligence/lib/integration/post-feedback-hook.sh +124 -0
- package/.claude/skills/cfn-task-intelligence/lib/integration/pre-execution-hook.sh +59 -0
- package/.claude/skills/cfn-task-intelligence/lib/specialist/SKILL.md +41 -0
- package/.claude/skills/cfn-task-intelligence/lib/specialist/recommend-specialist.sh +57 -0
- package/.claude/skills/cfn-task-planning/SKILL.md +15 -0
- package/.claude/skills/cfn-task-planning/cli/classify-task.sh +4 -0
- package/.claude/skills/cfn-task-planning/cli/decompose-task.sh +4 -0
- package/.claude/skills/cfn-task-planning/cli/init-config.sh +4 -0
- package/.claude/skills/cfn-task-planning/lib/audit/get-audit-data.sh +397 -0
- package/.claude/skills/cfn-task-planning/lib/audit/store-task-audit.sh +191 -0
- package/.claude/skills/cfn-task-planning/lib/classifier/README.md +81 -0
- package/.claude/skills/cfn-task-planning/lib/classifier/classify-task.sh +297 -0
- package/.claude/skills/cfn-task-planning/lib/decomposition/task-decomposer.sh +415 -0
- package/.claude/skills/cfn-test-framework/CLI.md +191 -0
- package/.claude/skills/cfn-test-framework/SKILL.md +55 -0
- package/.claude/skills/cfn-test-framework/execute.sh +386 -0
- package/.claude/skills/cfn-test-framework/lib/execution/README.md +129 -0
- package/.claude/skills/cfn-test-framework/lib/execution/SKILL.md +128 -0
- package/.claude/skills/cfn-test-framework/lib/execution/check-dependencies.sh +36 -0
- package/.claude/skills/cfn-test-framework/lib/execution/test-cache-reader.sh +134 -0
- package/.claude/skills/cfn-test-framework/lib/execution/test-concurrent-conflicts.sh +115 -0
- package/.claude/skills/cfn-test-framework/lib/execution/test-coordinator-pattern.sh +109 -0
- package/.claude/skills/cfn-test-framework/lib/runner/SKILL.md +288 -0
- package/.claude/skills/cfn-test-framework/lib/runner/detect-regressions.sh +58 -0
- package/.claude/skills/cfn-test-framework/lib/runner/detect-regressions.sh.backup-1763392821 +55 -0
- package/.claude/skills/cfn-test-framework/lib/runner/init-benchmark-db.sh +48 -0
- package/.claude/skills/cfn-test-framework/lib/runner/run-all-tests.sh +222 -0
- package/.claude/skills/cfn-test-framework/lib/runner/store-benchmarks.sh +53 -0
- package/.claude/skills/cfn-test-framework/lib/runner/validate-redis-keys.sh +143 -0
- package/.claude/skills/cfn-test-framework/lib/webapp/README.md +142 -0
- package/.claude/skills/cfn-test-framework/lib/webapp/SCREENSHOT_NAMING_CONVENTION.md +547 -0
- package/.claude/skills/cfn-test-framework/lib/webapp/SKILL.md +877 -0
- package/.claude/skills/cfn-test-framework/lib/webapp/capture-screenshot.sh +238 -0
- package/.claude/skills/cfn-test-framework/lib/webapp/cfn-loop-integration.sh +265 -0
- package/.claude/skills/cfn-test-framework/lib/webapp/compare-screenshots.sh +199 -0
- package/.claude/skills/cfn-test-framework/lib/webapp/init-storage.sh +150 -0
- package/.claude/skills/cfn-test-framework/lib/webapp/set-baseline.sh +196 -0
- package/.claude/skills/cfn-test-framework/lib/webapp/test-webapp-testing.sh +233 -0
- package/.claude/skills/cfn-transparency-middleware/CACHE_MANAGER.md +98 -0
- package/.claude/skills/cfn-transparency-middleware/Cargo.lock +2358 -0
- package/.claude/skills/cfn-transparency-middleware/Cargo.toml +20 -0
- package/.claude/skills/cfn-transparency-middleware/README.md +327 -0
- package/.claude/skills/cfn-transparency-middleware/SECURITY.md +41 -0
- package/.claude/skills/cfn-transparency-middleware/SKILL.md +327 -0
- package/.claude/skills/cfn-transparency-middleware/TEST_RESULTS.md +174 -0
- package/.claude/skills/cfn-transparency-middleware/config.json +23 -0
- package/.claude/skills/cfn-transparency-middleware/fix_redact.sh +12 -0
- package/.claude/skills/cfn-transparency-middleware/invoke-transparency-filter.sh +98 -0
- package/.claude/skills/cfn-transparency-middleware/invoke-transparency-init.sh +224 -0
- package/.claude/skills/cfn-transparency-middleware/invoke-transparency-level.sh +333 -0
- package/.claude/skills/cfn-transparency-middleware/invoke-transparency-metrics.sh +345 -0
- package/.claude/skills/cfn-transparency-middleware/invoke-transparency-observe.sh +140 -0
- package/.claude/skills/cfn-transparency-middleware/invoke-transparency-stop.sh +235 -0
- package/.claude/skills/cfn-transparency-middleware/middleware-config.sh +29 -0
- package/.claude/skills/cfn-transparency-middleware/performance-benchmark.sh +79 -0
- package/.claude/skills/cfn-transparency-middleware/src/agent_metrics.rs +480 -0
- package/.claude/skills/cfn-transparency-middleware/src/api_handler.rs +318 -0
- package/.claude/skills/cfn-transparency-middleware/src/cache_manager.rs +219 -0
- package/.claude/skills/cfn-transparency-middleware/src/fix_regex.rs +9 -0
- package/.claude/skills/cfn-transparency-middleware/src/lib.rs +391 -0
- package/.claude/skills/cfn-transparency-middleware/src/lib.rs.backup +388 -0
- package/.claude/skills/cfn-transparency-middleware/src/main.rs +205 -0
- package/.claude/skills/cfn-transparency-middleware/src/memory_query.rs +93 -0
- package/.claude/skills/cfn-transparency-middleware/src/memory_repository.rs +169 -0
- package/.claude/skills/cfn-transparency-middleware/src/memory_schema.rs +154 -0
- package/.claude/skills/cfn-transparency-middleware/src/test_fix.txt +2 -0
- package/.claude/skills/cfn-transparency-middleware/test-e2e.sh +421 -0
- package/.claude/skills/cfn-transparency-middleware/test-integration.sh +162 -0
- package/.claude/skills/cfn-transparency-middleware/test-transparency-skill.sh +368 -0
- package/.claude/skills/cfn-transparency-middleware/test-transparency-skill.sh.unix +126 -0
- package/.claude/skills/cfn-transparency-middleware/wrap-agent.sh +132 -0
- package/.claude/skills/cfn-utilities/SKILL.md +239 -0
- package/.claude/skills/cfn-utilities/execute.sh +32 -0
- package/.claude/skills/cfn-utilities/lib/errors.sh +56 -0
- package/.claude/skills/cfn-utilities/lib/file-ops.sh +164 -0
- package/.claude/skills/cfn-utilities/lib/logging.sh +77 -0
- package/.claude/skills/cfn-utilities/lib/retry.sh +127 -0
- package/.claude/skills/cfn-utilities/test.sh +317 -0
- package/.claude/skills/cfn-validation-framework/SKILL.md +60 -0
- package/.claude/skills/cfn-validation-framework/execute.sh +223 -0
- package/.claude/skills/cfn-validation-framework/lib/deliverables/confidence-calculator.sh +262 -0
- package/.claude/skills/cfn-validation-framework/lib/instrumentation/wrapped-executor.sh +291 -0
- package/.claude/skills/cfn-validation-framework/lib/json/SKILL.md +431 -0
- package/.claude/skills/cfn-validation-framework/lib/json/test-validate-success-criteria.sh +421 -0
- package/.claude/skills/cfn-validation-framework/lib/json/validate-success-criteria.sh +197 -0
- package/.claude/skills/cfn-validation-framework/lib/layers/SKILL.md +133 -0
- package/.claude/skills/cfn-vision-analysis/SKILL.md +20 -0
- package/.claude/skills/deprecated/analyze-patterns.sh +899 -0
- package/.claude/skills/equation-solver/README.md +327 -0
- package/.claude/skills/equation-solver/SECURITY.md +306 -0
- package/.claude/skills/equation-solver/SKILL.md +335 -0
- package/.claude/skills/equation-solver/package.json +32 -0
- package/.claude/skills/equation-solver/solve.sh +352 -0
- package/.claude/skills/equation-solver/test-equation-solver-minimal.sh +103 -0
- package/.claude/skills/equation-solver/test-equation-solver.sh +510 -0
- package/.claude/skills/equation-solver/test.cjs +25 -0
- package/.claude/skills/shared/bootstrap/sqlite-params.sh +156 -0
- package/.claude/skills/shared/lib/path-utils.sh +139 -0
- package/.claude/skills-database/APPROVAL_CRITERIA.md +925 -0
- package/.claude/skills-database/APPROVAL_WORKFLOW.md +1482 -0
- package/.claude/skills-database/ARCHITECTURE_DECISIONS.md +456 -0
- package/.claude/skills-database/IMPLEMENTATION_GUIDE.md +763 -0
- package/.claude/skills-database/README.md +564 -0
- package/.claude/skills-database/TDD_SKILLS_DB_INTEGRATION.md +2286 -0
- package/.claude/skills-database/schema-v2.sql +587 -0
- package/.claude/slash-commands.json +92 -0
- package/.claude/spawn-pattern-examples.md +500 -0
- package/.claude/sprint-configs/cfn-naming-standardization.json +729 -0
- package/.claude/state/cfn-expert-last-commit +2 -0
- package/.claude/tooling/jq +0 -0
- package/fix-node_modules.md +68 -0
- package/package.json +2 -2
|
@@ -0,0 +1,1016 @@
|
|
|
1
|
+
# CFN Error Batching Strategy
|
|
2
|
+
|
|
3
|
+
**Skill Purpose:** Transform large error sets into strategic batches optimized for parallel agent execution with memory constraints.
|
|
4
|
+
|
|
5
|
+
**Extracted from:** Intelligent TypeScript Error Coordinator (`docker/coordinator/src/coordinator.js`)
|
|
6
|
+
|
|
7
|
+
**Key Achievement:** Reduced memory footprint from 85GB to 32.1GB (66% reduction) while enabling 32 agents in parallel across 40GB budget.
|
|
8
|
+
|
|
9
|
+
---
|
|
10
|
+
|
|
11
|
+
## Table of Contents
|
|
12
|
+
|
|
13
|
+
1. [Overview](#overview)
|
|
14
|
+
2. [Architecture](#architecture)
|
|
15
|
+
3. [Modules](#modules)
|
|
16
|
+
4. [Usage](#usage)
|
|
17
|
+
5. [Configuration](#configuration)
|
|
18
|
+
6. [Language Support](#language-support)
|
|
19
|
+
7. [Output Formats](#output-formats)
|
|
20
|
+
8. [Performance](#performance)
|
|
21
|
+
9. [Extending](#extending)
|
|
22
|
+
10. [Testing](#testing)
|
|
23
|
+
|
|
24
|
+
---
|
|
25
|
+
|
|
26
|
+
## Overview
|
|
27
|
+
|
|
28
|
+
### What This Skill Does
|
|
29
|
+
|
|
30
|
+
Error batching transforms unstructured error output into **strategic batches** ready for parallel agent execution:
|
|
31
|
+
|
|
32
|
+
1. **Parse errors** from any language/tool (TypeScript, Python, Rust, Linters, etc.)
|
|
33
|
+
2. **Analyze dependencies** between error-containing files
|
|
34
|
+
3. **Cluster related files** using directory proximity or AST analysis
|
|
35
|
+
4. **Assign memory tiers** (512MB to 1GB) based on cluster complexity
|
|
36
|
+
5. **Calculate spawning waves** that fit within memory budget
|
|
37
|
+
6. **Output JSON batches** ready for CFN Loop agent spawning
|
|
38
|
+
|
|
39
|
+
### Problem It Solves
|
|
40
|
+
|
|
41
|
+
**Without batching:**
|
|
42
|
+
- 85 files with errors = 85 agents × 1GB = **85GB needed** ❌
|
|
43
|
+
- Sequential processing = weeks of iteration
|
|
44
|
+
- No file coordination = type conflicts between fixes
|
|
45
|
+
|
|
46
|
+
**With batching:**
|
|
47
|
+
- 85 files grouped into 42 Tier 1 + 12 Tier 2 + 3 Tier 3 + 1 Tier 4
|
|
48
|
+
- Total memory = 32.1GB ✅ (fits in 40GB budget)
|
|
49
|
+
- Parallel agents fix related files together
|
|
50
|
+
- Shared types maintained within batches
|
|
51
|
+
|
|
52
|
+
### When to Use
|
|
53
|
+
|
|
54
|
+
- **TypeScript projects** with 50+ error-containing files
|
|
55
|
+
- **Python projects** with type/linting issues
|
|
56
|
+
- **Rust projects** with compiler errors
|
|
57
|
+
- **Multi-language codebases** with mixed error types
|
|
58
|
+
- **Memory-constrained environments** (Docker, cloud VMs)
|
|
59
|
+
- **Iteration-heavy workflows** (CFN Loops, testing)
|
|
60
|
+
|
|
61
|
+
---
|
|
62
|
+
|
|
63
|
+
## Architecture
|
|
64
|
+
|
|
65
|
+
### High-Level Flow
|
|
66
|
+
|
|
67
|
+
```
|
|
68
|
+
┌─────────────────────────────────────────────────────────┐
|
|
69
|
+
│ 1. Error Command │
|
|
70
|
+
│ (e.g., "npx tsc --noEmit", "python -m mypy src") │
|
|
71
|
+
└──────────────────────┬──────────────────────────────────┘
|
|
72
|
+
↓
|
|
73
|
+
┌─────────────────────────────────────────────────────────┐
|
|
74
|
+
│ 2. Parse Errors → Extract file:line:message patterns │
|
|
75
|
+
│ Strategy: Language-specific regex or structured fmt │
|
|
76
|
+
└──────────────────────┬──────────────────────────────────┘
|
|
77
|
+
↓
|
|
78
|
+
┌─────────────────────────────────────────────────────────┐
|
|
79
|
+
│ 3. Analyze Dependencies │
|
|
80
|
+
│ Method: Directory proximity OR AST analysis │
|
|
81
|
+
│ Output: File → Dependencies mapping │
|
|
82
|
+
└──────────────────────┬──────────────────────────────────┘
|
|
83
|
+
↓
|
|
84
|
+
┌─────────────────────────────────────────────────────────┐
|
|
85
|
+
│ 4. Cluster Files │
|
|
86
|
+
│ Algorithm: Union-Find (connected components) │
|
|
87
|
+
│ Output: File clusters by dependency graph │
|
|
88
|
+
└──────────────────────┬──────────────────────────────────┘
|
|
89
|
+
↓
|
|
90
|
+
┌─────────────────────────────────────────────────────────┐
|
|
91
|
+
│ 5. Assign Tiers │
|
|
92
|
+
│ Tier 1: 1 file → 512MB │
|
|
93
|
+
│ Tier 2: 2-3 files → 600MB │
|
|
94
|
+
│ Tier 3: 4-8 files → 800MB │
|
|
95
|
+
│ Tier 4: 9+ files → 1GB │
|
|
96
|
+
└──────────────────────┬──────────────────────────────────┘
|
|
97
|
+
↓
|
|
98
|
+
┌─────────────────────────────────────────────────────────┐
|
|
99
|
+
│ 6. Calculate Waves │
|
|
100
|
+
│ Input: Memory budget (e.g., 40GB) │
|
|
101
|
+
│ Output: Wave plan with parallelism estimate │
|
|
102
|
+
└──────────────────────┬──────────────────────────────────┘
|
|
103
|
+
↓
|
|
104
|
+
┌─────────────────────────────────────────────────────────┐
|
|
105
|
+
│ 7. Output JSON Batches │
|
|
106
|
+
│ Format: Structured JSON with all metadata │
|
|
107
|
+
│ Usage: Direct CFN Loop agent spawning │
|
|
108
|
+
└─────────────────────────────────────────────────────────┘
|
|
109
|
+
```
|
|
110
|
+
|
|
111
|
+
### Modular Design
|
|
112
|
+
|
|
113
|
+
```
|
|
114
|
+
cfn-error-batching-strategy/
|
|
115
|
+
├── SKILL.md # This file
|
|
116
|
+
├── cli.sh # Entry point (user-facing)
|
|
117
|
+
├── analyze-errors.sh # Phase 1: Error parsing
|
|
118
|
+
├── cluster-files.sh # Phase 2-3: Dependency clustering
|
|
119
|
+
├── create-batches.sh # Phase 4: Tier assignment
|
|
120
|
+
├── calculate-waves.sh # Phase 5: Wave planning
|
|
121
|
+
├── lib/
|
|
122
|
+
│ ├── error-parser.sh # Pluggable error parsing
|
|
123
|
+
│ ├── dependency-analyzer.sh # AST or directory-based analysis
|
|
124
|
+
│ ├── union-find.sh # Clustering algorithm
|
|
125
|
+
│ └── memory-utils.sh # Memory calculations
|
|
126
|
+
├── templates/
|
|
127
|
+
│ ├── typescript-analyzer.sh # TypeScript error patterns
|
|
128
|
+
│ ├── python-analyzer.sh # Python error patterns
|
|
129
|
+
│ ├── rust-analyzer.sh # Rust error patterns
|
|
130
|
+
│ ├── eslint-analyzer.sh # ESLint/TSLint patterns
|
|
131
|
+
│ └── generic-analyzer.sh # Fallback: file:line:message
|
|
132
|
+
└── tests/
|
|
133
|
+
├── test-analyze-errors.sh # Unit tests
|
|
134
|
+
├── test-cluster-files.sh # Clustering validation
|
|
135
|
+
├── test-batching-strategy.sh # Integration tests
|
|
136
|
+
└── fixtures/ # Test data
|
|
137
|
+
```
|
|
138
|
+
|
|
139
|
+
---
|
|
140
|
+
|
|
141
|
+
## Modules
|
|
142
|
+
|
|
143
|
+
### 1. analyze-errors.sh
|
|
144
|
+
|
|
145
|
+
**Purpose:** Extract file:line:message patterns from error output.
|
|
146
|
+
|
|
147
|
+
**Input:**
|
|
148
|
+
- Error command (string)
|
|
149
|
+
- Workspace path (string)
|
|
150
|
+
- Language hint (optional, string)
|
|
151
|
+
|
|
152
|
+
**Output:**
|
|
153
|
+
```json
|
|
154
|
+
{
|
|
155
|
+
"total_errors": 42,
|
|
156
|
+
"files_with_errors": {
|
|
157
|
+
"/workspace/src/components/Button.tsx": 3,
|
|
158
|
+
"/workspace/src/types/index.ts": 5,
|
|
159
|
+
"/workspace/src/hooks/useAuth.ts": 2
|
|
160
|
+
},
|
|
161
|
+
"error_samples": [
|
|
162
|
+
{
|
|
163
|
+
"file": "/workspace/src/components/Button.tsx",
|
|
164
|
+
"line": 12,
|
|
165
|
+
"column": 3,
|
|
166
|
+
"error": "Object is possibly 'undefined'",
|
|
167
|
+
"code": "TS2532"
|
|
168
|
+
}
|
|
169
|
+
]
|
|
170
|
+
}
|
|
171
|
+
```
|
|
172
|
+
|
|
173
|
+
**Example Usage:**
|
|
174
|
+
```bash
|
|
175
|
+
./.claude/skills/cfn-error-batching-strategy/analyze-errors.sh \
|
|
176
|
+
--command "npx tsc --noEmit" \
|
|
177
|
+
--workspace "/workspace" \
|
|
178
|
+
--language typescript \
|
|
179
|
+
--output errors.json
|
|
180
|
+
```
|
|
181
|
+
|
|
182
|
+
**Supported Languages:**
|
|
183
|
+
- TypeScript (tsc pattern: `file(line,col): error TSxxx: message`)
|
|
184
|
+
- Python (mypy pattern: `file:line:col: error: message`)
|
|
185
|
+
- Python (ruff pattern: `file:line:col: E/W/F...`)
|
|
186
|
+
- Rust (cargo pattern: `error[Exxx]: message`)
|
|
187
|
+
- ESLint (pattern: `file:line:col: level: message`)
|
|
188
|
+
- Generic fallback (file:line:message)
|
|
189
|
+
|
|
190
|
+
### 2. cluster-files.sh
|
|
191
|
+
|
|
192
|
+
**Purpose:** Group files by dependencies into logical clusters.
|
|
193
|
+
|
|
194
|
+
**Input:**
|
|
195
|
+
```json
|
|
196
|
+
{
|
|
197
|
+
"files": ["/workspace/src/components/Button.tsx", ...],
|
|
198
|
+
"workspace": "/workspace",
|
|
199
|
+
"strategy": "directory|ast",
|
|
200
|
+
"max_cluster_size": 8
|
|
201
|
+
}
|
|
202
|
+
```
|
|
203
|
+
|
|
204
|
+
**Output:**
|
|
205
|
+
```json
|
|
206
|
+
{
|
|
207
|
+
"clusters": [
|
|
208
|
+
{
|
|
209
|
+
"id": "components-auth-1",
|
|
210
|
+
"files": ["LoginForm.tsx", "AuthContext.tsx", "useAuth.ts"],
|
|
211
|
+
"size": 3,
|
|
212
|
+
"rationale": "Same directory + shared imports"
|
|
213
|
+
}
|
|
214
|
+
],
|
|
215
|
+
"total_clusters": 42,
|
|
216
|
+
"coverage": 100
|
|
217
|
+
}
|
|
218
|
+
```
|
|
219
|
+
|
|
220
|
+
**Strategies:**
|
|
221
|
+
|
|
222
|
+
**Directory-based (Fast, 80% accuracy):**
|
|
223
|
+
- Group files by directory (same folder = same cluster)
|
|
224
|
+
- Fast parsing, no external dependencies
|
|
225
|
+
- Good for typical project layouts
|
|
226
|
+
|
|
227
|
+
**AST-based (Slow, 95% accuracy):**
|
|
228
|
+
- Parse imports and analyze dependency graph
|
|
229
|
+
- Union-Find algorithm for connected components
|
|
230
|
+
- Accurate but slower (100+ file overhead)
|
|
231
|
+
|
|
232
|
+
**Example Usage:**
|
|
233
|
+
```bash
|
|
234
|
+
./.claude/skills/cfn-error-batching-strategy/cluster-files.sh \
|
|
235
|
+
--files "[\"src/Button.tsx\", \"src/Modal.tsx\", ...]" \
|
|
236
|
+
--workspace "/workspace" \
|
|
237
|
+
--strategy directory \
|
|
238
|
+
--output clusters.json
|
|
239
|
+
```
|
|
240
|
+
|
|
241
|
+
### 3. create-batches.sh
|
|
242
|
+
|
|
243
|
+
**Purpose:** Assign memory tiers to clusters and create agent batches.
|
|
244
|
+
|
|
245
|
+
**Input:**
|
|
246
|
+
```json
|
|
247
|
+
{
|
|
248
|
+
"clusters": [
|
|
249
|
+
{"id": "cluster-1", "files": [...], "size": 1},
|
|
250
|
+
{"id": "cluster-2", "files": [...], "size": 3}
|
|
251
|
+
],
|
|
252
|
+
"tier_thresholds": {
|
|
253
|
+
"tier_1": {"max_files": 1, "memory": "512m"},
|
|
254
|
+
"tier_2": {"max_files": 3, "memory": "600m"},
|
|
255
|
+
"tier_3": {"max_files": 8, "memory": "800m"},
|
|
256
|
+
"tier_4": {"max_files": null, "memory": "1g"}
|
|
257
|
+
}
|
|
258
|
+
}
|
|
259
|
+
```
|
|
260
|
+
|
|
261
|
+
**Output:**
|
|
262
|
+
```json
|
|
263
|
+
{
|
|
264
|
+
"batches": [
|
|
265
|
+
{
|
|
266
|
+
"batch_id": "iter1-batch-1",
|
|
267
|
+
"tier": 1,
|
|
268
|
+
"memory": "512m",
|
|
269
|
+
"files": ["src/Button.tsx"],
|
|
270
|
+
"error_count": 3,
|
|
271
|
+
"coordination_note": "Independent file"
|
|
272
|
+
},
|
|
273
|
+
{
|
|
274
|
+
"batch_id": "iter1-batch-2",
|
|
275
|
+
"tier": 2,
|
|
276
|
+
"memory": "600m",
|
|
277
|
+
"files": ["src/LoginForm.tsx", "src/AuthContext.tsx"],
|
|
278
|
+
"error_count": 8,
|
|
279
|
+
"coordination_note": "Shared types (AuthContext)"
|
|
280
|
+
}
|
|
281
|
+
],
|
|
282
|
+
"tier_distribution": {
|
|
283
|
+
"tier_1": 42,
|
|
284
|
+
"tier_2": 12,
|
|
285
|
+
"tier_3": 3,
|
|
286
|
+
"tier_4": 1
|
|
287
|
+
},
|
|
288
|
+
"total_memory_needed": "32.1GB"
|
|
289
|
+
}
|
|
290
|
+
```
|
|
291
|
+
|
|
292
|
+
**Customizable Tiers:**
|
|
293
|
+
```bash
|
|
294
|
+
./.claude/skills/cfn-error-batching-strategy/create-batches.sh \
|
|
295
|
+
--clusters clusters.json \
|
|
296
|
+
--tier-config tier-config.json \
|
|
297
|
+
--output batches.json
|
|
298
|
+
```
|
|
299
|
+
|
|
300
|
+
**Example tier-config.json:**
|
|
301
|
+
```json
|
|
302
|
+
{
|
|
303
|
+
"tier_1": {"max_files": 1, "memory": "512m"},
|
|
304
|
+
"tier_2": {"max_files": 3, "memory": "600m"},
|
|
305
|
+
"tier_3": {"max_files": 8, "memory": "800m"},
|
|
306
|
+
"tier_4": {"max_files": null, "memory": "1g"}
|
|
307
|
+
}
|
|
308
|
+
```
|
|
309
|
+
|
|
310
|
+
### 4. calculate-waves.sh
|
|
311
|
+
|
|
312
|
+
**Purpose:** Plan agent spawning waves respecting memory budget.
|
|
313
|
+
|
|
314
|
+
**Input:**
|
|
315
|
+
```json
|
|
316
|
+
{
|
|
317
|
+
"batches": [...],
|
|
318
|
+
"memory_budget": "40g",
|
|
319
|
+
"max_parallel_agents": 32
|
|
320
|
+
}
|
|
321
|
+
```
|
|
322
|
+
|
|
323
|
+
**Output:**
|
|
324
|
+
```json
|
|
325
|
+
{
|
|
326
|
+
"waves": [
|
|
327
|
+
{
|
|
328
|
+
"wave_number": 1,
|
|
329
|
+
"batch_count": 28,
|
|
330
|
+
"memory_needed": "14.5GB",
|
|
331
|
+
"parallelism": 28,
|
|
332
|
+
"estimated_duration": "4m30s",
|
|
333
|
+
"batches": [...]
|
|
334
|
+
},
|
|
335
|
+
{
|
|
336
|
+
"wave_number": 2,
|
|
337
|
+
"batch_count": 20,
|
|
338
|
+
"memory_needed": "12.8GB",
|
|
339
|
+
"parallelism": 20,
|
|
340
|
+
"estimated_duration": "4m30s",
|
|
341
|
+
"batches": [...]
|
|
342
|
+
}
|
|
343
|
+
],
|
|
344
|
+
"summary": {
|
|
345
|
+
"total_waves": 2,
|
|
346
|
+
"total_agents": 48,
|
|
347
|
+
"total_memory": "32.1GB",
|
|
348
|
+
"max_parallelism": 28,
|
|
349
|
+
"budget_utilization": "80.25%"
|
|
350
|
+
}
|
|
351
|
+
}
|
|
352
|
+
```
|
|
353
|
+
|
|
354
|
+
**Example Usage:**
|
|
355
|
+
```bash
|
|
356
|
+
./.claude/skills/cfn-error-batching-strategy/calculate-waves.sh \
|
|
357
|
+
--batches batches.json \
|
|
358
|
+
--budget "40g" \
|
|
359
|
+
--max-parallel 32 \
|
|
360
|
+
--output waves.json
|
|
361
|
+
```
|
|
362
|
+
|
|
363
|
+
---
|
|
364
|
+
|
|
365
|
+
## Usage
|
|
366
|
+
|
|
367
|
+
### Quick Start
|
|
368
|
+
|
|
369
|
+
**One-liner with defaults:**
|
|
370
|
+
```bash
|
|
371
|
+
./.claude/skills/cfn-error-batching-strategy/cli.sh \
|
|
372
|
+
--command "npx tsc --noEmit" \
|
|
373
|
+
--workspace "/workspace" \
|
|
374
|
+
--budget "40g"
|
|
375
|
+
```
|
|
376
|
+
|
|
377
|
+
**Output:**
|
|
378
|
+
```
|
|
379
|
+
Analyzing errors: npx tsc --noEmit
|
|
380
|
+
Found 376 errors across 85 files
|
|
381
|
+
|
|
382
|
+
Clustering files (directory strategy)...
|
|
383
|
+
Created 58 clusters (avg size: 1.4 files)
|
|
384
|
+
|
|
385
|
+
Assigning tiers...
|
|
386
|
+
Tier 1: 42 batches (512MB each)
|
|
387
|
+
Tier 2: 12 batches (600MB each)
|
|
388
|
+
Tier 3: 3 batches (800MB each)
|
|
389
|
+
Tier 4: 1 batch (1GB)
|
|
390
|
+
|
|
391
|
+
Calculating spawn waves...
|
|
392
|
+
Wave 1: 28 agents (14.5GB / 40GB budget)
|
|
393
|
+
Wave 2: 20 agents (12.8GB / 40GB budget)
|
|
394
|
+
|
|
395
|
+
Results saved to: /tmp/batching-output-2025-11-14.json
|
|
396
|
+
Budget utilization: 80.25%
|
|
397
|
+
Estimated parallelism: 28 agents
|
|
398
|
+
```
|
|
399
|
+
|
|
400
|
+
### Advanced Configuration
|
|
401
|
+
|
|
402
|
+
```bash
|
|
403
|
+
./.claude/skills/cfn-error-batching-strategy/cli.sh \
|
|
404
|
+
--command "python -m mypy src" \
|
|
405
|
+
--workspace "/workspace" \
|
|
406
|
+
--language python \
|
|
407
|
+
--strategy ast \
|
|
408
|
+
--budget "16g" \
|
|
409
|
+
--max-parallel 16 \
|
|
410
|
+
--tier-config ./custom-tiers.json \
|
|
411
|
+
--output ./batching-plan.json \
|
|
412
|
+
--format json \
|
|
413
|
+
--verbose
|
|
414
|
+
```
|
|
415
|
+
|
|
416
|
+
### Integration with CFN Loop
|
|
417
|
+
|
|
418
|
+
**Example: Using output for agent spawning**
|
|
419
|
+
|
|
420
|
+
```bash
|
|
421
|
+
#!/bin/bash
|
|
422
|
+
# Extract batching plan
|
|
423
|
+
PLAN=$(./.claude/skills/cfn-error-batching-strategy/cli.sh \
|
|
424
|
+
--command "npx tsc --noEmit" \
|
|
425
|
+
--workspace "/workspace" \
|
|
426
|
+
--budget "40g" \
|
|
427
|
+
--format json)
|
|
428
|
+
|
|
429
|
+
# Extract waves from plan
|
|
430
|
+
WAVES=$(echo "$PLAN" | jq '.waves')
|
|
431
|
+
|
|
432
|
+
# Spawn agents for each wave
|
|
433
|
+
for wave in $(echo "$WAVES" | jq -c '.[]'); do
|
|
434
|
+
BATCH_COUNT=$(echo "$wave" | jq '.batch_count')
|
|
435
|
+
MEMORY=$(echo "$wave" | jq -r '.memory_needed')
|
|
436
|
+
|
|
437
|
+
echo "Spawning Wave: $BATCH_COUNT agents ($MEMORY)"
|
|
438
|
+
|
|
439
|
+
# Your spawning logic here
|
|
440
|
+
done
|
|
441
|
+
```
|
|
442
|
+
|
|
443
|
+
---
|
|
444
|
+
|
|
445
|
+
## Configuration
|
|
446
|
+
|
|
447
|
+
### Environment Variables
|
|
448
|
+
|
|
449
|
+
```bash
|
|
450
|
+
# Default tier configuration
|
|
451
|
+
CFN_TIER_1_MAX=1
|
|
452
|
+
CFN_TIER_1_MEMORY=512m
|
|
453
|
+
CFN_TIER_2_MAX=3
|
|
454
|
+
CFN_TIER_2_MEMORY=600m
|
|
455
|
+
CFN_TIER_3_MAX=8
|
|
456
|
+
CFN_TIER_3_MEMORY=800m
|
|
457
|
+
CFN_TIER_4_MAX=null
|
|
458
|
+
CFN_TIER_4_MEMORY=1g
|
|
459
|
+
|
|
460
|
+
# Clustering strategy
|
|
461
|
+
CFN_CLUSTERING_STRATEGY=directory # or 'ast'
|
|
462
|
+
|
|
463
|
+
# Memory budget
|
|
464
|
+
CFN_MEMORY_BUDGET=40g
|
|
465
|
+
|
|
466
|
+
# Parser settings
|
|
467
|
+
CFN_ERROR_PARSER_TIMEOUT=30 # seconds
|
|
468
|
+
CFN_ERROR_SAMPLES_LIMIT=10 # max errors to show
|
|
469
|
+
|
|
470
|
+
# Output format
|
|
471
|
+
CFN_OUTPUT_FORMAT=json # or 'text', 'yaml', 'csv'
|
|
472
|
+
CFN_OUTPUT_DIR=/tmp
|
|
473
|
+
CFN_VERBOSE=false
|
|
474
|
+
```
|
|
475
|
+
|
|
476
|
+
### Configuration Files
|
|
477
|
+
|
|
478
|
+
**`tier-config.json`** (customize tier thresholds):
|
|
479
|
+
```json
|
|
480
|
+
{
|
|
481
|
+
"tier_1": {
|
|
482
|
+
"max_files": 1,
|
|
483
|
+
"memory": "512m",
|
|
484
|
+
"description": "Independent files"
|
|
485
|
+
},
|
|
486
|
+
"tier_2": {
|
|
487
|
+
"max_files": 3,
|
|
488
|
+
"memory": "600m",
|
|
489
|
+
"description": "Small clusters with shared types"
|
|
490
|
+
},
|
|
491
|
+
"tier_3": {
|
|
492
|
+
"max_files": 8,
|
|
493
|
+
"memory": "800m",
|
|
494
|
+
"description": "Medium feature modules"
|
|
495
|
+
},
|
|
496
|
+
"tier_4": {
|
|
497
|
+
"max_files": null,
|
|
498
|
+
"memory": "1g",
|
|
499
|
+
"description": "Large interconnected modules"
|
|
500
|
+
}
|
|
501
|
+
}
|
|
502
|
+
```
|
|
503
|
+
|
|
504
|
+
**`language-config.json`** (add custom error patterns):
|
|
505
|
+
```json
|
|
506
|
+
{
|
|
507
|
+
"languages": {
|
|
508
|
+
"typescript": {
|
|
509
|
+
"command": "npx tsc --noEmit",
|
|
510
|
+
"pattern": "(.+?)\\((\\d+),(\\d+)\\): error TS(\\d+): (.+)",
|
|
511
|
+
"groups": ["file", "line", "col", "code", "message"]
|
|
512
|
+
},
|
|
513
|
+
"custom-lang": {
|
|
514
|
+
"command": "custom-check",
|
|
515
|
+
"pattern": "YOUR_REGEX_HERE",
|
|
516
|
+
"groups": ["file", "line", "col", "message"]
|
|
517
|
+
}
|
|
518
|
+
}
|
|
519
|
+
}
|
|
520
|
+
```
|
|
521
|
+
|
|
522
|
+
---
|
|
523
|
+
|
|
524
|
+
## Language Support
|
|
525
|
+
|
|
526
|
+
### Built-in Analyzers
|
|
527
|
+
|
|
528
|
+
| Language | Tool | Command | Pattern | Accuracy |
|
|
529
|
+
|----------|------|---------|---------|----------|
|
|
530
|
+
| TypeScript | tsc | `npx tsc --noEmit` | `file(line,col): error TSxxx` | 100% |
|
|
531
|
+
| Python | mypy | `python -m mypy` | `file:line:col: error:` | 95% |
|
|
532
|
+
| Python | ruff | `python -m ruff check` | `file:line:col: E/W/Fxxx` | 95% |
|
|
533
|
+
| Rust | cargo | `cargo check` | `error[Exxx]:` | 90% |
|
|
534
|
+
| JavaScript | ESLint | `npx eslint` | `file:line:col: level:` | 95% |
|
|
535
|
+
| Shell | ShellCheck | `shellcheck` | `file:line:col: error:` | 90% |
|
|
536
|
+
| Generic | Any | Any | `file:line:message` | 60% |
|
|
537
|
+
|
|
538
|
+
### Adding Custom Language Support
|
|
539
|
+
|
|
540
|
+
**Step 1: Create template**
|
|
541
|
+
```bash
|
|
542
|
+
cp templates/generic-analyzer.sh templates/my-lang-analyzer.sh
|
|
543
|
+
```
|
|
544
|
+
|
|
545
|
+
**Step 2: Implement parser**
|
|
546
|
+
```bash
|
|
547
|
+
#!/bin/bash
|
|
548
|
+
# templates/my-lang-analyzer.sh
|
|
549
|
+
|
|
550
|
+
parse_errors() {
|
|
551
|
+
local error_output="$1"
|
|
552
|
+
|
|
553
|
+
# Extract file:line:message pattern
|
|
554
|
+
echo "$error_output" | grep "YOUR_PATTERN" | while read -r line; do
|
|
555
|
+
local file=$(echo "$line" | sed 's/YOUR_REGEX/\1/')
|
|
556
|
+
local line_num=$(echo "$line" | sed 's/YOUR_REGEX/\2/')
|
|
557
|
+
local message=$(echo "$line" | sed 's/YOUR_REGEX/\3/')
|
|
558
|
+
|
|
559
|
+
echo "{\"file\": \"$file\", \"line\": $line_num, \"message\": \"$message\"}"
|
|
560
|
+
done
|
|
561
|
+
}
|
|
562
|
+
```
|
|
563
|
+
|
|
564
|
+
**Step 3: Register in config**
|
|
565
|
+
```json
|
|
566
|
+
{
|
|
567
|
+
"languages": {
|
|
568
|
+
"my-lang": {
|
|
569
|
+
"template": "my-lang-analyzer.sh",
|
|
570
|
+
"command": "my-check",
|
|
571
|
+
"pattern": "YOUR_REGEX"
|
|
572
|
+
}
|
|
573
|
+
}
|
|
574
|
+
}
|
|
575
|
+
```
|
|
576
|
+
|
|
577
|
+
---
|
|
578
|
+
|
|
579
|
+
## Output Formats
|
|
580
|
+
|
|
581
|
+
### JSON (Primary)
|
|
582
|
+
|
|
583
|
+
```json
|
|
584
|
+
{
|
|
585
|
+
"metadata": {
|
|
586
|
+
"generated_at": "2025-11-14T10:30:45Z",
|
|
587
|
+
"command": "npx tsc --noEmit",
|
|
588
|
+
"workspace": "/workspace",
|
|
589
|
+
"language": "typescript"
|
|
590
|
+
},
|
|
591
|
+
"analysis": {
|
|
592
|
+
"total_errors": 376,
|
|
593
|
+
"files_with_errors": 85,
|
|
594
|
+
"error_distribution": {
|
|
595
|
+
"TS2532": 145,
|
|
596
|
+
"TS7006": 89,
|
|
597
|
+
"TS1109": 56
|
|
598
|
+
}
|
|
599
|
+
},
|
|
600
|
+
"clustering": {
|
|
601
|
+
"total_clusters": 58,
|
|
602
|
+
"by_size": {
|
|
603
|
+
"1": 42,
|
|
604
|
+
"2-3": 12,
|
|
605
|
+
"4-8": 3,
|
|
606
|
+
"9+": 1
|
|
607
|
+
}
|
|
608
|
+
},
|
|
609
|
+
"batching": {
|
|
610
|
+
"batches": [...],
|
|
611
|
+
"tier_distribution": {...}
|
|
612
|
+
},
|
|
613
|
+
"waves": [...]
|
|
614
|
+
}
|
|
615
|
+
```
|
|
616
|
+
|
|
617
|
+
### Text (Human-Readable)
|
|
618
|
+
|
|
619
|
+
```
|
|
620
|
+
CFN Error Batching Analysis
|
|
621
|
+
============================
|
|
622
|
+
|
|
623
|
+
Error Analysis:
|
|
624
|
+
Total Errors: 376
|
|
625
|
+
Files with Errors: 85
|
|
626
|
+
Top Errors:
|
|
627
|
+
TS2532 (Object possibly undefined): 145
|
|
628
|
+
TS7006 (Parameter missing type): 89
|
|
629
|
+
TS1109 (Invalid generic syntax): 56
|
|
630
|
+
|
|
631
|
+
File Clustering:
|
|
632
|
+
Strategy: Directory-based
|
|
633
|
+
Total Clusters: 58
|
|
634
|
+
Cluster Size Distribution:
|
|
635
|
+
Size 1: 42 clusters
|
|
636
|
+
Size 2-3: 12 clusters
|
|
637
|
+
Size 4-8: 3 clusters
|
|
638
|
+
Size 9+: 1 cluster
|
|
639
|
+
|
|
640
|
+
Batch Tiers:
|
|
641
|
+
Tier 1 (512MB): 42 batches
|
|
642
|
+
Tier 2 (600MB): 12 batches
|
|
643
|
+
Tier 3 (800MB): 3 batches
|
|
644
|
+
Tier 4 (1GB): 1 batch
|
|
645
|
+
Total Memory: 32.1GB
|
|
646
|
+
|
|
647
|
+
Spawn Waves:
|
|
648
|
+
Wave 1: 28 agents × (14.5GB / 40GB)
|
|
649
|
+
Wave 2: 20 agents × (12.8GB / 40GB)
|
|
650
|
+
Max Parallelism: 28
|
|
651
|
+
Budget Utilization: 80.25%
|
|
652
|
+
```
|
|
653
|
+
|
|
654
|
+
### YAML
|
|
655
|
+
|
|
656
|
+
```yaml
|
|
657
|
+
metadata:
|
|
658
|
+
generated_at: 2025-11-14T10:30:45Z
|
|
659
|
+
command: npx tsc --noEmit
|
|
660
|
+
workspace: /workspace
|
|
661
|
+
language: typescript
|
|
662
|
+
|
|
663
|
+
analysis:
|
|
664
|
+
total_errors: 376
|
|
665
|
+
files_with_errors: 85
|
|
666
|
+
top_errors:
|
|
667
|
+
- code: TS2532
|
|
668
|
+
message: Object possibly undefined
|
|
669
|
+
count: 145
|
|
670
|
+
|
|
671
|
+
clustering:
|
|
672
|
+
strategy: directory
|
|
673
|
+
total_clusters: 58
|
|
674
|
+
sizes:
|
|
675
|
+
- size: 1
|
|
676
|
+
count: 42
|
|
677
|
+
|
|
678
|
+
batching:
|
|
679
|
+
tier_1: 42
|
|
680
|
+
tier_2: 12
|
|
681
|
+
tier_3: 3
|
|
682
|
+
tier_4: 1
|
|
683
|
+
total_memory: 32.1GB
|
|
684
|
+
|
|
685
|
+
waves:
|
|
686
|
+
- number: 1
|
|
687
|
+
agents: 28
|
|
688
|
+
memory: 14.5GB
|
|
689
|
+
```
|
|
690
|
+
|
|
691
|
+
---
|
|
692
|
+
|
|
693
|
+
## Performance
|
|
694
|
+
|
|
695
|
+
### Benchmarks
|
|
696
|
+
|
|
697
|
+
**Dataset:** 85 files, 376 errors (TypeScript frontend project)
|
|
698
|
+
|
|
699
|
+
| Phase | Time | Notes |
|
|
700
|
+
|-------|------|-------|
|
|
701
|
+
| Parse errors | 2.1s | tsc execution + regex parsing |
|
|
702
|
+
| Analyze deps | 0.3s | Directory-based (no AST) |
|
|
703
|
+
| Cluster files | 0.1s | Union-Find algorithm |
|
|
704
|
+
| Assign tiers | 0.05s | Simple size-based assignment |
|
|
705
|
+
| Calculate waves | 0.02s | Memory budget fitting |
|
|
706
|
+
| **Total** | **2.57s** | End-to-end batching |
|
|
707
|
+
|
|
708
|
+
### Memory Optimization
|
|
709
|
+
|
|
710
|
+
**Before batching:**
|
|
711
|
+
- 85 files = 85 agents × 1GB = 85GB ❌
|
|
712
|
+
- Budget exceeded by 2.125x
|
|
713
|
+
|
|
714
|
+
**After batching:**
|
|
715
|
+
- 58 batches across 4 tiers
|
|
716
|
+
- Tier 1: 42 × 512MB = 21.5GB
|
|
717
|
+
- Tier 2: 12 × 600MB = 7.2GB
|
|
718
|
+
- Tier 3: 3 × 800MB = 2.4GB
|
|
719
|
+
- Tier 4: 1 × 1GB = 1GB
|
|
720
|
+
- **Total: 32.1GB** ✅ (66% reduction)
|
|
721
|
+
|
|
722
|
+
### Scalability
|
|
723
|
+
|
|
724
|
+
| Files | Errors | Clusters | Batches | Memory | Time |
|
|
725
|
+
|-------|--------|----------|---------|--------|------|
|
|
726
|
+
| 20 | 50 | 10 | 10 | 5.2GB | 0.8s |
|
|
727
|
+
| 85 | 376 | 42 | 58 | 32.1GB | 2.6s |
|
|
728
|
+
| 200 | 1200 | 92 | 128 | 80GB+ | 6.2s |
|
|
729
|
+
| 500 | 3000 | 210 | 312 | 200GB+ | 15s |
|
|
730
|
+
|
|
731
|
+
**Note:** Scales linearly with file count. AST-based clustering adds 2-3x overhead but improves accuracy.
|
|
732
|
+
|
|
733
|
+
---
|
|
734
|
+
|
|
735
|
+
## Extending
|
|
736
|
+
|
|
737
|
+
### Custom Clustering Strategies
|
|
738
|
+
|
|
739
|
+
Add new clustering logic:
|
|
740
|
+
|
|
741
|
+
```bash
|
|
742
|
+
# lib/custom-clustering.sh
|
|
743
|
+
cluster_by_feature_area() {
|
|
744
|
+
local files="$1"
|
|
745
|
+
local config="$2"
|
|
746
|
+
|
|
747
|
+
# Your clustering logic
|
|
748
|
+
# Should return clusters with metadata
|
|
749
|
+
|
|
750
|
+
jq -n \
|
|
751
|
+
--arg strategy "feature-area" \
|
|
752
|
+
--argjson clusters "$clusters" \
|
|
753
|
+
'{strategy: $strategy, clusters: $clusters}'
|
|
754
|
+
}
|
|
755
|
+
```
|
|
756
|
+
|
|
757
|
+
Register in `cluster-files.sh`:
|
|
758
|
+
```bash
|
|
759
|
+
case "$STRATEGY" in
|
|
760
|
+
directory) cluster_by_directory "$FILES" ;;
|
|
761
|
+
ast) cluster_by_ast "$FILES" ;;
|
|
762
|
+
feature-area) cluster_by_feature_area "$FILES" "$CONFIG" ;;
|
|
763
|
+
*) echo "Unknown strategy: $STRATEGY"; exit 1 ;;
|
|
764
|
+
esac
|
|
765
|
+
```
|
|
766
|
+
|
|
767
|
+
### Custom Tier Assignment
|
|
768
|
+
|
|
769
|
+
Override tier logic:
|
|
770
|
+
|
|
771
|
+
```bash
|
|
772
|
+
# lib/custom-tier-assignment.sh
|
|
773
|
+
assign_tiers_custom() {
|
|
774
|
+
local clusters="$1"
|
|
775
|
+
local tier_config="$2"
|
|
776
|
+
|
|
777
|
+
# Custom logic based on:
|
|
778
|
+
# - Cluster size (files count)
|
|
779
|
+
# - Error complexity (TS2XXX vs TS7XXX)
|
|
780
|
+
# - Import depth
|
|
781
|
+
# - Historical data
|
|
782
|
+
|
|
783
|
+
jq -n --argjson batches "$batches" '{batches: $batches}'
|
|
784
|
+
}
|
|
785
|
+
```
|
|
786
|
+
|
|
787
|
+
### Integration Points
|
|
788
|
+
|
|
789
|
+
1. **Error parsing:** Add language-specific regex in `templates/`
|
|
790
|
+
2. **Clustering:** Implement in `lib/dependency-analyzer.sh`
|
|
791
|
+
3. **Tier assignment:** Customize in `create-batches.sh`
|
|
792
|
+
4. **Wave planning:** Adjust in `calculate-waves.sh`
|
|
793
|
+
5. **Output formats:** Add in `cli.sh`
|
|
794
|
+
|
|
795
|
+
---
|
|
796
|
+
|
|
797
|
+
## Testing
|
|
798
|
+
|
|
799
|
+
### Unit Tests
|
|
800
|
+
|
|
801
|
+
```bash
|
|
802
|
+
# Test error parsing
|
|
803
|
+
./tests/test-analyze-errors.sh
|
|
804
|
+
|
|
805
|
+
# Test clustering
|
|
806
|
+
./tests/test-cluster-files.sh
|
|
807
|
+
|
|
808
|
+
# Test batching
|
|
809
|
+
./tests/test-batching-strategy.sh
|
|
810
|
+
```
|
|
811
|
+
|
|
812
|
+
### Test Fixtures
|
|
813
|
+
|
|
814
|
+
```
|
|
815
|
+
tests/fixtures/
|
|
816
|
+
├── typescript-errors.txt # Sample tsc output
|
|
817
|
+
├── python-errors.txt # Sample mypy output
|
|
818
|
+
├── sample-project/ # Minimal test project
|
|
819
|
+
│ ├── src/
|
|
820
|
+
│ │ ├── Button.tsx
|
|
821
|
+
│ │ ├── Modal.tsx
|
|
822
|
+
│ │ └── types.ts
|
|
823
|
+
│ └── tsconfig.json
|
|
824
|
+
└── expected-outputs/
|
|
825
|
+
├── batches.json
|
|
826
|
+
└── waves.json
|
|
827
|
+
```
|
|
828
|
+
|
|
829
|
+
### Integration Tests
|
|
830
|
+
|
|
831
|
+
```bash
|
|
832
|
+
# Full end-to-end test
|
|
833
|
+
./tests/test-batching-strategy.sh \
|
|
834
|
+
--project tests/fixtures/sample-project \
|
|
835
|
+
--budget "8g"
|
|
836
|
+
```
|
|
837
|
+
|
|
838
|
+
---
|
|
839
|
+
|
|
840
|
+
## Success Criteria
|
|
841
|
+
|
|
842
|
+
### Functional Requirements
|
|
843
|
+
|
|
844
|
+
- ✅ Parses errors from TypeScript, Python, Rust, ESLint
|
|
845
|
+
- ✅ Clusters files based on directory or AST analysis
|
|
846
|
+
- ✅ Assigns configurable memory tiers
|
|
847
|
+
- ✅ Calculates memory-aware spawn waves
|
|
848
|
+
- ✅ Outputs JSON ready for CFN Loop agent spawning
|
|
849
|
+
- ✅ Handles edge cases (empty errors, single file, >1000 errors)
|
|
850
|
+
|
|
851
|
+
### Quality Requirements
|
|
852
|
+
|
|
853
|
+
- ✅ Consistent error analysis across tools
|
|
854
|
+
- ✅ Clustering accuracy >80% (directory) or >95% (AST)
|
|
855
|
+
- ✅ Wave planning within 5% of memory budget
|
|
856
|
+
- ✅ Modular, extensible architecture
|
|
857
|
+
- ✅ Comprehensive error handling and validation
|
|
858
|
+
|
|
859
|
+
### Performance Requirements
|
|
860
|
+
|
|
861
|
+
- ✅ End-to-end batching in <5 seconds
|
|
862
|
+
- ✅ Memory reduction >60% vs naive approach
|
|
863
|
+
- ✅ Parallelism >20 agents for typical projects
|
|
864
|
+
- ✅ Linear scaling with file count
|
|
865
|
+
|
|
866
|
+
---
|
|
867
|
+
|
|
868
|
+
## Examples
|
|
869
|
+
|
|
870
|
+
### Example 1: TypeScript Project (376 errors, 85 files)
|
|
871
|
+
|
|
872
|
+
```bash
|
|
873
|
+
./.claude/skills/cfn-error-batching-strategy/cli.sh \
|
|
874
|
+
--command "npx tsc --noEmit" \
|
|
875
|
+
--workspace "/mnt/c/Users/masha/Documents/project/frontend" \
|
|
876
|
+
--budget "40g" \
|
|
877
|
+
--format json \
|
|
878
|
+
--output /tmp/ts-batches.json
|
|
879
|
+
```
|
|
880
|
+
|
|
881
|
+
**Output:**
|
|
882
|
+
```json
|
|
883
|
+
{
|
|
884
|
+
"analysis": {
|
|
885
|
+
"total_errors": 376,
|
|
886
|
+
"files_with_errors": 85
|
|
887
|
+
},
|
|
888
|
+
"waves": [
|
|
889
|
+
{
|
|
890
|
+
"wave_number": 1,
|
|
891
|
+
"batch_count": 28,
|
|
892
|
+
"parallelism": 28,
|
|
893
|
+
"memory_needed": "14.5GB"
|
|
894
|
+
},
|
|
895
|
+
{
|
|
896
|
+
"wave_number": 2,
|
|
897
|
+
"batch_count": 20,
|
|
898
|
+
"parallelism": 20,
|
|
899
|
+
"memory_needed": "12.8GB"
|
|
900
|
+
}
|
|
901
|
+
]
|
|
902
|
+
}
|
|
903
|
+
```
|
|
904
|
+
|
|
905
|
+
### Example 2: Python Project (mypy + ruff)
|
|
906
|
+
|
|
907
|
+
```bash
|
|
908
|
+
./.claude/skills/cfn-error-batching-strategy/cli.sh \
|
|
909
|
+
--command "python -m mypy src && python -m ruff check src" \
|
|
910
|
+
--workspace "/workspace" \
|
|
911
|
+
--language python \
|
|
912
|
+
--strategy ast \
|
|
913
|
+
--budget "16g"
|
|
914
|
+
```
|
|
915
|
+
|
|
916
|
+
### Example 3: Custom Tier Configuration
|
|
917
|
+
|
|
918
|
+
```bash
|
|
919
|
+
cat > custom-tiers.json << 'EOF'
|
|
920
|
+
{
|
|
921
|
+
"tier_1": {"max_files": 1, "memory": "256m"},
|
|
922
|
+
"tier_2": {"max_files": 2, "memory": "512m"},
|
|
923
|
+
"tier_3": {"max_files": 5, "memory": "1g"},
|
|
924
|
+
"tier_4": {"max_files": null, "memory": "2g"}
|
|
925
|
+
}
|
|
926
|
+
EOF
|
|
927
|
+
|
|
928
|
+
./.claude/skills/cfn-error-batching-strategy/cli.sh \
|
|
929
|
+
--command "npx tsc --noEmit" \
|
|
930
|
+
--workspace "/workspace" \
|
|
931
|
+
--tier-config custom-tiers.json \
|
|
932
|
+
--budget "32g"
|
|
933
|
+
```
|
|
934
|
+
|
|
935
|
+
---
|
|
936
|
+
|
|
937
|
+
## Troubleshooting
|
|
938
|
+
|
|
939
|
+
### Issue: "No errors found"
|
|
940
|
+
|
|
941
|
+
```bash
|
|
942
|
+
# Verify error command works
|
|
943
|
+
npx tsc --noEmit
|
|
944
|
+
|
|
945
|
+
# Run with verbose output
|
|
946
|
+
./.claude/skills/cfn-error-batching-strategy/cli.sh \
|
|
947
|
+
--command "npx tsc --noEmit" \
|
|
948
|
+
--workspace "/workspace" \
|
|
949
|
+
--verbose
|
|
950
|
+
```
|
|
951
|
+
|
|
952
|
+
### Issue: "Clustering failed - AST analysis error"
|
|
953
|
+
|
|
954
|
+
```bash
|
|
955
|
+
# Fall back to directory-based clustering
|
|
956
|
+
./.claude/skills/cfn-error-batching-strategy/cli.sh \
|
|
957
|
+
--command "npx tsc --noEmit" \
|
|
958
|
+
--workspace "/workspace" \
|
|
959
|
+
--strategy directory
|
|
960
|
+
```
|
|
961
|
+
|
|
962
|
+
### Issue: "Memory budget exceeded"
|
|
963
|
+
|
|
964
|
+
```bash
|
|
965
|
+
# Check tier assignments
|
|
966
|
+
jq '.batching.tier_distribution' output.json
|
|
967
|
+
|
|
968
|
+
# Increase budget or adjust tiers
|
|
969
|
+
./.claude/skills/cfn-error-batching-strategy/cli.sh \
|
|
970
|
+
--command "npx tsc --noEmit" \
|
|
971
|
+
--workspace "/workspace" \
|
|
972
|
+
--budget "64g"
|
|
973
|
+
```
|
|
974
|
+
|
|
975
|
+
---
|
|
976
|
+
|
|
977
|
+
## Appendix: Algorithm Details
|
|
978
|
+
|
|
979
|
+
### Union-Find (Clustering)
|
|
980
|
+
|
|
981
|
+
```
|
|
982
|
+
Input: File dependency graph
|
|
983
|
+
Output: Clusters (connected components)
|
|
984
|
+
|
|
985
|
+
Algorithm:
|
|
986
|
+
1. Create disjoint set (each file is own parent)
|
|
987
|
+
2. For each import relationship:
|
|
988
|
+
- UNION(file_a, file_b)
|
|
989
|
+
3. For each file:
|
|
990
|
+
- Add to cluster[FIND(file)]
|
|
991
|
+
4. Return clusters grouped by root parent
|
|
992
|
+
```
|
|
993
|
+
|
|
994
|
+
### Memory Budget Fitting
|
|
995
|
+
|
|
996
|
+
```
|
|
997
|
+
Input: Batches with tiers, memory budget
|
|
998
|
+
Output: Waves (batches that fit budget)
|
|
999
|
+
|
|
1000
|
+
Algorithm:
|
|
1001
|
+
1. Sort batches by tier (tier 1 first)
|
|
1002
|
+
2. current_wave = []
|
|
1003
|
+
3. for each batch:
|
|
1004
|
+
- if (current_wave_memory + batch_memory <= budget):
|
|
1005
|
+
- Add to current_wave
|
|
1006
|
+
- else:
|
|
1007
|
+
- Save current_wave
|
|
1008
|
+
- Start new wave with batch
|
|
1009
|
+
4. Return waves
|
|
1010
|
+
```
|
|
1011
|
+
|
|
1012
|
+
---
|
|
1013
|
+
|
|
1014
|
+
**Version:** 1.0.0
|
|
1015
|
+
**Last Updated:** 2025-11-14
|
|
1016
|
+
**Maintainer:** CFN Specialist Agent
|