agentleFS
suyashb734suyashb734/cliagents/skills/broker-collaboration/SKILL.md

broker-collaboration

Skill19 starsChanged 7 months agoMITView on GitHub

Use when operating as a supervised root that delegates work to child sessions through cliagents

The file

Show its rules and text

We split this skill into the rules it gives an agent

20 rules. About 0 are common, 19 are distinctive, and 1 is very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈19

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 1

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Use this when you are the main supervised root coordinating child sessions through cliagents.

    line 10
  2. Distinctive:

    Use this skill as the compact workflow layer on top of that policy, not as a competing source of truth.

    line 16
  3. Distinctive:

    Before delegating, align with the canonical operating model:

    line 20
  4. Distinctive:

    Keep the root prompt and state lean

    line 30
  5. Distinctive:

    Use the broker discovery tools first:

    line 39
  6. Distinctive:

    Do not assume which adapters, models, or skills are available.

    line 46
  7. Distinctive:

    Prefer one human-supervised root per workspace

    line 50
  8. Distinctive:

    Do not create another root unless the human explicitly asks

    line 51
  9. Distinctive:

    Use the lightest capable adapter/model for the task

    line 57
  10. Distinctive:

    Keep research, review, implementation, and testing responsibilities separate when that improves quality

    line 58
  11. Distinctive:

    Prefer direct root work for urgent blocking steps

    line 59
  12. Distinctive:

    Prefer child sessions for sidecar work that can run in parallel

    line 60
  13. Distinctive:

    When delegating, send only:

    line 64
  14. Distinctive:

    Avoid replaying full conversations or large irrelevant logs.

    line 72
  15. Distinctive:

    When children discover something worth preserving:

    line 76
  16. Distinctive:

    Use these instead of repeating the same context in every prompt.

    line 81
  17. Distinctive:

    If the next step is blocked on the answer, do it locally unless a child adds clear value

    line 85
  18. Distinctive:

    If multiple independent questions exist, delegate in parallel

    line 86
  19. Distinctive:

    If two child tasks would touch the same files, do not run them in parallel unless ownership is explicit

    line 87
  20. Distinctive:

    If a child needs human intervention, monitor and reply only to that child instead of re-running the whole task

    line 88

≈ “Common” is an estimate: at least 1 in 5 of the 213,895 skill files we read have a rule of the same kind, not the same words. “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

Broker Collaboration

Use this when you are the main supervised root coordinating child sessions through cliagents.

The canonical shared operator policy lives in:

  • docs/research/CLIAGENTS-OPERATING-MODEL.md

Use this skill as the compact workflow layer on top of that policy, not as a competing source of truth.

First Step

Before delegating, align with the canonical operating model:

  • tracked top-level work should enter through broker-owned roots
  • MCP and HTTP are the default orchestration surfaces
  • stronger models should plan and review
  • cheaper models should execute bounded slices
  • usage and memory should be inspected through durable broker surfaces

Goals

  • Keep the root prompt and state lean
  • Discover broker capabilities instead of guessing
  • Delegate only when the task genuinely benefits from specialization or parallel work
  • Preserve enough context for child sessions without replaying whole transcripts

Root Workflow

1. Discover Before Delegating

Use the broker discovery tools first:

  • list_agents for available roles and adapters
  • list_models for exact model catalogs on a chosen adapter
  • list_skills, get_skill, and invoke_skill for reusable workflow guidance
  • get_root_session_status to inspect current child activity or attention states

Do not assume which adapters, models, or skills are available.

2. Keep One Root, Spawn Children On Demand

  • Prefer one human-supervised root per workspace
  • Do not create another root unless the human explicitly asks
  • Delegate only bounded subtasks with clear ownership or review scope
  • Reuse an existing child session only when continuity materially helps

3. Route Intentionally

  • Use the lightest capable adapter/model for the task
  • Keep research, review, implementation, and testing responsibilities separate when that improves quality
  • Prefer direct root work for urgent blocking steps
  • Prefer child sessions for sidecar work that can run in parallel

4. Pass Compact Context Packets

When delegating, send only:

  • the task goal
  • the relevant files or module scope
  • the acceptance criteria
  • the current constraints or open risks
  • references to stored artifacts or findings when available

Avoid replaying full conversations or large irrelevant logs.

5. Use Shared State for Handoffs

When children discover something worth preserving:

  • share_finding for bugs, risks, or advice
  • store_artifact for plans, outputs, or handoff summaries

Use these instead of repeating the same context in every prompt.

Decision Rules

  • If the next step is blocked on the answer, do it locally unless a child adds clear value
  • If multiple independent questions exist, delegate in parallel
  • If two child tasks would touch the same files, do not run them in parallel unless ownership is explicit
  • If a child needs human intervention, monitor and reply only to that child instead of re-running the whole task

Anti-Patterns

  • Auto-spawning children for every task
  • Sending giant transcripts as child prompts
  • Guessing available models instead of checking
  • Using the root as a passive dashboard instead of an integrating decision-maker

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.