Orchestrator

From masharratt/claude-flow-novice · View interactive version

Orchestrator is an AI agent skill from the GitHub repository masharratt/claude-flow-novice. CFN Loop workflow orchestration - three-loop structure management with gate checks and consensus. Use when coordinating Loop 3 implementers and Loop 2 validators, managing iteration cycles, or enforcing quality gates.

How to use this skill

Skill file

CFN Loop Orchestration Skill

Metadata

Supported Entry Point (verified on disk)

The ONLY supported entry is:

$HOME/.claude/skills/cfn-loop-orchestration-v2/cli/orchestrate.sh

It routes to cli/resolve-provider-model.cjs via Node. Nothing else in this skill directory is a supported entry point.

In Task Mode (/cfn-loop-task) do NOT use Redis, helpers/, or dist/cli; agents return output directly. CLI/Redis sections apply only to /cfn-loop-cli mode.

The following entry points that earlier versions of this document referenced do NOT exist on disk and must not be invoked or cited:

Renamed, not missing: the old .claude/skills/cfn-loop-orchestration/test-cfn-orchestration.sh is now test-cfn-orchestration.sh in this directory.

For the mechanical test gate, use the verified script:

$HOME/.claude/skills/cfn-loop-orchestration-v2/cli/gate-check.sh \
  --out <test-output-file> --threshold <decimal>
# exit 0 = pass, 1 = fail, 2 = no tests detected (0/0 never passes)

Purpose

Orchestrates the Complete Fail Never (CFN) Loop workflow, managing the three-loop structure:

Responsibilities

  1. Coordinate multi-agent CFN Loop execution
  2. Manage gate checks and consensus validation
  3. Handle iteration cycles with feedback injection
  4. Execute Product Owner decision flow
  5. Enforce dependency ordering (Loop 3 -> Loop 2 -> PO)

CFN Loop Flow

1. Spawn Loop 3 Agents
   |
2. Collect Loop 3 results (Task Mode: direct output; CLI mode: provider runtime)
   |
3. Gate Check (cli/gate-check.sh on coordinator's test output)
   |- PASS -> Start Loop 2
   |- FAIL -> Iterate Loop 3 with feedback (goto step 1)
   |
4. Loop 2 Validates Loop 3 Work
   |
5. Collect Loop 2 consensus
   |
6. Product Owner Decision
   |- PROCEED -> Exit success
   |- ITERATE -> Iterate (goto step 1)
   |- ABORT -> Exit failure

Mode-Specific Thresholds

Single source of truth: .claude/skills/cfn-loop-orchestration-v2/THRESHOLDS.md. Do not restate values here; read that file. Summary of column meanings:

Error Handling

Recoverable Failures

Critical Failures

Success Criteria

This skill is considered successful when:

  1. CFN Loop slash commands (/cfn-loop-task, /cfn-loop-cli) work without modification
  2. Gate decisions are made only by cli/gate-check.sh output, never by inline parsing
  3. Thresholds are read from THRESHOLDS.md, never hardcoded
Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.