Langsung ke konten
Skillpedia
Agen29k Β· #9614

workflow-builder

Fungsinya

Skill ini membantu membuat skrip alur kerja untuk Claude Code yang mengoordinasikan beberapa sub-agent untuk sebuah tugas. Skill ini untuk orang yang memiliki pekerjaan multi-langkah yang berulang dan ingin mengotomatisasinya dengan AI.

Kapan dipakai

  • βœ“Saat Anda punya tugas berulang yang sebaiknya dibagi ke beberapa agent AI.
  • βœ“Saat Anda menginginkan alur kerja yang dapat memproses banyak item secara paralel dan mengumpulkan hasilnya.
  • βœ“Saat Anda memerlukan alur kerja yang berjalan bertahap dan dapat dilanjutkan.

Link skill

https://github.com/alirezarezvani/claude-skills/blob/main/engineering/workflow-builder/skills/workflow-builder/SKILL.md

Salin lalu tempelkan ke AI Anda (Claude, ChatGPT, atau Cursor) dan minta AI mengikuti instruksinya.

Cara pakai

Cara paling mudah: salin pesan ini dan tempelkan ke AI Anda. AI akan membaca skill dan mengikuti instruksinya.

Pesan siap tempel

Gunakan skill ini untuk membantu saya: https://github.com/alirezarezvani/claude-skills/blob/main/engineering/workflow-builder/skills/workflow-builder/SKILL.md Baca file SKILL.md di link tersebut dan ikuti instruksinya untuk tugas saya.
Mau AI Anda menemukan skill seperti ini sendiri?Pasang MCP Skillpedia gratis: cukup satu baris, dan AI mencari di antara 15.000+ skill sebelum tiap tugas.Pasang dalam 1 menit β†’

Contoh permintaan ke AI

β€œBuat alur kerja yang meninjau setiap dari 40 artikel bantuan kami secara paralel dan mengumpulkan vonis untuk masing-masing.”

5 skill baru setiap minggu. 1 menit baca.

Cara kerjanya

Skill pertama-tama menanyakan apa tugasnya, merekomendasikan struktur seperti fan-out, pipeline, atau loop, lalu membuat dan memvalidasi skrip yang menjalankan sub-agent.

Konten teknis (SKILL.md asli)

Teks asli dari pembuat, dalam bahasa Inggris, langsung dari GitHub.

Workflow Builder

Author runnable workflow scripts for Claude Code's Workflow tool: deterministic multi-agent orchestration files (.js) that fan work out to fresh-context sub-agents under plain JavaScript control flow. Only leaf agent() calls spend tokens, so the main session stays clean and the whole run is resumable.

ALWAYS start every session with intake (non-negotiable)

Before proposing or writing any workflow, run the intake. Do not skip to code.

  1. Ask what kind of workflow they want. Use this opening question set:

    • What repeatable, multi-step task do you want to automate?
    • What is the one unit of work a single sub-agent does once?
    • How many units β€” a known list, or discovered by looping?
    • Do later steps need all prior results at once, or can each item flow on its own?
    • Does any step need structured data back (a verdict, a list, scores)?
    • Roughly how many tokens / how deep should it go?
  2. If the user is vague, do NOT stall. Run the recommendation engine to turn whatever you have into 1-2 concrete proposals, then present them with the reasoning:

    python scripts/workflow_intake.py --task "their description" \
      --units unknown --stages unknown --needs-all unknown --structured unknown
    

    The engine returns a recommended topology (fan-out / pipeline / loop / barrier / judge-panel), model picks, a budget guard, and a one-line rationale per choice. Present those as "Here's what I'd build and why" β€” never ask the user to re-answer questions they already half-answered.

  3. Confirm the shape with the user (topology + phases + parallel-vs-pipeline) before writing the file. This is the only approval gate.

See references/decision_and_intake_guide.md for the full question framework, the vague-input playbook, and worked recommendation examples.

Decide if a workflow is even the right tool

Scenario Use
Single sub-agent, one task plain Agent tool
Reusable procedure, Claude picks steps dynamically a Skill
Many sub-agents in a fixed topology, deterministic + resumable Workflow βœ“

Workflows earn their cost when work is parallel or multi-stage, must be reproducible, long enough to fail halfway (so resume matters), or benefits from isolating each step in its own context window. For one-off tasks, just use Claude directly.

Build β†’ validate β†’ run loop

  1. Scaffold a starter from the confirmed topology:
    python scripts/scaffold_workflow.py --topology pipeline --name pr-triage \
      --description "Triage open PRs" > .claude/workflows/pr-triage.js
    
  2. Edit the file: meta block first (pure literal, first statement), then the async body using the injected globals β€” agent(), pipeline(), parallel(), phase(), log(), budget, args, workflow(). Full surface in references/api_reference.md; copy-paste shapes in references/orchestration_patterns.md.
  3. Validate before running β€” catches the parser-fatal mistakes:
    python scripts/validate_workflow.py .claude/workflows/pr-triage.js
    
  4. Run it: enable the feature with export CLAUDE_CODE_WORKFLOWS=1, save the file under .claude/workflows/, then use /workflows to launch and watch it live. Press P to pause/resume, X to skip a sub-agent. Failed agents retry automatically.

Hard rules (validator enforces these)

  • meta is a pure literal and the first statement β€” no variables, spreads, template strings, or function calls inside it.
  • No non-determinism: Date.now(), Math.random(), argless new Date() break resume β€” pass timestamps via args.
  • No filesystem / Node APIs (require, fs, process, network) in the orchestrator β€” that work belongs inside agent() prompts.
  • parallel() takes thunks (() => agent(...)), not bare promises. Default to pipeline() unless a stage needs the whole prior result set.
  • Guard every open-ended loop with a counter or budget.remaining() check β€” unguarded loops hit the 1000-agent cap.
  • Filter skipped/failed agents: results.filter(Boolean).

Tooling

  • scripts/workflow_intake.py β€” intake recommendation engine (topology + model + budget + rationale from vague input).
  • scripts/validate_workflow.py β€” stdlib linter for the rules above; PASS / WARN / FAIL with line numbers.
  • `scripts/scaffold_workf
Pertanyaan umum

Apakah saya perlu bisa coding?

Skill dimulai dengan pertanyaan tentang tugas Anda dan mengusulkan struktur, sehingga Anda bisa memandunya tanpa mengetahui detailnya.

Di mana skrip alur kerja disimpan?

Sebagai file JavaScript di folder .claude/workflows.

Apakah skrip diperiksa sebelum dijalankan?

Ya, skill menyertakan skrip validasi untuk file alur kerja.

Detail

Deskripsi asli dari pembuat

Use when writing or running a Claude Code Workflow-tool script (.js in .claude/workflows/) for fan-out, pipeline, loop or judge-panel sub-agents. Gathers intent with workflow_intake.py, scaffolds with scaffold_workflow.py and validates with validate_workflow.py.

repo: alirezarezvani/claude-skills

Popularitas

Bintang GitHub
29k
Peringkat
#9614
Lisensi
MIT
Diperbarui
2/11/2026

Apakah skill ini berguna?

0

Masuk untuk memberi suara.

Komentar

  • …

Skill lain dari repositori ini

Skill serupa