agentleFS
dungnotnulldungnotnull/hybrid-harness-chaos-process-prm/skills/s00-orchestrator/SKILL.md

workflow-orchestrator

Skill19 starsChanged 6 months agoMITView on GitHub

Master orchestration skill that coordinates the complete end-to-end Agile workflow from ideation to production operations. Use this skill whenever the user starts a new project, says "start a workflow", "run the full process", "orchestrate my project", or needs to understand the overall workflow sequence. This skill reads CLAUDE.md, identifies the current project phase, dispatches to the correct domain skills, and ensures all inputs/outputs are chained correctly between skills. Every AI agent in this project must consult this skill first to understand the global workflow state.

9 other projects use a version of this.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

5 rules. 0 are common, 5 are distinctive, and 0 are very specific to this project.

  • 0

    Common

    Most of the 7 edited versions we read keep these.

  • 5

    Distinctive

    This author's own choices. Worth a look.

  • 0

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    When the user initiates any workflow, execute these steps in order:

    line 103
  2. Distinctive:

    Every handoff between skills passes this structured context:

    line 181
  3. Distinctive:

    When dispatching to skill sNN:

    line 225
  4. Distinctive:

    When operating as the orchestrator:

    line 317
  5. Distinctive:

    Always verify upstream outputs: before passing them downstream

    line 320

“Common” is measured: kept by at least 6 in 10 of the 7 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Workflow Orchestrator (s00)

Purpose

Serve as the single entrypoint that coordinates the entire hybrid harness + chaos engineering workflow. This skill maps the full Agile lifecycle, knows the input/output contracts of every skill, and ensures agents follow the correct sequence without skipping steps.


Prerequisites

  • CLAUDE.md read and loaded into context
  • .commandcode/taste/ directory exists for memory persistence
  • Current project context established (repo, team, stack)

Input Contract

InputSourceRequired
User request / project descriptionUser promptYes
CLAUDE.md (project rules)Repository rootYes
Taste file (.commandcode/taste/taste.md)Project repoNo (created if absent)
Progress state (.commandcode/progress.json)Previous runsNo (created if absent)

Output Contract

OutputDestinationFormat
Workflow phase decisionNext skill invocationText + structured context
Updated progress state.commandcode/progress.jsonJSON
Cross-skill context handoffNext skill's inputStructured YAML
Phase completion summaryUser + progress trackerMarkdown

Complete Agile Workflow Map

PHASE 0: FOUNDATION
  s00 → s01 → s02 + s03 (parallel)
    │
PHASE 1: PLANNING & REQUIREMENTS
  s01 (BA deep analysis → PRD + ADRs + backlog)
    │
PHASE 2: CI/CD SCAFFOLDING
  s04 → s05 → s06 → s07 → s08 → s09 → s10
  (pipeline design → service onboard → delegate → secrets → FF → templates → GitOps)
    │
PHASE 3: SECURITY GATE
  s11 (SAST + SCA + container + secrets + IaC + SBOM + SLSA)
  ⚠️ BLOCKS all downstream if security gates fail
    │
PHASE 4: TESTING
  s12 → s13 (CloakBrowser E2E + baseline → Performance/load profiling)
  ⚠️ Performance baseline required before chaos experiments
    │
PHASE 5: CHAOS EXPERIMENT DESIGN
  s17 → s14 → s15 → s16 → s18 → s19
  \(steady state → experiment → hypothesis → blast radius → infra faults → app faults\)
    │
PHASE 6: GAME DAY EXECUTION
  s20 (orchestrated resilience exercise)
    │
PHASE 7: VERIFICATION & OBSERVABILITY
  s21 → s22 → s23
  (CV verification → observability integration → alerting & recommendations)
    │
PHASE 8: GOVERNANCE
  s24 → s25 → s26 → s27 → s28
  (policy → cost → resilience scoring → postmortem → release management)
    │
PHASE 9: RESILIENCE & CONTINUITY
  s29 → s30
  (disaster recovery → compliance & audit)

STRATEGIC INNOVATION (s31 — callable at ANY phase)
  Invoked when user says "think bigger", "brainstorm", "what am I missing",
  "upgrade requirements", "strategic review", "innovate"
  → s31 produces proposals + trade-off analysis (advisory only)
  → If user accepts a proposal, dispatches to relevant implementation skill
  → If user declines, workflow continues from current phase unchanged

FEEDBACK LOOP:
  s27 (postmortem findings) → s01 (re-analysis) → full cycle
  s30 (compliance gaps) → s01 (PRD update) → remediation cycle

Phase 0: Foundation

When the user initiates any workflow, execute these steps in order:

Step 1 — Load Project Context

action: read_and_load
files:
  - CLAUDE.md              # Project identity, stack, conventions
  - .commandcode/taste/taste.md  # Developer preferences (create if absent)
status: check_progress_file
  - .commandcode/progress.json   # Where are we in the workflow?

Step 2 — Determine Phase

Based on user request and progress state, determine current phase:

  • No progress file exists → Start at s01 (BA Requirements) or s04 (CI/CD if project exists)
  • Progress file exists → Resume from last completed phase
  • User specifies phase → Jump to that phase (but warn about skipped prerequisites)

Step 3 — Dispatch and Hand-off

handoff_protocol:
  before_dispatch:
    - Read the target skill's SKILL.md fully
    - Gather all inputs listed in the skill's Input Contract
    - Verify prerequisites are satisfied from previous phase outputs
  during_dispatch:
    - Pass structured context object to the next skill
    - Update progress.json with "in_progress" status
  after_completion:
    - Verify skill's output matches its Output Contract
    - Update progress.json with "completed" status
    - Notify user of phase completion with summary
    - Load and dispatch to next skill in sequence

Skill Index with I/O Chains

#SkillConsumes FromProduces For
00OrchestratorUser prompt, CLAUDE.mdProgress state, phase dispatch
01BA RequirementsUser prompt, taste filePRD, specificationss04, s14
02Taste & MemoryAll skill outputsUser preference modelAll skills
03Progress TrackerOrchestrator dispatch eventsProgress stateOrchestrator
04Pipeline DesignPRD (s01), service name, stackPipeline YAMLs05, s14, s21
05Service OnboardingPipeline YAML (s04), repo URLService definitionss06, s08
06Delegate ManagementService defs (s05), cluster infoDeploy configs05, s10
07Secrets ManagementService defs (s05)Secret referencess04, s05, s08
08Feature FlagsPRD (s01), service defs (s05)Flag configs, SDK codes16, s23
09Template LibraryPipeline patterns (s04)Reusable templatess04, s10, s20
10GitOpsTemplates (s09), service (s05)GitOps config, Application YAMLs04, s20
11Security ScanningSource code, images, depsScan reports, SBOM, gate verdicts12 (gates testing), s24, s30
12CloakBrowser TestingPRD (s01), pipeline (s04)Test results, coverages20, s23, s27
13Performance TestingService endpoints, SLAsBaselines, breaking pointss14 (chaos), s25, s26
14Experiment DesignPRD (s01), pipeline (s04)Experiment manifestss15, s16, s17
15Hypothesis ValidationExperiment (s14), steady state (s17)Validated hypothesess20, s26, s27
16Blast Radius ControlExperiment (s14), env tiersBlast radius configs15, s20, s24
17Steady State DefinitionService defs (s05), pipeline (s04)Probes, baseline metricss15, s21, s27
18Infrastructure FaultsExperiment (s14), delegate (s06)Infra fault manifestss20
19Application FaultsExperiment (s14), service (s05)App fault manifestss20
20Game Day PlanningExperiments (s14-s19), team infoGame day runbook, schedules22, s23, s27
21CV VerificationPipeline (s04), monitors, s17CV config, monitored servicess22, s26
22Observability IntegrationCV (s21), experiments (s14-s19)Dashboards, chaos metricss20, s23
23Alerting & RecommendationsObs (s22), experiments resultsAlert rules, recommendationss26, s27
24Policy GovernanceAll YAML outputsOPA policiesAll skills (gate)
25Cloud Cost ManagementService defs (s05), infraCost configs, budgetss26
26Resilience ScoringAll experiment results, obs dataResilience score, reports27, s28, s29
27Postmortem LearningGame day results, scores, alertsRCA, action items, runbook updatess01 (feedback loop)
28Release ManagementPipeline, scores, verificationsRelease plan, go/no-go, notess30 (audit trail)
29Disaster RecoveryTopology, resilience scoresDR plan, failover runbook, RTO/RPOs26, s30
30Compliance & AuditAll evidence, scans, approvalsAudit trail, evidence bundles01 (feedback loop)
31Strategic CreatorCurrent phase artifacts, PRD, tasteProposals + trade-off analysis (advisory)s01, s04, s11, s14, s22, s25, s30 (on acceptance)

Context Object Schema

Every handoff between skills passes this structured context:

workflow_context:
  project:
    name: string
    description: string
    repository: string
    team: string
    stack: [string]

  phase:
    current: string       # e.g., "04-pipeline-design"
    completed: [string]   # e.g., ["01-ba-requirements"]
    next: string          # e.g., "05-service-onboarding"

  artifacts:
    prd_path: string|null
    pipeline_yaml: string|null
    service_defs: [string]|null
    experiment_manifests: [string]|null
    game_day_runbook: string|null
    resilience_score: number|null

  taste:
    preferences: object   # Injected from s02
    last_updated: string

  progress:
    state_file: string    # Path to progress.json
    completed_steps: [string]
    current_step: string
    blockers: [string]

  conventions:
    naming: object        # From CLAUDE.md
    env_tiers: [string]
    approval_required: boolean

Dispatch Protocol (Step-by-Step)

When dispatching to skill sNN:

# 1. Load the skill
read_file(skills/sNN-<name>/SKILL.md)

# 2. Gather inputs from context object
# Every skill declares its inputs. The orchestrator ensures they exist.

# 3. Check prerequisites
# If any prerequisite is missing, call the upstream skill first.

# 4. Execute the skill
# The skill runs its workflow autonomously.

# 5. Capture outputs into context object
workflow_context.artifacts.<output_key> = skill_output

# 6. Save progress
write_file(.commandcode/progress.json, updated_progress)

# 7. Notify and dispatch next
# Present summary to user, then auto-dispatch to sNN+1

Special Case: s31 Strategic Creator

s31 is NOT part of the linear workflow. It is callable at ANY phase:

s31_invocation:
  triggers:
    - User says "think bigger", "brainstorm", "what am I missing"
    - User says "strategic review", "innovate", "upgrade requirements"
    - User says "challenge assumptions", "what would FAANG do"
    - User explicitly invokes /strategic-creator or s31

  behavior:
    - Pause current workflow phase (do NOT advance progress.json)
    - Load s31 with current phase context + PRD + taste
    - Present proposals (advisory only — no implementation)
    - Wait for user decision:
        accept: dispatch to relevant skills, update progress.json
        decline: resume current phase from where we paused
        defer: record proposal in context for later, resume current phase

  example_flow:
    current_phase: "05-service-onboarding (in_progress)"
    user: "Think bigger — what would Netflix do here?"
    →
    s31_invoked:
      - Pauses s05
      - Analyzes current architecture + PRD
      - Presents 3 proposals with trade-offs
      - User accepts Proposal #2 → dispatches s01 (new ADR) + s05 (service update)
      - After dispatch, resumes s05 with updated context

Progress JSON Schema

{
  "project": "hybrid-harness-chaos-process-prm",
  "workflow_version": "1.0",
  "created_at": "2025-01-15T10:00:00Z",
  "updated_at": "2025-01-15T10:05:00Z",
  "phases": {
    "00-orchestrator": { "status": "completed", "completed_at": "..." },
    "01-ba-requirements": { "status": "in_progress", "started_at": "..." },
    "02-taste-memory": { "status": "pending" },
    "03-progress-tracker": { "status": "pending" },
    "04-pipeline-design": { "status": "pending" },
    "...": {}
  },
  "artifacts": {
    "prd": null,
    "pipeline_yaml": null,
    "service_definitions": null,
    "experiment_manifests": null,
    "resilience_report": null
  },
  "blockers": [],
  "notes": []
}

Agent Autonomy Rules

When operating as the orchestrator:

  1. Never skip phases unless user explicitly confirms skipping
  2. Always verify upstream outputs before passing them downstream
  3. Surface blockers immediately — don't silently continue without prerequisites
  4. Update progress.json after every phase completion
  5. Inject taste data from s02 into every skill context
  6. Present phase summaries with: what was done, what was produced, what comes next

Workflow Decision Tree

User prompt received
    │
    ├── "Start new project" or "Design/plan X"
    │   └── GOTO s01 (BA Requirements) → full workflow
    │
    ├── "Set up CI/CD" or "Deploy X"
    │   ├── Is PRD/context available?
    │   │   ├── YES → GOTO s04 (Pipeline Design)
    │   │   └── NO → GOTO s01 first, then s04
    │
    ├── "Run chaos experiment" or "Test resilience"
    │   ├── Is pipeline + service onboarded?
    │   │   ├── YES → GOTO s14 (Experiment Design)
    │   │   └── NO → GOTO s04 first, then s14
    │
    ├── "Game day" or "Chaos day"
    │   ├── Are experiments designed and validated?
    │   │   ├── YES → GOTO s20 (Game Day Planning)
    │   │   └── NO → GOTO s14 first, then s20
    │
    ├── "Think bigger" / "Brainstorm" / "What am I missing" / "Innovate"
    │   └── GOTO s31 (Strategic Creator) — pause current phase, present proposals
    │       ├── User accepts proposal → dispatch to relevant skill(s)
    │       ├── User declines → resume paused phase
    │       └── User defers → record in context, resume paused phase
    │
    ├── "Review/audit" or "Governance check"
    │   └── GOTO s24 (Policy Governance) → s26 (Scoring) → s27 (Postmortem)
    │
    ├── "Security audit" or "Vulnerability check"
    │   └── GOTO s11 (Security Scanning) → s30 (Compliance Audit)
    │
    └── "Fix issue from postmortem" or "Remediate"
        └── GOTO s27 (Postmortem) → feeds back into s01 (re-analysis)

AI Agent Integration

Autonomy Level

AspectLevelDescription
CurrentL1Phase detection, skill dispatch recommendations
TargetL3Auto-dispatch with human checkpoint at phase transitions

Harness AI Agent

Agent: Workflow Orchestration (Harness AI Intelligent Workflow Orchestration layer) Capabilities:

  • Phase detection from context
  • Skill dispatch optimization
  • Context handoff generation
  • Blocker identification

Human Gates

  • Phase transitions require human confirmation
  • Skip-phase requests require explicit approval
  • Workflow restart requires human trigger

MCP Integration

None required


Success Criteria

  • CLAUDE.md loaded and understood
  • Progress file detected or created
  • Correct phase determined from user request
  • All prerequisites verified before skill dispatch
  • Context object populated correctly for each handoff
  • Progress.json updated after every phase
  • User informed of workflow state at each transition
  • No phases skipped without explicit user confirmation

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.