claude-flow-novice 2.15.2 → 2.15.3

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.
Files changed (98) hide show
  1. package/.claude/hooks/cfn-BACKUP_USAGE.md +243 -243
  2. package/.claude/hooks/cfn-invoke-security-validation.sh +69 -69
  3. package/.claude/hooks/cfn-post-edit-cfn-retrospective.sh +78 -78
  4. package/.claude/hooks/cfn-post-edit.config.json +44 -44
  5. package/.claude/skills/agent-lifecycle/SKILL.md +60 -0
  6. package/.claude/skills/agent-lifecycle/execute-lifecycle-hook.sh +573 -0
  7. package/.claude/skills/agent-lifecycle/simple-audit.sh +31 -0
  8. package/.claude/skills/cfn-hybrid-routing/check-dependencies.sh +51 -51
  9. package/.claude/skills/cfn-loop-validation/orchestrate-cfn-loop.sh +252 -252
  10. package/.claude/skills/cfn-redis-coordination/agent-recovery.sh +74 -74
  11. package/.claude/skills/cfn-redis-coordination/get-context.sh +112 -112
  12. package/.claude/skills/cfn-transparency-middleware/middleware-config.sh +28 -28
  13. package/.claude/skills/cfn-transparency-middleware/performance-benchmark.sh +78 -78
  14. package/.claude/skills/cfn-transparency-middleware/test-integration.sh +161 -161
  15. package/.claude/skills/cfn-transparency-middleware/test-transparency-skill.sh +367 -367
  16. package/.claude/skills/cfn-transparency-middleware/tests/input-validation.sh +92 -92
  17. package/.claude/skills/cfn-transparency-middleware/wrap-agent.sh +131 -131
  18. package/claude-assets/hooks/cfn-BACKUP_USAGE.md +243 -243
  19. package/claude-assets/hooks/cfn-invoke-security-validation.sh +69 -69
  20. package/claude-assets/hooks/cfn-post-edit-cfn-retrospective.sh +78 -78
  21. package/claude-assets/hooks/cfn-post-edit.config.json +44 -44
  22. package/claude-assets/hooks/cfn-post-execution/memory-cleanup.sh +19 -19
  23. package/claude-assets/hooks/cfn-pre-execution/memory-check.sh +19 -19
  24. package/claude-assets/skills/agent-lifecycle/execute-lifecycle-hook.sh +572 -572
  25. package/claude-assets/skills/agent-lifecycle/simple-audit.sh +30 -30
  26. package/claude-assets/skills/cfn-automatic-memory-persistence/persist-agent-output.sh +48 -48
  27. package/claude-assets/skills/cfn-automatic-memory-persistence/query-agent-history.sh +34 -34
  28. package/claude-assets/skills/cfn-deliverable-validation/confidence-calculator.sh +261 -261
  29. package/claude-assets/skills/cfn-expert-update/update-expert.sh +345 -345
  30. package/claude-assets/skills/cfn-hybrid-routing/check-dependencies.sh +51 -51
  31. package/claude-assets/skills/cfn-intervention-detector/detect-intervention.sh +110 -110
  32. package/claude-assets/skills/cfn-intervention-orchestrator/execute-intervention.sh +58 -58
  33. package/claude-assets/skills/cfn-loop-validation/orchestrate-cfn-loop.sh +252 -252
  34. package/claude-assets/skills/cfn-loop2-output-processing/process-validator-output.sh +275 -275
  35. package/claude-assets/skills/cfn-memory-management/check-memory.sh +159 -159
  36. package/claude-assets/skills/cfn-memory-management/cleanup-memory.sh +196 -196
  37. package/claude-assets/skills/cfn-node-heap-sizer/task-mode-heap-limiter.sh +325 -325
  38. package/claude-assets/skills/cfn-playbook-auto-update/auto-update-playbook.sh +85 -85
  39. package/claude-assets/skills/cfn-redis-coordination/agent-recovery.sh +74 -74
  40. package/claude-assets/skills/cfn-redis-coordination/get-context.sh +112 -112
  41. package/claude-assets/skills/cfn-scope-simplifier/simplify-scope.sh +67 -67
  42. package/claude-assets/skills/cfn-specialist-injection/recommend-specialist.sh +56 -56
  43. package/claude-assets/skills/cfn-standardized-error-handling/capture-agent-error.sh +86 -86
  44. package/claude-assets/skills/cfn-standardized-error-handling/test-error-handling.sh +165 -165
  45. package/claude-assets/skills/cfn-task-config-init/initialize-config.sh +264 -264
  46. package/claude-assets/skills/cfn-task-decomposition/task-decomposer.sh +278 -278
  47. package/claude-assets/skills/cfn-transparency-middleware/middleware-config.sh +28 -28
  48. package/claude-assets/skills/cfn-transparency-middleware/performance-benchmark.sh +78 -78
  49. package/claude-assets/skills/cfn-transparency-middleware/test-integration.sh +161 -161
  50. package/claude-assets/skills/cfn-transparency-middleware/test-transparency-skill.sh +367 -367
  51. package/claude-assets/skills/cfn-transparency-middleware/tests/input-validation.sh +92 -92
  52. package/claude-assets/skills/cfn-transparency-middleware/wrap-agent.sh +131 -131
  53. package/claude-assets/skills/docker-build/SKILL.md +96 -203
  54. package/claude-assets/skills/docker-build/build.sh +73 -73
  55. package/claude-assets/skills/integration/agent-handoff.sh +494 -0
  56. package/claude-assets/skills/integration/file-operations.sh +414 -0
  57. package/claude-assets/skills/workflow-codification/APPROVAL_WORKFLOW.md +806 -0
  58. package/claude-assets/skills/workflow-codification/COST_TRACKING.md +637 -0
  59. package/claude-assets/skills/workflow-codification/EDGE_CASE_TRACKING.md +404 -0
  60. package/claude-assets/skills/workflow-codification/README_PHASE4.md +457 -0
  61. package/claude-assets/skills/workflow-codification/SKILL.md +110 -0
  62. package/claude-assets/skills/workflow-codification/analyze-patterns.sh +899 -0
  63. package/claude-assets/skills/workflow-codification/approval-workflow.sh +514 -0
  64. package/claude-assets/skills/workflow-codification/generate-skill-update.sh +525 -0
  65. package/claude-assets/skills/workflow-codification/review-skill.sh +643 -0
  66. package/claude-assets/skills/workflow-codification/templates/email-notification.txt +114 -0
  67. package/claude-assets/skills/workflow-codification/templates/slack-notification.md +85 -0
  68. package/claude-assets/skills/workflow-codification/test-integration.sh +281 -0
  69. package/claude-assets/skills/workflow-codification/track-cost-savings.sh +445 -0
  70. package/claude-assets/skills/workflow-codification/track-edge-case.sh +323 -0
  71. package/dist/cli/config-manager.js +91 -109
  72. package/dist/cli/config-manager.js.map +1 -1
  73. package/dist/integration/DatabaseHandoff.js +507 -0
  74. package/dist/integration/DatabaseHandoff.js.map +1 -0
  75. package/dist/integration/StandardAdapter.js +291 -0
  76. package/dist/integration/StandardAdapter.js.map +1 -0
  77. package/dist/lib/agent-output-parser.js +518 -0
  78. package/dist/lib/agent-output-parser.js.map +1 -0
  79. package/dist/lib/agent-output-validator.js +950 -0
  80. package/dist/lib/agent-output-validator.js.map +1 -0
  81. package/dist/lib/artifact-registry.js +443 -0
  82. package/dist/lib/artifact-registry.js.map +1 -0
  83. package/dist/lib/config-validator.js +687 -0
  84. package/dist/lib/config-validator.js.map +1 -0
  85. package/dist/types/agent-output.js +44 -0
  86. package/dist/types/agent-output.js.map +1 -0
  87. package/dist/types/config.js +28 -0
  88. package/dist/types/config.js.map +1 -0
  89. package/package.json +2 -1
  90. package/scripts/artifact-cleanup.sh +392 -0
  91. package/scripts/deploy-production.sh +355 -355
  92. package/scripts/docker-playwright-fix.sh +311 -311
  93. package/scripts/docker-rebuild-all-agents.sh +127 -127
  94. package/scripts/memory-leak-prevention.sh +305 -305
  95. package/scripts/migrate-artifacts.sh +563 -0
  96. package/scripts/migrate-yaml-to-json.sh +465 -0
  97. package/scripts/run-marketing-tests.sh +42 -42
  98. package/scripts/update_paths.sh +46 -46
@@ -1,52 +1,52 @@
1
- #!/usr/bin/env bash
2
- set -euo pipefail
3
-
4
- # Hybrid Routing Skill Dependency Checker
5
-
6
- DEPENDENCIES=(
7
- "jq"
8
- "redis-cli"
9
- "openssl"
10
- )
11
-
12
- OPTIONAL_DEPENDENCIES=(
13
- "websocketd"
14
- )
15
-
16
- check_dependency() {
17
- local dep="$1"
18
- if ! command -v "$dep" &> /dev/null; then
19
- echo "Error: Dependency '$dep' not found."
20
- return 1
21
- fi
22
- }
23
-
24
- main() {
25
- echo "Checking Required Dependencies for Hybrid Routing Skill..."
26
-
27
- # Check required dependencies
28
- for dep in "${DEPENDENCIES[@]}"; do
29
- if ! check_dependency "$dep"; then
30
- echo "CRITICAL: Unable to proceed without $dep"
31
- exit 1
32
- fi
33
- done
34
-
35
- # Check optional dependencies
36
- for dep in "${OPTIONAL_DEPENDENCIES[@]}"; do
37
- if ! command -v "$dep" &> /dev/null; then
38
- echo "Warning: Optional dependency '$dep' not found. Some advanced routing features may be limited."
39
- fi
40
- done
41
-
42
- # Additional Redis connectivity check
43
- if ! redis-cli ping &> /dev/null; then
44
- echo "Error: Cannot connect to Redis server"
45
- exit 1
46
- fi
47
-
48
- echo "✅ All dependencies validated successfully"
49
- exit 0
50
- }
51
-
1
+ #!/usr/bin/env bash
2
+ set -euo pipefail
3
+
4
+ # Hybrid Routing Skill Dependency Checker
5
+
6
+ DEPENDENCIES=(
7
+ "jq"
8
+ "redis-cli"
9
+ "openssl"
10
+ )
11
+
12
+ OPTIONAL_DEPENDENCIES=(
13
+ "websocketd"
14
+ )
15
+
16
+ check_dependency() {
17
+ local dep="$1"
18
+ if ! command -v "$dep" &> /dev/null; then
19
+ echo "Error: Dependency '$dep' not found."
20
+ return 1
21
+ fi
22
+ }
23
+
24
+ main() {
25
+ echo "Checking Required Dependencies for Hybrid Routing Skill..."
26
+
27
+ # Check required dependencies
28
+ for dep in "${DEPENDENCIES[@]}"; do
29
+ if ! check_dependency "$dep"; then
30
+ echo "CRITICAL: Unable to proceed without $dep"
31
+ exit 1
32
+ fi
33
+ done
34
+
35
+ # Check optional dependencies
36
+ for dep in "${OPTIONAL_DEPENDENCIES[@]}"; do
37
+ if ! command -v "$dep" &> /dev/null; then
38
+ echo "Warning: Optional dependency '$dep' not found. Some advanced routing features may be limited."
39
+ fi
40
+ done
41
+
42
+ # Additional Redis connectivity check
43
+ if ! redis-cli ping &> /dev/null; then
44
+ echo "Error: Cannot connect to Redis server"
45
+ exit 1
46
+ fi
47
+
48
+ echo "✅ All dependencies validated successfully"
49
+ exit 0
50
+ }
51
+
52
52
  main "$@"
@@ -1,111 +1,111 @@
1
- #!/usr/bin/env bash
2
- set -euo pipefail
3
-
4
- # Parse arguments
5
- while [[ $# -gt 0 ]]; do
6
- case "$1" in
7
- --iteration) ITERATION="$2"; shift 2 ;;
8
- --confidence-history) IFS=',' read -ra CONFIDENCE_HISTORY <<< "$2"; shift 2 ;;
9
- --feedback-history) IFS=';' read -ra FEEDBACK_HISTORY <<< "$2"; shift 2 ;;
10
- *) echo "Unknown parameter: $1"; exit 1 ;;
11
- esac
12
- done
13
-
14
- # Configuration
15
- CONFIDENCE_DELTA_THRESHOLD=0.05
16
- RECURRING_FEEDBACK_THRESHOLD=3
17
-
18
- # Confidence Plateau Detection
19
- detect_confidence_plateau() {
20
- if [[ ${#CONFIDENCE_HISTORY[@]} -lt 2 ]]; then
21
- echo "false"
22
- return
23
- fi
24
-
25
- local last_index=$((${#CONFIDENCE_HISTORY[@]} - 1))
26
- local delta=$(echo "${CONFIDENCE_HISTORY[last_index]} - ${CONFIDENCE_HISTORY[last_index-1]}" | bc)
27
-
28
- if (( $(echo "$delta < $CONFIDENCE_DELTA_THRESHOLD" | bc -l) )); then
29
- echo "true"
30
- else
31
- echo "false"
32
- fi
33
- }
34
-
35
- # Recurring Feedback Detection
36
- detect_recurring_feedback() {
37
- declare -A feedback_counts
38
-
39
- for theme in "${FEEDBACK_HISTORY[@]}"; do
40
- # Extract main theme/keyword
41
- cleaned_theme=$(echo "$theme" | cut -d'|' -f1)
42
- feedback_counts["$cleaned_theme"]=$((${feedback_counts["$cleaned_theme"]} + 1))
43
- done
44
-
45
- for count in "${feedback_counts[@]}"; do
46
- if [[ $count -ge $RECURRING_FEEDBACK_THRESHOLD ]]; then
47
- echo "true"
48
- return
49
- fi
50
- done
51
-
52
- echo "false"
53
- }
54
-
55
- # Deliverables Stuck Detection
56
- detect_deliverables_stuck() {
57
- # In a real implementation, this would check actual file creation
58
- echo "false"
59
- }
60
-
61
- # Main Intervention Detection
62
- intervention_needed=false
63
- trigger=""
64
- details=""
65
-
66
- if [[ $(detect_confidence_plateau) == "true" ]]; then
67
- intervention_needed=true
68
- trigger="confidence_plateau"
69
- details=$(jq -n \
70
- --arg iterations 2 \
71
- --arg delta "$(echo "${CONFIDENCE_HISTORY[${#CONFIDENCE_HISTORY[@]}-1]} - ${CONFIDENCE_HISTORY[${#CONFIDENCE_HISTORY[@]}-2]}" | bc)" \
72
- --arg threshold "$CONFIDENCE_DELTA_THRESHOLD" \
73
- '{
74
- "iterations_stuck": $iterations,
75
- "confidence_delta": $delta,
76
- "threshold": $threshold
77
- }')
78
- fi
79
-
80
- if [[ -z "$trigger" ]] && [[ $(detect_recurring_feedback) == "true" ]]; then
81
- intervention_needed=true
82
- trigger="recurring_feedback"
83
- details=$(jq -n \
84
- --arg threshold "$RECURRING_FEEDBACK_THRESHOLD" \
85
- '{
86
- "recurring_themes_count": $threshold
87
- }')
88
- fi
89
-
90
- # Generate JSON output
91
- jq -n \
92
- --arg intervention_needed "$intervention_needed" \
93
- --arg trigger "$trigger" \
94
- --argjson details "${details:-null}" \
95
- '{
96
- "intervention_needed": ($intervention_needed == "true"),
97
- "trigger": $trigger,
98
- "details": $details,
99
- "recommended_action":
100
- if $trigger == "confidence_plateau" then "swap_agent"
101
- elif $trigger == "recurring_feedback" then "add_specialist"
102
- else null
103
- end,
104
- "reasoning":
105
- if $trigger == "confidence_plateau" then "Confidence improving too slowly, underperforming agent detected"
106
- elif $trigger == "recurring_feedback" then "Persistent feedback theme requires specialist intervention"
107
- else null
108
- end
109
- }'
110
-
1
+ #!/usr/bin/env bash
2
+ set -euo pipefail
3
+
4
+ # Parse arguments
5
+ while [[ $# -gt 0 ]]; do
6
+ case "$1" in
7
+ --iteration) ITERATION="$2"; shift 2 ;;
8
+ --confidence-history) IFS=',' read -ra CONFIDENCE_HISTORY <<< "$2"; shift 2 ;;
9
+ --feedback-history) IFS=';' read -ra FEEDBACK_HISTORY <<< "$2"; shift 2 ;;
10
+ *) echo "Unknown parameter: $1"; exit 1 ;;
11
+ esac
12
+ done
13
+
14
+ # Configuration
15
+ CONFIDENCE_DELTA_THRESHOLD=0.05
16
+ RECURRING_FEEDBACK_THRESHOLD=3
17
+
18
+ # Confidence Plateau Detection
19
+ detect_confidence_plateau() {
20
+ if [[ ${#CONFIDENCE_HISTORY[@]} -lt 2 ]]; then
21
+ echo "false"
22
+ return
23
+ fi
24
+
25
+ local last_index=$((${#CONFIDENCE_HISTORY[@]} - 1))
26
+ local delta=$(echo "${CONFIDENCE_HISTORY[last_index]} - ${CONFIDENCE_HISTORY[last_index-1]}" | bc)
27
+
28
+ if (( $(echo "$delta < $CONFIDENCE_DELTA_THRESHOLD" | bc -l) )); then
29
+ echo "true"
30
+ else
31
+ echo "false"
32
+ fi
33
+ }
34
+
35
+ # Recurring Feedback Detection
36
+ detect_recurring_feedback() {
37
+ declare -A feedback_counts
38
+
39
+ for theme in "${FEEDBACK_HISTORY[@]}"; do
40
+ # Extract main theme/keyword
41
+ cleaned_theme=$(echo "$theme" | cut -d'|' -f1)
42
+ feedback_counts["$cleaned_theme"]=$((${feedback_counts["$cleaned_theme"]} + 1))
43
+ done
44
+
45
+ for count in "${feedback_counts[@]}"; do
46
+ if [[ $count -ge $RECURRING_FEEDBACK_THRESHOLD ]]; then
47
+ echo "true"
48
+ return
49
+ fi
50
+ done
51
+
52
+ echo "false"
53
+ }
54
+
55
+ # Deliverables Stuck Detection
56
+ detect_deliverables_stuck() {
57
+ # In a real implementation, this would check actual file creation
58
+ echo "false"
59
+ }
60
+
61
+ # Main Intervention Detection
62
+ intervention_needed=false
63
+ trigger=""
64
+ details=""
65
+
66
+ if [[ $(detect_confidence_plateau) == "true" ]]; then
67
+ intervention_needed=true
68
+ trigger="confidence_plateau"
69
+ details=$(jq -n \
70
+ --arg iterations 2 \
71
+ --arg delta "$(echo "${CONFIDENCE_HISTORY[${#CONFIDENCE_HISTORY[@]}-1]} - ${CONFIDENCE_HISTORY[${#CONFIDENCE_HISTORY[@]}-2]}" | bc)" \
72
+ --arg threshold "$CONFIDENCE_DELTA_THRESHOLD" \
73
+ '{
74
+ "iterations_stuck": $iterations,
75
+ "confidence_delta": $delta,
76
+ "threshold": $threshold
77
+ }')
78
+ fi
79
+
80
+ if [[ -z "$trigger" ]] && [[ $(detect_recurring_feedback) == "true" ]]; then
81
+ intervention_needed=true
82
+ trigger="recurring_feedback"
83
+ details=$(jq -n \
84
+ --arg threshold "$RECURRING_FEEDBACK_THRESHOLD" \
85
+ '{
86
+ "recurring_themes_count": $threshold
87
+ }')
88
+ fi
89
+
90
+ # Generate JSON output
91
+ jq -n \
92
+ --arg intervention_needed "$intervention_needed" \
93
+ --arg trigger "$trigger" \
94
+ --argjson details "${details:-null}" \
95
+ '{
96
+ "intervention_needed": ($intervention_needed == "true"),
97
+ "trigger": $trigger,
98
+ "details": $details,
99
+ "recommended_action":
100
+ if $trigger == "confidence_plateau" then "swap_agent"
101
+ elif $trigger == "recurring_feedback" then "add_specialist"
102
+ else null
103
+ end,
104
+ "reasoning":
105
+ if $trigger == "confidence_plateau" then "Confidence improving too slowly, underperforming agent detected"
106
+ elif $trigger == "recurring_feedback" then "Persistent feedback theme requires specialist intervention"
107
+ else null
108
+ end
109
+ }'
110
+
111
111
  exit 0
@@ -1,59 +1,59 @@
1
- #!/usr/bin/env bash
2
- set -euo pipefail
3
-
4
- # Parse arguments
5
- while [[ $# -gt 0 ]]; do
6
- case "$1" in
7
- --trigger) TRIGGER="$2"; shift 2 ;;
8
- --iteration) ITERATION="$2"; shift 2 ;;
9
- --loop3-agents) IFS=',' read -ra AGENTS <<< "$2"; shift 2 ;;
10
- --feedback-themes) IFS=',' read -ra THEMES <<< "$2"; shift 2 ;;
11
- *) echo "Unknown parameter: $1"; exit 1 ;;
12
- esac
13
- done
14
-
15
- # Intervention router
16
- case "$TRIGGER" in
17
- "confidence_plateau")
18
- # Use agent swap
19
- SWAP_OUTPUT=$(/mnt/c/Users/masha/Documents/claude-flow-novice/.claude/skills/cfn-agent-swap/recommend-swap.sh \
20
- --loop3-agents "$(IFS=,; echo "${AGENTS[*]}")" \
21
- --loop3-confidences "0.70,0.82" \
22
- --feedback-themes "$(IFS=,; echo "${THEMES[*]}")")
23
-
24
- INTERVENTION_TYPE="agent_swap"
25
- ;;
26
-
27
- "recurring_feedback")
28
- # Use specialist injection
29
- SWAP_OUTPUT=$(/mnt/c/Users/masha/Documents/claude-flow-novice/.claude/skills/cfn-specialist-injection/recommend-specialist.sh \
30
- --current-loop3 "$(IFS=,; echo "${AGENTS[*]}")" \
31
- --feedback-themes "$(IFS=,; echo "${THEMES[*]}")" \
32
- --recurring-count 3)
33
-
34
- INTERVENTION_TYPE="add_specialist"
35
- ;;
36
-
37
- "deliverables_stuck")
38
- # Use scope simplifier
39
- SWAP_OUTPUT=$(/mnt/c/Users/masha/Documents/claude-flow-novice/.claude/skills/cfn-scope-simplifier/simplify-scope.sh \
40
- --original-deliverables "src/auth/oauth2.ts,src/auth/sessions.ts,tests/auth.test.ts,docs/auth.md" \
41
- --files-created "none" \
42
- --iteration "$ITERATION")
43
-
44
- INTERVENTION_TYPE="simplify_scope"
45
- ;;
46
-
47
- *)
48
- echo "Invalid intervention trigger" >&2
49
- exit 1
50
- ;;
51
- esac
52
-
53
- # Transform intervention output to standard format
54
- echo "$SWAP_OUTPUT" | jq \
55
- --arg intervention_type "$INTERVENTION_TYPE" \
56
- --arg iteration "$ITERATION" \
57
- '.intervention_type = $intervention_type |
58
- .iteration = $iteration |
1
+ #!/usr/bin/env bash
2
+ set -euo pipefail
3
+
4
+ # Parse arguments
5
+ while [[ $# -gt 0 ]]; do
6
+ case "$1" in
7
+ --trigger) TRIGGER="$2"; shift 2 ;;
8
+ --iteration) ITERATION="$2"; shift 2 ;;
9
+ --loop3-agents) IFS=',' read -ra AGENTS <<< "$2"; shift 2 ;;
10
+ --feedback-themes) IFS=',' read -ra THEMES <<< "$2"; shift 2 ;;
11
+ *) echo "Unknown parameter: $1"; exit 1 ;;
12
+ esac
13
+ done
14
+
15
+ # Intervention router
16
+ case "$TRIGGER" in
17
+ "confidence_plateau")
18
+ # Use agent swap
19
+ SWAP_OUTPUT=$(/mnt/c/Users/masha/Documents/claude-flow-novice/.claude/skills/cfn-agent-swap/recommend-swap.sh \
20
+ --loop3-agents "$(IFS=,; echo "${AGENTS[*]}")" \
21
+ --loop3-confidences "0.70,0.82" \
22
+ --feedback-themes "$(IFS=,; echo "${THEMES[*]}")")
23
+
24
+ INTERVENTION_TYPE="agent_swap"
25
+ ;;
26
+
27
+ "recurring_feedback")
28
+ # Use specialist injection
29
+ SWAP_OUTPUT=$(/mnt/c/Users/masha/Documents/claude-flow-novice/.claude/skills/cfn-specialist-injection/recommend-specialist.sh \
30
+ --current-loop3 "$(IFS=,; echo "${AGENTS[*]}")" \
31
+ --feedback-themes "$(IFS=,; echo "${THEMES[*]}")" \
32
+ --recurring-count 3)
33
+
34
+ INTERVENTION_TYPE="add_specialist"
35
+ ;;
36
+
37
+ "deliverables_stuck")
38
+ # Use scope simplifier
39
+ SWAP_OUTPUT=$(/mnt/c/Users/masha/Documents/claude-flow-novice/.claude/skills/cfn-scope-simplifier/simplify-scope.sh \
40
+ --original-deliverables "src/auth/oauth2.ts,src/auth/sessions.ts,tests/auth.test.ts,docs/auth.md" \
41
+ --files-created "none" \
42
+ --iteration "$ITERATION")
43
+
44
+ INTERVENTION_TYPE="simplify_scope"
45
+ ;;
46
+
47
+ *)
48
+ echo "Invalid intervention trigger" >&2
49
+ exit 1
50
+ ;;
51
+ esac
52
+
53
+ # Transform intervention output to standard format
54
+ echo "$SWAP_OUTPUT" | jq \
55
+ --arg intervention_type "$INTERVENTION_TYPE" \
56
+ --arg iteration "$ITERATION" \
57
+ '.intervention_type = $intervention_type |
58
+ .iteration = $iteration |
59
59
  .expected_improvement = "Intervention should address underlying performance issues"'