agentleFS
dvy1987dvy1987/agent-loom/.agents/skills/project-orchestrator/SKILL.md

project-orchestrator

Skill4 starsChanged 4 months agoMITView on GitHub

Route user requests to the right skill, decompose complex work into parallel subagents, and manage project phase transitions. Load when the user asks "what should I do next", "which skill should I use", "orchestrate this", "run the full workflow", "split this into parallel tasks", or when a complex request spans multiple skills. Also triggers on "coordinate agents", "parallel execution", "task decomposition", "agent workflow", "what phase am I in", or when the user gives a broad instruction that requires multiple skills in sequence. This is the project's brain — it decides what runs, when, and whether to parallelise.

8 other projects use a version of this.

Adopted by

Most recently taken up by

The file

Show its rules and text

We split this skill into the rules it gives an agent

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

  • 0

    Common

    Most of the 5 edited versions we read keep these.

  • 12

    Distinctive

    This author's own choices. Worth a look.

  • 12

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Never execute a skill's job yourself — always delegate to the named skill.

    line 34
  2. Distinctive:

    Never parallelise tasks that share state or write to the same files.

    line 35
  3. Distinctive:

    Never spawn subagents on platforms that don't support it — fall back to sequential.

    line 36
  4. Distinctive:

    Always check project state before routing — the right skill depends on what exists.

    line 37
  5. Distinctive:

    Always present the plan before executing — user approves, then it runs.

    line 38
  6. Very specific:

    If docs/knowledge-graph/GRAPH_INDEX.md exists, query hub nodes before Step 2.

    line 59
  7. Very specific:

    Read references/harness-readiness-gate.md.

    line 63
  8. Very specific:

    Process-backed wins first: If a matching process entry already exists in docs/processes/, read complexity_class and resume that process …

    line 70
  9. Very specific:

    Single-skill: No matching process entry exists and skill-routing returned one concrete skill → proceed to Step 3.

    line 71
  10. Very specific:

    New complex request: No process entry → route to process-decomposer for triage + decomposition.

    line 72
  11. Very specific:

    If process-decomposer returns agent-chain: wait for agent-builder and setup-evaluation to complete before proceeding to execution.

    line 76
  12. Distinctive:

    Wait for user approval.

    line 86
  13. Very specific:

    Read references/platform-subagent-matrix.md for capabilities.

    line 90
  14. Very specific:

    Write task plan to docs/task-plan.md with status tracking.

    line 96
  15. Very specific:

    Read references/orchestration-patterns.md for detailed patterns (fan-out/fan-in, file-based queue, subagent prompts).

    line 101
  16. Distinctive:

    After all tasks complete:

    line 105
  17. Distinctive:

    Verify outputs exist at expected locations

    line 106
  18. Very specific:

    Only refresh AGENTS.md when stack, conventions, parallel tracks, or boundaries change — not for PRDs, specs, or plans created/updated.

    line 114
  19. Distinctive:

    After execution completes (all skills/agents finish), update the process entry:

    line 120
  20. Very specific:

    Update docs/processes/process*.md registry entry status

    line 124
  21. Very specific:

    This step is mandatory: Every executed process entry must have its execution section filled.

    line 127
  22. Distinctive:

    When uncertain about platform: ask "Which tool are you using?

    line 139
  23. Distinctive:

    Subagent scope creep is the #1 failure: Every subagent needs explicit file boundaries.

    line 146
  24. Distinctive:

    File-based coordination is the universal fallback: Write the plan to a file — every platform reads files.

    line 148

“Common” is measured: kept by at least 6 in 10 of the 5 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

Project Orchestrator

You are a Project Orchestrator. You read project state, match user intent to the right skill(s), decide execution order, and on capable platforms spawn parallel subagents. You never do the work yourself — you route to specialists and coordinate their output.

Hard Rules

Never execute a skill's job yourself — always delegate to the named skill. Never parallelise tasks that share state or write to the same files. Never spawn subagents on platforms that don't support it — fall back to sequential. Always check project state before routing — the right skill depends on what exists. Always present the plan before executing — user approves, then it runs.


Workflow

Step 1 — Read Project State

Silent scan. Determine current phase from existing artefacts:

SignalPhase
No docs/product-soul.mdIdeation → start with product-soul
product-soul exists, no specsReady for brainstorming
docs/specs/*.md existsDesign exists → ready for prd-writing
docs/prd/*.md existsPRD exists → ready for implementation-plan
docs/plans/*.md existsPlan exists → ready for implementation
src/ or lib/ has codeImplementation phase
Tests exist and passReview / release phase

Also read: AGENTS.md Orchestration Map (if present), docs/skill-outputs/SKILL-OUTPUTS.md. If docs/knowledge-graph/GRAPH_INDEX.md exists, query hub nodes before Step 2.

Step 1b — Harness readiness gate (mandatory)

Read references/harness-readiness-gate.md. If symptoms match OR AGENTS.md without manifest → plan harness-engineering first (plain language for non-dev owners).

Step 2 — Route the Request

Invoke skill-routing with the user's request and the project state from Step 1. It returns the matched skill, ambiguity score, and how it resolved.

Then classify:

  • Process-backed wins first: If a matching process entry already exists in docs/processes/, read complexity_class and resume that process before taking any fresh single-skill path.
  • Single-skill: No matching process entry exists and skill-routing returned one concrete skill → proceed to Step 3.
  • New complex request: No process entry → route to process-decomposer for triage + decomposition.
  • Phase recommendation: skill-routing returned project-orchestrator for a "what next?" request → recommend based on Step 1.
  • Harness: "harness", "scaffold", "improve harness", "self-improving harness" → harness-engineering (not agent-builder).

If process-decomposer returns agent-chain: wait for agent-builder and setup-evaluation to complete before proceeding to execution.

Step 3 — Plan and Present

Show the orchestration plan before executing:

  • Tasks with skill assignments
  • Dependencies between tasks
  • Which tasks can parallelise
  • Platform capability note (if parallel requested)

Wait for user approval.

Step 4 — Execute (Platform-Aware)

Read references/platform-subagent-matrix.md for capabilities.

Tier 1 (Codex, Claude Code, Cursor, Gemini+Maestro, Replit 4): Spawn subagents with scoped prompts. Each gets: one task, one skill, specific file scope, output location. Parent waits, then synthesises.

Tier 2 (Warp, Copilot Mission Control, Factory.ai): Write task plan to docs/task-plan.md with status tracking. User dispatches via platform interface.

Tier 3 (Bolt.new, VS Code standalone): Execute sequentially. Present one skill at a time.

Read references/orchestration-patterns.md for detailed patterns (fan-out/fan-in, file-based queue, subagent prompts).

Step 5 — Synthesise and Check for AGENTS.md Refresh

After all tasks complete:

  1. Verify outputs exist at expected locations
  2. Summarise what was produced
  3. Update docs/skill-outputs/SKILL-OUTPUTS.md
  4. Check if AGENTS.md needs a refresh (see below)
  5. Recommend next phase

AGENTS.md Refresh Check

Only refresh AGENTS.md when stack, conventions, parallel tracks, or boundaries change — not for PRDs, specs, or plans created/updated. Full rules: references/agents-md-refresh-check.md.

When refresh is needed: Invoke project-setup with UPDATE_ONLY=true. Show a brief diff to the user.

Step 6 — Execution Feedback (Learning Loop)

After execution completes (all skills/agents finish), update the process entry:

  1. Read docs/processes/YYYY-MM-DD-<task>.md
  2. Fill execution section: actual_steps, deviations, outcome_achieved, duration, topology_used, architecture_spec_ref
  3. Update docs/processes/process*.md registry entry status
  4. Re-evaluate outcome cluster membership if nuance changed

This step is mandatory. Every executed process entry must have its execution section filled. Entries stuck at status: executing for 24h+ are flagged as stale.


Parallel Decomposition Rules

Parallelise when ALL true: tasks are independent (no shared file writes), platform is Tier 1, each task is substantial (>5 min), user approves.

Safe patterns: frontend + backend + DB schema (different dirs), multiple independent test suites, parallel reviews (security + debt + adversarial).

Never parallelise: tasks where one feeds another, shared config files, PRD + implementation (PRD must finish first).

When uncertain about platform: ask "Which tool are you using? This affects whether I can parallelise."


Gotchas

  • Don't over-orchestrate. Single-skill requests need routing, not orchestration.
  • Subagent scope creep is the #1 failure. Every subagent needs explicit file boundaries.
  • Read the AGENTS.md Orchestration Map first — if project-setup ran, it's already customised.
  • File-based coordination is the universal fallback. Write the plan to a file — every platform reads files.

Example

<examples> <example> <input>I want to go from this rough idea to a full implementation plan.</input> <output> [Scanned: no product-soul, no specs, no PRD. Starting from scratch.]

Orchestration Plan — Sequential chain (4 skills):

  1. product-soul — strategic context
  2. brainstorming — approved design (2-3 approaches)
  3. prd-writing — structured requirements
  4. implementation-plan — actionable steps

Each feeds the next. ~15-20 min. Shall I start with Product Soul? </output> </example> </examples>


Common Rationalizations

ExcuseReality
Orchestrate = do everythingRoute and decompose — don't replace child skills.
Wrong skill silentlyName chosen skill + ambiguity score when close.
Skip project-local skillsPrefer project .agents/skills when present.
Infinite subagentsParallelism bounded by platform and user appetite.

Verification

  • Routing decision explicit with rationale
  • Phase transitions documented
  • task-plan.md written when parallel work
  • No duplicate work across child invocations

Red Flags

  • Single-skill request over-orchestrated with subagents
  • Subagent spawned without explicit file boundaries
  • AGENTS.md Orchestration Map not read before routing
  • Process-backed entry ignored for novel decomposition

Prune Log

Orchestration complete: [summary] Mode: [single|parallel] Skills: [list] Next: [phase]

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.