agentleFS
akashgitakashgit/remote-factory/skills/pipeline/SKILL.md

pipeline

Skill74 starsChanged 38 days agoMITView on GitHub

Design and execute a custom multi-agent pipeline for any goal. Analyzes the goal, selects appropriate specialist agents, designs a DAG of steps with dependencies, and executes them via factory CLI with gate decisions between steps. Use when the user says 'run a pipeline for X', 'orchestrate X', or wants a custom multi-agent workflow.

29 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use follow-up, resume and 6 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • n24q02mSkill

    follow-up

    Find emails needing follow-up -- unanswered sent emails, flagged unreplied, draft contextual responses

    Also in 3 projects that use this

  • genomewalkerSkill

    resume

    Resume a thread by loading its ~800-token context capsule

    Also in 3 projects that use this

  • genomewalkerSkill

    explore

    RLM-style recursive memory exploration - dynamically navigate the memory graph

    Also in 3 projects that use this

  • AnthropicSkill

    analyze

    Answer data questions -- from quick lookups to full analyses. Use when looking up a single metric, investigating what's driving a trend or drop, comparing segments over time, or preparing a formal data report for stakeholders.

    Also in 3 projects that use this

  • dubwoahSkill

    ask

    Answer questions about the codebase without generating or modifying any code. Use when the user wants to understand how something works, find where something is defined, or explore the project structure. Invoked with /ask.

    Also in 3 projects that use this

  • ibahgatSkill

    autopilot

    Run autonomous multi-stage execution loops until acceptance criteria pass or blockers are reached.

    Also in 3 projects that use this

The file

We split this skill into the rules it gives an agent

1 rule. 0 are common, 0 are distinctive, and 1 is very specific to this project.

  • 0

    Common

    Most of the 21 edited versions we read keep these.

  • 0

    Distinctive

    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:

    Write .factory/pipeline/summary.md with goal, status, step results, and key findings.

    line 104

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

Pipeline — Dynamic Multi-Agent Orchestrator

You design and execute custom multi-agent pipelines to accomplish the user's goal.

The user wants: $ARGUMENTS

Prerequisites

The factory CLI must be installed:

command -v factory >/dev/null 2>&1 || uv tool install "${CLAUDE_PLUGIN_ROOT}"
mkdir -p .factory/pipeline

Your Agents

Spawn specialists via the CLI. Each agent gets a fresh context window.

factory agent <role> --task "<task description>" --project "$(pwd)" [--timeout N]
RolePurpose
researcherWeb research, codebase analysis, domain studies
strategistGenerate prioritized hypotheses from observations
builderImplement code changes on a feature branch, open PRs
qaHealth checks, code review, adversarial QA verification
archivistRecord findings to .factory/archive/
distillerRefine vague ideas into buildable specs

Invocation Rules

Each factory agent call is synchronous and blocking — it returns only when the agent finishes. Do not shell-background (&) individual commands.

To run steps in parallel, issue multiple factory agent commands as separate bash tool calls in the same message turn. Claude Code executes them concurrently. This is parallel tool calls, not shell backgrounding.

The runner captures agent stdout to .factory/reviews/<role>-latest.md.

Phase 1: Design the Pipeline

  1. Understand the goal — what outcome is desired? Which agents are needed?
  2. Inspect project state:
    factory detect "$(pwd)"
    cat .factory/config.json 2>/dev/null
  3. Write the pipeline plan to .factory/pipeline/plan.md:
## Pipeline: <goal summary>

### Steps

| Step | Role | Task Summary | Depends On |
|------|------|-------------|-----------|
| S1 | researcher | ... | - |
| S2 | qa | ... | - |
| S3 | strategist | ... | S1, S2 |
| ... | ... | ... | ... |

### Gate Rules
- After S1: PROCEED if ...; REDIRECT if ...
- After S3: PROCEED if ...; ABORT if ...

Design Principles

  • Minimize invocations — only agents needed for this goal
  • Maximize parallelism — steps whose dependencies are all satisfied and that don't depend on each other can be issued as parallel tool calls
  • Mandatory archival — always include at least one archivist step at the end
  • Gate rules — define PROCEED/REDIRECT/ABORT criteria for critical transitions

Phase 2: Execute the Pipeline

Process steps in topological order:

  1. Identify next batch — steps whose dependencies are all complete
  2. Build task strings — incorporate output from prior steps by reading .factory/reviews/<role>-latest.md
  3. Invoke agents — single or parallel batch
  4. Read output — cat .factory/reviews/<role>-latest.md
  5. Apply gate rule:
    • PROCEED: Move to next step
    • REDIRECT: Re-invoke with corrections (max 2 per step)
    • ABORT: Skip downstream steps, jump to summary
  6. Repeat until done

Error Recovery

  • Agent timeout: retry once with shorter scope
  • Agent failure: check output, decide REDIRECT or ABORT
  • 2 consecutive failures: ABORT pipeline

Final Summary

Write .factory/pipeline/summary.md with goal, status, step results, and key findings.

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.