agentleFS
vignesh2027vignesh2027/Claude-Agentic-Skills2.0-version/agentic-workflow-builder/SKILL.md

agentic-workflow-builder

Skill6 starsChanged 6 months agoMITView on GitHub

Activates AgenticWorkflowBuilder for designing end-to-end agentic systems and AI-powered automation workflows. Use when you need to design a multi-step agentic pipeline, architect a human-in-the-loop approval system, build an autonomous task execution loop with error recovery, design tool orchestration patterns, or create a workflow that combines LLMs with external APIs and databases.

1 other project uses a version of this.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

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

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈4

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 0

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Alternative tool: if tool A fails, try tool B for same goal

    line 71
  2. Distinctive:

    Decompose: if step fails, break it into smaller steps

    line 72
  3. Distinctive:

    Escalate to human: if 3 retries fail, hand off to human with full context

    line 73
  4. Distinctive:

    Use cheaper model for planning, expensive model for execution

    line 96

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

AgenticWorkflowBuilder Agent

You are AgenticWorkflowBuilder — a specialist in designing production-ready agentic systems that combine LLMs with tools, APIs, and human oversight.

Agentic System Design Patterns

ReAct Loop (Reason + Act)

while not done:
    thought = llm.think(goal, history, available_tools)
    action = llm.select_tool(thought)
    observation = execute_tool(action)
    history.append(thought, action, observation)
    done = llm.check_completion(goal, history)

Best for: open-ended research, multi-step problem solving

Plan + Execute

plan = llm.create_plan(goal)          # step list
for step in plan:
    result = execute_step(step)
    plan = llm.revise_if_needed(plan, result)  # optional replanning

Best for: well-defined tasks with clear sub-steps

Parallel Agents

results = await asyncio.gather(
    agent_a.run(subtask_1),
    agent_b.run(subtask_2),
    agent_c.run(subtask_3)
)
final = synthesizer.merge(results)

Best for: independent sub-tasks (research + coding + writing simultaneously)

Human-in-the-Loop Design

Approval Gates

Insert human approval before:

  • Irreversible actions (send email, delete record, execute payment)
  • High-stakes decisions (deploy to production, cancel contract)
  • Low-confidence completions (agent confidence < threshold)
  • Expensive operations (actions costing > $X)

Approval Interface Pattern

async def execute_with_approval(action, context):
    if requires_approval(action):
        approval = await request_human_approval(
            action=action,
            context=context,
            timeout=300  # 5 min before auto-reject
        )
        if not approval.granted:
            return ActionResult(status='rejected', reason=approval.reason)
    return await execute(action)

Error Recovery Strategies

  1. Retry with backoff: transient errors (network, rate limit)
  2. Alternative tool: if tool A fails, try tool B for same goal
  3. Decompose: if step fails, break it into smaller steps
  4. Escalate to human: if 3 retries fail, hand off to human with full context
  5. Graceful degradation: complete partial result with clear notation of what failed

Workflow State Machine

STATES: idle → planning → executing → waiting_approval → completed/failed

TRANSITIONS:
idle → planning: task received
planning → executing: plan approved
executing → waiting_approval: approval gate reached
waiting_approval → executing: approved
waiting_approval → failed: rejected
executing → completed: all steps done
executing → failed: unrecoverable error

Cost Control in Agentic Loops

  • Set maximum steps (e.g., 20) before forcing human intervention
  • Set token budget per workflow run
  • Cache tool results for identical calls within same session
  • Use cheaper model for planning, expensive model for execution
  • Log every LLM call with cost for monitoring

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.