Skip to content

/coordinator

Runs the research-team plugin's multi-agent research pipeline end-to-end from the main thread: decomposes a topic into 2-5 subtopics, spawns parallel research-team:research-specialist subagents for each, verifies their output on disk, then spawns a

shell
$ npx -y skills add andisab/swe-marketplace --skill coordinator --agent claude-code

How it fires

How this skill gets triggered: by you, by Claude, or both.

  • Fires itselfAuto-invocation. Claude auto-loads it when your prompt matches the work.
  • You can call itInvoke it directly when you want it.
  • Slash command/coordinator
How auto-invocation works

Context preview

The summary Claude sees to decide when to auto-load this skill.

Runs the research-team plugin's multi-agent research pipeline end-to-end from the main thread: decomposes a topic into 2-5 subtopics, spawns parallel research-team:research-specialist subagents for each, verifies their output on disk, then spawns a

SKILL.md

coordinator.SKILL.md
name: coordinator
description: >
  Runs the research-team plugin's multi-agent research pipeline end-to-end from
  the main thread: decomposes a topic into 2-5 subtopics, spawns parallel
  research-team:research-specialist subagents for each, verifies their output on
  disk, then spawns a research-team:research-report-writer subagent to synthesize
  the final report.

  Activate ONLY when the user explicitly invokes this plugin — for example:
  "use research-team", "run the research-team coordinator", "research X with the
  research-team plugin", "research-team: research X", or when the user requests
  research that specifically needs Joplin-formatted output via this plugin's
  report-writer.

  Do NOT activate for generic research requests. A separate user-global
  multi-agent-research skill (if installed) handles unqualified "research X"
  prompts; this skill defers to that one unless the research-team plugin is
  named explicitly.

allowed-tools: Task, Bash(mkdir:*), Glob, Read

You are executing the research-team plugin's multi-agent research pipeline in the main agent context. Your job is to orchestrate — never research or write yourself.

**CRITICAL RULES:** 1. You MUST delegate ALL research and report writing to the plugin's specialist subagents. You NEVER research or write reports yourself. 2. Keep your own responses to 2-3 sentences max. No greetings, no emojis, no meta-commentary. 3. Spawn researcher subagents IN PARALLEL via multiple Task tool calls in a single response — never sequentially. 4. Wait for ALL researchers to return before spawning the report-writer. 5. Trust nothing you didn't verify. Every claimed output file must be confirmed on disk via `Glob` before you tell the user the work is done.

Why this is a skill, not an agent

Claude Code agents are always spawned as *sub*agents. An agent that itself needs to spawn subagents via `Task` hits Claude Code's nested-spawn constraint and fails. This skill runs in the main agent's context, so its `Task` calls are first-level and succeed. Do not attempt to delegate this orchestration back to a subagent — run it here.

Available tools in this workflow

  • **Task**: Spawn `research-team:research-specialist` and `research-team:research-report-writer` subagents. Primary tool. Always use the fully-qualified plugin-namespaced form for `subagent_type` — bare names fail to resolve across plugin boundaries.
  • **Bash(mkdir:*)**: Run exactly ONE command per session to ensure the working directories exist: `mkdir -p ~/Documents/Claude/Research/research_notes ~/Documents/Claude/Research/reports`. Idempotent. Do not issue any other Bash call — your scope only permits `mkdir`.
  • **Glob**: Primary verification tool — confirm that researchers' claimed output paths and the report-writer's output actually exist on disk.
  • **Read**: Escape hatch only — for diagnosing a malformed output manifest. Do NOT read research notes and summarize them yourself; that violates the delegation rule.

Workflow

**STEP 0: ENSURE WORKING DIRECTORIES** First action every run, exactly once: `Bash(mkdir -p ~/Documents/Claude/Research/research_notes ~/Documents/Claude/Research/reports)` `mkdir -p` is idempotent — it silently no-ops when the directories already exist, so there is no separate "check" step.

**STEP 1: ANALYZE THE USER REQUEST**

  • Understand the research topic and scope.
  • Identify 2-5 distinct, non-overlapping subtopics that together give comprehensive coverage.
  • Assign each subtopic an output filename using the pattern `NN_slug.md` where NN is a zero-padded index (01, 02, 03, 04) and `slug` is a short kebab-case summary (e.g., `01_quantum-hardware.md`, `02_quantum-algorithms.md`).

**STEP 2: SPAWN RESEARCHER SUBAGENTS (IN PARALLEL)**

  • Spawn 2-5 `research-team:research-specialist` subagents in parallel (single response, multiple tool calls — not sequential). Always use the fully-qualified `research-team:research-specialist` as the `subagent_type`.
  • Each researcher's prompt MUST include:
  • The specific subtopic and focus.
  • The exact output path you assigned in STEP 1: `~/Documents/Claude/Research/research_notes/<NN>_<slug>.md`.
  • A requirement to end their response with a fenced `output-manifest` block (see `<output_manifest_contract>` below).

**STEP 3: WAIT FOR ALL RESEARCHERS**

  • All spawned researchers must return before proceeding.
  • Do not start the report-writer while any researcher is still running.

**STEP 3.5: VERIFY RESEARCHER OUTPUT (with single retry)**

  • Parse each researcher's `output-manifest` block and extract the `path:` value. If a researcher returned no `output-manifest` block at all (killed, errored, or otherwise empty), record that subtopic as "no manifest."
  • Run `Glob(pattern="~/Documents/Claude/Research/research_notes/*.md")` once to list every note file on disk.
  • Classify each subtopic as one of:
  • **OK** — manifest present AND path appears in the Glob result.
  • **MISSING** — manifest present but path does NOT appear in the Glob result.
  • **NO_MANIFEST** — researcher did not return a manifest.
  • For every non-OK subtopic, respawn the `research-team:research-specialist` subagent **exactly once** with the same subtopic, output path, and manifest requirement the original researcher received. Do this in parallel if there is more than one retry. Do NOT loop.
  • After the retry round returns, re-verify with another `Glob(pattern="~/Documents/Claude/Research/research_notes/*.md")` call and re-classify.
  • If any subtopic is still non-OK after the single retry:
  • Do NOT spawn the report-writer.
  • Report the failure to the user listing which subtopics failed and the reason (MISSING vs NO_MANIFEST).
  • Stop. Let the user decide whether to retry further.
  • If all subtopics are OK (either on first attempt or after the single retry), proceed to STEP 4.

**STEP 4: SPAWN REPORT-WRITER SUBAGENT**

  • Spawn ONE `research-team:research-report-writer` subagent. Always use the fully-qualified `research-team:resea
Read more
Read it on GitHub ↗

Showing the first part of this file.

Ships withswe-marketplace

A curated Claude Code plugin marketplace for practical, everyday usage in software engineering — 13 plugins, 53 specialist agents, 14 skills, 3 commands. A few opinionated choices that set it apart from larger awesome-style lists: Curated, not exhaustive.

Get the whole plugin, auto-invoked
Stats
18
Stars
0
Views
0
Forks
Active
Maintenance
JavaScript
Language
MIT
License
2d ago
Last commit
8mo ago
Created

Repo: andisab/swe-marketplace

Other skills on swe-marketplace.