claude-flow-novice 2.9.1 → 2.10.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.claude/agents/cfn-dev-team/CLAUDE.md +1086 -0
- package/.claude/agents/cfn-dev-team/README.md +116 -0
- package/.claude/agents/cfn-dev-team/architecture/api-designer-persona.md +149 -0
- package/.claude/agents/cfn-dev-team/architecture/base-template-generator.md +196 -0
- package/.claude/agents/cfn-dev-team/architecture/goal-planner.md +183 -0
- package/.claude/agents/cfn-dev-team/architecture/planner.md +182 -0
- package/.claude/agents/cfn-dev-team/architecture/system-architect.md +162 -0
- package/.claude/agents/cfn-dev-team/coordinators/cfn-frontend-coordinator.md +540 -0
- package/.claude/agents/cfn-dev-team/coordinators/cfn-v3-coordinator.md +20 -14
- package/.claude/agents/cfn-dev-team/coordinators/consensus-builder.md +167 -0
- package/.claude/agents/cfn-dev-team/dev-ops/devops-engineer.md +148 -0
- package/.claude/agents/cfn-dev-team/dev-ops/github-commit-agent.md +118 -0
- package/.claude/agents/cfn-dev-team/dev-ops/kubernetes-specialist.md +540 -0
- package/.claude/agents/cfn-dev-team/developers/backend-dev.md +20 -0
- package/.claude/agents/cfn-dev-team/developers/data/data-engineer.md +585 -0
- package/.claude/agents/cfn-dev-team/developers/database/database-architect.md +276 -0
- package/.claude/agents/cfn-dev-team/developers/dev-backend-api.md +147 -0
- package/.claude/agents/cfn-dev-team/developers/frontend/mobile-dev.md +218 -0
- package/.claude/agents/cfn-dev-team/developers/{react-frontend-engineer.md → frontend/react-frontend-engineer.md} +53 -5
- package/.claude/agents/cfn-dev-team/developers/frontend/spec-mobile-react-native.md +199 -0
- package/.claude/agents/cfn-dev-team/developers/graphql-specialist.md +615 -0
- package/.claude/agents/cfn-dev-team/developers/rust-developer.md +174 -0
- package/.claude/agents/cfn-dev-team/documentation/README-VALIDATION.md +243 -0
- package/.claude/agents/cfn-dev-team/documentation/agent-type-guidelines.md +465 -0
- package/.claude/agents/cfn-dev-team/documentation/api-docs.md +103 -0
- package/.claude/agents/cfn-dev-team/documentation/docs-api-openapi.md +98 -0
- package/.claude/agents/cfn-dev-team/documentation/pseudocode.md +159 -0
- package/.claude/agents/cfn-dev-team/documentation/specification.md +157 -0
- package/.claude/agents/cfn-dev-team/product-owners/accessibility-advocate-persona.md +109 -0
- package/.claude/agents/cfn-dev-team/{coordinators → product-owners}/cto-agent.md +8 -6
- package/.claude/agents/cfn-dev-team/product-owners/power-user-persona.md +190 -0
- package/.claude/agents/cfn-dev-team/{coordinators → product-owners}/product-owner.md +85 -59
- package/.claude/agents/cfn-dev-team/reviewers/quality/analyze-code-quality.md +141 -0
- package/.claude/agents/cfn-dev-team/reviewers/quality/code-analyzer.md +200 -0
- package/.claude/agents/cfn-dev-team/reviewers/quality/cyclomatic-complexity-reducer.md +321 -0
- package/.claude/agents/cfn-dev-team/reviewers/quality/perf-analyzer.md +238 -0
- package/.claude/agents/cfn-dev-team/reviewers/quality/performance-benchmarker.md +101 -0
- package/.claude/agents/cfn-dev-team/reviewers/quality/quality-metrics.md +375 -0
- package/.claude/agents/cfn-dev-team/reviewers/quality/security-specialist.md +193 -0
- package/.claude/agents/cfn-dev-team/reviewers/reviewer.md +39 -0
- package/.claude/agents/cfn-dev-team/testers/interaction-tester.md +31 -0
- package/.claude/agents/cfn-dev-team/testers/load-testing-specialist.md +469 -0
- package/.claude/agents/cfn-dev-team/testers/playwright-tester.md +24 -0
- package/.claude/agents/cfn-dev-team/testers/tester.md +20 -0
- package/.claude/agents/cfn-dev-team/utility/agent-builder.md +151 -0
- package/.claude/agents/cfn-dev-team/utility/analyst.md +178 -0
- package/.claude/agents/cfn-dev-team/utility/claude-code-expert.md +1043 -0
- package/.claude/agents/cfn-dev-team/utility/code-booster.md +139 -0
- package/.claude/agents/cfn-dev-team/utility/context-curator.md +99 -0
- package/.claude/agents/cfn-dev-team/{developers → utility}/researcher.md +6 -4
- package/.claude/commands/cfn/CFN_LOOP_FRONTEND.md +741 -0
- package/.claude/commands/cfn/CFN_LOOP_TASK_MODE.md +353 -0
- package/.claude/commands/cfn/cfn-loop-frontend.md +555 -0
- package/.claude/commands/cfn/cfn-loop.md +168 -7
- package/{CFN-CLAUDE.md → .claude/root-claude-distribute/CFN-CLAUDE.md} +23 -3
- package/.claude/skills/cfn-ace-system/SKILL.md +364 -0
- package/.claude/skills/cfn-ace-system/add-bullet.sh +145 -0
- package/.claude/skills/cfn-ace-system/analyze-anti-pattern-effectiveness.sh +56 -0
- package/.claude/skills/cfn-ace-system/classify-task.sh +18 -0
- package/.claude/skills/cfn-ace-system/export-ace-metrics.sh +48 -0
- package/.claude/skills/cfn-ace-system/extract-tags.sh +385 -0
- package/.claude/skills/cfn-ace-system/format-negative-context.sh +180 -0
- package/.claude/skills/cfn-ace-system/init-indexes.sql +160 -0
- package/.claude/skills/cfn-ace-system/invoke-context-curate.sh +192 -0
- package/.claude/skills/cfn-ace-system/invoke-context-inject.sh +361 -0
- package/.claude/skills/cfn-ace-system/invoke-context-query.sh +139 -0
- package/.claude/skills/cfn-ace-system/invoke-context-reflect.sh +343 -0
- package/.claude/skills/cfn-ace-system/invoke-context-stats.sh +227 -0
- package/.claude/skills/cfn-ace-system/log-merge.sh +67 -0
- package/.claude/skills/cfn-ace-system/monitor-injection-performance.sh +138 -0
- package/.claude/skills/cfn-ace-system/optimize-injection-pipeline.sh +169 -0
- package/.claude/skills/cfn-ace-system/query-anti-patterns.sh +276 -0
- package/.claude/skills/cfn-ace-system/query-contexts.sh +150 -0
- package/.claude/skills/cfn-ace-system/query-reflections.sh +35 -0
- package/.claude/skills/cfn-ace-system/schema/001-create-context-reflections.sql +237 -0
- package/.claude/skills/cfn-ace-system/schema/README.md +723 -0
- package/.claude/skills/cfn-ace-system/schema/SCHEMA_DESIGN_SUMMARY.md +564 -0
- package/.claude/skills/cfn-ace-system/schema/populate-test-data-simple.sh +62 -0
- package/.claude/skills/cfn-ace-system/schema/populate-test-data.sh +247 -0
- package/.claude/skills/cfn-ace-system/schema/run-migration.sh +231 -0
- package/.claude/skills/cfn-ace-system/schema/validate-schema.sql +280 -0
- package/.claude/skills/cfn-ace-system/score-relevance-adapter.sh +138 -0
- package/.claude/skills/cfn-ace-system/score-relevance.sh +253 -0
- package/.claude/skills/cfn-ace-system/sprint-7-lessons.json +46 -0
- package/.claude/skills/cfn-ace-system/store-reflection.sh +46 -0
- package/.claude/skills/cfn-ace-system/test-ace-skill.sh +312 -0
- package/.claude/skills/cfn-ace-system/track-ab-test.sh +42 -0
- package/.claude/skills/cfn-ace-system/update-reflection.sh +41 -0
- package/.claude/skills/cfn-agent-discovery/SKILL.md +40 -0
- package/.claude/skills/cfn-agent-discovery/agents-registry-clean.json +0 -0
- package/.claude/skills/cfn-agent-discovery/agents-registry-fixed.json +19 -0
- package/.claude/skills/cfn-agent-discovery/agents-registry.json +718 -0
- package/.claude/skills/cfn-agent-discovery/discover-agents.py +184 -0
- package/.claude/skills/cfn-agent-discovery/discover-agents.sh +87 -0
- package/.claude/skills/cfn-agent-discovery/invoke-registry.sh +11 -0
- package/.claude/skills/cfn-agent-discovery/temp_script.py +0 -0
- package/.claude/skills/cfn-agent-execution/execute-agent.sh +126 -0
- package/.claude/skills/cfn-agent-output-processing/SKILL.md +359 -0
- package/.claude/skills/cfn-agent-selector/SKILL.md +90 -0
- package/.claude/skills/cfn-agent-selector/select-agents.sh +112 -0
- package/.claude/skills/cfn-agent-spawning/SKILL.md +135 -0
- package/.claude/skills/cfn-agent-spawning/agent-selection-guide.md +814 -0
- package/.claude/skills/cfn-agent-spawning/check-dependencies.sh +30 -0
- package/.claude/skills/cfn-agent-spawning/spawn-agent.sh +263 -0
- package/.claude/skills/cfn-agent-spawning/spawn-templates.sh +613 -0
- package/.claude/skills/cfn-analytics/description-refinement-guide.md +164 -0
- package/.claude/skills/cfn-analytics/log-skill-invocation.js +122 -0
- package/.claude/skills/cfn-analytics/run-production-criteria-tests.sh +126 -0
- package/.claude/skills/cfn-analytics/skill-analytics-dashboard.js +113 -0
- package/.claude/skills/cfn-analytics/skill-invocation-hook.sh +28 -0
- package/.claude/skills/cfn-analytics/skill-invocations.sql +58 -0
- package/.claude/skills/cfn-analytics/test-corpus.json +32 -0
- package/.claude/skills/cfn-analytics/test-data-generator.js +115 -0
- package/.claude/skills/cfn-analytics/test-manual-override-rate.js +285 -0
- package/.claude/skills/cfn-analytics/validate-skill-selection.js +188 -0
- package/.claude/skills/cfn-config-management/SKILL.md +34 -0
- package/.claude/skills/cfn-config-management/check-dependencies.sh +56 -0
- package/.claude/skills/cfn-config-management/config.json +32 -0
- package/.claude/skills/cfn-config-management/manage-config.sh +113 -0
- package/.claude/skills/cfn-event-bus/SKILL.md +412 -0
- package/.claude/skills/cfn-event-bus/config.json +111 -0
- package/.claude/skills/cfn-event-bus/eventbus-wrapper.cjs +69 -0
- package/.claude/skills/cfn-event-bus/invoke-event-publish.sh +147 -0
- package/.claude/skills/cfn-event-bus/invoke-event-subscribe.sh +171 -0
- package/.claude/skills/cfn-event-bus/invoke-lifecycle-track.sh +201 -0
- package/.claude/skills/cfn-event-bus/test-event-bus.sh +280 -0
- package/.claude/skills/cfn-fleet-manager/SKILL.md +412 -0
- package/.claude/skills/cfn-fleet-manager/config.json +60 -0
- package/.claude/skills/cfn-fleet-manager/invoke-fleet-allocate.sh +182 -0
- package/.claude/skills/cfn-fleet-manager/invoke-fleet-balance.sh +239 -0
- package/.claude/skills/cfn-fleet-manager/invoke-fleet-metrics.sh +193 -0
- package/.claude/skills/cfn-fleet-manager/invoke-fleet-register.sh +124 -0
- package/.claude/skills/cfn-fleet-manager/test-fleet-manager.sh +345 -0
- package/.claude/skills/cfn-hook-pipeline/SKILL.md +148 -0
- package/.claude/skills/cfn-hook-pipeline/auto-resolve.sh +66 -0
- package/.claude/skills/cfn-hook-pipeline/check-dependencies.sh +40 -0
- package/.claude/skills/cfn-hook-pipeline/feedback-resolver.sh +452 -0
- package/.claude/skills/cfn-hook-pipeline/post-edit-handler.sh +154 -0
- package/.claude/skills/cfn-hook-pipeline/security-scan.json +60 -0
- package/.claude/skills/cfn-hook-pipeline/security-scanner.sh +121 -0
- package/.claude/skills/cfn-hook-pipeline/test-root-warning-resolution.sh +148 -0
- package/.claude/skills/cfn-hybrid-routing/SKILL.md +46 -0
- package/.claude/skills/cfn-hybrid-routing/check-dependencies.sh +52 -0
- package/.claude/skills/cfn-hybrid-routing/config.json +26 -0
- package/.claude/skills/cfn-hybrid-routing/spawn-worker.sh +44 -0
- package/.claude/skills/cfn-loop-orchestration/SKILL.md +299 -0
- package/.claude/skills/cfn-loop-orchestration/helpers/auto-tune-timeouts.sh +228 -0
- package/.claude/skills/cfn-loop-orchestration/helpers/consensus.sh +84 -0
- package/.claude/skills/cfn-loop-orchestration/helpers/context-injection.sh +142 -0
- package/.claude/skills/cfn-loop-orchestration/helpers/context-lookup.sh +359 -0
- package/.claude/skills/cfn-loop-orchestration/helpers/deliverable-verifier.sh +71 -0
- package/.claude/skills/cfn-loop-orchestration/helpers/gate-check.sh +90 -0
- package/.claude/skills/cfn-loop-orchestration/helpers/iteration-manager.sh +87 -0
- package/.claude/skills/cfn-loop-orchestration/helpers/spawn-agents.sh +271 -0
- package/.claude/skills/cfn-loop-orchestration/helpers/timeout-calculator.sh +51 -0
- package/.claude/skills/cfn-loop-orchestration/inject-loop-context.sh +41 -0
- package/.claude/skills/cfn-loop-orchestration/monitor-execution.sh +156 -0
- package/.claude/skills/cfn-loop-orchestration/orchestrate.sh +884 -0
- package/.claude/skills/cfn-loop-orchestration/orchestrate.sh.backup +840 -0
- package/.claude/skills/cfn-loop-orchestration/security_utils.sh +99 -0
- package/.claude/skills/cfn-loop-orchestration/test-cfn-orchestration.sh +281 -0
- package/.claude/skills/cfn-loop-orchestration/test-edge-cases.sh +188 -0
- package/.claude/skills/cfn-loop-validation/SKILL.md +353 -0
- package/.claude/skills/cfn-loop-validation/check-dependencies.sh +31 -0
- package/.claude/skills/cfn-loop-validation/config.json +161 -0
- package/.claude/skills/cfn-loop-validation/consensus-calculator.js +477 -0
- package/.claude/skills/cfn-loop-validation/evidence-chain.sql +163 -0
- package/.claude/skills/cfn-loop-validation/examples/README.md +453 -0
- package/.claude/skills/cfn-loop-validation/examples/coordinator-full-cfn-loop.sh +234 -0
- package/.claude/skills/cfn-loop-validation/examples/coordinator-loop2-consensus.sh +132 -0
- package/.claude/skills/cfn-loop-validation/examples/coordinator-loop3-gate.sh +115 -0
- package/.claude/skills/cfn-loop-validation/examples/coordinator-redis-integration.sh +186 -0
- package/.claude/skills/cfn-loop-validation/orchestrate-cfn-loop.sh +252 -0
- package/.claude/skills/cfn-loop-validation/validate-iteration.sh +134 -0
- package/.claude/skills/cfn-process-lifecycle/SKILL.md +39 -0
- package/.claude/skills/cfn-process-lifecycle/check-dependencies.sh +58 -0
- package/.claude/skills/cfn-process-lifecycle/config.json +39 -0
- package/.claude/skills/cfn-process-lifecycle/process-manager.sh +144 -0
- package/.claude/skills/cfn-product-owner-decision/SKILL.md +332 -0
- package/.claude/skills/cfn-product-owner-decision/execute-decision.sh +176 -0
- package/.claude/skills/cfn-product-owner-decision/parse-decision.sh +66 -0
- package/.claude/skills/cfn-product-owner-decision/validate-deliverables.sh +82 -0
- package/.claude/skills/cfn-redis-coordination/AGENT_LOGGING.md +280 -0
- package/.claude/skills/cfn-redis-coordination/BZPOPMIN_FIX_SUMMARY.md +209 -0
- package/.claude/skills/cfn-redis-coordination/HEARTBEAT.md +57 -0
- package/.claude/skills/cfn-redis-coordination/HEARTBEAT_MONITORING.md +267 -0
- package/.claude/skills/cfn-redis-coordination/LOGGING.md +260 -0
- package/.claude/skills/cfn-redis-coordination/SECURITY_REVIEW.md +25 -0
- package/.claude/skills/cfn-redis-coordination/SHUTDOWN_HANDLING.md +164 -0
- package/.claude/skills/cfn-redis-coordination/SKILL.md +720 -0
- package/.claude/skills/cfn-redis-coordination/agent-log.sh +124 -0
- package/.claude/skills/cfn-redis-coordination/agent-recovery.sh +75 -0
- package/.claude/skills/cfn-redis-coordination/analyze-task-complexity.sh +277 -0
- package/.claude/skills/cfn-redis-coordination/cancel-swarm.sh +221 -0
- package/.claude/skills/cfn-redis-coordination/cfn-loop-exec.sh +468 -0
- package/.claude/skills/cfn-redis-coordination/cfn-loop-relaunch.sh +29 -0
- package/.claude/skills/cfn-redis-coordination/check-dependencies.sh +32 -0
- package/.claude/skills/cfn-redis-coordination/collect-confidence-scores.sh +179 -0
- package/.claude/skills/cfn-redis-coordination/collect-results.sh +75 -0
- package/.claude/skills/cfn-redis-coordination/complete-swarm.sh +75 -0
- package/.claude/skills/cfn-redis-coordination/config.json +61 -0
- package/.claude/skills/cfn-redis-coordination/data/cfn-loop.db +0 -0
- package/.claude/skills/cfn-redis-coordination/demos/phase4-wake-queue-test-report.md +82 -0
- package/.claude/skills/cfn-redis-coordination/demos/test-bzpopmin-fix.sh +274 -0
- package/.claude/skills/cfn-redis-coordination/demos/test-cancel-swarm.sh +276 -0
- package/.claude/skills/cfn-redis-coordination/demos/test-dlq.sh +129 -0
- package/.claude/skills/cfn-redis-coordination/demos/test-iteration-feedback.sh +320 -0
- package/.claude/skills/cfn-redis-coordination/demos/test-orchestrator.sh +249 -0
- package/.claude/skills/cfn-redis-coordination/demos/test-priority-wake-phase4-unix.sh +148 -0
- package/.claude/skills/cfn-redis-coordination/demos/test-priority-wake-phase4.sh +163 -0
- package/.claude/skills/cfn-redis-coordination/demos/test-priority-wake.sh +138 -0
- package/.claude/skills/cfn-redis-coordination/demos/test-quick-fix.sh +81 -0
- package/.claude/skills/cfn-redis-coordination/demos/test-quorum-absolute.sh +45 -0
- package/.claude/skills/cfn-redis-coordination/demos/test-quorum-fallback.sh +68 -0
- package/.claude/skills/cfn-redis-coordination/demos/test-quorum-percentage.sh +56 -0
- package/.claude/skills/cfn-redis-coordination/demos/test-quorum-with-retry.sh +81 -0
- package/.claude/skills/cfn-redis-coordination/demos/test-quorum.sh +57 -0
- package/.claude/skills/cfn-redis-coordination/demos/test-shutdown-handling.sh +187 -0
- package/.claude/skills/cfn-redis-coordination/demos/test-shutdown.sh +160 -0
- package/.claude/skills/cfn-redis-coordination/demos/test-utils-unix.sh +97 -0
- package/.claude/skills/cfn-redis-coordination/demos/test-utils.sh +97 -0
- package/.claude/skills/cfn-redis-coordination/demos/test-waiting-mode.sh +59 -0
- package/.claude/skills/cfn-redis-coordination/examples/README.md +73 -0
- package/.claude/skills/cfn-redis-coordination/examples/grafana-dashboard.json +352 -0
- package/.claude/skills/cfn-redis-coordination/examples/hierarchical-pattern.sh +127 -0
- package/.claude/skills/cfn-redis-coordination/examples/mesh-pattern.sh +171 -0
- package/.claude/skills/cfn-redis-coordination/examples/timeout-handling.sh +227 -0
- package/.claude/skills/cfn-redis-coordination/examples/waiting-mode-pattern.sh +239 -0
- package/.claude/skills/cfn-redis-coordination/execute-product-owner-decision.sh +258 -0
- package/.claude/skills/cfn-redis-coordination/get-agent-timeout.sh +177 -0
- package/.claude/skills/cfn-redis-coordination/heartbeat-functions.sh +137 -0
- package/.claude/skills/cfn-redis-coordination/heartbeat-protocol.md +106 -0
- package/.claude/skills/cfn-redis-coordination/heartbeat.sh +126 -0
- package/.claude/skills/cfn-redis-coordination/init-swarm.sh +148 -0
- package/.claude/skills/cfn-redis-coordination/invoke-redis-pattern.sh +220 -0
- package/.claude/skills/cfn-redis-coordination/invoke-waiting-mode.sh +283 -0
- package/.claude/skills/cfn-redis-coordination/invoke-waiting-mode.sh.backup-p7 +423 -0
- package/.claude/skills/cfn-redis-coordination/list-active-swarms.sh +147 -0
- package/.claude/skills/cfn-redis-coordination/log-event.sh +109 -0
- package/.claude/skills/cfn-redis-coordination/metrics-export.sh +674 -0
- package/.claude/skills/cfn-redis-coordination/metrics-schema.json +66 -0
- package/.claude/skills/cfn-redis-coordination/metrics-storage.md +31 -0
- package/.claude/skills/cfn-redis-coordination/monitor-cfn-violations.sh +391 -0
- package/.claude/skills/cfn-redis-coordination/monitor-heartbeats.sh +101 -0
- package/.claude/skills/cfn-redis-coordination/orchestrate-cfn-loop-v3.sh +141 -0
- package/.claude/skills/cfn-redis-coordination/orchestrate-cfn-loop.sh +31 -0
- package/.claude/skills/cfn-redis-coordination/orchestrate-cfn-loop.sh.backup +38 -0
- package/.claude/skills/cfn-redis-coordination/orchestrate-cfn-loop.sh.backup-1761167675 +1672 -0
- package/.claude/skills/cfn-redis-coordination/orchestrate-cfn-loop.sh.backup-p5 +1604 -0
- package/.claude/skills/cfn-redis-coordination/orchestrate-cfn-loop.sh.backup-phase1 +1550 -0
- package/.claude/skills/cfn-redis-coordination/orchestrate-cfn-loop.sh.backup-phase2 +1621 -0
- package/.claude/skills/cfn-redis-coordination/orchestrate-cfn-loop.sh.backup-phase3 +1621 -0
- package/.claude/skills/cfn-redis-coordination/orchestrate-cfn-loop.sh.bak +0 -0
- package/.claude/skills/cfn-redis-coordination/orchestrate-cfn-loop.sh.broken +1627 -0
- package/.claude/skills/cfn-redis-coordination/orchestrate-cfn-loop.sh.corrupted +80 -0
- package/.claude/skills/cfn-redis-coordination/orchestrate-cfn-loop.sh.deprecated +1864 -0
- package/.claude/skills/cfn-redis-coordination/priority-wake-mechanism.md +75 -0
- package/.claude/skills/cfn-redis-coordination/priority_wake.py +134 -0
- package/.claude/skills/cfn-redis-coordination/query-dlq.sh +162 -0
- package/.claude/skills/cfn-redis-coordination/query-logs.sh +103 -0
- package/.claude/skills/cfn-redis-coordination/redis-pattern.sh +619 -0
- package/.claude/skills/cfn-redis-coordination/retrieve-context.sh +58 -0
- package/.claude/skills/cfn-redis-coordination/select-specialist-agent.sh +371 -0
- package/.claude/skills/cfn-redis-coordination/semantic-match-tfidf.py +252 -0
- package/.claude/skills/cfn-redis-coordination/send-heartbeat.sh +165 -0
- package/.claude/skills/cfn-redis-coordination/signal.sh +38 -0
- package/.claude/skills/cfn-redis-coordination/store-context.sh +86 -0
- package/.claude/skills/cfn-redis-coordination/store-epic-context.sh +123 -0
- package/.claude/skills/cfn-redis-coordination/test-context-injection.sh +354 -0
- package/.claude/skills/cfn-redis-coordination/test-timeout-enforcement.sh +513 -0
- package/.claude/skills/cfn-redis-coordination/tests/convert-line-endings.sh +15 -0
- package/.claude/skills/cfn-redis-coordination/tests/dlq-functionality-test.sh +102 -0
- package/.claude/skills/cfn-redis-coordination/tests/edge-cases-test.sh +99 -0
- package/.claude/skills/cfn-redis-coordination/tests/integration-test.sh +170 -0
- package/.claude/skills/cfn-redis-coordination/tests/retry-mechanism-test.sh +82 -0
- package/.claude/skills/cfn-redis-coordination/tests/run-test-suite.sh +92 -0
- package/.claude/skills/cfn-redis-coordination/tests/run-tests.sh +4 -0
- package/.claude/skills/cfn-redis-coordination/tests/test-heartbeat-monitoring.sh +418 -0
- package/.claude/skills/cfn-redis-coordination/tests/test-heartbeat-simple.sh +124 -0
- package/.claude/skills/cfn-redis-coordination/tests/test-primitives.sh +166 -0
- package/.claude/skills/cfn-redis-coordination/tests/test-utils.sh +54 -0
- package/.claude/skills/cfn-redis-coordination/tests/test_coordination_primitives.sh.deprecated +20 -0
- package/.claude/skills/cfn-redis-coordination/tests/test_utils.sh +49 -0
- package/.claude/skills/cfn-redis-coordination/v2_modularization/core_orchestration.sh +76 -0
- package/.claude/skills/cfn-redis-coordination/validate-parameters.sh +492 -0
- package/.claude/skills/cfn-sqlite-memory/IMPLEMENTATION_REPORT.md +393 -0
- package/.claude/skills/cfn-sqlite-memory/QUICK_REFERENCE.md +204 -0
- package/.claude/skills/cfn-sqlite-memory/SKILL.md +415 -0
- package/.claude/skills/cfn-sqlite-memory/acl-queries.sql +452 -0
- package/.claude/skills/cfn-sqlite-memory/check-dependencies.sh +36 -0
- package/.claude/skills/cfn-sqlite-memory/config.json +45 -0
- package/.claude/skills/cfn-sqlite-memory/memory-cli.sh +88 -0
- package/.claude/skills/cfn-sqlite-memory/test-state-persistence.js +187 -0
- package/.claude/skills/cfn-sqlite-memory/ttl-cleanup.sh +274 -0
- package/.claude/skills/cfn-test-execution/SKILL.md +128 -0
- package/.claude/skills/cfn-test-execution/check-dependencies.sh +36 -0
- package/.claude/skills/cfn-test-execution/test-cache-reader.sh +134 -0
- package/.claude/skills/cfn-test-execution/test-concurrent-conflicts.sh +115 -0
- package/.claude/skills/cfn-test-execution/test-coordinator-pattern.sh +109 -0
- package/.claude/skills/cfn-transparency-middleware/Cargo.toml +18 -0
- package/.claude/skills/cfn-transparency-middleware/SECURITY.md +41 -0
- package/.claude/skills/cfn-transparency-middleware/SKILL.md +91 -0
- package/.claude/skills/cfn-transparency-middleware/TEST_RESULTS.md +174 -0
- package/.claude/skills/cfn-transparency-middleware/config.json +31 -0
- package/.claude/skills/cfn-transparency-middleware/examples/basic-usage.ts +39 -0
- package/.claude/skills/cfn-transparency-middleware/examples/batch-processing.ts +52 -0
- package/.claude/skills/cfn-transparency-middleware/examples/custom-filtering.ts +61 -0
- package/.claude/skills/cfn-transparency-middleware/invoke-transparency-filter.sh +98 -0
- package/.claude/skills/cfn-transparency-middleware/invoke-transparency-init.sh +224 -0
- package/.claude/skills/cfn-transparency-middleware/invoke-transparency-level.sh +333 -0
- package/.claude/skills/cfn-transparency-middleware/invoke-transparency-metrics.sh +345 -0
- package/.claude/skills/cfn-transparency-middleware/invoke-transparency-observe.sh +140 -0
- package/.claude/skills/cfn-transparency-middleware/invoke-transparency-stop.sh +235 -0
- package/.claude/skills/cfn-transparency-middleware/memory_query.rs +85 -0
- package/.claude/skills/cfn-transparency-middleware/memory_repository.rs +140 -0
- package/.claude/skills/cfn-transparency-middleware/memory_schema.rs +64 -0
- package/.claude/skills/cfn-transparency-middleware/middleware-config.sh +29 -0
- package/.claude/skills/cfn-transparency-middleware/performance-benchmark.sh +79 -0
- package/.claude/skills/cfn-transparency-middleware/test-e2e.sh +406 -0
- package/.claude/skills/cfn-transparency-middleware/test-integration.sh +162 -0
- package/.claude/skills/cfn-transparency-middleware/test-transparency-skill.sh +368 -0
- package/.claude/skills/cfn-transparency-middleware/test-transparency-skill.sh.unix +126 -0
- package/.claude/skills/cfn-transparency-middleware/tests/input-validation.sh +93 -0
- package/.claude/skills/cfn-transparency-middleware/wrap-agent.sh +132 -0
- package/.claude/skills/cfn-webapp-testing/SCREENSHOT_NAMING_CONVENTION.md +547 -0
- package/.claude/skills/cfn-webapp-testing/SKILL.md +877 -0
- package/.claude/skills/cfn-webapp-testing/capture-screenshot.sh +238 -0
- package/.claude/skills/cfn-webapp-testing/cfn-loop-integration.sh +265 -0
- package/.claude/skills/cfn-webapp-testing/compare-screenshots.sh +199 -0
- package/.claude/skills/cfn-webapp-testing/init-storage.sh +150 -0
- package/.claude/skills/cfn-webapp-testing/set-baseline.sh +196 -0
- package/.claude/skills/cfn-webapp-testing/test-webapp-testing.sh +233 -0
- package/README.md +51 -2
- package/dist/ace/ace-reflector.js +109 -10
- package/dist/ace/ace-reflector.js.map +1 -1
- package/dist/cli/agent-executor.js +1 -1
- package/dist/cli/agent-executor.js.map +1 -1
- package/package.json +43 -7
- package/readme/README.md +15 -4
- package/scripts/init-project.js +39 -2
- package/scripts/run-marketing-tests.sh +43 -0
- package/scripts/update_paths.sh +47 -0
- package/tools/install-lizard.sh +37 -0
- package/tools/simple-complexity.sh +44 -0
- package/.claude/agents/cfn-dev-team/developers/coder.md +0 -270
- package/.claude/agents/cfn-dev-team/developers/state-architect.md +0 -127
- package/.claude/agents/cfn-dev-team/reviewers/code-quality-validator.md +0 -128
- /package/.claude/agents/cfn-dev-team/developers/{ui-designer.md → frontend/ui-designer.md} +0 -0
- /package/.claude/agents/cfn-dev-team/{coordinators → product-owners}/product-owner-agent.md +0 -0
|
@@ -0,0 +1,116 @@
|
|
|
1
|
+
# CFN Dev Team Agent Structure
|
|
2
|
+
|
|
3
|
+
## Overview
|
|
4
|
+
|
|
5
|
+
The CFN (Claude Flow Novice) development team comprises 23 production agents organized into 4 strategic categories, designed to provide comprehensive software development and workflow management capabilities.
|
|
6
|
+
|
|
7
|
+
## Directory Structure
|
|
8
|
+
|
|
9
|
+
### Coordinators
|
|
10
|
+
- **Purpose**: CFN Loop orchestration and workflow management
|
|
11
|
+
- **Key Agents**:
|
|
12
|
+
- `cfn-v3-coordinator`: Primary workflow orchestrator
|
|
13
|
+
|
|
14
|
+
### Developers
|
|
15
|
+
- **Purpose**: Core implementation and creative problem-solving
|
|
16
|
+
- **Key Agents**:
|
|
17
|
+
- `coder`: Production code implementation
|
|
18
|
+
- `backend-dev`: Backend system design and implementation
|
|
19
|
+
- `researcher`: Technical research and solution exploration
|
|
20
|
+
- `architect`: System design and architectural planning
|
|
21
|
+
- `agent-builder`: Agent template and workflow design
|
|
22
|
+
|
|
23
|
+
### Reviewers
|
|
24
|
+
- **Purpose**: Quality assurance and code validation
|
|
25
|
+
- **Key Agents**:
|
|
26
|
+
- `reviewer`: Code review and quality assessment
|
|
27
|
+
- `code-analyzer`: Static code analysis
|
|
28
|
+
- `code-quality-validator`: Comprehensive code quality checks
|
|
29
|
+
- `security-specialist`: Security vulnerability detection
|
|
30
|
+
|
|
31
|
+
### Testers
|
|
32
|
+
- **Purpose**: Comprehensive testing and validation
|
|
33
|
+
- **Key Agents**:
|
|
34
|
+
- `tester`: General test strategy and implementation
|
|
35
|
+
- `playwright-tester`: Web interaction testing
|
|
36
|
+
- `interaction-tester`: User interaction validation
|
|
37
|
+
- `production-validator`: Production readiness checks
|
|
38
|
+
- `perf-analyzer`: Performance testing and optimization
|
|
39
|
+
|
|
40
|
+
## Agent Selection Guide
|
|
41
|
+
|
|
42
|
+
### When to Use Each Category
|
|
43
|
+
|
|
44
|
+
1. **Coordinators**
|
|
45
|
+
- Complex workflow orchestration
|
|
46
|
+
- Multi-agent collaboration scenarios
|
|
47
|
+
- CFN Loop management
|
|
48
|
+
|
|
49
|
+
2. **Developers**
|
|
50
|
+
- Initial implementation
|
|
51
|
+
- Feature development
|
|
52
|
+
- Technical problem-solving
|
|
53
|
+
- Prototype creation
|
|
54
|
+
|
|
55
|
+
3. **Reviewers**
|
|
56
|
+
- Post-implementation code review
|
|
57
|
+
- Quality gate validation
|
|
58
|
+
- Security and performance analysis
|
|
59
|
+
- Refactoring recommendations
|
|
60
|
+
|
|
61
|
+
4. **Testers**
|
|
62
|
+
- Comprehensive test strategy
|
|
63
|
+
- Automated testing
|
|
64
|
+
- Production validation
|
|
65
|
+
- Performance optimization
|
|
66
|
+
|
|
67
|
+
## CFN Loop Integration
|
|
68
|
+
|
|
69
|
+
### Loop Participation Levels
|
|
70
|
+
|
|
71
|
+
- **Loop 2**: Preliminary design and research
|
|
72
|
+
- **Loop 3**: Implementation and initial validation
|
|
73
|
+
- **Loop 4**: Advanced testing and production readiness
|
|
74
|
+
|
|
75
|
+
## Naming Conventions
|
|
76
|
+
|
|
77
|
+
- All agents follow the `cfn-dev-team` namespace
|
|
78
|
+
- Naming format: `category-specific-role`
|
|
79
|
+
- Example: `developer-backend-specialist`
|
|
80
|
+
|
|
81
|
+
## Agent Template Requirements
|
|
82
|
+
|
|
83
|
+
Each agent MUST include:
|
|
84
|
+
|
|
85
|
+
1. **Name**: Unique, descriptive identifier
|
|
86
|
+
2. **Description**: Clear purpose and capabilities
|
|
87
|
+
3. **Tools**: Permitted interaction tools
|
|
88
|
+
4. **Model**: Assigned AI model
|
|
89
|
+
5. **Capabilities**: Specific functional areas
|
|
90
|
+
6. **Lifecycle Hooks**:
|
|
91
|
+
- SQLite tracking
|
|
92
|
+
- Redis coordination
|
|
93
|
+
7. **ACL Level**: Access control level (1-5)
|
|
94
|
+
|
|
95
|
+
## Adding New Agents
|
|
96
|
+
|
|
97
|
+
### Process
|
|
98
|
+
|
|
99
|
+
1. Use `agent-builder` for initial template creation
|
|
100
|
+
2. Follow agent template structure
|
|
101
|
+
3. Validate against CFN Loop coordination patterns
|
|
102
|
+
4. Submit for team review
|
|
103
|
+
5. Integrate into appropriate category
|
|
104
|
+
|
|
105
|
+
### Validation Checklist
|
|
106
|
+
|
|
107
|
+
- [ ] Unique name and purpose
|
|
108
|
+
- [ ] Defined capabilities
|
|
109
|
+
- [ ] Appropriate tool selection
|
|
110
|
+
- [ ] Lifecycle hook configuration
|
|
111
|
+
- [ ] ACL level assignment
|
|
112
|
+
- [ ] Category alignment
|
|
113
|
+
|
|
114
|
+
## Contributing
|
|
115
|
+
|
|
116
|
+
Agents are critical to our workflow. Propose new agents or improvements via pull request to the CFN development team.
|
|
@@ -0,0 +1,149 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: api-designer-persona
|
|
3
|
+
description: Design API architectures and RESTful service specifications in Loop 0.5 Design Consensus.
|
|
4
|
+
tools: [Read, Write, Edit, Grep, Glob, TodoWrite]
|
|
5
|
+
model: haiku
|
|
6
|
+
color: teal
|
|
7
|
+
type: planning-consensus
|
|
8
|
+
weight: 0.333
|
|
9
|
+
validation_hooks:
|
|
10
|
+
- agent-template-validator
|
|
11
|
+
- cfn-loop-memory-validator
|
|
12
|
+
lifecycle:
|
|
13
|
+
pre_task: |
|
|
14
|
+
sqlite-cli exec "INSERT INTO agents (id, type, status, spawned_at, metadata) VALUES ('${AGENT_ID}', 'api-designer', 'active', CURRENT_TIMESTAMP, '{\"loop\": \"0.5\", \"phase\": \"design-consensus\", \"focus\": \"api-design\"}')"
|
|
15
|
+
post_task: |
|
|
16
|
+
sqlite-cli exec "UPDATE agents SET status = 'completed', confidence = ${CONFIDENCE_SCORE}, completed_at = CURRENT_TIMESTAMP WHERE id = '${AGENT_ID}'"
|
|
17
|
+
acl_level: 3
|
|
18
|
+
---
|
|
19
|
+
# API Designer Persona - Loop 0.5 Design Consensus
|
|
20
|
+
|
|
21
|
+
## Role Identity
|
|
22
|
+
|
|
23
|
+
You are an **API designer** participating in Loop 0.5 Design Consensus, representing the API design perspective.
|
|
24
|
+
|
|
25
|
+
**Key Focus:**
|
|
26
|
+
- API contracts and interface design
|
|
27
|
+
- REST/GraphQL API design
|
|
28
|
+
- OpenAPI specification generation
|
|
29
|
+
- Developer experience optimization
|
|
30
|
+
|
|
31
|
+
## SQLite Integration
|
|
32
|
+
|
|
33
|
+
```typescript
|
|
34
|
+
// Store OpenAPI specification
|
|
35
|
+
await sqlite.memoryAdapter.set(
|
|
36
|
+
`design/phase-${phaseId}/loop0.5/api-${agentId}/openapi-spec`,
|
|
37
|
+
{
|
|
38
|
+
openapiSpecId: "openapi-auth-v1",
|
|
39
|
+
version: "3.0.0",
|
|
40
|
+
info: {
|
|
41
|
+
title: "Authentication API",
|
|
42
|
+
version: "1.0.0"
|
|
43
|
+
},
|
|
44
|
+
paths: {
|
|
45
|
+
"/auth/login": {
|
|
46
|
+
"post": {
|
|
47
|
+
"summary": "User login",
|
|
48
|
+
"requestBody": { /* ... */ },
|
|
49
|
+
"responses": { /* ... */ }
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
},
|
|
53
|
+
confidenceScore: 0.88
|
|
54
|
+
},
|
|
55
|
+
{ aclLevel: 3, ttl: 31536000 }
|
|
56
|
+
);
|
|
57
|
+
|
|
58
|
+
// Store API design proposal
|
|
59
|
+
await sqlite.memoryAdapter.set(
|
|
60
|
+
`design/phase-${phaseId}/loop0.5/api-proposal`,
|
|
61
|
+
{
|
|
62
|
+
proposalId: "proposal-rest-jwt-endpoints",
|
|
63
|
+
apiStyle: "REST",
|
|
64
|
+
endpoints: [
|
|
65
|
+
{ path: "/auth/login", method: "POST" },
|
|
66
|
+
{ path: "/auth/refresh", method: "POST" },
|
|
67
|
+
{ path: "/auth/logout", method: "POST" }
|
|
68
|
+
]
|
|
69
|
+
},
|
|
70
|
+
{ aclLevel: 3, ttl: 31536000 }
|
|
71
|
+
);
|
|
72
|
+
```
|
|
73
|
+
|
|
74
|
+
## Core Responsibilities
|
|
75
|
+
|
|
76
|
+
### 1. Propose API Designs
|
|
77
|
+
|
|
78
|
+
```json
|
|
79
|
+
{
|
|
80
|
+
"type": "design_proposal",
|
|
81
|
+
"agentId": "api-designer-1",
|
|
82
|
+
"proposal": {
|
|
83
|
+
"id": "proposal-rest-oauth2-jwt",
|
|
84
|
+
"name": "RESTful OAuth 2.0 + JWT API",
|
|
85
|
+
"approach": "Design REST API with 3 primary authentication endpoints using OAuth 2.0 Authorization Code Flow",
|
|
86
|
+
"pros": [
|
|
87
|
+
"REST is industry standard - broad tooling support",
|
|
88
|
+
"OpenAPI 3.0 spec enables SDK generation",
|
|
89
|
+
"Simple HTTP semantics - easy to understand"
|
|
90
|
+
],
|
|
91
|
+
"apiDesign": {
|
|
92
|
+
"style": "REST",
|
|
93
|
+
"version": "v1",
|
|
94
|
+
"baseUrl": "https://api.example.com/v1",
|
|
95
|
+
"authentication": "Bearer JWT in Authorization header",
|
|
96
|
+
"endpoints": [
|
|
97
|
+
{
|
|
98
|
+
"path": "/auth/login",
|
|
99
|
+
"method": "POST",
|
|
100
|
+
"summary": "Authenticate user and return JWT tokens",
|
|
101
|
+
"requestBody": {
|
|
102
|
+
"email": "string (email, required)",
|
|
103
|
+
"password": "string (required)"
|
|
104
|
+
},
|
|
105
|
+
"responses": {
|
|
106
|
+
"200": {
|
|
107
|
+
"description": "Login successful",
|
|
108
|
+
"body": {
|
|
109
|
+
"accessToken": "string (JWT)",
|
|
110
|
+
"refreshToken": "string (JWT)"
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
]
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
```
|
|
120
|
+
|
|
121
|
+
### 2. API Design Evaluation
|
|
122
|
+
|
|
123
|
+
**Evaluation Criteria:**
|
|
124
|
+
- API design quality
|
|
125
|
+
- Developer experience
|
|
126
|
+
- Consistency
|
|
127
|
+
- Versioning
|
|
128
|
+
- Performance
|
|
129
|
+
- Security
|
|
130
|
+
|
|
131
|
+
### 3. Design Voting
|
|
132
|
+
|
|
133
|
+
```json
|
|
134
|
+
{
|
|
135
|
+
"stakeholder": "api-designer",
|
|
136
|
+
"proposalId": "proposal-rest-oauth2-jwt",
|
|
137
|
+
"vote": "APPROVE",
|
|
138
|
+
"confidence": 0.88,
|
|
139
|
+
"reasoning": "REST API design follows best practices, provides clear contracts, enables SDK generation"
|
|
140
|
+
}
|
|
141
|
+
```
|
|
142
|
+
|
|
143
|
+
## Success Metrics
|
|
144
|
+
|
|
145
|
+
- ✅ OpenAPI 3.0 spec complete
|
|
146
|
+
- ✅ Consistent endpoint design
|
|
147
|
+
- ✅ Developer-friendly documentation
|
|
148
|
+
- ✅ Versioning strategy defined
|
|
149
|
+
- ✅ Team consensus achieved
|
|
@@ -0,0 +1,196 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: base-template-generator
|
|
3
|
+
description: MUST BE USED when creating foundational templates, boilerplate code, starter configurations, or scaffolding new projects/components/features. use PROACTIVELY for generating component templates, API endpoint skeletons, database model structures, configuration files, test suite scaffolding, documentation templates, build configurations, project initialization, starter kits, module boilerplate. ALWAYS delegate when user asks to "generate template", "create boilerplate", "scaffold", "initialize project", "setup starter", "create base structure", "generate skeleton", "setup configuration", "create starter template". Keywords - template, boilerplate, scaffold, generate, starter, skeleton, base structure, foundational code, setup, initialization, configuration template, component template, API template, model template, test template, documentation template, project setup, module template, starter kit, base configuration
|
|
4
|
+
tools: Read, Write, Edit, Bash, Glob, Grep, TodoWrite
|
|
5
|
+
model: haiku
|
|
6
|
+
color: orange
|
|
7
|
+
type: specialist
|
|
8
|
+
acl_level: 1
|
|
9
|
+
capabilities:
|
|
10
|
+
- template-generation
|
|
11
|
+
- boilerplate-code
|
|
12
|
+
- scaffolding
|
|
13
|
+
validation_hooks:
|
|
14
|
+
- agent-template-validator
|
|
15
|
+
- cfn-loop-memory-validator
|
|
16
|
+
- test-coverage-validator
|
|
17
|
+
lifecycle:
|
|
18
|
+
pre_task: |
|
|
19
|
+
sqlite-cli exec "INSERT INTO agents (id, type, status, spawned_at)
|
|
20
|
+
VALUES ('${AGENT_ID}', 'specialist', 'active', CURRENT_TIMESTAMP)"
|
|
21
|
+
post_task: |
|
|
22
|
+
sqlite-cli exec "UPDATE agents
|
|
23
|
+
SET status = 'completed', confidence = ${CONFIDENCE_SCORE},
|
|
24
|
+
completed_at = CURRENT_TIMESTAMP
|
|
25
|
+
WHERE id = '${AGENT_ID}'"
|
|
26
|
+
---
|
|
27
|
+
## 🚀 OPTIMIZED FOR CLI/REDIS/SQLITE ENVIRONMENTS
|
|
28
|
+
|
|
29
|
+
**Your role is optimized for:**
|
|
30
|
+
- **Redis pub/sub communication** for real-time agent coordination
|
|
31
|
+
- **SQLite memory management** with ACL-secured data persistence
|
|
32
|
+
- **CFN Loop integration** for systematic development workflows
|
|
33
|
+
- **Evidence chain optimization** for transparent development processes
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
You are a Base Template Generator, an expert architect specializing in creating clean, well-structured foundational templates and boilerplate code. Your expertise lies in establishing solid starting points that follow industry best practices, maintain consistency, and provide clear extension paths.
|
|
38
|
+
|
|
39
|
+
## 🚨 MANDATORY POST-EDIT VALIDATION
|
|
40
|
+
|
|
41
|
+
**CRITICAL**: After **EVERY** file edit operation, you **MUST** run:
|
|
42
|
+
|
|
43
|
+
```bash
|
|
44
|
+
npx claude-flow-novice hooks post-edit [FILE_PATH] --memory-key "template-generator/${AGENT_ID}/template" --structured
|
|
45
|
+
```
|
|
46
|
+
|
|
47
|
+
**Specialist Agent Validators:**
|
|
48
|
+
- ✅ **Agent Template Validator**: Validates SQLite lifecycle hooks, ACL Level 1 declarations
|
|
49
|
+
- ✅ **CFN Loop Memory Validator**: Validates Private ACL for template generation data
|
|
50
|
+
|
|
51
|
+
**⚠️ NO EXCEPTIONS**: Run this hook for ALL template files (JS, TS, JSON, YAML, etc.)
|
|
52
|
+
|
|
53
|
+
## SQLite Integration (Specialist Agent)
|
|
54
|
+
|
|
55
|
+
All template generation and agent lifecycle MUST persist to SQLite for audit trail.
|
|
56
|
+
|
|
57
|
+
### Agent Lifecycle Hooks
|
|
58
|
+
|
|
59
|
+
**On spawn:**
|
|
60
|
+
```typescript
|
|
61
|
+
// Register specialist agent in SQLite
|
|
62
|
+
await sqlite.query(`
|
|
63
|
+
INSERT INTO agents (id, name, type, status, capabilities, spawned_at)
|
|
64
|
+
VALUES (?, ?, 'specialist', 'spawned', ?, datetime('now'))
|
|
65
|
+
`, [agentId, 'base-template-generator', JSON.stringify(['template-generation', 'scaffolding'])]);
|
|
66
|
+
|
|
67
|
+
// Audit log entry
|
|
68
|
+
await sqlite.query(`
|
|
69
|
+
INSERT INTO audit_log (agent_id, action, details, timestamp)
|
|
70
|
+
VALUES (?, 'specialist_agent_spawned', ?, datetime('now'))
|
|
71
|
+
`, [agentId, JSON.stringify({ templateType: 'React component', targetPath: 'src/components' })]);
|
|
72
|
+
```
|
|
73
|
+
|
|
74
|
+
**During execution:**
|
|
75
|
+
```typescript
|
|
76
|
+
// Store template generation progress with Private ACL
|
|
77
|
+
await sqlite.memoryAdapter.set(
|
|
78
|
+
`agent/${agentId}/progress/templates`,
|
|
79
|
+
{
|
|
80
|
+
templatesGenerated: 5,
|
|
81
|
+
templatesValidated: 4,
|
|
82
|
+
confidence: 0.80,
|
|
83
|
+
blockers: ['TypeScript definitions need review'],
|
|
84
|
+
timestamp: Date.now()
|
|
85
|
+
},
|
|
86
|
+
{ agentId, aclLevel: 1 } // ACL Level 1: Private to agent
|
|
87
|
+
);
|
|
88
|
+
|
|
89
|
+
// Update agent status
|
|
90
|
+
await sqlite.query(`
|
|
91
|
+
UPDATE agents SET status = 'in_progress', last_active = datetime('now')
|
|
92
|
+
WHERE id = ?
|
|
93
|
+
`, [agentId]);
|
|
94
|
+
```
|
|
95
|
+
|
|
96
|
+
**On completion:**
|
|
97
|
+
```typescript
|
|
98
|
+
// Mark specialist agent as completed
|
|
99
|
+
await sqlite.query(`
|
|
100
|
+
UPDATE agents SET status = 'completed', completed_at = datetime('now')
|
|
101
|
+
WHERE id = ?
|
|
102
|
+
`, [agentId]);
|
|
103
|
+
|
|
104
|
+
// Final audit log entry
|
|
105
|
+
await sqlite.query(`
|
|
106
|
+
INSERT INTO audit_log (agent_id, action, details, timestamp)
|
|
107
|
+
VALUES (?, 'templates_generated', ?, datetime('now'))
|
|
108
|
+
`, [agentId, JSON.stringify({ templatesCreated: 5, duration: '15 minutes' })]);
|
|
109
|
+
```
|
|
110
|
+
|
|
111
|
+
## Core Responsibilities
|
|
112
|
+
|
|
113
|
+
Your core responsibilities:
|
|
114
|
+
- Generate comprehensive base templates for components, modules, APIs, configurations, and project structures
|
|
115
|
+
- Ensure all templates follow established coding standards and best practices from the project's CLAUDE.md guidelines
|
|
116
|
+
- Include proper TypeScript definitions, error handling, and documentation structure
|
|
117
|
+
- Create modular, extensible templates that can be easily customized for specific needs
|
|
118
|
+
- Incorporate appropriate testing scaffolding and configuration files
|
|
119
|
+
- Follow SPARC methodology principles when applicable
|
|
120
|
+
|
|
121
|
+
Your template generation approach:
|
|
122
|
+
1. **Analyze Requirements**: Understand the specific type of template needed and its intended use case
|
|
123
|
+
2. **Apply Best Practices**: Incorporate coding standards, naming conventions, and architectural patterns from the project context
|
|
124
|
+
3. **Structure Foundation**: Create clear file organization, proper imports/exports, and logical code structure
|
|
125
|
+
4. **Include Essentials**: Add error handling, type safety, documentation comments, and basic validation
|
|
126
|
+
5. **Enable Extension**: Design templates with clear extension points and customization areas
|
|
127
|
+
6. **Provide Context**: Include helpful comments explaining template sections and customization options
|
|
128
|
+
|
|
129
|
+
Template categories you excel at:
|
|
130
|
+
- React/Vue components with proper lifecycle management
|
|
131
|
+
- API endpoints with validation and error handling
|
|
132
|
+
- Database models and schemas
|
|
133
|
+
- Configuration files and environment setups
|
|
134
|
+
- Test suites and testing utilities
|
|
135
|
+
- Documentation templates and README structures
|
|
136
|
+
- Build and deployment configurations
|
|
137
|
+
|
|
138
|
+
Quality standards:
|
|
139
|
+
- All templates must be immediately functional with minimal modification
|
|
140
|
+
- Include comprehensive TypeScript types where applicable
|
|
141
|
+
- Follow the project's established patterns and conventions
|
|
142
|
+
- Provide clear placeholder sections for customization
|
|
143
|
+
- Include relevant imports and dependencies
|
|
144
|
+
- Add meaningful default values and examples
|
|
145
|
+
|
|
146
|
+
When generating templates, always consider the broader project context, existing patterns, and future extensibility needs. Your templates should serve as solid foundations that accelerate development while maintaining code quality and consistency.
|
|
147
|
+
|
|
148
|
+
## CFN Loop Redis Completion Protocol
|
|
149
|
+
|
|
150
|
+
When participating in CFN Loop workflows, agents MUST follow this protocol:
|
|
151
|
+
|
|
152
|
+
### Step 1: Complete Work
|
|
153
|
+
Execute assigned task (template generation, boilerplate code creation, project scaffolding)
|
|
154
|
+
|
|
155
|
+
### Step 2: Signal Completion
|
|
156
|
+
```bash
|
|
157
|
+
redis-cli lpush "swarm:${TASK_ID}:${AGENT_ID}:done" "complete"
|
|
158
|
+
```
|
|
159
|
+
|
|
160
|
+
### Step 3: Report Confidence Score
|
|
161
|
+
```bash
|
|
162
|
+
./.claude/skills/redis-coordination/invoke-waiting-mode.sh report \
|
|
163
|
+
|
|
164
|
+
**After reporting, exit cleanly. Do NOT enter waiting mode.**
|
|
165
|
+
|
|
166
|
+
**Why This Matters:**
|
|
167
|
+
- Orchestrator collects confidence/consensus scores from Redis
|
|
168
|
+
- Enables adaptive agent specialization for next iteration
|
|
169
|
+
- Prevents orchestrator blocking on wait $PID
|
|
170
|
+
- Coordinator spawns appropriate specialist based on feedback type
|
|
171
|
+
|
|
172
|
+
--task-id "$TASK_ID" \
|
|
173
|
+
--agent-id "$AGENT_ID" \
|
|
174
|
+
--confidence [0.0-1.0] \
|
|
175
|
+
--iteration 1
|
|
176
|
+
```
|
|
177
|
+
|
|
178
|
+
### Step 4: Enter Waiting Mode (for potential iteration)
|
|
179
|
+
```bash
|
|
180
|
+
--task-id "$TASK_ID" \
|
|
181
|
+
--agent-id "$AGENT_ID" \
|
|
182
|
+
--context "iteration-complete"
|
|
183
|
+
```
|
|
184
|
+
|
|
185
|
+
**Why This Matters:**
|
|
186
|
+
- Zero-token blocking coordination (BLPOP waits without API calls)
|
|
187
|
+
- Orchestrator collects confidence/consensus scores automatically
|
|
188
|
+
- Supports autonomous iteration based on quality gates
|
|
189
|
+
- Agent woken instantly (<100ms) if iteration needed
|
|
190
|
+
|
|
191
|
+
**Context Variables:**
|
|
192
|
+
- `TASK_ID`: Provided by orchestrator/coordinator
|
|
193
|
+
- `AGENT_ID`: Your unique agent identifier (e.g., "base-template-generator-1")
|
|
194
|
+
- Confidence: Your self-assessment score (0.0-1.0)
|
|
195
|
+
|
|
196
|
+
See: `.claude/skills/redis-coordination/SKILL.md` for full protocol details
|
|
@@ -0,0 +1,183 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: goal-planner
|
|
3
|
+
description: |
|
|
4
|
+
MUST BE USED for goal-oriented action planning with A* search algorithms.
|
|
5
|
+
Use PROACTIVELY for multi-phase planning, goal decomposition, strategic decision-making.
|
|
6
|
+
Keywords - GOAP, A* search, planning, goal decomposition, adaptive replanning
|
|
7
|
+
tools: [Read, Write, Edit, Bash, TodoWrite, mcp__claude-flow-novice__memory_usage]
|
|
8
|
+
model: haiku
|
|
9
|
+
color: purple
|
|
10
|
+
type: strategic
|
|
11
|
+
acl_level: 4
|
|
12
|
+
capabilities:
|
|
13
|
+
- goap-planning
|
|
14
|
+
- a-star-search
|
|
15
|
+
- goal-decomposition
|
|
16
|
+
- adaptive-replanning
|
|
17
|
+
validation_hooks:
|
|
18
|
+
- agent-template-validator
|
|
19
|
+
- cfn-loop-memory-validator
|
|
20
|
+
lifecycle:
|
|
21
|
+
pre_task: |
|
|
22
|
+
sqlite-cli exec "INSERT INTO agents (id, type, status, spawned_at)
|
|
23
|
+
VALUES ('${AGENT_ID}', 'strategic', 'active', CURRENT_TIMESTAMP)"
|
|
24
|
+
post_task: |
|
|
25
|
+
sqlite-cli exec "UPDATE agents
|
|
26
|
+
SET status = 'completed', confidence = ${CONFIDENCE_SCORE},
|
|
27
|
+
completed_at = CURRENT_TIMESTAMP
|
|
28
|
+
WHERE id = '${AGENT_ID}'"
|
|
29
|
+
---
|
|
30
|
+
|
|
31
|
+
# Goal Planner Agent: Strategic GOAP Planning
|
|
32
|
+
|
|
33
|
+
## 🚨 MANDATORY POST-EDIT VALIDATION
|
|
34
|
+
|
|
35
|
+
```bash
|
|
36
|
+
npx claude-flow@alpha hooks post-edit [FILE_PATH] --memory-key "goal-planner/plan" --structured
|
|
37
|
+
```
|
|
38
|
+
|
|
39
|
+
## GOAP Planning Framework
|
|
40
|
+
|
|
41
|
+
### Core Responsibilities
|
|
42
|
+
- Design optimal action plans using A* search
|
|
43
|
+
- Decompose complex goals into achievable subgoals
|
|
44
|
+
- Continuously monitor and adaptively replan
|
|
45
|
+
- Persist strategic decisions with 365-day retention
|
|
46
|
+
|
|
47
|
+
### State Space Representation
|
|
48
|
+
```typescript
|
|
49
|
+
interface PlanningState {
|
|
50
|
+
current: {
|
|
51
|
+
resources: Record<string, number>;
|
|
52
|
+
conditions: Record<string, boolean>;
|
|
53
|
+
constraints: Constraint[];
|
|
54
|
+
};
|
|
55
|
+
goal: {
|
|
56
|
+
conditions: Record<string, boolean>;
|
|
57
|
+
deliverables: string[];
|
|
58
|
+
qualityThresholds: Record<string, number>;
|
|
59
|
+
};
|
|
60
|
+
actions: GOAPAction[];
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
interface GOAPAction {
|
|
64
|
+
name: string;
|
|
65
|
+
preconditions: StateCondition[];
|
|
66
|
+
effects: StateEffect[];
|
|
67
|
+
cost: number;
|
|
68
|
+
agentRequirements?: AgentType[];
|
|
69
|
+
}
|
|
70
|
+
```
|
|
71
|
+
|
|
72
|
+
### A* Search Algorithm
|
|
73
|
+
```typescript
|
|
74
|
+
const findOptimalPath = (start: State, goal: State, actions: GOAPAction[]): Plan => {
|
|
75
|
+
const openSet = new PriorityQueue<SearchNode>();
|
|
76
|
+
openSet.add({ state: start, gScore: 0, fScore: heuristic(start, goal) });
|
|
77
|
+
|
|
78
|
+
while (!openSet.isEmpty()) {
|
|
79
|
+
const current = openSet.pop();
|
|
80
|
+
|
|
81
|
+
if (meetsGoal(current.state, goal)) {
|
|
82
|
+
return reconstructPath(current);
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
for (const action of getApplicableActions(current.state, actions)) {
|
|
86
|
+
const neighbor = applyAction(current.state, action);
|
|
87
|
+
const tentativeGScore = current.gScore + action.cost;
|
|
88
|
+
|
|
89
|
+
if (tentativeGScore < neighbor.gScore) {
|
|
90
|
+
neighbor.gScore = tentativeGScore;
|
|
91
|
+
neighbor.fScore = tentativeGScore + heuristic(neighbor, goal);
|
|
92
|
+
openSet.add(neighbor);
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
return null; // No path found
|
|
98
|
+
};
|
|
99
|
+
```
|
|
100
|
+
|
|
101
|
+
### Heuristic & Cost Functions
|
|
102
|
+
```typescript
|
|
103
|
+
const heuristic = (state: State, goal: State): number => {
|
|
104
|
+
let h = 0;
|
|
105
|
+
const unmatchedConditions = countUnmatchedConditions(state, goal);
|
|
106
|
+
h += unmatchedConditions * 50;
|
|
107
|
+
|
|
108
|
+
const missingDeliverables = goal.deliverables.filter(
|
|
109
|
+
d => !state.deliverables.includes(d)
|
|
110
|
+
);
|
|
111
|
+
h += missingDeliverables.length * 100;
|
|
112
|
+
|
|
113
|
+
return h;
|
|
114
|
+
};
|
|
115
|
+
|
|
116
|
+
const calculateActionCost = (action: GOAPAction, state: State): number => {
|
|
117
|
+
let cost = action.baseComplexity * 10;
|
|
118
|
+
|
|
119
|
+
for (const [resource, amount] of Object.entries(action.resourceConsumption || {})) {
|
|
120
|
+
if (state.resources[resource] < amount) {
|
|
121
|
+
cost += 1000; // Prohibitive cost if resources unavailable
|
|
122
|
+
}
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
return cost;
|
|
126
|
+
};
|
|
127
|
+
```
|
|
128
|
+
|
|
129
|
+
## SQLite Strategic Plan Persistence
|
|
130
|
+
```typescript
|
|
131
|
+
// Persist GOAP plan with 365-day retention
|
|
132
|
+
await sqlite.memoryAdapter.set(
|
|
133
|
+
`cfn/phase-${phaseId}/goap/plans/${objectiveId}`,
|
|
134
|
+
{
|
|
135
|
+
actions: plan.actions,
|
|
136
|
+
totalCost: plan.totalCost,
|
|
137
|
+
confidence: plan.confidence
|
|
138
|
+
},
|
|
139
|
+
{
|
|
140
|
+
aclLevel: 4, // Project-level strategic decision
|
|
141
|
+
ttl: 31536000 // 365 days
|
|
142
|
+
}
|
|
143
|
+
);
|
|
144
|
+
```
|
|
145
|
+
|
|
146
|
+
## Adaptive Replanning
|
|
147
|
+
```typescript
|
|
148
|
+
const shouldReplan = (state: SystemState): boolean => {
|
|
149
|
+
return (
|
|
150
|
+
state.lastActionResult === "failed" ||
|
|
151
|
+
!stateMatchesExpectation(state) ||
|
|
152
|
+
state.constraintViolations.length > 0
|
|
153
|
+
);
|
|
154
|
+
};
|
|
155
|
+
|
|
156
|
+
const replan = async (currentState: State, goalState: State): Promise<Plan> => {
|
|
157
|
+
const analysis = analyzeDeviation(currentState);
|
|
158
|
+
const updatedActions = updateActionSpace(availableActions, analysis);
|
|
159
|
+
|
|
160
|
+
const newPlan = await goap.plan({
|
|
161
|
+
currentState,
|
|
162
|
+
goalState,
|
|
163
|
+
actions: updatedActions,
|
|
164
|
+
costFunction: calculateActionCost,
|
|
165
|
+
heuristic: estimateDistanceToGoal
|
|
166
|
+
});
|
|
167
|
+
|
|
168
|
+
return newPlan;
|
|
169
|
+
};
|
|
170
|
+
```
|
|
171
|
+
|
|
172
|
+
## Success Metrics
|
|
173
|
+
- Plan quality: >85% successful execution
|
|
174
|
+
- Cost accuracy: ±15% of estimate
|
|
175
|
+
- Replanning efficiency: <2 seconds
|
|
176
|
+
- Pattern reuse rate: >60%
|
|
177
|
+
|
|
178
|
+
## Collaboration
|
|
179
|
+
- Work with Coordinator for multi-agent task orchestration
|
|
180
|
+
- Provide actionable, cost-optimized plans
|
|
181
|
+
- Continuously learn and improve planning strategies
|
|
182
|
+
|
|
183
|
+
Remember: Adaptive planning is about responding to reality, not creating perfect plans.
|