agentleFS
shyftlabsshyftlabs/continuum/.claude/skills/continuum-workflows/SKILL.md

continuum-workflows

Skill84 starsChanged 6 months agoApache-2.0View on GitHub

Use Continuum's nine workflow agents — Sequential, Parallel, Loop, Reflection, Router, Planner, Debate, Scatter, SupervisedSequential — to build multi-agent pipelines. Invoke when the user asks "chain agents", "run agents in parallel", "iterate until done", "self-improving agent", "route to specialist", "decompose a goal", or anything multi-agent.

The file

We split this skill into the rules it gives an agent

6 rules. About 0 are common, 2 are distinctive, and 4 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈2

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 4

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Use when each agent's output should feed the next.

    line 43
  2. Distinctive:

    Use when independent perspectives can run concurrently and you want them merged.

    line 59
  3. Very specific:

    Don't use MergeStrategy.LLM_SUMMARIZE without setting a sensible summary_model for cost reasons — defaults to the parent agent's model.

    line 202
  4. Very specific:

    Don't expect RouterAgent to dispatch to agents that aren't registered with the runner via register_agent().

    line 204
  5. Very specific:

    Don't pass Route(target=..., description=...) — it's agent_name=....

    line 206
  6. Very specific:

    Don't loop forever — LoopAgent always needs a termination strategy.

    line 207

≈ “Common” is an estimate: at least 1 in 5 of the 213,897 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

Continuum Workflow Agents Skill

Workflow agents are themselves BaseAgent subclasses, so they nest. Each ships with a create_* factory.

Authoritative source: docs/agent.md, §6.


Imports

from continuum.agent import (
    create_sequential_agent, create_parallel_agent, create_loop_agent,
    create_reflection_agent, create_planner_agent, create_router_agent,
    MemoryScope, MergeStrategy, FailStrategy, TerminationType,
)
# Debate, Scatter, and Supervised factories live one level deeper —
# they are NOT re-exported from `continuum.agent`.
from continuum.agent.workflow import (
    create_debate_agent, create_scatter_agent, create_supervised_agent,
)

SequentialAgent

pipeline = create_sequential_agent(
    name="content-pipeline",
    agents=[researcher, writer, editor],
    pass_full_history=False,
    fail_strategy=FailStrategy.FAIL_FAST,
)

Use when each agent's output should feed the next.


ParallelAgent

fanout = create_parallel_agent(
    name="fanout",
    agents=[a, b, c],
    merge_strategy=MergeStrategy.LLM_SUMMARIZE,    # CONCATENATE / STRUCTURED / FIRST_SUCCESS
    fail_strategy=FailStrategy.CONTINUE_ON_ERROR,
    timeout=300,
)

Use when independent perspectives can run concurrently and you want them merged.


LoopAgent

iterate = create_loop_agent(
    name="iterate-until-done",
    agent=worker,
    termination_type=TerminationType.LLM_DECISION,
    max_iterations=10,
    termination_prompt="Reply COMPLETE if done, CONTINUE otherwise.",
    # or termination_tool="finish" / termination_pattern="^DONE" /
    #     termination_condition=fn(content, history)
)

ReflectionAgent

self_improving = create_reflection_agent(
    name="self-improving",
    agent=writer,
    critique_prompt=None,                  # default critique
    max_reflections=2,
    reflection_model=None,                 # defaults to writer's model
)

generate_critique_prompt(user_query, llm_client) builds a query-specific critique prompt programmatically.


RouterAgent

router = create_router_agent(
    name="triage",
    routes=[
        ("billing-agent",   "Billing & payment issues"),
        ("technical-agent", "Technical support"),
        ("sales-agent",     "Sales / pricing"),
    ],
    fallback="general-agent",
    strategy="hybrid",                    # "llm" | "rule_based" | "hybrid"
    model=None,
)

Route (not ("name", "desc")) is Route(agent_name=..., description=...).


PlannerAgent

Two modes: single-worker, or agent-pool (LLM picks specialist per step).

planner = create_planner_agent(
    name="planner",
    agents=[researcher, coder, reviewer],
    instructions="You are a planning agent.",
    max_steps=10,
    enable_replanning=False,
    replan_on_failure=True,
    fail_strategy=FailStrategy.FAIL_FAST,
    strict_agent_pool=False,
)

DebateAgent

debate = create_debate_agent(
    name="debate",
    topic_description="…",
    pro_stance="Argue in favor.",
    con_stance="Argue against.",
    judge_instructions=None,
    summarise_arguments=False,
    truncate_chars=2000,
)

Pro and con run in parallel; judge synthesizes.


ScatterAgent

scatter = create_scatter_agent(
    name="scatter",
    agents=[a, b, c],
    input_slices=None,                    # let the LLM split, or pass pre-cut slices
    merge_strategy=MergeStrategy.LLM_SUMMARIZE,
    fail_strategy=FailStrategy.CONTINUE_ON_ERROR,
    split_model=None,
    timeout=300,
)

LLM splits input into N focused sub-tasks (one per branch).


SupervisedSequentialAgent

Sequential with LLM quality gating — retries any step that scores below quality_threshold.

supervised = create_supervised_agent(
    name="supervised",
    agents=[step1, step2, step3],
    quality_threshold=0.7,
    max_retries=2,
    supervisor_model=None,
)

Nesting

Workflow agents are BaseAgent subclasses, so nest freely:

inner_pipeline = create_sequential_agent(name="inner", agents=[a, b])
outer = create_parallel_agent(name="outer", agents=[inner_pipeline, c, d])

Don't

  • Don't use MergeStrategy.LLM_SUMMARIZE without setting a sensible summary_model for cost reasons — defaults to the parent agent's model.
  • Don't expect RouterAgent to dispatch to agents that aren't registered with the runner via register_agent().
  • Don't pass Route(target=..., description=...) — it's agent_name=....
  • Don't loop forever — LoopAgent always needs a termination strategy.

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.