claude-flow-novice 2.10.4 → 2.10.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-assets/agents/AGENT_LIFECYCLE.md +530 -0
- package/claude-assets/agents/README-VALIDATION.md +243 -0
- package/claude-assets/agents/custom/claude-code-expert.md +144 -0
- package/claude-assets/agents/custom/test-mcp-access.md +26 -0
- package/claude-assets/agents/project-only-agents/npm-package-specialist.md +347 -0
- package/claude-assets/agents/validate-agent.js +841 -0
- package/claude-assets/commands/agents/README.md +10 -0
- package/claude-assets/commands/agents/agent-capabilities.md +21 -0
- package/claude-assets/commands/agents/agent-coordination.md +28 -0
- package/claude-assets/commands/agents/agent-spawning.md +28 -0
- package/claude-assets/commands/agents/agent-types.md +26 -0
- package/claude-assets/commands/analysis/COMMAND_COMPLIANCE_REPORT.md +54 -0
- package/claude-assets/commands/analysis/README.md +9 -0
- package/claude-assets/commands/analysis/bottleneck-detect.md +162 -0
- package/claude-assets/commands/analysis/performance-bottlenecks.md +59 -0
- package/claude-assets/commands/analysis/performance-report.md +25 -0
- package/claude-assets/commands/analysis/token-efficiency.md +45 -0
- package/claude-assets/commands/analysis/token-usage.md +25 -0
- package/claude-assets/commands/automation/README.md +9 -0
- package/claude-assets/commands/automation/auto-agent.md +122 -0
- package/claude-assets/commands/automation/self-healing.md +106 -0
- package/claude-assets/commands/automation/session-memory.md +90 -0
- package/claude-assets/commands/automation/smart-agents.md +73 -0
- package/claude-assets/commands/automation/smart-spawn.md +25 -0
- package/claude-assets/commands/automation/workflow-select.md +25 -0
- package/claude-assets/commands/cfn/CFN_COORDINATOR_PARAMETERS.md +660 -0
- package/claude-assets/commands/cfn/CFN_LOOP_FRONTEND.md +741 -0
- package/claude-assets/commands/cfn/CFN_LOOP_TASK_MODE.md +353 -0
- package/claude-assets/commands/cfn/README.md +157 -0
- package/claude-assets/commands/cfn/auto-compact.md +80 -0
- package/claude-assets/commands/cfn/cfn-claude-sync.md +303 -0
- package/claude-assets/commands/cfn/cfn-loop-document.md +480 -0
- package/claude-assets/commands/cfn/cfn-loop-epic.md +478 -0
- package/claude-assets/commands/cfn/cfn-loop-frontend.md +555 -0
- package/claude-assets/commands/cfn/cfn-loop-single.md +256 -0
- package/claude-assets/commands/cfn/cfn-loop-sprints.md +396 -0
- package/claude-assets/commands/cfn/cfn-loop.md +517 -0
- package/claude-assets/commands/cfn/cfn-mode.md +20 -0
- package/claude-assets/commands/cfn/cfn-optimize-agents.md +103 -0
- package/claude-assets/commands/cfn/claude-md.md +64 -0
- package/claude-assets/commands/cfn/claude-soul.md +22 -0
- package/claude-assets/commands/cfn/context-curate.md +211 -0
- package/claude-assets/commands/cfn/context-inject.md +262 -0
- package/claude-assets/commands/cfn/context-query.md +215 -0
- package/claude-assets/commands/cfn/context-reflect.md +165 -0
- package/claude-assets/commands/cfn/context-stats.md +294 -0
- package/claude-assets/commands/cfn/cost-savings-off.md +35 -0
- package/claude-assets/commands/cfn/cost-savings-on.md +35 -0
- package/claude-assets/commands/cfn/cost-savings-status.md +34 -0
- package/claude-assets/commands/cfn/custom-routing-activate.md +55 -0
- package/claude-assets/commands/cfn/custom-routing-deactivate.md +46 -0
- package/claude-assets/commands/cfn/dependency-recommendations.md +171 -0
- package/claude-assets/commands/cfn/fullstack.md +179 -0
- package/claude-assets/commands/cfn/github-commit.md +289 -0
- package/claude-assets/commands/cfn/github.md +221 -0
- package/claude-assets/commands/cfn/hello-world-tests.md +381 -0
- package/claude-assets/commands/cfn/hooks.md +38 -0
- package/claude-assets/commands/cfn/launch-web-dashboard.md +295 -0
- package/claude-assets/commands/cfn/list-agents-rebuild.md +205 -0
- package/claude-assets/commands/cfn/metrics-summary.md +58 -0
- package/claude-assets/commands/cfn/neural.md +39 -0
- package/claude-assets/commands/cfn/parse-epic.md +357 -0
- package/claude-assets/commands/cfn/performance.md +41 -0
- package/claude-assets/commands/cfn/sparc.md +46 -0
- package/claude-assets/commands/cfn/suggest-improvements.md +95 -0
- package/claude-assets/commands/cfn/suggest-templates.md +147 -0
- package/claude-assets/commands/cfn/swarm.md +24 -0
- package/claude-assets/commands/cfn/switch-api.md +53 -0
- package/claude-assets/commands/cfn/workflow.md +295 -0
- package/claude-assets/commands/cfn/write-plan.md +104 -0
- package/claude-assets/commands/claude-md.js +237 -0
- package/claude-assets/commands/claude-soul.js +28 -0
- package/claude-assets/commands/cli-integration.js +216 -0
- package/claude-assets/commands/coordination/README.md +9 -0
- package/claude-assets/commands/coordination/agent-spawn.md +25 -0
- package/claude-assets/commands/coordination/coordination-system.md +88 -0
- package/claude-assets/commands/coordination/init.md +44 -0
- package/claude-assets/commands/coordination/orchestrate.md +43 -0
- package/claude-assets/commands/coordination/spawn.md +45 -0
- package/claude-assets/commands/coordination/swarm-init.md +85 -0
- package/claude-assets/commands/coordination/task-orchestrate.md +25 -0
- package/claude-assets/commands/github/README.md +11 -0
- package/claude-assets/commands/github/code-review-swarm.md +514 -0
- package/claude-assets/commands/github/code-review.md +25 -0
- package/claude-assets/commands/github/github-modes.md +147 -0
- package/claude-assets/commands/github/github-swarm.md +121 -0
- package/claude-assets/commands/github/issue-tracker.md +292 -0
- package/claude-assets/commands/github/issue-triage.md +25 -0
- package/claude-assets/commands/github/multi-repo-swarm.md +519 -0
- package/claude-assets/commands/github/pr-enhance.md +26 -0
- package/claude-assets/commands/github/pr-manager.md +170 -0
- package/claude-assets/commands/github/project-board-sync.md +471 -0
- package/claude-assets/commands/github/release-manager.md +338 -0
- package/claude-assets/commands/github/release-swarm.md +544 -0
- package/claude-assets/commands/github/repo-analyze.md +25 -0
- package/claude-assets/commands/github/repo-architect.md +367 -0
- package/claude-assets/commands/github/swarm-issue.md +482 -0
- package/claude-assets/commands/github/swarm-pr.md +285 -0
- package/claude-assets/commands/github/sync-coordinator.md +301 -0
- package/claude-assets/commands/github/workflow-automation.md +442 -0
- package/claude-assets/commands/github.js +638 -0
- package/claude-assets/commands/hive-mind/README.md +17 -0
- package/claude-assets/commands/hive-mind/hive-mind-consensus.md +8 -0
- package/claude-assets/commands/hive-mind/hive-mind-init.md +18 -0
- package/claude-assets/commands/hive-mind/hive-mind-memory.md +8 -0
- package/claude-assets/commands/hive-mind/hive-mind-metrics.md +8 -0
- package/claude-assets/commands/hive-mind/hive-mind-resume.md +8 -0
- package/claude-assets/commands/hive-mind/hive-mind-sessions.md +8 -0
- package/claude-assets/commands/hive-mind/hive-mind-spawn.md +21 -0
- package/claude-assets/commands/hive-mind/hive-mind-status.md +8 -0
- package/claude-assets/commands/hive-mind/hive-mind-stop.md +8 -0
- package/claude-assets/commands/hive-mind/hive-mind-wizard.md +8 -0
- package/claude-assets/commands/hive-mind/hive-mind.md +27 -0
- package/claude-assets/commands/hooks/README.md +11 -0
- package/claude-assets/commands/hooks/overview.md +58 -0
- package/claude-assets/commands/hooks/post-edit.md +117 -0
- package/claude-assets/commands/hooks/post-task.md +112 -0
- package/claude-assets/commands/hooks/pre-edit.md +113 -0
- package/claude-assets/commands/hooks/pre-task.md +111 -0
- package/claude-assets/commands/hooks/session-end.md +118 -0
- package/claude-assets/commands/hooks/session-start.md +9 -0
- package/claude-assets/commands/hooks/setup.md +103 -0
- package/claude-assets/commands/hooks.js +651 -0
- package/claude-assets/commands/index.js +119 -0
- package/claude-assets/commands/memory/README.md +9 -0
- package/claude-assets/commands/memory/memory-bank.md +58 -0
- package/claude-assets/commands/memory/memory-persist.md +25 -0
- package/claude-assets/commands/memory/memory-search.md +25 -0
- package/claude-assets/commands/memory/memory-usage.md +25 -0
- package/claude-assets/commands/memory/neural.md +47 -0
- package/claude-assets/commands/memory/usage.md +46 -0
- package/claude-assets/commands/monitoring/README.md +9 -0
- package/claude-assets/commands/monitoring/agent-metrics.md +25 -0
- package/claude-assets/commands/monitoring/agents.md +44 -0
- package/claude-assets/commands/monitoring/real-time-view.md +25 -0
- package/claude-assets/commands/monitoring/status.md +46 -0
- package/claude-assets/commands/monitoring/swarm-monitor.md +25 -0
- package/claude-assets/commands/neural.js +572 -0
- package/claude-assets/commands/optimization/README.md +9 -0
- package/claude-assets/commands/optimization/auto-topology.md +62 -0
- package/claude-assets/commands/optimization/cache-manage.md +25 -0
- package/claude-assets/commands/optimization/parallel-execute.md +25 -0
- package/claude-assets/commands/optimization/parallel-execution.md +50 -0
- package/claude-assets/commands/optimization/topology-optimize.md +25 -0
- package/claude-assets/commands/pair/README.md +261 -0
- package/claude-assets/commands/pair/commands.md +546 -0
- package/claude-assets/commands/pair/config.md +510 -0
- package/claude-assets/commands/pair/examples.md +512 -0
- package/claude-assets/commands/pair/modes.md +348 -0
- package/claude-assets/commands/pair/session.md +407 -0
- package/claude-assets/commands/pair/start.md +209 -0
- package/claude-assets/commands/parse-epic.js +180 -0
- package/claude-assets/commands/performance.js +582 -0
- package/claude-assets/commands/register-all-commands.js +320 -0
- package/claude-assets/commands/register-claude-md.js +82 -0
- package/claude-assets/commands/register-claude-soul.js +80 -0
- package/claude-assets/commands/sparc/analyzer.md +52 -0
- package/claude-assets/commands/sparc/architect.md +53 -0
- package/claude-assets/commands/sparc/batch-executor.md +54 -0
- package/claude-assets/commands/sparc/coder.md +54 -0
- package/claude-assets/commands/sparc/debugger.md +54 -0
- package/claude-assets/commands/sparc/designer.md +53 -0
- package/claude-assets/commands/sparc/documenter.md +54 -0
- package/claude-assets/commands/sparc/innovator.md +54 -0
- package/claude-assets/commands/sparc/memory-manager.md +54 -0
- package/claude-assets/commands/sparc/optimizer.md +54 -0
- package/claude-assets/commands/sparc/orchestrator.md +132 -0
- package/claude-assets/commands/sparc/researcher.md +54 -0
- package/claude-assets/commands/sparc/reviewer.md +54 -0
- package/claude-assets/commands/sparc/sparc-modes.md +174 -0
- package/claude-assets/commands/sparc/swarm-coordinator.md +54 -0
- package/claude-assets/commands/sparc/tdd.md +54 -0
- package/claude-assets/commands/sparc/tester.md +54 -0
- package/claude-assets/commands/sparc/workflow-manager.md +54 -0
- package/claude-assets/commands/sparc.js +110 -0
- package/claude-assets/commands/stream-chain/pipeline.md +121 -0
- package/claude-assets/commands/stream-chain/run.md +70 -0
- package/claude-assets/commands/swarm/README.md +15 -0
- package/claude-assets/commands/swarm/analysis.md +95 -0
- package/claude-assets/commands/swarm/development.md +96 -0
- package/claude-assets/commands/swarm/examples.md +168 -0
- package/claude-assets/commands/swarm/maintenance.md +102 -0
- package/claude-assets/commands/swarm/optimization.md +117 -0
- package/claude-assets/commands/swarm/research.md +136 -0
- package/claude-assets/commands/swarm/swarm-analysis.md +8 -0
- package/claude-assets/commands/swarm/swarm-background.md +8 -0
- package/claude-assets/commands/swarm/swarm-init.md +19 -0
- package/claude-assets/commands/swarm/swarm-modes.md +8 -0
- package/claude-assets/commands/swarm/swarm-monitor.md +8 -0
- package/claude-assets/commands/swarm/swarm-spawn.md +19 -0
- package/claude-assets/commands/swarm/swarm-status.md +8 -0
- package/claude-assets/commands/swarm/swarm-strategies.md +8 -0
- package/claude-assets/commands/swarm/swarm.md +27 -0
- package/claude-assets/commands/swarm/testing.md +131 -0
- package/claude-assets/commands/swarm.js +423 -0
- package/claude-assets/commands/testing/playwright-e2e.md +288 -0
- package/claude-assets/commands/training/README.md +9 -0
- package/claude-assets/commands/training/model-update.md +25 -0
- package/claude-assets/commands/training/neural-patterns.md +74 -0
- package/claude-assets/commands/training/neural-train.md +25 -0
- package/claude-assets/commands/training/pattern-learn.md +25 -0
- package/claude-assets/commands/training/specialization.md +63 -0
- package/claude-assets/commands/truth/start.md +143 -0
- package/claude-assets/commands/validate-commands.js +223 -0
- package/claude-assets/commands/verify/check.md +50 -0
- package/claude-assets/commands/verify/start.md +128 -0
- package/claude-assets/commands/workflow.js +606 -0
- package/claude-assets/commands/workflows/README.md +9 -0
- package/claude-assets/commands/workflows/development.md +78 -0
- package/claude-assets/commands/workflows/research.md +63 -0
- package/claude-assets/commands/workflows/workflow-create.md +25 -0
- package/claude-assets/commands/workflows/workflow-execute.md +25 -0
- package/claude-assets/commands/workflows/workflow-export.md +25 -0
- package/claude-assets/hooks/cfn-BACKUP_USAGE.md +243 -0
- package/claude-assets/hooks/cfn-invoke-post-edit.sh +87 -0
- package/claude-assets/hooks/cfn-post-edit-cfn-retrospective.sh +79 -0
- package/claude-assets/hooks/cfn-post-edit.config.json +37 -0
- package/claude-assets/hooks/cfn-post-edit.sh +21 -0
- package/claude-assets/hooks/cfn-pre-edit-backup.sh +71 -0
- package/claude-assets/hooks/cfn-restore-from-backup.sh +37 -0
- package/claude-assets/hooks/post-edit.config.json +12 -0
- package/claude-assets/root-claude-distribute/CFN-CLAUDE.md +796 -0
- package/claude-assets/skills/CFN-LOOP-VALIDATION.md +202 -0
- package/claude-assets/skills/REDIS-COORDINATION.md +187 -0
- package/claude-assets/skills/SKILL.md +229 -0
- package/claude-assets/skills/agent-discovery/agents-registry.json +484 -0
- package/claude-assets/skills/cfn-ace-system/SKILL.md +364 -0
- package/claude-assets/skills/cfn-ace-system/add-bullet.sh +145 -0
- package/claude-assets/skills/cfn-ace-system/analyze-anti-pattern-effectiveness.sh +56 -0
- package/claude-assets/skills/cfn-ace-system/classify-task.sh +18 -0
- package/claude-assets/skills/cfn-ace-system/export-ace-metrics.sh +48 -0
- package/claude-assets/skills/cfn-ace-system/extract-tags.sh +385 -0
- package/claude-assets/skills/cfn-ace-system/format-negative-context.sh +180 -0
- package/claude-assets/skills/cfn-ace-system/init-indexes.sql +160 -0
- package/claude-assets/skills/cfn-ace-system/invoke-context-curate.sh +192 -0
- package/claude-assets/skills/cfn-ace-system/invoke-context-inject.sh +361 -0
- package/claude-assets/skills/cfn-ace-system/invoke-context-query.sh +139 -0
- package/claude-assets/skills/cfn-ace-system/invoke-context-reflect.sh +343 -0
- package/claude-assets/skills/cfn-ace-system/invoke-context-stats.sh +227 -0
- package/claude-assets/skills/cfn-ace-system/log-merge.sh +67 -0
- package/claude-assets/skills/cfn-ace-system/monitor-injection-performance.sh +138 -0
- package/claude-assets/skills/cfn-ace-system/optimize-injection-pipeline.sh +169 -0
- package/claude-assets/skills/cfn-ace-system/query-anti-patterns.sh +276 -0
- package/claude-assets/skills/cfn-ace-system/query-contexts.sh +150 -0
- package/claude-assets/skills/cfn-ace-system/query-reflections.sh +35 -0
- package/claude-assets/skills/cfn-ace-system/schema/001-create-context-reflections.sql +237 -0
- package/claude-assets/skills/cfn-ace-system/schema/README.md +723 -0
- package/claude-assets/skills/cfn-ace-system/schema/SCHEMA_DESIGN_SUMMARY.md +564 -0
- package/claude-assets/skills/cfn-ace-system/schema/populate-test-data-simple.sh +62 -0
- package/claude-assets/skills/cfn-ace-system/schema/populate-test-data.sh +247 -0
- package/claude-assets/skills/cfn-ace-system/schema/run-migration.sh +231 -0
- package/claude-assets/skills/cfn-ace-system/schema/validate-schema.sql +280 -0
- package/claude-assets/skills/cfn-ace-system/score-relevance-adapter.sh +138 -0
- package/claude-assets/skills/cfn-ace-system/score-relevance.sh +253 -0
- package/claude-assets/skills/cfn-ace-system/sprint-7-lessons.json +46 -0
- package/claude-assets/skills/cfn-ace-system/store-reflection.sh +46 -0
- package/claude-assets/skills/cfn-ace-system/test-ace-skill.sh +312 -0
- package/claude-assets/skills/cfn-ace-system/track-ab-test.sh +42 -0
- package/claude-assets/skills/cfn-ace-system/update-reflection.sh +41 -0
- package/claude-assets/skills/cfn-agent-discovery/SKILL.md +40 -0
- package/claude-assets/skills/cfn-agent-discovery/agents-registry-clean.json +0 -0
- package/claude-assets/skills/cfn-agent-discovery/agents-registry-fixed.json +19 -0
- package/claude-assets/skills/cfn-agent-discovery/agents-registry.json +718 -0
- package/claude-assets/skills/cfn-agent-discovery/discover-agents.py +184 -0
- package/claude-assets/skills/cfn-agent-discovery/discover-agents.sh +87 -0
- package/claude-assets/skills/cfn-agent-discovery/invoke-registry.sh +11 -0
- package/claude-assets/skills/cfn-agent-discovery/temp_script.py +0 -0
- package/claude-assets/skills/cfn-agent-execution/execute-agent.sh +126 -0
- package/claude-assets/skills/cfn-agent-output-processing/SKILL.md +359 -0
- package/claude-assets/skills/cfn-agent-selector/SKILL.md +90 -0
- package/claude-assets/skills/cfn-agent-selector/select-agents.sh +112 -0
- package/claude-assets/skills/cfn-agent-spawning/README.md +140 -0
- package/claude-assets/skills/cfn-agent-spawning/SKILL.md +135 -0
- package/claude-assets/skills/cfn-agent-spawning/agent-selection-guide.md +814 -0
- package/claude-assets/skills/cfn-agent-spawning/check-dependencies.sh +30 -0
- package/claude-assets/skills/cfn-agent-spawning/spawn-agent.sh +263 -0
- package/claude-assets/skills/cfn-agent-spawning/spawn-templates.sh +613 -0
- package/claude-assets/skills/cfn-agent-swap/SKILL.md +36 -0
- package/claude-assets/skills/cfn-agent-swap/recommend-swap.sh +60 -0
- package/claude-assets/skills/cfn-analytics/README.md +58 -0
- package/claude-assets/skills/cfn-analytics/description-refinement-guide.md +164 -0
- package/claude-assets/skills/cfn-analytics/log-skill-invocation.js +122 -0
- package/claude-assets/skills/cfn-analytics/run-production-criteria-tests.sh +126 -0
- package/claude-assets/skills/cfn-analytics/skill-analytics-dashboard.js +113 -0
- package/claude-assets/skills/cfn-analytics/skill-invocation-hook.sh +28 -0
- package/claude-assets/skills/cfn-analytics/skill-invocations.sql +58 -0
- package/claude-assets/skills/cfn-analytics/test-corpus.json +32 -0
- package/claude-assets/skills/cfn-analytics/test-data-generator.js +115 -0
- package/claude-assets/skills/cfn-analytics/test-manual-override-rate.js +285 -0
- package/claude-assets/skills/cfn-analytics/validate-skill-selection.js +188 -0
- package/claude-assets/skills/cfn-api-validation/test-endpoints.sh +54 -0
- package/claude-assets/skills/cfn-automatic-memory-persistence/SKILL.md +73 -0
- package/claude-assets/skills/cfn-automatic-memory-persistence/persist-agent-output.sh +49 -0
- package/claude-assets/skills/cfn-automatic-memory-persistence/query-agent-history.sh +35 -0
- package/claude-assets/skills/cfn-automatic-memory-persistence/test-memory-persistence.sh +235 -0
- package/claude-assets/skills/cfn-complexity-estimator/SKILL.md +96 -0
- package/claude-assets/skills/cfn-complexity-estimator/estimate-complexity.sh +144 -0
- package/claude-assets/skills/cfn-config-management/README.md +42 -0
- package/claude-assets/skills/cfn-config-management/SKILL.md +34 -0
- package/claude-assets/skills/cfn-config-management/check-dependencies.sh +56 -0
- package/claude-assets/skills/cfn-config-management/config.json +32 -0
- package/claude-assets/skills/cfn-config-management/manage-config.sh +113 -0
- package/claude-assets/skills/cfn-context-pruner/SKILL.md +75 -0
- package/claude-assets/skills/cfn-context-pruner/prune-context.sh +73 -0
- package/claude-assets/skills/cfn-defense-in-depth/SKILL.md +133 -0
- package/claude-assets/skills/cfn-dependency-extractor/SKILL.md +35 -0
- package/claude-assets/skills/cfn-dependency-extractor/extract-dependencies.sh +66 -0
- package/claude-assets/skills/cfn-epic-decomposer/SKILL.md +44 -0
- package/claude-assets/skills/cfn-epic-decomposer/decompose-epic.sh +104 -0
- package/claude-assets/skills/cfn-event-bus/README.md +299 -0
- package/claude-assets/skills/cfn-event-bus/SKILL.md +412 -0
- package/claude-assets/skills/cfn-event-bus/config.json +111 -0
- package/claude-assets/skills/cfn-event-bus/eventbus-wrapper.cjs +69 -0
- package/claude-assets/skills/cfn-event-bus/invoke-event-publish.sh +147 -0
- package/claude-assets/skills/cfn-event-bus/invoke-event-subscribe.sh +171 -0
- package/claude-assets/skills/cfn-event-bus/invoke-lifecycle-track.sh +201 -0
- package/claude-assets/skills/cfn-event-bus/test-event-bus.sh +280 -0
- package/claude-assets/skills/cfn-fleet-manager/README.md +74 -0
- package/claude-assets/skills/cfn-fleet-manager/SKILL.md +412 -0
- package/claude-assets/skills/cfn-fleet-manager/config.json +60 -0
- package/claude-assets/skills/cfn-fleet-manager/invoke-fleet-allocate.sh +182 -0
- package/claude-assets/skills/cfn-fleet-manager/invoke-fleet-balance.sh +239 -0
- package/claude-assets/skills/cfn-fleet-manager/invoke-fleet-metrics.sh +193 -0
- package/claude-assets/skills/cfn-fleet-manager/invoke-fleet-register.sh +124 -0
- package/claude-assets/skills/cfn-fleet-manager/test-fleet-manager.sh +345 -0
- package/claude-assets/skills/cfn-hook-pipeline/README.md +74 -0
- package/claude-assets/skills/cfn-hook-pipeline/SKILL.md +148 -0
- package/claude-assets/skills/cfn-hook-pipeline/auto-resolve.sh +66 -0
- package/claude-assets/skills/cfn-hook-pipeline/check-dependencies.sh +40 -0
- package/claude-assets/skills/cfn-hook-pipeline/feedback-resolver.sh +452 -0
- package/claude-assets/skills/cfn-hook-pipeline/post-edit-handler.sh +154 -0
- package/claude-assets/skills/cfn-hook-pipeline/security-scan.json +60 -0
- package/claude-assets/skills/cfn-hook-pipeline/security-scanner.sh +121 -0
- package/claude-assets/skills/cfn-hook-pipeline/test-root-warning-resolution.sh +148 -0
- package/claude-assets/skills/cfn-hybrid-routing/README.md +50 -0
- package/claude-assets/skills/cfn-hybrid-routing/SKILL.md +46 -0
- package/claude-assets/skills/cfn-hybrid-routing/check-dependencies.sh +52 -0
- package/claude-assets/skills/cfn-hybrid-routing/config.json +26 -0
- package/claude-assets/skills/cfn-hybrid-routing/spawn-worker.sh +44 -0
- package/claude-assets/skills/cfn-improvement-recommender/SKILL.md +33 -0
- package/claude-assets/skills/cfn-improvement-recommender/recommend-improvements.sh +92 -0
- package/claude-assets/skills/cfn-intervention-detector/SKILL.md +39 -0
- package/claude-assets/skills/cfn-intervention-detector/detect-intervention.sh +111 -0
- package/claude-assets/skills/cfn-intervention-orchestrator/SKILL.md +43 -0
- package/claude-assets/skills/cfn-intervention-orchestrator/execute-intervention.sh +59 -0
- package/claude-assets/skills/cfn-loop-orchestration/README.md +41 -0
- package/claude-assets/skills/cfn-loop-orchestration/SKILL.md +299 -0
- package/claude-assets/skills/cfn-loop-orchestration/helpers/auto-tune-timeouts.sh +228 -0
- package/claude-assets/skills/cfn-loop-orchestration/helpers/consensus.sh +84 -0
- package/claude-assets/skills/cfn-loop-orchestration/helpers/context-injection.sh +142 -0
- package/claude-assets/skills/cfn-loop-orchestration/helpers/context-lookup.sh +359 -0
- package/claude-assets/skills/cfn-loop-orchestration/helpers/deliverable-verifier.sh +71 -0
- package/claude-assets/skills/cfn-loop-orchestration/helpers/gate-check.sh +90 -0
- package/claude-assets/skills/cfn-loop-orchestration/helpers/iteration-manager.sh +87 -0
- package/claude-assets/skills/cfn-loop-orchestration/helpers/spawn-agents.sh +271 -0
- package/claude-assets/skills/cfn-loop-orchestration/helpers/timeout-calculator.sh +51 -0
- package/claude-assets/skills/cfn-loop-orchestration/inject-loop-context.sh +41 -0
- package/claude-assets/skills/cfn-loop-orchestration/monitor-execution.sh +156 -0
- package/claude-assets/skills/cfn-loop-orchestration/orchestrate.sh +884 -0
- package/claude-assets/skills/cfn-loop-orchestration/orchestrate.sh.backup +840 -0
- package/claude-assets/skills/cfn-loop-orchestration/security_utils.sh +99 -0
- package/claude-assets/skills/cfn-loop-orchestration/test-cfn-orchestration.sh +281 -0
- package/claude-assets/skills/cfn-loop-orchestration/test-edge-cases.sh +188 -0
- package/claude-assets/skills/cfn-loop-validation/README.md +256 -0
- package/claude-assets/skills/cfn-loop-validation/SKILL.md +353 -0
- package/claude-assets/skills/cfn-loop-validation/check-dependencies.sh +31 -0
- package/claude-assets/skills/cfn-loop-validation/config.json +161 -0
- package/claude-assets/skills/cfn-loop-validation/consensus-calculator.js +477 -0
- package/claude-assets/skills/cfn-loop-validation/evidence-chain.sql +163 -0
- package/claude-assets/skills/cfn-loop-validation/examples/README.md +453 -0
- package/claude-assets/skills/cfn-loop-validation/examples/coordinator-full-cfn-loop.sh +234 -0
- package/claude-assets/skills/cfn-loop-validation/examples/coordinator-loop2-consensus.sh +132 -0
- package/claude-assets/skills/cfn-loop-validation/examples/coordinator-loop3-gate.sh +115 -0
- package/claude-assets/skills/cfn-loop-validation/examples/coordinator-redis-integration.sh +186 -0
- package/claude-assets/skills/cfn-loop-validation/orchestrate-cfn-loop.sh +252 -0
- package/claude-assets/skills/cfn-loop-validation/validate-iteration.sh +134 -0
- package/claude-assets/skills/cfn-loop-validation.sh +70 -0
- package/claude-assets/skills/cfn-loop2-output-processing/SKILL.md +163 -0
- package/claude-assets/skills/cfn-loop2-output-processing/execute-and-extract.sh +77 -0
- package/claude-assets/skills/cfn-loop2-output-processing/execute-and-extract.sh.backup +36 -0
- package/claude-assets/skills/cfn-loop2-output-processing/parse-feedback.sh +147 -0
- package/claude-assets/skills/cfn-loop2-output-processing/process-validator-output.sh +275 -0
- package/claude-assets/skills/cfn-loop2-output-processing/test-bug27-fix.sh +200 -0
- package/claude-assets/skills/cfn-loop2-output-processing/test-loop2-processing.sh +113 -0
- package/claude-assets/skills/cfn-loop3-output-processing/AGENT_COMPLETION_PROTOCOL.md +206 -0
- package/claude-assets/skills/cfn-loop3-output-processing/SKILL.md +421 -0
- package/claude-assets/skills/cfn-loop3-output-processing/calculate-confidence.sh +28 -0
- package/claude-assets/skills/cfn-loop3-output-processing/execute-and-extract.sh +85 -0
- package/claude-assets/skills/cfn-loop3-output-processing/parse-confidence.sh +31 -0
- package/claude-assets/skills/cfn-loop3-output-processing/test-agent-timeout.sh +327 -0
- package/claude-assets/skills/cfn-loop3-output-processing/test-loop3-processing.sh +155 -0
- package/claude-assets/skills/cfn-loop3-output-processing/verify-deliverables.sh +42 -0
- package/claude-assets/skills/cfn-marketing-ad-campaigns/SKILL.md +392 -0
- package/claude-assets/skills/cfn-marketing-ad-campaigns/operations/create-campaign.sh +231 -0
- package/claude-assets/skills/cfn-marketing-ad-campaigns/operations/get-campaign-performance.sh +190 -0
- package/claude-assets/skills/cfn-marketing-ad-campaigns/operations/pause-campaign.sh +142 -0
- package/claude-assets/skills/cfn-marketing-ad-campaigns/operations/set-budget.sh +181 -0
- package/claude-assets/skills/cfn-marketing-ad-campaigns/operations/update-bid-strategy.sh +133 -0
- package/claude-assets/skills/cfn-marketing-analytics-data/SKILL.md +124 -0
- package/claude-assets/skills/cfn-marketing-analytics-data/operations/get-ad-performance.sh +105 -0
- package/claude-assets/skills/cfn-marketing-analytics-data/operations/get-conversion-funnel.sh +102 -0
- package/claude-assets/skills/cfn-marketing-analytics-data/operations/get-email-performance.sh +105 -0
- package/claude-assets/skills/cfn-marketing-analytics-data/operations/get-social-engagement.sh +105 -0
- package/claude-assets/skills/cfn-marketing-analytics-data/operations/get-website-traffic.sh +107 -0
- package/claude-assets/skills/cfn-marketing-chatbot-conversations/SKILL.md +340 -0
- package/claude-assets/skills/cfn-marketing-chatbot-conversations/operations/get-conversation-history.sh +121 -0
- package/claude-assets/skills/cfn-marketing-chatbot-conversations/operations/qualify-lead.sh +156 -0
- package/claude-assets/skills/cfn-marketing-chatbot-conversations/operations/schedule-demo.sh +181 -0
- package/claude-assets/skills/cfn-marketing-chatbot-conversations/operations/send-message.sh +137 -0
- package/claude-assets/skills/cfn-marketing-chatbot-conversations/operations/transfer-to-human.sh +179 -0
- package/claude-assets/skills/cfn-marketing-competitive-intel/SKILL.md +350 -0
- package/claude-assets/skills/cfn-marketing-competitive-intel/operations/get-backlink-profile.sh +154 -0
- package/claude-assets/skills/cfn-marketing-competitive-intel/operations/get-keyword-rankings.sh +173 -0
- package/claude-assets/skills/cfn-marketing-competitive-intel/operations/get-trending-topics.sh +147 -0
- package/claude-assets/skills/cfn-marketing-competitive-intel/operations/monitor-competitor.sh +146 -0
- package/claude-assets/skills/cfn-marketing-competitive-intel/operations/search-brand-mentions.sh +167 -0
- package/claude-assets/skills/cfn-marketing-crm-contacts/SKILL.md +116 -0
- package/claude-assets/skills/cfn-marketing-crm-contacts/operations/add-to-segment.sh +78 -0
- package/claude-assets/skills/cfn-marketing-crm-contacts/operations/create-contact.sh +113 -0
- package/claude-assets/skills/cfn-marketing-crm-contacts/operations/get-contact.sh +86 -0
- package/claude-assets/skills/cfn-marketing-crm-contacts/operations/remove-from-segment.sh +78 -0
- package/claude-assets/skills/cfn-marketing-crm-contacts/operations/update-contact.sh +120 -0
- package/claude-assets/skills/cfn-marketing-email-campaigns/SKILL.md +106 -0
- package/claude-assets/skills/cfn-marketing-email-campaigns/operations/create-campaign.sh +123 -0
- package/claude-assets/skills/cfn-marketing-email-campaigns/operations/get-campaign-stats.sh +66 -0
- package/claude-assets/skills/cfn-marketing-email-campaigns/operations/list-templates.sh +68 -0
- package/claude-assets/skills/cfn-marketing-email-campaigns/operations/schedule-campaign.sh +85 -0
- package/claude-assets/skills/cfn-marketing-email-campaigns/operations/send-test-email.sh +81 -0
- package/claude-assets/skills/cfn-marketing-landing-pages/SKILL.md +366 -0
- package/claude-assets/skills/cfn-marketing-landing-pages/operations/create-ab-test.sh +231 -0
- package/claude-assets/skills/cfn-marketing-landing-pages/operations/create-landing-page.sh +190 -0
- package/claude-assets/skills/cfn-marketing-landing-pages/operations/get-page-performance.sh +137 -0
- package/claude-assets/skills/cfn-marketing-landing-pages/operations/publish-page.sh +120 -0
- package/claude-assets/skills/cfn-marketing-landing-pages/operations/unpublish-page.sh +108 -0
- package/claude-assets/skills/cfn-marketing-media-monitoring/SKILL.md +202 -0
- package/claude-assets/skills/cfn-marketing-media-monitoring/operations/create-crisis-alert.sh +104 -0
- package/claude-assets/skills/cfn-marketing-media-monitoring/operations/export-report.sh +92 -0
- package/claude-assets/skills/cfn-marketing-media-monitoring/operations/get-sentiment-analysis.sh +85 -0
- package/claude-assets/skills/cfn-marketing-media-monitoring/operations/search-mentions.sh +86 -0
- package/claude-assets/skills/cfn-marketing-media-outreach/SKILL.md +168 -0
- package/claude-assets/skills/cfn-marketing-media-outreach/operations/search-journalists.sh +74 -0
- package/claude-assets/skills/cfn-marketing-media-outreach/operations/send-pitch.sh +80 -0
- package/claude-assets/skills/cfn-marketing-media-outreach/operations/submit-haro-response.sh +88 -0
- package/claude-assets/skills/cfn-marketing-media-outreach/operations/track-pitch-engagement.sh +66 -0
- package/claude-assets/skills/cfn-marketing-press-distribution/SKILL.md +159 -0
- package/claude-assets/skills/cfn-marketing-press-distribution/operations/distribute-press-release.sh +94 -0
- package/claude-assets/skills/cfn-marketing-press-distribution/operations/get-distribution-status.sh +59 -0
- package/claude-assets/skills/cfn-marketing-press-distribution/operations/get-pickup-metrics.sh +72 -0
- package/claude-assets/skills/cfn-marketing-press-distribution/operations/list-templates.sh +53 -0
- package/claude-assets/skills/cfn-marketing-sms-campaigns/SKILL.md +429 -0
- package/claude-assets/skills/cfn-marketing-sms-campaigns/operations/create-campaign.sh +183 -0
- package/claude-assets/skills/cfn-marketing-sms-campaigns/operations/get-delivery-status.sh +139 -0
- package/claude-assets/skills/cfn-marketing-sms-campaigns/operations/opt-out.sh +150 -0
- package/claude-assets/skills/cfn-marketing-sms-campaigns/operations/schedule-campaign.sh +187 -0
- package/claude-assets/skills/cfn-marketing-sms-campaigns/operations/send-sms.sh +181 -0
- package/claude-assets/skills/cfn-marketing-social-publishing/SKILL.md +108 -0
- package/claude-assets/skills/cfn-marketing-social-publishing/operations/create-post.sh +104 -0
- package/claude-assets/skills/cfn-marketing-social-publishing/operations/delete-post.sh +76 -0
- package/claude-assets/skills/cfn-marketing-social-publishing/operations/get-post-stats.sh +66 -0
- package/claude-assets/skills/cfn-marketing-social-publishing/operations/schedule-post.sh +85 -0
- package/claude-assets/skills/cfn-marketing-social-publishing/operations/upload-media.sh +88 -0
- package/claude-assets/skills/cfn-pattern-extraction/SKILL.md +30 -0
- package/claude-assets/skills/cfn-pattern-extraction/extract-patterns.sh +80 -0
- package/claude-assets/skills/cfn-playbook/SKILL.md +113 -0
- package/claude-assets/skills/cfn-playbook/init-playbook.sh +54 -0
- package/claude-assets/skills/cfn-playbook/playbook.db +0 -0
- package/claude-assets/skills/cfn-playbook/query-playbook.sh +79 -0
- package/claude-assets/skills/cfn-playbook/update-playbook.sh +69 -0
- package/claude-assets/skills/cfn-playbook-auto-update/SKILL.md +29 -0
- package/claude-assets/skills/cfn-playbook-auto-update/auto-update-playbook.sh +86 -0
- package/claude-assets/skills/cfn-process-lifecycle/README.md +43 -0
- package/claude-assets/skills/cfn-process-lifecycle/SKILL.md +39 -0
- package/claude-assets/skills/cfn-process-lifecycle/check-dependencies.sh +58 -0
- package/claude-assets/skills/cfn-process-lifecycle/config.json +39 -0
- package/claude-assets/skills/cfn-process-lifecycle/process-manager.sh +144 -0
- package/claude-assets/skills/cfn-product-owner-decision/SKILL.md +332 -0
- package/claude-assets/skills/cfn-product-owner-decision/execute-decision.sh +176 -0
- package/claude-assets/skills/cfn-product-owner-decision/parse-decision.sh +66 -0
- package/claude-assets/skills/cfn-product-owner-decision/validate-deliverables.sh +82 -0
- package/claude-assets/skills/cfn-redis-coordination/AGENT_LOGGING.md +280 -0
- package/claude-assets/skills/cfn-redis-coordination/BZPOPMIN_FIX_SUMMARY.md +209 -0
- package/claude-assets/skills/cfn-redis-coordination/HEARTBEAT.md +57 -0
- package/claude-assets/skills/cfn-redis-coordination/HEARTBEAT_MONITORING.md +267 -0
- package/claude-assets/skills/cfn-redis-coordination/LOGGING.md +260 -0
- package/claude-assets/skills/cfn-redis-coordination/README.md +65 -0
- package/claude-assets/skills/cfn-redis-coordination/SECURITY_REVIEW.md +25 -0
- package/claude-assets/skills/cfn-redis-coordination/SHUTDOWN_HANDLING.md +164 -0
- package/claude-assets/skills/cfn-redis-coordination/SKILL.md +720 -0
- package/claude-assets/skills/cfn-redis-coordination/agent-log.sh +124 -0
- package/claude-assets/skills/cfn-redis-coordination/agent-recovery.sh +75 -0
- package/claude-assets/skills/cfn-redis-coordination/analyze-task-complexity.sh +277 -0
- package/claude-assets/skills/cfn-redis-coordination/cancel-swarm.sh +221 -0
- package/claude-assets/skills/cfn-redis-coordination/cfn-loop-exec.sh +468 -0
- package/claude-assets/skills/cfn-redis-coordination/cfn-loop-relaunch.sh +29 -0
- package/claude-assets/skills/cfn-redis-coordination/check-dependencies.sh +32 -0
- package/claude-assets/skills/cfn-redis-coordination/collect-confidence-scores.sh +179 -0
- package/claude-assets/skills/cfn-redis-coordination/collect-results.sh +75 -0
- package/claude-assets/skills/cfn-redis-coordination/complete-swarm.sh +75 -0
- package/claude-assets/skills/cfn-redis-coordination/config.json +61 -0
- package/claude-assets/skills/cfn-redis-coordination/data/cfn-loop.db +0 -0
- package/claude-assets/skills/cfn-redis-coordination/demos/phase4-wake-queue-test-report.md +82 -0
- package/claude-assets/skills/cfn-redis-coordination/demos/test-bzpopmin-fix.sh +274 -0
- package/claude-assets/skills/cfn-redis-coordination/demos/test-cancel-swarm.sh +276 -0
- package/claude-assets/skills/cfn-redis-coordination/demos/test-dlq.sh +129 -0
- package/claude-assets/skills/cfn-redis-coordination/demos/test-iteration-feedback.sh +320 -0
- package/claude-assets/skills/cfn-redis-coordination/demos/test-orchestrator.sh +249 -0
- package/claude-assets/skills/cfn-redis-coordination/demos/test-priority-wake-phase4-unix.sh +148 -0
- package/claude-assets/skills/cfn-redis-coordination/demos/test-priority-wake-phase4.sh +163 -0
- package/claude-assets/skills/cfn-redis-coordination/demos/test-priority-wake.sh +138 -0
- package/claude-assets/skills/cfn-redis-coordination/demos/test-quick-fix.sh +81 -0
- package/claude-assets/skills/cfn-redis-coordination/demos/test-quorum-absolute.sh +45 -0
- package/claude-assets/skills/cfn-redis-coordination/demos/test-quorum-fallback.sh +68 -0
- package/claude-assets/skills/cfn-redis-coordination/demos/test-quorum-percentage.sh +56 -0
- package/claude-assets/skills/cfn-redis-coordination/demos/test-quorum-with-retry.sh +81 -0
- package/claude-assets/skills/cfn-redis-coordination/demos/test-quorum.sh +57 -0
- package/claude-assets/skills/cfn-redis-coordination/demos/test-shutdown-handling.sh +187 -0
- package/claude-assets/skills/cfn-redis-coordination/demos/test-shutdown.sh +160 -0
- package/claude-assets/skills/cfn-redis-coordination/demos/test-utils-unix.sh +97 -0
- package/claude-assets/skills/cfn-redis-coordination/demos/test-utils.sh +97 -0
- package/claude-assets/skills/cfn-redis-coordination/demos/test-waiting-mode.sh +59 -0
- package/claude-assets/skills/cfn-redis-coordination/examples/README.md +73 -0
- package/claude-assets/skills/cfn-redis-coordination/examples/grafana-dashboard.json +352 -0
- package/claude-assets/skills/cfn-redis-coordination/examples/hierarchical-pattern.sh +127 -0
- package/claude-assets/skills/cfn-redis-coordination/examples/mesh-pattern.sh +171 -0
- package/claude-assets/skills/cfn-redis-coordination/examples/timeout-handling.sh +227 -0
- package/claude-assets/skills/cfn-redis-coordination/examples/waiting-mode-pattern.sh +239 -0
- package/claude-assets/skills/cfn-redis-coordination/execute-product-owner-decision.sh +258 -0
- package/claude-assets/skills/cfn-redis-coordination/get-agent-timeout.sh +177 -0
- package/claude-assets/skills/cfn-redis-coordination/heartbeat-functions.sh +137 -0
- package/claude-assets/skills/cfn-redis-coordination/heartbeat-protocol.md +106 -0
- package/claude-assets/skills/cfn-redis-coordination/heartbeat.sh +126 -0
- package/claude-assets/skills/cfn-redis-coordination/init-swarm.sh +148 -0
- package/claude-assets/skills/cfn-redis-coordination/invoke-redis-pattern.sh +220 -0
- package/claude-assets/skills/cfn-redis-coordination/invoke-waiting-mode.sh +283 -0
- package/claude-assets/skills/cfn-redis-coordination/invoke-waiting-mode.sh.backup-p7 +423 -0
- package/claude-assets/skills/cfn-redis-coordination/list-active-swarms.sh +147 -0
- package/claude-assets/skills/cfn-redis-coordination/log-event.sh +109 -0
- package/claude-assets/skills/cfn-redis-coordination/metrics-export.sh +674 -0
- package/claude-assets/skills/cfn-redis-coordination/metrics-schema.json +66 -0
- package/claude-assets/skills/cfn-redis-coordination/metrics-storage.md +31 -0
- package/claude-assets/skills/cfn-redis-coordination/monitor-cfn-violations.sh +391 -0
- package/claude-assets/skills/cfn-redis-coordination/monitor-heartbeats.sh +101 -0
- package/claude-assets/skills/cfn-redis-coordination/orchestrate-cfn-loop-v3.sh +141 -0
- package/claude-assets/skills/cfn-redis-coordination/orchestrate-cfn-loop.sh +31 -0
- package/claude-assets/skills/cfn-redis-coordination/orchestrate-cfn-loop.sh.backup +38 -0
- package/claude-assets/skills/cfn-redis-coordination/orchestrate-cfn-loop.sh.backup-1761167675 +1672 -0
- package/claude-assets/skills/cfn-redis-coordination/orchestrate-cfn-loop.sh.backup-p5 +1604 -0
- package/claude-assets/skills/cfn-redis-coordination/orchestrate-cfn-loop.sh.backup-phase1 +1550 -0
- package/claude-assets/skills/cfn-redis-coordination/orchestrate-cfn-loop.sh.backup-phase2 +1621 -0
- package/claude-assets/skills/cfn-redis-coordination/orchestrate-cfn-loop.sh.backup-phase3 +1621 -0
- package/claude-assets/skills/cfn-redis-coordination/orchestrate-cfn-loop.sh.bak +0 -0
- package/claude-assets/skills/cfn-redis-coordination/orchestrate-cfn-loop.sh.broken +1627 -0
- package/claude-assets/skills/cfn-redis-coordination/orchestrate-cfn-loop.sh.corrupted +80 -0
- package/claude-assets/skills/cfn-redis-coordination/orchestrate-cfn-loop.sh.deprecated +1864 -0
- package/claude-assets/skills/cfn-redis-coordination/priority-wake-mechanism.md +75 -0
- package/claude-assets/skills/cfn-redis-coordination/priority_wake.py +134 -0
- package/claude-assets/skills/cfn-redis-coordination/query-dlq.sh +162 -0
- package/claude-assets/skills/cfn-redis-coordination/query-logs.sh +103 -0
- package/claude-assets/skills/cfn-redis-coordination/redis-pattern.sh +619 -0
- package/claude-assets/skills/cfn-redis-coordination/retrieve-context.sh +58 -0
- package/claude-assets/skills/cfn-redis-coordination/select-specialist-agent.sh +371 -0
- package/claude-assets/skills/cfn-redis-coordination/semantic-match-tfidf.py +252 -0
- package/claude-assets/skills/cfn-redis-coordination/send-heartbeat.sh +165 -0
- package/claude-assets/skills/cfn-redis-coordination/signal.sh +38 -0
- package/claude-assets/skills/cfn-redis-coordination/store-context.sh +86 -0
- package/claude-assets/skills/cfn-redis-coordination/store-epic-context.sh +123 -0
- package/claude-assets/skills/cfn-redis-coordination/test-context-injection.sh +354 -0
- package/claude-assets/skills/cfn-redis-coordination/test-timeout-enforcement.sh +513 -0
- package/claude-assets/skills/cfn-redis-coordination/tests/convert-line-endings.sh +15 -0
- package/claude-assets/skills/cfn-redis-coordination/tests/dlq-functionality-test.sh +102 -0
- package/claude-assets/skills/cfn-redis-coordination/tests/edge-cases-test.sh +99 -0
- package/claude-assets/skills/cfn-redis-coordination/tests/integration-test.sh +170 -0
- package/claude-assets/skills/cfn-redis-coordination/tests/retry-mechanism-test.sh +82 -0
- package/claude-assets/skills/cfn-redis-coordination/tests/run-test-suite.sh +92 -0
- package/claude-assets/skills/cfn-redis-coordination/tests/run-tests.sh +4 -0
- package/claude-assets/skills/cfn-redis-coordination/tests/test-heartbeat-monitoring.sh +418 -0
- package/claude-assets/skills/cfn-redis-coordination/tests/test-heartbeat-simple.sh +124 -0
- package/claude-assets/skills/cfn-redis-coordination/tests/test-primitives.sh +166 -0
- package/claude-assets/skills/cfn-redis-coordination/tests/test-utils.sh +54 -0
- package/claude-assets/skills/cfn-redis-coordination/tests/test_coordination_primitives.sh.deprecated +20 -0
- package/claude-assets/skills/cfn-redis-coordination/tests/test_utils.sh +49 -0
- package/claude-assets/skills/cfn-redis-coordination/v2_modularization/core_orchestration.sh +76 -0
- package/claude-assets/skills/cfn-redis-coordination/validate-parameters.sh +492 -0
- package/claude-assets/skills/cfn-retrospective-report/SKILL.md +31 -0
- package/claude-assets/skills/cfn-retrospective-report/generate-report.sh +101 -0
- package/claude-assets/skills/cfn-scope-simplifier/SKILL.md +37 -0
- package/claude-assets/skills/cfn-scope-simplifier/simplify-scope.sh +68 -0
- package/claude-assets/skills/cfn-simplified-agent-lifecycle/COST_ANALYSIS.md +49 -0
- package/claude-assets/skills/cfn-simplified-agent-lifecycle/DESIGN.md +98 -0
- package/claude-assets/skills/cfn-simplified-agent-lifecycle/MIGRATION_PLAN.md +74 -0
- package/claude-assets/skills/cfn-skill-builder/SKILL.md +910 -0
- package/claude-assets/skills/cfn-specialist-injection/SKILL.md +41 -0
- package/claude-assets/skills/cfn-specialist-injection/recommend-specialist.sh +57 -0
- package/claude-assets/skills/cfn-sprint-execution/SKILL.md +27 -0
- package/claude-assets/skills/cfn-sprint-execution/execute-sprint-task.sh +59 -0
- package/claude-assets/skills/cfn-sprint-execution/execute-sprint.sh +65 -0
- package/claude-assets/skills/cfn-sprint-planner/SKILL.md +37 -0
- package/claude-assets/skills/cfn-sprint-planner/plan-sprint.sh +85 -0
- package/claude-assets/skills/cfn-sqlite-memory/IMPLEMENTATION_REPORT.md +393 -0
- package/claude-assets/skills/cfn-sqlite-memory/QUICK_REFERENCE.md +204 -0
- package/claude-assets/skills/cfn-sqlite-memory/README.md +65 -0
- package/claude-assets/skills/cfn-sqlite-memory/SKILL.md +415 -0
- package/claude-assets/skills/cfn-sqlite-memory/acl-queries.sql +452 -0
- package/claude-assets/skills/cfn-sqlite-memory/check-dependencies.sh +36 -0
- package/claude-assets/skills/cfn-sqlite-memory/config.json +45 -0
- package/claude-assets/skills/cfn-sqlite-memory/memory-cli.sh +88 -0
- package/claude-assets/skills/cfn-sqlite-memory/test-state-persistence.js +187 -0
- package/claude-assets/skills/cfn-sqlite-memory/ttl-cleanup.sh +274 -0
- package/claude-assets/skills/cfn-standardized-error-handling/SKILL.md +56 -0
- package/claude-assets/skills/cfn-standardized-error-handling/capture-agent-error.sh +87 -0
- package/claude-assets/skills/cfn-standardized-error-handling/test-error-handling.sh +166 -0
- package/claude-assets/skills/cfn-task-classifier/SKILL.md +94 -0
- package/claude-assets/skills/cfn-task-classifier/USAGE.md +248 -0
- package/claude-assets/skills/cfn-task-classifier/classify-task.sh +291 -0
- package/claude-assets/skills/cfn-test-execution/README.md +129 -0
- package/claude-assets/skills/cfn-test-execution/SKILL.md +128 -0
- package/claude-assets/skills/cfn-test-execution/check-dependencies.sh +36 -0
- package/claude-assets/skills/cfn-test-execution/test-cache-reader.sh +134 -0
- package/claude-assets/skills/cfn-test-execution/test-concurrent-conflicts.sh +115 -0
- package/claude-assets/skills/cfn-test-execution/test-coordinator-pattern.sh +109 -0
- package/claude-assets/skills/cfn-transparency-middleware/Cargo.toml +18 -0
- package/claude-assets/skills/cfn-transparency-middleware/README.md +74 -0
- package/claude-assets/skills/cfn-transparency-middleware/SECURITY.md +41 -0
- package/claude-assets/skills/cfn-transparency-middleware/SKILL.md +91 -0
- package/claude-assets/skills/cfn-transparency-middleware/TEST_RESULTS.md +174 -0
- package/claude-assets/skills/cfn-transparency-middleware/config.json +31 -0
- package/claude-assets/skills/cfn-transparency-middleware/examples/basic-usage.ts +39 -0
- package/claude-assets/skills/cfn-transparency-middleware/examples/batch-processing.ts +52 -0
- package/claude-assets/skills/cfn-transparency-middleware/examples/custom-filtering.ts +61 -0
- package/claude-assets/skills/cfn-transparency-middleware/invoke-transparency-filter.sh +98 -0
- package/claude-assets/skills/cfn-transparency-middleware/invoke-transparency-init.sh +224 -0
- package/claude-assets/skills/cfn-transparency-middleware/invoke-transparency-level.sh +333 -0
- package/claude-assets/skills/cfn-transparency-middleware/invoke-transparency-metrics.sh +345 -0
- package/claude-assets/skills/cfn-transparency-middleware/invoke-transparency-observe.sh +140 -0
- package/claude-assets/skills/cfn-transparency-middleware/invoke-transparency-stop.sh +235 -0
- package/claude-assets/skills/cfn-transparency-middleware/memory_query.rs +85 -0
- package/claude-assets/skills/cfn-transparency-middleware/memory_repository.rs +140 -0
- package/claude-assets/skills/cfn-transparency-middleware/memory_schema.rs +64 -0
- package/claude-assets/skills/cfn-transparency-middleware/middleware-config.sh +29 -0
- package/claude-assets/skills/cfn-transparency-middleware/performance-benchmark.sh +79 -0
- package/claude-assets/skills/cfn-transparency-middleware/test-e2e.sh +406 -0
- package/claude-assets/skills/cfn-transparency-middleware/test-integration.sh +162 -0
- package/claude-assets/skills/cfn-transparency-middleware/test-transparency-skill.sh +368 -0
- package/claude-assets/skills/cfn-transparency-middleware/test-transparency-skill.sh.unix +126 -0
- package/claude-assets/skills/cfn-transparency-middleware/tests/input-validation.sh +93 -0
- package/claude-assets/skills/cfn-transparency-middleware/wrap-agent.sh +132 -0
- package/claude-assets/skills/cfn-validation-templates/SKILL.md +47 -0
- package/claude-assets/skills/cfn-validation-templates/content.json +38 -0
- package/claude-assets/skills/cfn-validation-templates/data.json +38 -0
- package/claude-assets/skills/cfn-validation-templates/design.json +38 -0
- package/claude-assets/skills/cfn-validation-templates/infrastructure.json +38 -0
- package/claude-assets/skills/cfn-validation-templates/research.json +38 -0
- package/claude-assets/skills/cfn-validation-templates/software.json +38 -0
- package/claude-assets/skills/cfn-web-portal/DESIGN.md +117 -0
- package/claude-assets/skills/cfn-web-portal/SKILL.md +679 -0
- package/claude-assets/skills/cfn-web-portal/invoke-portal-agents.sh +129 -0
- package/claude-assets/skills/cfn-web-portal/invoke-portal-dashboard.sh +85 -0
- package/claude-assets/skills/cfn-web-portal/invoke-portal-events.sh +125 -0
- package/claude-assets/skills/cfn-web-portal/invoke-portal-metrics.sh +112 -0
- package/claude-assets/skills/cfn-web-portal/invoke-portal-start.sh +135 -0
- package/claude-assets/skills/cfn-web-portal/invoke-portal-stop.sh +121 -0
- package/claude-assets/skills/cfn-web-portal/test-web-portal-skill.sh +51 -0
- package/claude-assets/skills/cfn-web-portal/validate-deployment.sh +85 -0
- package/claude-assets/skills/cfn-webapp-testing/README.md +142 -0
- package/claude-assets/skills/cfn-webapp-testing/SCREENSHOT_NAMING_CONVENTION.md +547 -0
- package/claude-assets/skills/cfn-webapp-testing/SKILL.md +877 -0
- package/claude-assets/skills/cfn-webapp-testing/capture-screenshot.sh +238 -0
- package/claude-assets/skills/cfn-webapp-testing/cfn-loop-integration.sh +265 -0
- package/claude-assets/skills/cfn-webapp-testing/compare-screenshots.sh +199 -0
- package/claude-assets/skills/cfn-webapp-testing/init-storage.sh +150 -0
- package/claude-assets/skills/cfn-webapp-testing/set-baseline.sh +196 -0
- package/claude-assets/skills/cfn-webapp-testing/test-webapp-testing.sh +233 -0
- package/claude-assets/skills/consensus-calculator.js +45 -0
- package/claude-assets/skills/evidence-chain.sql +66 -0
- package/claude-assets/skills/run-all-skill-tests.sh +124 -0
- package/claude-assets/skills/test-execution-coordinator-pattern.md +228 -0
- package/package.json +4 -3
- package/scripts/init-project.js +7 -7
|
@@ -0,0 +1,796 @@
|
|
|
1
|
+
# Claude Flow Novice — AI Agent Orchestration
|
|
2
|
+
|
|
3
|
+
**🚀 Production Status:** v2.9.1 - Namespace Isolation Complete (2025-10-25)
|
|
4
|
+
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
## 1) Critical Rules (Single Source of Truth)
|
|
8
|
+
|
|
9
|
+
### Core Operational Rules
|
|
10
|
+
* **Use agents for all non-trivial work** (≥4 steps or any multi-file / research / testing / architecture / security / integration / refactor / feature)
|
|
11
|
+
* **Initialize swarm before any multi-agent work**
|
|
12
|
+
* **Batch operations**: one message per related batch (spawn, file edits, bash, todos, memory ops)
|
|
13
|
+
* **Run post-edit hook after every file edit** inclusive of .md files and await the response
|
|
14
|
+
* **Never work solo** on multi-step tasks. Spawn parallel specialists
|
|
15
|
+
* **Never mix implementers and validators in the same message**
|
|
16
|
+
* **Never run tests inside agents.** Execute once; agents read results
|
|
17
|
+
* **Never save to project root.** Use proper subdirs
|
|
18
|
+
* **No guides/summaries/reports** unless explicitly asked
|
|
19
|
+
* **Use spartan language and give answers in plain english**
|
|
20
|
+
* **Concise answers only** - no code examples unless requested
|
|
21
|
+
* **Redis persistence enables swarm recovery** - swarm state survives interruptions
|
|
22
|
+
* **ALL agent communication MUST use Redis pub/sub** - no direct file coordination
|
|
23
|
+
* **NEVER HARDCODE API KEYS**
|
|
24
|
+
* **sleep on repeat** when monitoring a background process. sleep x minutes, check progress, sleep, repeat
|
|
25
|
+
|
|
26
|
+
**Agent Output Standards:**
|
|
27
|
+
* **Bug documentation**: `docs/BUG_#_*.md` (investigation, fix summary, validation)
|
|
28
|
+
* **Test scripts**: `tests/test-*.sh` (persistent, version controlled)
|
|
29
|
+
* **Feature documentation**: `docs/FEATURE_NAME.md` (architecture, process docs)
|
|
30
|
+
* **Temporary files ONLY**: `/tmp/` (ephemeral test fixtures, scratch data)
|
|
31
|
+
* **Full guidelines**: `docs/AGENT_OUTPUT_STANDARDS.md`
|
|
32
|
+
|
|
33
|
+
**Consensus thresholds:**
|
|
34
|
+
* Gate (agent self-confidence): **≥0.75 each**
|
|
35
|
+
* Validators consensus: **≥0.90**
|
|
36
|
+
|
|
37
|
+
### CTO Delegation Persona
|
|
38
|
+
* **Act as a busy CTO** who delegates all non-trivial work to specialized agents or a cfn-coordinator
|
|
39
|
+
* **Define clear success criteria** for implementation (working code, passing tests, documented features)
|
|
40
|
+
* **Never define adoption criteria** (user engagement, rollout strategy, training plans)
|
|
41
|
+
* **Ruthlessly delegate** - if task requires >3 steps, spawn agents immediately
|
|
42
|
+
* **Provide context, not solutions** - agents figure out implementation details
|
|
43
|
+
* **Success = implementation complete** - not "users love it" or "team adopts it"
|
|
44
|
+
|
|
45
|
+
---
|
|
46
|
+
|
|
47
|
+
### Skills-Based Coordination
|
|
48
|
+
**Core Skills:**
|
|
49
|
+
- Redis Coordination (`.claude/skills/cfn-redis-coordination/SKILL.md`)
|
|
50
|
+
- Agent Spawning (`.claude/skills/cfn-agent-spawning/SKILL.md`)
|
|
51
|
+
- CFN Loop Validation (`.claude/skills/cfn-loop-validation/SKILL.md`)
|
|
52
|
+
- Product Owner Decision (`.claude/skills/cfn-product-owner-decision/SKILL.md`)
|
|
53
|
+
- Agent Output Processing (`.claude/skills/cfn-agent-output-processing/SKILL.md`)
|
|
54
|
+
|
|
55
|
+
### Namespace Isolation (v2.9.1)
|
|
56
|
+
|
|
57
|
+
**Structure:**
|
|
58
|
+
- Agents: `.claude/agents/cfn-dev-team/` (23 production agents)
|
|
59
|
+
- Skills: `.claude/skills/cfn-*/` (43 skills, cfn- prefix)
|
|
60
|
+
- Hooks: `.claude/hooks/cfn-*` (7 hooks, cfn- prefix)
|
|
61
|
+
- Commands: `.claude/commands/cfn/` (45+ commands, subdirectory)
|
|
62
|
+
|
|
63
|
+
**Installation:**
|
|
64
|
+
```bash
|
|
65
|
+
npm install claude-flow-novice
|
|
66
|
+
npx cfn-init # Copy namespace-isolated files
|
|
67
|
+
```
|
|
68
|
+
|
|
69
|
+
**Collision Risk:** ~0.01% (user custom files preserved)
|
|
70
|
+
|
|
71
|
+
**Package:** 573 KB tarball, 2.4 MB unpacked, 303 files (68% reduction from v2.0.0)
|
|
72
|
+
|
|
73
|
+
**Agent Discovery:** Recursive search through `.claude/agents/**/*.md` finds both cfn-dev-team and user custom agents
|
|
74
|
+
|
|
75
|
+
**Coordination Principles:**
|
|
76
|
+
* ALL agent communication via explicit Redis pub/sub dependencies
|
|
77
|
+
* Modular, independently maintainable skills
|
|
78
|
+
* Minimal, focused coordination logic
|
|
79
|
+
* **Multi-layer enforcement**: When designing distributed systems, implement coordination primitives at multiple layers (technical, skill, cross-reference, agent, system, entry) to ensure consistent behavior across all workflows
|
|
80
|
+
* **Centralized orchestration**: Keep orchestration logic in dedicated coordination skills (e.g., Redis Coordination) rather than distributing it across multiple components
|
|
81
|
+
|
|
82
|
+
### Main Chat Role (Thin Orchestration Layer)
|
|
83
|
+
* Spawn ONLY coordinator agent (single Task() call)
|
|
84
|
+
* Coordinator handles all agent spawning internally via CLI using the orchestration skill
|
|
85
|
+
* Delegate ALL coordination to skills
|
|
86
|
+
* Use skill-specific configuration for complex workflows
|
|
87
|
+
|
|
88
|
+
### Cost-Savings Mode (CLI Spawning)
|
|
89
|
+
|
|
90
|
+
**All CFN Loop slash commands automatically use cost-optimized coordinators.** No manual configuration needed.
|
|
91
|
+
|
|
92
|
+
**Recommended Usage:**
|
|
93
|
+
```bash
|
|
94
|
+
# Use slash commands (automatically cost-optimized)
|
|
95
|
+
/cfn-loop "Implement feature" --mode=standard
|
|
96
|
+
/cfn-loop-single "Fix bug"
|
|
97
|
+
/cfn-loop-epic "Build system"
|
|
98
|
+
```
|
|
99
|
+
|
|
100
|
+
**Core Coordinators:**
|
|
101
|
+
|
|
102
|
+
| Coordinator | Spawning Method | Cost Savings | Use Case |
|
|
103
|
+
|-------------|----------------|--------------|----------|
|
|
104
|
+
| `cfn-v3-coordinator` | CLI | 95-98% | CFN Loops |
|
|
105
|
+
| `cost-savings-coordinator` | CLI | 95-98% | General tasks |
|
|
106
|
+
|
|
107
|
+
**Architecture:**
|
|
108
|
+
Main Chat → Single coordinator agent → Coordinator spawns workers via CLI → 95-98% cost savings
|
|
109
|
+
|
|
110
|
+
## CFN v3 Dual-Mode Architecture
|
|
111
|
+
|
|
112
|
+
**Two spawning modes:**
|
|
113
|
+
1. **CLI Mode** (default): Cost-optimized, Redis context, Z.ai routing
|
|
114
|
+
2. **Task Mode**: Simplified, direct injection, Anthropic routing
|
|
115
|
+
|
|
116
|
+
**Mode Selection:**
|
|
117
|
+
```bash
|
|
118
|
+
# Default: CLI mode (95-98% savings)
|
|
119
|
+
/cfn-loop "Task description"
|
|
120
|
+
|
|
121
|
+
# Explicit Task mode (full visibility)
|
|
122
|
+
/cfn-loop "Task description" --spawn-mode=task
|
|
123
|
+
```
|
|
124
|
+
|
|
125
|
+
**Key Differences:**
|
|
126
|
+
- CLI mode: Main Chat → Coordinator → cfn-loop-orchestration/orchestrate.sh → CLI agents
|
|
127
|
+
- Task mode: Main Chat → Coordinator → JSON → Main Chat spawns Task() agents
|
|
128
|
+
- CLI agents use Z.ai routing automatically
|
|
129
|
+
- Redis context enables swarm recovery (CLI mode)
|
|
130
|
+
|
|
131
|
+
**Context Storage:**
|
|
132
|
+
- Both modes store context in Redis
|
|
133
|
+
- CLI agents read from Redis: `redis-cli HGETALL "cfn_loop:task:$TASK_ID:context"`
|
|
134
|
+
- Task mode: Main Chat injects directly but also stores in Redis
|
|
135
|
+
|
|
136
|
+
**Reference:** See `planning/cfn-v3/DUAL_MODE_IMPLEMENTATION.md`
|
|
137
|
+
|
|
138
|
+
### Custom Routing (Z.ai Provider Integration)
|
|
139
|
+
|
|
140
|
+
**Provider Routing Model:**
|
|
141
|
+
- **Task() agents** → Use Main Chat provider (Anthropic)
|
|
142
|
+
- **CLI-spawned agents** → Use custom routing (Z.ai when enabled)
|
|
143
|
+
|
|
144
|
+
**Enable Custom Routing (One-Time Setup):**
|
|
145
|
+
```bash
|
|
146
|
+
/custom-routing-activate
|
|
147
|
+
```
|
|
148
|
+
|
|
149
|
+
**Cost Impact:**
|
|
150
|
+
```
|
|
151
|
+
Without Custom Routing:
|
|
152
|
+
- CLI agents use Anthropic ($3-15/1M tokens)
|
|
153
|
+
|
|
154
|
+
With Custom Routing:
|
|
155
|
+
- CLI agents use Z.ai ($0.50/1M tokens)
|
|
156
|
+
- ~5x cost reduction per CLI agent call
|
|
157
|
+
- Combined with CLI spawning: 95-98% total savings vs Task tool
|
|
158
|
+
```
|
|
159
|
+
|
|
160
|
+
**Key Concept for Agents:**
|
|
161
|
+
When spawned via CLI (`npx claude-flow-novice`), you automatically benefit from custom routing if enabled. No action required from agent code - routing is handled at infrastructure level.
|
|
162
|
+
|
|
163
|
+
**Verify Status:**
|
|
164
|
+
```bash
|
|
165
|
+
/switch-api status
|
|
166
|
+
```
|
|
167
|
+
|
|
168
|
+
**CRITICAL: Single Coordinator Pattern (v2)**
|
|
169
|
+
|
|
170
|
+
Main Chat spawns ONLY the coordinator agent. The coordinator handles all agent spawning internally via CLI and .claude/skills/cfn-loop-orchestration/orchestrate.sh
|
|
171
|
+
|
|
172
|
+
**❌ FORBIDDEN - Main Chat Spawning Workers:**
|
|
173
|
+
```javascript
|
|
174
|
+
// WRONG in v2 - Don't spawn workers from Main Chat
|
|
175
|
+
Task("coordinator", "Coordinate task...")
|
|
176
|
+
Task("backend-dev", "Implement feature...") // ❌ NO
|
|
177
|
+
Task("tester", "Test feature...") // ❌ NO
|
|
178
|
+
```
|
|
179
|
+
|
|
180
|
+
**✅ REQUIRED - Single Coordinator:**
|
|
181
|
+
```javascript
|
|
182
|
+
// CORRECT - Main Chat spawns only coordinator
|
|
183
|
+
Task("cfn-v3-coordinator", `
|
|
184
|
+
Execute CFN Loop for: Implement authentication
|
|
185
|
+
|
|
186
|
+
Coordinator will:
|
|
187
|
+
1. Invoke .claude/skills/cfn-loop-orchestration/orchestrate.sh
|
|
188
|
+
2. Orchestrator spawns agents via CLI
|
|
189
|
+
3. Coordinator manages all Redis coordination
|
|
190
|
+
4. Return structured result to Main Chat
|
|
191
|
+
`)
|
|
192
|
+
```
|
|
193
|
+
|
|
194
|
+
**Why This Pattern:**
|
|
195
|
+
- Coordinator controls spawn timing via .claude/skills/cfn-loop-orchestration/orchestrate.sh and CLI (no timeout issues)
|
|
196
|
+
- 95-98% cost savings vs Task() spawning
|
|
197
|
+
- Zero-token waiting between iterations (Redis BLPOP)
|
|
198
|
+
- Sequential CLI spawning is safe (coordinator manages order)
|
|
199
|
+
- Clean separation: Main Chat → Coordinator → Workers
|
|
200
|
+
|
|
201
|
+
### Post-Edit Validation (REQUIRED for all Edit/Write operations on any file type)
|
|
202
|
+
**After ANY Edit/Write/MultiEdit operation on all file types, agents MUST run:**
|
|
203
|
+
```bash
|
|
204
|
+
./.claude/hooks/cfn-invoke-post-edit.sh "$EDITED_FILE" --agent-id "$AGENT_ID"
|
|
205
|
+
```
|
|
206
|
+
|
|
207
|
+
**Why:** Prevents errors and disorganization from propagating. Non-blocking by default.
|
|
208
|
+
**Config:** `.claude/hooks/post-edit.config.json`
|
|
209
|
+
**Skill:** `.claude/skills/hook-pipeline/SKILL.md`
|
|
210
|
+
|
|
211
|
+
## 2) When Agents Are Mandatory (Triggers)
|
|
212
|
+
|
|
213
|
+
If **any** apply, spawn agents:
|
|
214
|
+
|
|
215
|
+
* > 3 distinct steps • multiple files • research+implement+test • design decisions • code review/quality • security/performance/compliance • system integration • docs generation • refactor/optimize • any feature work
|
|
216
|
+
|
|
217
|
+
### Skill Selection Criteria
|
|
218
|
+
**Mandatory Skill Spawning Triggers:**
|
|
219
|
+
- Complex tasks (>3 steps)
|
|
220
|
+
- Multi-file operations
|
|
221
|
+
- Research + implementation + testing
|
|
222
|
+
- Design decisions
|
|
223
|
+
- Code quality assessment
|
|
224
|
+
- Performance optimization
|
|
225
|
+
- System integration
|
|
226
|
+
|
|
227
|
+
### Spawning Pattern
|
|
228
|
+
```bash
|
|
229
|
+
# Explicit skill-based agent spawning
|
|
230
|
+
npx claude-flow-novice swarm "Task Description" \
|
|
231
|
+
--skills=redis-coordination,agent-spawning \
|
|
232
|
+
--strategy development
|
|
233
|
+
```
|
|
234
|
+
|
|
235
|
+
### Single Agent vs Coordinator
|
|
236
|
+
|
|
237
|
+
**Use Single Agent:**
|
|
238
|
+
* 1 specialized task (coding, reviewing, testing)
|
|
239
|
+
* No dependencies on other agents
|
|
240
|
+
* Straightforward execution
|
|
241
|
+
|
|
242
|
+
**Use Coordinator:**
|
|
243
|
+
* Multiple agents needed (2+)
|
|
244
|
+
* Sequential dependencies (Loop 3 → Loop 2 → Product Owner)
|
|
245
|
+
* Iteration/consensus required
|
|
246
|
+
* CFN Loop workflows
|
|
247
|
+
|
|
248
|
+
## 3) Coordination Patterns
|
|
249
|
+
|
|
250
|
+
**Redis Coordination Patterns**
|
|
251
|
+
Refer to `.claude/skills/cfn-redis-coordination/SKILL.md` for:
|
|
252
|
+
- Simple Chain Coordination
|
|
253
|
+
- Hierarchical Broadcast
|
|
254
|
+
- Mesh Hybrid Patterns
|
|
255
|
+
- **Waiting Mode + Wake-Up** (✅ Operational)
|
|
256
|
+
|
|
257
|
+
### Redis Waiting Mode (Zero-Token Agent Coordination)
|
|
258
|
+
|
|
259
|
+
**Use Case:** CFN Loop iterations, long-running tasks, multi-agent consensus
|
|
260
|
+
|
|
261
|
+
**Agent enters waiting mode:**
|
|
262
|
+
```bash
|
|
263
|
+
./.claude/skills/cfn-redis-coordination/invoke-waiting-mode.sh enter \
|
|
264
|
+
--task-id "$TASK_ID" \
|
|
265
|
+
--agent-id "$AGENT_ID" \
|
|
266
|
+
--context "iteration-1"
|
|
267
|
+
```
|
|
268
|
+
|
|
269
|
+
**Coordinator wakes agent:**
|
|
270
|
+
```bash
|
|
271
|
+
./.claude/skills/cfn-redis-coordination/invoke-waiting-mode.sh wake \
|
|
272
|
+
--task-id "$TASK_ID" \
|
|
273
|
+
--agent-id "$AGENT_ID" \
|
|
274
|
+
--reason cfn_loop_iteration \
|
|
275
|
+
--iteration 2 \
|
|
276
|
+
--feedback "Add error handling,Improve test coverage"
|
|
277
|
+
```
|
|
278
|
+
|
|
279
|
+
**Agent reports result:**
|
|
280
|
+
```bash
|
|
281
|
+
./.claude/skills/cfn-redis-coordination/invoke-waiting-mode.sh report \
|
|
282
|
+
--task-id "$TASK_ID" \
|
|
283
|
+
--agent-id "$AGENT_ID" \
|
|
284
|
+
--confidence 0.92 \
|
|
285
|
+
--iteration 2
|
|
286
|
+
```
|
|
287
|
+
|
|
288
|
+
**Coordinator collects results:**
|
|
289
|
+
```bash
|
|
290
|
+
CONSENSUS=$(./.claude/skills/cfn-redis-coordination/invoke-waiting-mode.sh collect \
|
|
291
|
+
--task-id "$TASK_ID" \
|
|
292
|
+
--agent-ids "coder-1,reviewer-1,tester-1,security-1")
|
|
293
|
+
|
|
294
|
+
if (( $(echo "$CONSENSUS >= 0.90" | bc -l) )); then
|
|
295
|
+
echo "✅ Consensus reached: $CONSENSUS"
|
|
296
|
+
fi
|
|
297
|
+
```
|
|
298
|
+
|
|
299
|
+
**Benefits:**
|
|
300
|
+
- 🚀 Zero token cost while waiting (BLPOP blocks, no API calls)
|
|
301
|
+
- 🔄 Context preserved across iterations
|
|
302
|
+
- ⚡ Instant wake-up (<100ms latency)
|
|
303
|
+
- 📈 Scalable (10+ agents, indefinite cycles)
|
|
304
|
+
|
|
305
|
+
**Key Pattern (STRAT-002):**
|
|
306
|
+
Use zero-token blocking mechanisms (like Redis BLPOP) to create efficient, low-overhead synchronization between agents without incurring API call costs. Validated by 8/8 passing tests in orchestrator test suite.
|
|
307
|
+
|
|
308
|
+
### ⚠️ Waiting Mode Without Coordinator (CRITICAL)
|
|
309
|
+
|
|
310
|
+
**Problem:** Agents entering waiting mode without a coordinator will block indefinitely.
|
|
311
|
+
|
|
312
|
+
**Why This Happens:**
|
|
313
|
+
- `invoke-waiting-mode.sh enter` uses `BLPOP` with timeout=0 (infinite)
|
|
314
|
+
- Agent blocks waiting for wake signal that never arrives
|
|
315
|
+
- No coordinator = no wake signal = agent stuck forever
|
|
316
|
+
- Shell/terminal timeout (typically 2min) may terminate the session
|
|
317
|
+
|
|
318
|
+
**When This Occurs:**
|
|
319
|
+
1. **Manual agent spawning** without orchestrator (testing, debugging)
|
|
320
|
+
2. **Epic execution** where Main Chat spawns agents directly
|
|
321
|
+
3. **Incomplete orchestration** where coordinator crashes mid-execution
|
|
322
|
+
|
|
323
|
+
**Solutions:**
|
|
324
|
+
|
|
325
|
+
**Option 1: Always Use Full Orchestration (RECOMMENDED)**
|
|
326
|
+
```bash
|
|
327
|
+
# CORRECT: Use orchestrator for all multi-agent workflows
|
|
328
|
+
./.claude/skills/cfn-loop-orchestration/cfn-orchestrate.sh \
|
|
329
|
+
--task-id "$TASK_ID" \
|
|
330
|
+
--mode standard \
|
|
331
|
+
--loop3-agents "coder-1,researcher-1" \
|
|
332
|
+
--loop2-agents "reviewer-1,tester-1" \
|
|
333
|
+
--product-owner "product-owner-1"
|
|
334
|
+
```
|
|
335
|
+
|
|
336
|
+
**Option 2: Manual Coordination (For Testing Only)**
|
|
337
|
+
```bash
|
|
338
|
+
# 1. Spawn agents (they enter waiting mode)
|
|
339
|
+
# 2. Collect confidence scores
|
|
340
|
+
CONSENSUS=$(./.claude/skills/cfn-redis-coordination/invoke-waiting-mode.sh collect \
|
|
341
|
+
--task-id "$TASK_ID" --agent-ids "coder-1,researcher-1")
|
|
342
|
+
|
|
343
|
+
# 3. Check consensus
|
|
344
|
+
if (( $(echo "$CONSENSUS >= 0.90" | bc -l) )); then
|
|
345
|
+
echo "✅ Complete - no iteration needed"
|
|
346
|
+
# Agents stay in waiting mode (expected, will timeout)
|
|
347
|
+
else
|
|
348
|
+
# 4. Wake agents for iteration 2
|
|
349
|
+
./.claude/skills/cfn-redis-coordination/invoke-waiting-mode.sh wake \
|
|
350
|
+
--task-id "$TASK_ID" \
|
|
351
|
+
--agent-id "coder-1" \
|
|
352
|
+
--reason "improve_quality" \
|
|
353
|
+
--iteration 2
|
|
354
|
+
fi
|
|
355
|
+
```
|
|
356
|
+
|
|
357
|
+
**Option 3: Skip Waiting Mode (Quick Testing)**
|
|
358
|
+
```bash
|
|
359
|
+
# Agent completion without waiting mode
|
|
360
|
+
redis-cli lpush "swarm:${TASK_ID}:${AGENT_ID}:done" "complete"
|
|
361
|
+
./.claude/skills/cfn-redis-coordination/invoke-waiting-mode.sh report \
|
|
362
|
+
--task-id "$TASK_ID" \
|
|
363
|
+
--agent-id "$AGENT_ID" \
|
|
364
|
+
--confidence 0.85
|
|
365
|
+
|
|
366
|
+
# Skip step 4 (enter waiting mode) - agent exits immediately
|
|
367
|
+
```
|
|
368
|
+
|
|
369
|
+
**Best Practice (STRAT-006):**
|
|
370
|
+
**Always spawn coordinator + agents together.** Never spawn agents in waiting mode without a coordinator unless you explicitly plan to wake them manually or accept timeout behavior.
|
|
371
|
+
|
|
372
|
+
```bash
|
|
373
|
+
# FORBIDDEN PATTERN:
|
|
374
|
+
Task("backend-dev", "Task with waiting mode...") # No coordinator!
|
|
375
|
+
|
|
376
|
+
# REQUIRED PATTERN:
|
|
377
|
+
Task("cfn-loop-coordinator", "Execute CFN Loop with orchestrator...")
|
|
378
|
+
# Coordinator spawns and manages all agents automatically
|
|
379
|
+
```
|
|
380
|
+
|
|
381
|
+
**Validation:** Agent timeouts during epic execution (Phases 1-3) were expected behavior - agents correctly entered waiting mode but no coordinator was present to wake them. This is acceptable for single-iteration phases where iteration is not needed.
|
|
382
|
+
|
|
383
|
+
## 4) CFN Loop Overview
|
|
384
|
+
|
|
385
|
+
**Skill-Driven Loop Management**
|
|
386
|
+
- Coordination via `.claude/skills/cfn-loop-validation/SKILL.md`
|
|
387
|
+
- **Automatic dependency orchestration** (v2.2.0)
|
|
388
|
+
- Adaptive context injection
|
|
389
|
+
- Modular loop progression
|
|
390
|
+
|
|
391
|
+
**Mode Comparison:**
|
|
392
|
+
|
|
393
|
+
| Mode | Gate | Consensus | Iterations | Validators |
|
|
394
|
+
|------|------|-----------|------------|------------|
|
|
395
|
+
| MVP | ≥0.70 | ≥0.80 | 5 | 2 |
|
|
396
|
+
| Standard | ≥0.75 | ≥0.90 | 10 | 3-4 |
|
|
397
|
+
| Enterprise | ≥0.85 | ≥0.95 | 15 | 5 |
|
|
398
|
+
|
|
399
|
+
### CFN Loop Dependency Enforcement (MANDATORY)
|
|
400
|
+
|
|
401
|
+
**All CFN loops use single coordinator pattern (v2):**
|
|
402
|
+
|
|
403
|
+
**1. Main Chat spawns coordinator:**
|
|
404
|
+
```javascript
|
|
405
|
+
Task("cfn-v3-coordinator", `
|
|
406
|
+
Execute CFN Loop for: Implement authentication system
|
|
407
|
+
|
|
408
|
+
Use orchestrator for dependency enforcement.
|
|
409
|
+
Report structured result when complete.
|
|
410
|
+
`)
|
|
411
|
+
```
|
|
412
|
+
|
|
413
|
+
**2. Coordinator invokes orchestrator internally:**
|
|
414
|
+
```bash
|
|
415
|
+
# Coordinator runs this script (NOT Main Chat)
|
|
416
|
+
./.claude/skills/cfn-loop-orchestration/cfn-orchestrate.sh \
|
|
417
|
+
--task-id "unique-task-id" \
|
|
418
|
+
--mode standard \
|
|
419
|
+
--loop3-agents "researcher,backend-dev,devops" \
|
|
420
|
+
--loop2-agents "reviewer,architect,tester" \
|
|
421
|
+
--product-owner "product-owner" \
|
|
422
|
+
--max-iterations 10 \
|
|
423
|
+
--phase-id "phase-2" \
|
|
424
|
+
--epic-context '{"epicGoal":"Build feature X","inScope":["A","B"]}' \
|
|
425
|
+
--phase-context '{"currentPhase":"Phase 2","deliverables":["Component 1","Component 2"]}' \
|
|
426
|
+
--success-criteria '{"acceptanceCriteria":["Tests pass","Coverage >80%"],"gateThreshold":0.75}'
|
|
427
|
+
|
|
428
|
+
# CFN v3 UPDATE: Modular orchestrator (78% code reduction)
|
|
429
|
+
# - Helper scripts for context injection, agent spawning, validation
|
|
430
|
+
# - Stateless context retrieval from Redis
|
|
431
|
+
# - Better agent ID tracking (no BLPOP hangs)
|
|
432
|
+
```
|
|
433
|
+
|
|
434
|
+
**3. Orchestrator spawns all agents via CLI:**
|
|
435
|
+
```bash
|
|
436
|
+
# Orchestrator spawns each agent
|
|
437
|
+
npx cfn-spawn agent researcher --task-id "$TASK_ID"
|
|
438
|
+
npx cfn-spawn agent backend-dev --task-id "$TASK_ID"
|
|
439
|
+
# ... etc
|
|
440
|
+
```
|
|
441
|
+
|
|
442
|
+
**4. Coordinator manages iterations and returns result to Main Chat**
|
|
443
|
+
|
|
444
|
+
**Why Orchestration is Mandatory:**
|
|
445
|
+
- ✅ Loop 2 validators BLOCKED until Loop 3 complete (BLPOP)
|
|
446
|
+
- ✅ Product Owner BLOCKED until Loop 2 complete (BLPOP)
|
|
447
|
+
- ✅ Prevents premature consensus collection
|
|
448
|
+
- ✅ Automatic iteration management
|
|
449
|
+
- ✅ Zero-token waiting between loops
|
|
450
|
+
- ✅ Coordinator controls entire flow from single agent
|
|
451
|
+
|
|
452
|
+
**Agent Completion Protocol:**
|
|
453
|
+
Each agent MUST signal completion before entering waiting mode:
|
|
454
|
+
|
|
455
|
+
```bash
|
|
456
|
+
# 1. Complete work
|
|
457
|
+
# 2. Signal done
|
|
458
|
+
redis-cli lpush "swarm:${TASK_ID}:${AGENT_ID}:done" "complete"
|
|
459
|
+
|
|
460
|
+
# 3. Report confidence
|
|
461
|
+
./.claude/skills/cfn-redis-coordination/invoke-waiting-mode.sh report \
|
|
462
|
+
--task-id "$TASK_ID" \
|
|
463
|
+
--agent-id "$AGENT_ID" \
|
|
464
|
+
--confidence 0.85 \
|
|
465
|
+
--iteration 1
|
|
466
|
+
|
|
467
|
+
# 4. Enter waiting mode
|
|
468
|
+
./.claude/skills/cfn-redis-coordination/invoke-waiting-mode.sh enter \
|
|
469
|
+
--task-id "$TASK_ID" \
|
|
470
|
+
--agent-id "$AGENT_ID" \
|
|
471
|
+
--context "iteration-complete"
|
|
472
|
+
```
|
|
473
|
+
|
|
474
|
+
**Orchestration Flow (CORRECTED - Self-Validation Pattern):**
|
|
475
|
+
1. Loop 3 agents complete work and report confidence
|
|
476
|
+
2. **Gate Check:** Loop 3 self-validation scores checked
|
|
477
|
+
- IF gate FAILS → Wake Loop 3 for iteration N+1 (skip Loop 2)
|
|
478
|
+
- IF gate PASSES → Signal Loop 2 to start work
|
|
479
|
+
3. Loop 2 validators WAIT for gate pass signal (`redis-cli blpop "swarm:${TASK_ID}:gate-passed" 0`)
|
|
480
|
+
4. Loop 2 validators review Loop 3 work and report consensus
|
|
481
|
+
5. **Product Owner Decision (BUG #11 FIX):** Orchestrator spawns Product Owner and parses output
|
|
482
|
+
- Uses `.claude/skills/product-owner-decision/execute-decision.sh`
|
|
483
|
+
- Extracts PROCEED/ITERATE/ABORT from agent output
|
|
484
|
+
- Validates deliverables (prevents "consensus on vapor")
|
|
485
|
+
- Orchestrator pushes decision to Redis (not agent)
|
|
486
|
+
6. **Decision Execution:**
|
|
487
|
+
- IF PROCEED → Task complete
|
|
488
|
+
- IF ITERATE → Wake all agents for iteration N+1
|
|
489
|
+
- IF ABORT → Exit with error
|
|
490
|
+
|
|
491
|
+
### CFN Loop Slash Commands
|
|
492
|
+
|
|
493
|
+
**Recommended: Use slash commands for CFN Loop execution**
|
|
494
|
+
|
|
495
|
+
Main Chat should use these commands instead of manually spawning coordinators:
|
|
496
|
+
|
|
497
|
+
**Single Task:**
|
|
498
|
+
```bash
|
|
499
|
+
/cfn-loop "Implement JWT authentication" --mode=standard
|
|
500
|
+
/cfn-loop-single "Fix security bug in auth module"
|
|
501
|
+
```
|
|
502
|
+
|
|
503
|
+
**Multi-Phase Epic:**
|
|
504
|
+
```bash
|
|
505
|
+
/cfn-loop-epic "Build complete authentication system"
|
|
506
|
+
```
|
|
507
|
+
|
|
508
|
+
**What These Commands Do:**
|
|
509
|
+
- Automatically spawn `cfn-v3-coordinator`
|
|
510
|
+
- Pass structured parameters (success criteria, agent configuration)
|
|
511
|
+
- Include custom routing cost reminders
|
|
512
|
+
- Enable web portal visibility
|
|
513
|
+
- Handle all orchestration internally
|
|
514
|
+
|
|
515
|
+
**Benefits:**
|
|
516
|
+
- ✅ Consistent parameter structure
|
|
517
|
+
- ✅ Built-in cost optimization reminders
|
|
518
|
+
- ✅ Success criteria templates
|
|
519
|
+
- ✅ Reduced coordination errors
|
|
520
|
+
- ✅ Better visibility into process
|
|
521
|
+
|
|
522
|
+
**See:** `.claude/commands/CFN_COORDINATOR_PARAMETERS.md` for detailed parameter specifications
|
|
523
|
+
|
|
524
|
+
## 5) Skill Management
|
|
525
|
+
|
|
526
|
+
### Skill Development Guidelines
|
|
527
|
+
- Maximum modularity
|
|
528
|
+
- Clear, explicit interfaces
|
|
529
|
+
- Minimal external dependencies
|
|
530
|
+
- Comprehensive test coverage
|
|
531
|
+
|
|
532
|
+
**Testing Best Practice (STRAT-005):**
|
|
533
|
+
Implement comprehensive test suites that validate both functional requirements and edge cases, including timeout scenarios and blocking mechanism effectiveness. Example: `.claude/skills/redis-coordination/test-orchestrator.sh` validates BLPOP blocking, agent completion protocol, and consensus collection with 8 targeted tests.
|
|
534
|
+
|
|
535
|
+
|
|
536
|
+
## 6) Additional Resources
|
|
537
|
+
|
|
538
|
+
**Skill References:**
|
|
539
|
+
- Redis Coordination: `.claude/skills/cfn-redis-coordination/SKILL.md`
|
|
540
|
+
- Agent Spawning: `.claude/skills/cfn-agent-spawning/SKILL.md`
|
|
541
|
+
- CFN Loop Validation: `.claude/skills/cfn-loop-validation/SKILL.md`
|
|
542
|
+
|
|
543
|
+
**Maintenance Plans:**
|
|
544
|
+
- Rollback Strategy: `planning/skills/ROLLBACK_PLAN.md`
|
|
545
|
+
- Maintenance Schedule: `planning/skills/MAINTENANCE_SCHEDULE.md`
|
|
546
|
+
|
|
547
|
+
**Migration Analytics:**
|
|
548
|
+
See `.artifacts/analytics/context-reduction-report.json`
|
|
549
|
+
## Sprint 7 Adaptive Context Lessons
|
|
550
|
+
|
|
551
|
+
### STRAT-007: Background Execution Strategy
|
|
552
|
+
- **Confidence:** 0.95
|
|
553
|
+
- **Priority:** 9
|
|
554
|
+
- **Insight**: Use background execution with Redis monitoring for long-running orchestration workflows (>10 minutes). Bash tool has hard 10-minute timeout that cannot be extended.
|
|
555
|
+
- **Tags**: orchestration, bash-timeout, redis-monitoring, background-execution
|
|
556
|
+
|
|
557
|
+
### ANTI-004: Regex Validation Anti-Pattern
|
|
558
|
+
- **Confidence:** 0.92
|
|
559
|
+
- **Priority:** 8
|
|
560
|
+
- **Insight**: Avoid simplistic regex matching for agent validation. Pattern `[[ $AGENTS =~ $AGENTS ]]` always returns true (self-matching).
|
|
561
|
+
- **Tags**: regex, validation, bug-prevention, orchestration
|
|
562
|
+
|
|
563
|
+
### PATTERN-008: Product Owner Decision Flow
|
|
564
|
+
- **Confidence:** 0.90
|
|
565
|
+
- **Priority:** 8
|
|
566
|
+
- **Insight**: Implement explicit Product Owner decision flow after Loop 2 consensus to prevent validator scope creep and enforce strategic boundaries.
|
|
567
|
+
- **Tags**: cfn-loop, product-owner, scope-management, decision-flow
|
|
568
|
+
|
|
569
|
+
## Sprint 8 Adaptive Context Lessons (Phase 1 & 2 - Skill-Based Output Processing)
|
|
570
|
+
|
|
571
|
+
### PATTERN-009: Multi-Pattern Confidence Parsing
|
|
572
|
+
- **Confidence:** 0.95
|
|
573
|
+
- **Priority:** 9
|
|
574
|
+
- **Insight**: Implement multi-pattern confidence parsing with fallback strategies. Design interfaces that gracefully handle multiple input formats, with explicit confidence scoring for each parsing attempt. Patterns: explicit numeric (0.85), percentage (85%), qualitative (high/medium/low), calculated defaults.
|
|
575
|
+
- **Tags**: parsing, confidence, strategy, error-handling, skill-based-processing
|
|
576
|
+
- **Applied in**: Loop 3 output processing, Loop 2 feedback extraction
|
|
577
|
+
- **Impact**: 100% confidence extraction success rate, eliminates 0.0 defaults
|
|
578
|
+
|
|
579
|
+
### STRAT-014: Skill Interface Consistency
|
|
580
|
+
- **Confidence:** 0.90
|
|
581
|
+
- **Priority:** 8
|
|
582
|
+
- **Insight**: Design skill interfaces with consistent parameter structures across skills. Use named parameters (--agent-type, --task-id, --agent-id, --context, --iteration, --timeout) with explicit type definitions, default values, and clear error messaging to improve skill reusability and reduce integration complexity. Enabled 95% code reuse between Loop 3 and Loop 2 implementations.
|
|
583
|
+
- **Tags**: interface, skill-design, consistency, reusability, pattern-reuse
|
|
584
|
+
- **Applied in**: loop3-output-processing, loop2-output-processing skills
|
|
585
|
+
- **Impact**: Phase 2 took 1.2h vs 3h from scratch (36% time savings)
|
|
586
|
+
|
|
587
|
+
### PATTERN-010: Parallel Execution with Temp Files
|
|
588
|
+
- **Confidence:** 0.93
|
|
589
|
+
- **Priority:** 9
|
|
590
|
+
- **Insight**: Use background processes with temporary files to eliminate race conditions in parallel agent coordination. Pattern: spawn all agents in background with `(skill-execution > /tmp/output-file) &`, collect PIDs, use `wait` to synchronize, read results from temp files after completion. Eliminates polling wait and guarantees synchronous output capture.
|
|
591
|
+
- **Tags**: parallel-execution, race-conditions, temp-files, background-processes, coordination
|
|
592
|
+
- **Applied in**: .claude/skills/cfn-loop-orchestration/orchestrate.sh (modular helper scripts)
|
|
593
|
+
- **Impact**: 3x speedup for 3 agents, zero race conditions
|
|
594
|
+
|
|
595
|
+
## Adaptive Context Extensions: CLI Agent Spawning Insights (v2.5.2)
|
|
596
|
+
|
|
597
|
+
### Strategy Patterns
|
|
598
|
+
|
|
599
|
+
#### PATTERN-001: Environment Configuration
|
|
600
|
+
- **Context**: CLI Entrypoints
|
|
601
|
+
- **Insight**: Always explicitly load environment configurations using 'import dotenv/config' to ensure provider-specific settings are correctly read and applied across different execution contexts.
|
|
602
|
+
- **Tags**: environment, configuration, cli, dotenv
|
|
603
|
+
- **Confidence**: 0.95
|
|
604
|
+
- **Priority**: 9/10
|
|
605
|
+
|
|
606
|
+
|
|
607
|
+
## Adaptive Context Extensions: CFN Loop Context Injection Insights (BUG #20)
|
|
608
|
+
|
|
609
|
+
### Strategy Patterns
|
|
610
|
+
|
|
611
|
+
#### STRAT-020: Mandatory Deliverable Verification
|
|
612
|
+
- **Context**: CFN Loop Consensus Validation
|
|
613
|
+
- **Insight**: Implement mandatory deliverable verification with forced iteration when no files created. After Loop 2 consensus, check git status for file changes. If task requires implementation (keywords: create/build/implement) but git shows zero changes, override consensus and force ITERATE with explicit deliverable requirements in feedback. Prevents 'consensus on vapor' where validators approve plans without actual code.
|
|
614
|
+
- **Tags**: deliverable-verification, consensus-validation, git-diff, cfn-loop, quality-gate
|
|
615
|
+
- **Confidence**: 0.95
|
|
616
|
+
- **Priority**: 10/10
|
|
617
|
+
- **Validation**: Core implementation in `.claude/skills/cfn-loop-validation/validate-deliverables.sh`
|
|
618
|
+
- **Retry Pattern**: Limited to 3 iterations, escalate to Product Owner if still no deliverables
|
|
619
|
+
|
|
620
|
+
#### STRAT-021: Standardized Context Extraction Templates
|
|
621
|
+
- **Context**: Coordinator Design
|
|
622
|
+
- **Insight**: Use standardized context extraction templates in coordinators. Template structure: epicGoal (1-2 sentences), inScope (list), outOfScope (list), deliverables (file paths), directory (creation path), acceptanceCriteria (measurable requirements). Extract using bash text processing (grep, sed, jq) with reasonable defaults for missing fields. Prevents minimal context ('Checkpoint' + '4.1') that causes wrong deliverables.
|
|
623
|
+
- **Tags**: context-extraction, coordinator, templates, standardization, parsing
|
|
624
|
+
- **Confidence**: 0.93
|
|
625
|
+
- **Priority**: 9/10
|
|
626
|
+
|
|
627
|
+
### Implementation Patterns
|
|
628
|
+
|
|
629
|
+
#### PATTERN-020: Multi-Layer Context Injection
|
|
630
|
+
- **Context**: Coordinator → Orchestrator → Agent Flow
|
|
631
|
+
- **Insight**: When implementing multi-layer coordination (coordinator → orchestrator → agents), ensure context flows through ALL layers. Pattern: Coordinator extracts context from task description, orchestrator retrieves context from Redis and injects into agent spawn parameters, agents receive complete deliverables/acceptance criteria in --context parameter. Breaking this chain causes 'consensus on vapor' (high confidence, zero deliverables).
|
|
632
|
+
- **Tags**: context-injection, cfn-loop, coordination, multi-layer, deliverables
|
|
633
|
+
- **Confidence**: 0.92
|
|
634
|
+
- **Priority**: 9/10
|
|
635
|
+
|
|
636
|
+
#### PATTERN-021: Context Validation Pipeline
|
|
637
|
+
- **Context**: Multi-Layer Coordination
|
|
638
|
+
- **Insight**: Design context validation pipeline with checkpoints at each layer. Pattern: (1) Coordinator validates extracted context has deliverables/acceptance criteria before spawning orchestrator, (2) Orchestrator validates Redis context retrieval succeeded before spawning agents, (3) Agents validate received context contains required fields before starting work. Each layer logs validation results. Fail-fast prevents cascading context loss.
|
|
639
|
+
- **Tags**: validation, context-injection, fail-fast, multi-layer, checkpoints
|
|
640
|
+
- **Confidence**: 0.87
|
|
641
|
+
- **Priority**: 8/10
|
|
642
|
+
|
|
643
|
+
#### PATTERN-022: Agent Lifecycle - Exit vs Waiting Mode
|
|
644
|
+
- **Context**: CFN Loop Agent Management
|
|
645
|
+
- **Insight**: When agents enter waiting mode after reporting confidence, they block orchestrator's wait $PID indefinitely. Solution: Remove waiting mode from CFN protocol Step 3, let agents exit cleanly. Enables adaptive agent specialization - orchestrator can spawn different specialist (security-specialist for security issues, not original coder) for next iteration based on feedback type. Pattern validated by BUG #18 fix.
|
|
646
|
+
- **Tags**: waiting-mode, agent-lifecycle, adaptive-specialization, orchestrator-blocking
|
|
647
|
+
- **Confidence**: 0.89
|
|
648
|
+
- **Priority**: 8/10
|
|
649
|
+
|
|
650
|
+
### Anti-Patterns
|
|
651
|
+
|
|
652
|
+
#### ANTI-020: Context Storage Without Injection
|
|
653
|
+
- **Context**: Redis Coordination
|
|
654
|
+
- **Insight**: Avoid storing context in Redis without retrieving and injecting it into agent prompts. Anti-pattern: Orchestrator stores epic-context, phase-context, success-criteria in Redis but spawns agents with generic context ('Loop 3 implementation for iteration N'). Result: Agents have no access to deliverables list, acceptance criteria, or directory paths despite context being 'available'.
|
|
655
|
+
- **Tags**: context-injection, redis, agent-spawning, storage-without-use
|
|
656
|
+
- **Confidence**: 0.88
|
|
657
|
+
- **Priority**: 8/10
|
|
658
|
+
|
|
659
|
+
#### ANTI-021: Generic Context When Specifics Exist
|
|
660
|
+
- **Context**: Agent Spawning
|
|
661
|
+
- **Insight**: Never pass generic iteration-level context when task-specific deliverables exist. Anti-pattern: Agent receives 'Loop 3 implementation for iteration 2' when Redis contains detailed deliverables list. Agents have no telepathy - they cannot infer '.claude/skills/checkpoint-state/SKILL.md' from 'iteration 2'. Always inject complete deliverables, directory paths, and acceptance criteria even if 'already in Redis'.
|
|
662
|
+
- **Tags**: agent-context, specificity, deliverables, telepathy-fallacy, explicitness
|
|
663
|
+
- **Confidence**: 0.91
|
|
664
|
+
- **Priority**: 9/10
|
|
665
|
+
|
|
666
|
+
### Edge Cases & Testing
|
|
667
|
+
|
|
668
|
+
#### EDGE-020: Comparative Agent Spawn Testing
|
|
669
|
+
- **Context**: Context Debugging
|
|
670
|
+
- **Insight**: When debugging context issues, use comparative agent spawn testing. Edge case discovered: Agents succeed when spawned manually with explicit context ('Create /tmp/test.sh') but fail in CFN Loop with generic context ('Loop 3 implementation'). This reveals context injection failure rather than tool/API issues. Test pattern: Manual spawn with explicit deliverables → verify file created → confirms agent capability → proves orchestrator context gap.
|
|
671
|
+
- **Tags**: debugging, context-testing, manual-spawn, comparative-testing, isolation
|
|
672
|
+
- **Confidence**: 0.90
|
|
673
|
+
- **Priority**: 7/10
|
|
674
|
+
|
|
675
|
+
## Sprint Execution in Claude Flow Novice
|
|
676
|
+
|
|
677
|
+
### Sprint Context Injection
|
|
678
|
+
|
|
679
|
+
#### Purpose
|
|
680
|
+
Decompose large epics into focused, manageable sprints with clear deliverables and scope boundaries.
|
|
681
|
+
|
|
682
|
+
#### Key Principles
|
|
683
|
+
1. **Focused Scope**: Each sprint targets a specific subset of epic requirements
|
|
684
|
+
2. **Incremental Progress**: Sprints build upon each other
|
|
685
|
+
3. **Precise Deliverables**: Create only sprint-specific files
|
|
686
|
+
4. **Context Specificity**: Agents receive sprint-level, not epic-level context
|
|
687
|
+
|
|
688
|
+
#### Sprint Context Structure
|
|
689
|
+
|
|
690
|
+
```json
|
|
691
|
+
{
|
|
692
|
+
"sprint_name": "P1 Coordinator Monitoring",
|
|
693
|
+
"sprint_num": 1,
|
|
694
|
+
"total_sprints": 7,
|
|
695
|
+
"deliverables": [
|
|
696
|
+
"test-p1-monitoring.sh",
|
|
697
|
+
"docs/P1_MONITORING_RESULTS.md"
|
|
698
|
+
],
|
|
699
|
+
"in_scope": [
|
|
700
|
+
"P1 coordinator monitoring validation",
|
|
701
|
+
"Test timeout mechanisms",
|
|
702
|
+
"Logging verification"
|
|
703
|
+
],
|
|
704
|
+
"out_of_scope": [
|
|
705
|
+
"P2-P7 monitoring",
|
|
706
|
+
"Cross-priority integration",
|
|
707
|
+
"Epic-level summary"
|
|
708
|
+
],
|
|
709
|
+
"directory": "/mnt/c/Users/masha/Documents/claude-flow-novice/tests/p1"
|
|
710
|
+
}
|
|
711
|
+
```
|
|
712
|
+
|
|
713
|
+
#### Sprint Execution Tool: `execute-sprint-task.sh`
|
|
714
|
+
|
|
715
|
+
Enables sprint-aware agent execution with focused context injection.
|
|
716
|
+
|
|
717
|
+
**Usage:**
|
|
718
|
+
```bash
|
|
719
|
+
./.claude/skills/sprint-execution/execute-sprint-task.sh \
|
|
720
|
+
[AGENT_TYPE] \
|
|
721
|
+
[TASK_ID] \
|
|
722
|
+
[AGENT_ID] \
|
|
723
|
+
[SPRINT_ID]
|
|
724
|
+
```
|
|
725
|
+
|
|
726
|
+
### Sprint vs Epic Implementation
|
|
727
|
+
|
|
728
|
+
**Epic Context (Broad)**:
|
|
729
|
+
```
|
|
730
|
+
Validate P1-P7 monitoring across entire system
|
|
731
|
+
Deliverables:
|
|
732
|
+
- Comprehensive test suite
|
|
733
|
+
- System-wide monitoring report
|
|
734
|
+
```
|
|
735
|
+
|
|
736
|
+
**Sprint Context (Focused)**:
|
|
737
|
+
```
|
|
738
|
+
Sprint: 1.1 - P1 Coordinator Monitoring
|
|
739
|
+
Deliverables:
|
|
740
|
+
- test-p1-monitoring.sh
|
|
741
|
+
- docs/P1_MONITORING_RESULTS.md
|
|
742
|
+
|
|
743
|
+
Scope:
|
|
744
|
+
- P1 coordinator timeout verification
|
|
745
|
+
- Basic logging checks
|
|
746
|
+
|
|
747
|
+
Out of Scope:
|
|
748
|
+
- P2-P7 monitoring
|
|
749
|
+
- Cross-priority tests
|
|
750
|
+
```
|
|
751
|
+
|
|
752
|
+
### Confidence Reporting
|
|
753
|
+
|
|
754
|
+
- Report confidence based on **sprint deliverable completion**
|
|
755
|
+
- 0.90+ confidence means sprint objectives met
|
|
756
|
+
- Do NOT report confidence for entire epic
|
|
757
|
+
- when monitoring something, sleep for X minutes on repeat with check in between
|
|
758
|
+
### STRAT-025: Explicit Deliverable Tracking
|
|
759
|
+
|
|
760
|
+
## Sprint 9 Adaptive Context Lessons (CFN v3 Dual-Mode Implementation)
|
|
761
|
+
|
|
762
|
+
### STRAT-026: Redis Context Storage Over CLI Parameters
|
|
763
|
+
- **Confidence:** 0.95
|
|
764
|
+
- **Priority:** 9
|
|
765
|
+
- **Insight**: Use Redis for complex JSON context storage instead of CLI parameters. Eliminates shell escaping issues, enables swarm recovery, and provides single source of truth for agent coordination.
|
|
766
|
+
- **Tags**: redis, context-storage, cli-spawning, swarm-recovery
|
|
767
|
+
|
|
768
|
+
### PATTERN-023: Dual-Mode Architecture Pattern
|
|
769
|
+
- **Confidence:** 0.92
|
|
770
|
+
- **Priority:** 9
|
|
771
|
+
- **Insight**: Implement dual execution modes (optimized vs simplified) sharing core logic. CLI mode for production (cost-optimized), Task mode for debugging (full visibility), both using same coordinator and context structure.
|
|
772
|
+
- **Tags**: architecture, dual-mode, debugging, production
|
|
773
|
+
|
|
774
|
+
### STRAT-027: Consensus Validation for Architecture
|
|
775
|
+
- **Confidence:** 0.90
|
|
776
|
+
- **Priority:** 8
|
|
777
|
+
- **Insight**: Use specialized consensus teams (reviewer + tester) to validate implementations before deployment. Achieved 0.92-0.95 confidence scores, caught design issues early.
|
|
778
|
+
- **Tags**: validation, consensus, testing, quality-assurance
|
|
779
|
+
|
|
780
|
+
### ANTI-022: Premature Optimization (Context Pruning)
|
|
781
|
+
- **Confidence:** 0.88
|
|
782
|
+
- **Priority:** 7
|
|
783
|
+
- **Insight**: Avoid implementing optimization features (like context pruning) before validating necessity. CFN v3 removed pruning after determining context small enough without it, saving implementation complexity.
|
|
784
|
+
- **Tags**: optimization, yagni, context-management, simplification
|
|
785
|
+
|
|
786
|
+
### PATTERN-024: Swarm Recovery via Persistence
|
|
787
|
+
- **Confidence:** 0.93
|
|
788
|
+
- **Priority:** 9
|
|
789
|
+
- **Insight**: Store swarm state in Redis with TTL to enable crash recovery. Agents can resume from last known state using task_id as recovery key. Critical for long-running CFN Loops.
|
|
790
|
+
- **Tags**: recovery, redis, persistence, fault-tolerance, swarm-coordination
|
|
791
|
+
|
|
792
|
+
### STRAT-028: Modular Skill Architecture
|
|
793
|
+
- **Confidence:** 0.91
|
|
794
|
+
- **Priority:** 8
|
|
795
|
+
- **Insight**: Decompose complex systems into independent skills (20 skills in CFN v3: task-classifier, playbook, validation-templates, etc.). Enables reuse, testing isolation, and incremental enhancement.
|
|
796
|
+
- **Tags**: modularity, skills, architecture, reusability
|