Agent Workflow Builder

Agent Workflow Builder is a skill for Claude Code, Codex from eddiebelaval/squire. It costs 19 tokens per session (2,102 once invoked), scanned A, original, MIT.

Build multi-agent AI workflows with orchestration, tool use, and state management.

Skill for Claude CodeCodex

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/eddiebelaval/squire/agent-workflow-builder
Any agent
npx skills add eddiebelaval/squire --skill agent-workflow-builder
Clone the repo
git clone --depth 1 https://github.com/eddiebelaval/squire

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for Agent Workflow Builder

README.md
[![agentmods](https://agentmods.dev/badge/skills/eddiebelaval/squire/agent-workflow-builder.svg)](https://agentmods.dev/skills/eddiebelaval/squire/agent-workflow-builder)
Your own site
<a href="https://agentmods.dev/skills/eddiebelaval/squire/agent-workflow-builder"><img src="https://agentmods.dev/badge/skills/eddiebelaval/squire/agent-workflow-builder.svg" alt="Measured on agentmods" height="20"></a>
Per session 19 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,102 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin unknown No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00019 $0.02102
Opus 5 $0.00010 $0.01051
Sonnet 5 $0.00004 $0.00420
Haiku 4.5 $0.00002 $0.00210

Measured today against content hash ac0f874bbe20, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

Agent Workflow Builder scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured today.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/agent-workflow-builder/SKILL.md · 306 lines

How it starts

The opening of the file, as written. The whole thing — 306 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Agent Workflow Builder

The Agent Workflow Builder skill guides you through designing and implementing multi-agent AI systems that can plan, reason, use tools, and collaborate to accomplish complex tasks. Modern AI applications increasingly rely on agentic architectures where LLMs act as reasoning engines that orchestrate actions rather than just generate text.

This skill covers agent design patterns, tool integration, state management, error handling, and human-in-the-loop workflows. It helps you build robust agent systems that can handle real-world complexity while maintaining safety and controllability.

Whether you are building autonomous assistants, workflow automation, or complex reasoning systems, this skill ensures your agent architecture is well-designed and production-ready.

Core Workflows

Workflow 1: Design Agent Architecture

  1. Define the agent's scope:
    • What tasks should it handle autonomously?
    • What requires human approval?
    • What is explicitly out of scope?
  2. Choose architecture pattern:
    Pattern Description Use When
    Single Agent One LLM with tools Simple tasks, clear scope
    Router Agent Classifies and delegates Multiple distinct domains
    Sequential Chain Agents in order Pipeline processing
    Hierarchical Manager + worker agents Complex, decomposable tasks
    Collaborative Peer agents discussing Requires diverse expertise
  3. Design tool set:
    • What capabilities does the agent need?
    • How are tools defined and documented?
    • What are the safety boundaries?
  4. Plan state management:
    • Conversation history
    • Task state and progress
    • External system state
  5. Document architecture decisions

Workflow 2: Implement Agent Loop

  1. Build core agent loop:
    class Agent:
        def __init__(self, llm, tools, system_prompt):
            self.llm = llm
            self.tools = {t.name: t for t in tools}
            self.system_prompt = system_prompt
    
        async def run(self, user_input, max_steps=10):
            messages = [
                {"role": "system", "content": self.system_prompt},
                {"role": "user", "content": user_input}
            ]
    
            for step in range(max_steps):
                response = await self.llm.chat(messages, tools=self.tools)
    
                if response.tool_calls:
                    # Execute tools
                    for call in response.tool_calls:
                        result = await self.execute_tool(call)
                        messages.append({"role": "tool", "content": result})
                else:
                    # Final response
                    return response.content
    
            raise MaxStepsExceeded()
    
        async def execute_tool(self, call):
            tool = self.tools[call.name]
            return await tool.execute(call.arguments)
    
  2. Implement tools with clear interfaces
  3. Add error handling and retries
  4. Include logging and observability
  5. Test with diverse scenarios

Read the full file on GitHub · 306 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. today First seen · 306 lines · 19 tokens per session scan A ac0f874bbe20

Subscribe to this mod's changes

Agent Workflow Builder is a skill published in the GitHub repository eddiebelaval/squire (21 stars, last pushed 19d ago), licensed MIT. It adds 19 tokens to every session and 2,102 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.