Receber por email
← Voltar para o catálogo

workflow-builder

Cria um novo script de Workflow do Claude para orquestração determinística multiagente. Esta skill é acionada por frases como 'criar um workflow' ou 'construir um workflow'.

393estrelas
Atualizado há 4 meses

Ver no GitHub ↗ Licença: NOASSERTION

Como adicionar

/plugin marketplace add boshu2/agentops

O comando exato pode variar conforme o repositório. Confira o README no GitHub.

Para o autor da skill

Cole no README do seu repo

Mostra que sua skill está catalogada na Skillteca, gera backlink e tráfego rastreável.

[![Skillteca](https://www.skillteca.com.br/api/badge/workflow-builder-mpt2div4/svg)](https://www.skillteca.com.br/skills/workflow-builder-mpt2div4)

Skills relacionadas

Ver todas de Automação →

Alerta por categoria

Receba novas skills de Automação toda segunda

1 email curto, só com as skills novas de Automação. 4 minutos de leitura, sem spam, cancela com 1 clique.

Você confirma o email no primeiro envio. Sem spam. Cancela com 1 clique.

Ler descrição completa

Workflow Builder — scaffold a Claude Workflow script

Counterpart to skill-builder. skill-builder authors a SKILL.md (a leaf
capability); this authors a Workflow (a composite capability — deterministic
orchestration of subagents). Reach this skill via automation-shape-routing
once the shape is confirmed Workflow (deterministic DAG + structured-JSON
returns + headless). If the shape is NTM or plain skill, you're in the wrong
builder — go back to automation-shape-routing.

Confirm the shape first

Do NOT scaffold a workflow for: an attach-and-steer run (→ NTM: ntm / vibing-with-ntm), or a hard-sequential edit-loop with no parallelism (→ plain skill: skill-builder). If unconfirmed, run automation-shape-routing.

The template

Start from .claude/workflows/operating-loop.js — the canonical worked example. Copy its skeleton, don't reinvent it. A Workflow script is plain JS:

export const meta = {                 // REQUIRED — pure literal, no variables
  name: 'my-workflow',
  description: 'one line shown in the permission dialog',
  phases: [ { title: 'Find' }, { title: 'Verify' } ],  // one per phase() call
}

phase('Find')
const found = await parallel(FINDERS.map(f => () =>
  agent(f.prompt, { schema: FINDINGS_SCHEMA, phase: 'Find' })))   // barrier

phase('Verify')
const verified = await pipeline(found.flat().filter(Boolean),
  f => agent(`verify: ${f.title}`, { schema: VERDICT, phase: 'Verify' }))

return { verified }

Building blocks (pick by control-flow shape)

| Primitive | Use when | |---|---| | agent(prompt, {schema}) | one subagent; schema forces structured JSON back | | parallel([thunks]) | barrier — need ALL results together (dedup/merge/early-exit) | | pipeline(items, ...stages) | default multi-stage — no barrier, each item flows independently | | phase(title) | progress grouping; match meta.phases titles | | loop-until-budget / loop-until-dry | unknown-size discovery; guard on budget.total |

Authoring checklist

  1. Shape confirmed Workflow (via automation-shape-routing).
  2. Schemas first — define the JSON schema each agent() returns; structured

output is what makes a workflow deterministic and composable.

  1. Default to pipeline(); reach for parallel() only when a stage genuinely

needs all prior results at once.

  1. Conflict-free fan-out — if branches write files, give each a disjoint

write-scope (the wave-validity invariant) or run in worktree isolation.

  1. Budget — for loops, gate on budget.total && budget.remaining() > N.
  2. Dry-run to validate — invoke the workflow on a tiny input; confirm the

meta block parses and each phase returns its schema. This is the workflow analog of skill-auditor.

Relationship to the SDK

A workflow is a composite capability; the portable contract for it (a shape: skill|workflow discriminator, a StepGraph, a control_flow enum, a budget, an OrchestrationPort interface) is net-new agentops-core-sdk work. Author the script here; the SDK is where the contract for workflow-capabilities lives. See operating-loop-workflow for installing/running a finished workflow.

Compartilhar X LinkedIn