Logo vun Ai Agentic Workflows

Ai Agentic Workflows

Communautéit
j4flmao
ai-agentic-workflows

Use this skill when the user says 'agentic workflow', 'agent loop', 'ReAct', 'plan and execute', 'planner executor', 'reflection loop', 'evaluator-optimizer', 'prompt chaining', 'LangGraph workflow'. Designs the control flow around an LLM: which workflow pattern to pick (chain, router, parallel, orchestrator-workers, evaluator-optimizer, autonomous agent), how to bound loops, and where to put human checkpoints. Do NOT use for: multi-agent topology choices (ai/multi-agent-systems), the internals of a single agent loop (ai/ai-agents/core-architectures), or tool schema design (ai/ai-agents/tool-calling-principles).

Iwwersiicht

Editeurj4flmao
Repositoryagent-skills
Skill-Nummai-agentic-workflows
Stären
41
Forks
6
Matgeliwwert Fichieren
Nëmmen Instruktiounen
LizenzMIT
Linken
  • Instruktiounen am Markdown-Format

    Eng SKILL.md-Datei, déi de Modell bei Bedarf luet, soudatt nëmmen Token ufalen, wann eng Ufro tatsächlech dozou passt.

  • Funktionéiert mat all LLM

    KI-Skills si reng Markdown, keen ubidderspezifesche Code. Dofir funktionéiert dëse Skill mat GPT, Claude, Gemini, Grok oder engem lokale Modell.

  • Alles an den Instruktiounen

    Alles, wat de Modell brauch, steet an den Instruktiounen — keng zousätzlech Dateien ze synchroniséieren.

  • Open Source

    Vum j4flmao op GitHub verëffentlecht. Liest de Quelltext, ier Dir de Skill installéiert.

Installatioun

Installéiert de KI-Skill Ai Agentic Workflows an TypingMind, fir e mat all LLM ze benotzen, oder füügt en an en anere KI-Agent an, deen SKILL.md liest.

1

An TypingMind installéieren

TypingMind installéiert e Skill direkt aus sengem GitHub-Dossier — dobäi gëtt SKILL.md gelies, d'Ressourcedateie gi gebëndelt an d'Resultat gëtt lokal gespäichert.

  1. Maacht d'App op a gitt op Plugins → Skills.
  2. Wielt „Vun GitHub installéieren“.
  3. Pecht d'URL vum Skill-Dossier hei drënner an a bestätegt.
    https://github.com/j4flmao/agent-skills/tree/main/skills/ai/agentic-workflows
  4. Aktivéiert de Skill an all Chat, an deem Dir e benotze wëllt.
Plugins → Skills → Skill afügen → Vu GitHub-URL, pecht dann d'URL vum Dossier an a klickt op Weider.
2

An engem anere KI-Agent installéieren

All KI-Agent, deen d'Format Agent Skills liest, kann dëse Skill benotzen — kopéiert den Dossier an de Skill-Verzeechnes vun deem KI-Agent.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/j4flmao/agent-skills.git /tmp/agent-skills
mkdir -p .claude/skills
cp -r /tmp/agent-skills/skills/ai/agentic-workflows .claude/skills/ai-agentic-workflows
Start Claude Code nom Kopéieren nei, fir datt den neie Skill erkannt gëtt.

An TypingMind benotzen

Aktivéiert Ai Agentic Workflows an engem Chat vun TypingMind, an de Modell iwwerhëlt de Rescht. Den Numm an d'Beschreiwung stinn am System-Prompt. Soubal eng Ufro dozou passt, luet de Modell déi komplett Instruktioune selwer — Dir musst de Skill ni manuell opruffen, an et fale keng Token un, bis en tatsächlech benotzt gëtt.

De Modell luet Ai Agentic Workflows automatesch, soubal eng Ufro dozou passt.

Funktionéiert mat all KI-Modell

KI-Skills si reng Markdown-Instruktiounen amplaz vun ubidderspezifeschem Code. Dofir ass Ai Agentic Workflows net un de Modell gebonnen, fir deen de Skill geschriwwe gouf. Installéiert en eemol an TypingMind a benotzt e mat GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama oder engem lokale Modell, deen Dir selwer bedreift — alles mat Ären eegenen API-Keys.

  • Gëtt nëmme gelueden, wann et néideg ass

    De System-Prompt enthält nëmmen den Numm an d'Beschreiwung. D'Instruktioune gi bei der éischter passender Ufro gelueden, soudatt en onbenotzte Skill näischt kascht.

  • De Modell am lafende Chat wiesselen

    Well de Skill aus Instruktiounen amplaz vu Code besteet, funktionéiert en och no engem Modellwiessel — den nächste Modell liest déi selwecht SKILL.md-Datei.

Skill-Instruktiounen

Dëst ass den Inhalt vu SKILL.md, deen de Modell luet. Liest e virun der Installatioun — e Skill besteet aus Instruktiounen, déi Äre Modell befollegt.

Agentic Workflows

Purpose

Choose and implement the simplest control flow that solves the task reliably. Most production "agents" are workflows: predefined code paths that call an LLM at specific steps. Reserve open-ended autonomous loops for tasks whose number of steps cannot be known in advance, and always bound them with step limits, budgets, and checkpoints.

Agent Protocol

Trigger

"agentic workflow", "agent loop", "ReAct", "plan-and-execute", "planner/executor", "reflection", "evaluator-optimizer", "prompt chaining", "routing", "orchestrator-workers", "LangGraph".

Input Context

  • The task, its success criterion, and whether the step sequence is known up front.
  • Available tools and which ones mutate state (writes, payments, deploys).
  • Latency and cost budget per run; acceptable failure rate.
  • Framework constraints (plain SDK, LangGraph, other).

Output Artifact

A workflow design: pattern choice with rationale, state schema, node/step list, loop bounds, HITL points, and eval plan. Code only if requested.

Response Format

Pattern: {chain|router|parallel|orchestrator-workers|evaluator-optimizer|autonomous}
Why not simpler: {one line}
State: {typed fields}
Steps: {step -> step (condition)}
Bounds: max_steps={n}, max_cost={usd}, timeout={s}
Human checkpoints: {before which actions}
Eval: {dataset + metric}

Completion Criteria

  • Simplest viable pattern chosen and justified.
  • Every loop has a hard iteration cap and a budget.
  • State-mutating tools gated by approval or dry-run.
  • Typed state schema, not raw message history only.
  • Offline eval set defined before tuning prompts.

Pattern Decision Tree

Is the sequence of steps known in advance?
├── Yes → Is it a single fixed sequence?
│   ├── Yes → Prompt chain (step N output feeds step N+1, with code checks between)
│   └── No, input type decides the path → Router (classify, then dedicated prompt/tool)
├── Partly: subtasks are independent → Parallelization (sectioning or voting), then aggregate
├── Subtasks only known after reading the input → Orchestrator-workers
├── Quality improves with critique and clear criteria exist → Evaluator-optimizer loop
└── Open-ended, many steps, environment feedback needed → Autonomous agent (ReAct-style loop)
PatternLatencyCostPredictabilityTypical use
Prompt chainSum of stepsLowHighDraft → translate → format
Router1 extra callLowHighSupport ticket triage
Parallel (voting)Max of branchesN×HighModeration with majority vote
Orchestrator-workersVariableMediumMediumMulti-file code change
Evaluator-optimizerk × (gen + eval)MediumMediumTranslation, constrained writing
Autonomous agentUnbounded unless cappedHighLowCoding agents, research

Core Loops

ReAct

Interleave reasoning and tool use: the model decides an action, the harness executes it, the observation is appended, repeat until the model returns a final answer. With native tool calling, "Thought/Action/Observation" text parsing is unnecessary: the API returns structured tool-call blocks.

Plan-and-Execute

A planner produces an explicit step list; an executor runs each step (often a small ReAct loop); a re-planner revises the remaining plan after each step. Better on long tasks because the plan is persisted state, not something the model must remember. Re-planning is mandatory: a static plan breaks on the first surprise.

Evaluator-Optimizer (Reflection)

Generator produces output; evaluator scores it against explicit criteria and returns actionable feedback; loop until pass or cap. Reflection without an external signal (tests, schema validation, retrieval check) often just rephrases the same mistake, so prefer evaluators grounded in execution results.

Implementation (LangGraph)

python
from __future__ import annotations

from typing import Literal, TypedDict

from langgraph.checkpoint.memory import MemorySaver
from langgraph.graph import END, START, StateGraph


class State(TypedDict):
    task: str
    draft: str
    feedback: str
    passed: bool
    attempts: int


MAX_ATTEMPTS = 3


def generate(state: State) -> dict:
    draft = call_llm(f"Task: {state['task']}\nPrevious feedback: {state['feedback']}")
    return {"draft": draft, "attempts": state["attempts"] + 1}


def evaluate(state: State) -> dict:
    errors = run_checks(state["draft"])  # deterministic checks first: tests, schema, linters
    return {"passed": not errors, "feedback": "\n".join(errors)}


def route(state: State) -> Literal["generate", "publish", "give_up"]:
    if state["passed"]:
        return "publish"
    return "give_up" if state["attempts"] >= MAX_ATTEMPTS else "generate"


builder = StateGraph(State)
builder.add_node("generate", generate)
builder.add_node("evaluate", evaluate)
builder.add_node("publish", publish)    # state-mutating: guarded by interrupt below
builder.add_node("give_up", escalate_to_human)
builder.add_edge(START, "generate")
builder.add_edge("generate", "evaluate")
builder.add_conditional_edges("evaluate", route)
builder.add_edge("publish", END)
builder.add_edge("give_up", END)

graph = builder.compile(checkpointer=MemorySaver(), interrupt_before=["publish"])
config = {"configurable": {"thread_id": "job-42"}}
graph.invoke({"task": "...", "draft": "", "feedback": "", "passed": False, "attempts": 0}, config)
# Human reviews graph.get_state(config); resume with graph.invoke(None, config)

call_llm, run_checks, publish, and escalate_to_human are your application functions. Use a durable checkpointer (Postgres/SQLite saver) in production so interrupted runs survive restarts.

Bounding Autonomous Loops

  • Hard caps: max steps, max tokens, max wall-clock, max USD per run. Abort with a clear error, never silently truncate.
  • Loop detection: hash (tool, args) pairs; if the same call repeats with the same result, inject "this failed before, change strategy" or stop.
  • Progress signal: require each iteration to change state (new file, new fact, test count); stop on N iterations without progress.
  • Context management: summarize or drop stale observations; keep the plan, constraints, and latest results verbatim.
  • Idempotent tools: retries after timeouts must not double-apply side effects.

Anti-Patterns

Anti-patternSymptomFix
Agent where a chain sufficesSlow, flaky, expensiveHard-code the known steps
Unbounded loopRunaway cost, repeated identical callsCaps + loop detection
Self-critique with no ground truth"Improved" output with the same bugEvaluate with tests/validators
Plan never revisedExecutor follows obsolete stepsRe-plan after every step
All state in chat historyLost constraints after summarizationTyped state fields
Destructive tool without checkpointIrreversible mistakesinterrupt_before / approval step

Checklist

  • Pattern chosen from the decision tree; simpler options ruled out explicitly.
  • Typed state with the fields each step reads and writes.
  • Caps: steps, tokens, time, cost.
  • Deterministic validators run before any LLM judge.
  • HITL before irreversible actions; durable checkpointer.
  • Traces captured per step (inputs, outputs, tool calls, cost).
  • Offline eval set with pass/fail metric, run on every prompt change.

References

  • Yao et al., "ReAct: Synergizing Reasoning and Acting in Language Models" (ICLR 2023).
  • Wang et al., "Plan-and-Solve Prompting" (ACL 2023).
  • Anthropic, "Building effective agents" (Dec 2024) — workflow vs agent taxonomy.
  • LangGraph documentation: StateGraph, checkpointers, interrupts.

Shared References

Additional reference material for this skill, stored outside its own references/ folder.

  • ../../harness-engineering/agent-legibility/references/agent-optimized-readmes.md — Agent-Optimized READMEs
  • ../../harness-engineering/agent-legibility/references/agents-md-design.md — AGENTS.md Design Reference
  • ../../harness-engineering/agent-legibility/references/codebase-navigation-hints.md — Codebase Navigation Hints for Agents
  • ../../harness-engineering/agent-legibility/references/convention-constraint-files.md — Convention and Constraint Files Reference
  • ../../harness-engineering/agent-legibility/references/progressive-context-disclosure.md — Progressive Context Disclosure for Agents
  • ../../harness-engineering/agent-legibility/references/repo-native-instructions.md — Repository-Native Instructions Reference
  • ../../harness-engineering/agent-legibility/references/structured-documentation.md — Structured Documentation Reference
  • ../../harness-engineering/agent-legibility/references/workspace-configuration.md — Workspace Configuration for Coding Agents
  • ../../harness-engineering/feedback-loops/references/automated-validation-hooks.md — Automated Validation Hooks
  • ../../harness-engineering/feedback-loops/references/continuous-improvement-loops.md — Continuous Improvement Loops for Agents
  • ../../harness-engineering/feedback-loops/references/correction-trigger-mechanisms.md — Correction Trigger Mechanisms
  • ../../harness-engineering/feedback-loops/references/hitl-checkpoint-design.md — Human-in-the-Loop (HITL) Checkpoint Design
  • ../../harness-engineering/feedback-loops/references/implement-verify-fix-cycles.md — Implement-Verify-Fix (IVF) Cycles
  • ../../harness-engineering/feedback-loops/references/output-verification-layers.md — Output Verification Layers
  • ../../harness-engineering/feedback-loops/references/quality-gate-frameworks.md — Quality Gate Frameworks for Agent Work
  • ../../harness-engineering/feedback-loops/references/reflection-patterns.md — Reflection Patterns
  • ../../harness-engineering/feedforward-controls/references/anticipatory-error-prevention.md — Anticipatory Error Prevention (Feedforward Controls)

Heefeg gestallte Froen

Wat mécht de KI-Skill Ai Agentic Workflows?

Use this skill when the user says 'agentic workflow', 'agent loop', 'ReAct', 'plan and execute', 'planner executor', 'reflection loop', 'evaluator-optimizer', 'prompt chaining', 'LangGraph workflow'. Designs the control flow around an LLM: which workflow pattern to pick (chain, router, parallel, orchestrator-workers, evaluator-optimizer, autonomous agent), how to bound loops, and where to put human checkpoints. Do NOT use for: multi-agent topology choices (ai/multi-agent-systems), the internals of a single agent loop (ai/ai-agents/core-architectures), or tool schema design (ai/ai-agents/too...

Firwat Ai Agentic Workflows op TypingMind benotzen?

Well Dir en eemol installéiert a mat all Modell benotze kënnt. Ai Agentic Workflows besteet aus einfachem Markdown amplaz vun ubidderspezifeschem Code. Dee selwechte Skill funktionéiert also mat GPT-5, Claude, Gemini, Grok oder engem lokale Modell – an Dir kënnt de Modell matzen am Chat wiesselen, ouni datt de Skill ophält ze funktionéieren. TypingMind benotzt Är eegen API-Schlësselen, sou datt Dir d'Ubidder direkt bezuelt amplaz vun engem Abonnement pro Benotzerplaz. Är Skills a Chats bleiwen an Ärem eegene Späicher.

Wéi installéieren ech Ai Agentic Workflows an TypingMind?

Maacht an TypingMind Plugins → Skills → Vu GitHub installéieren op a setzt https://github.com/j4flmao/agent-skills/tree/main/skills/ai/agentic-workflows an. TypingMind liest d'Datei SKILL.md an installéiert de Skill, deen Dir pro Chat aktivéiere kënnt.

Wéi eng KI-Modeller kënnen Ai Agentic Workflows benotzen?

All Modell, deen Dir an TypingMind verbënnt. KI-Skills sinn einfach Markdown-Instruktiounen an net ubidderspezifesche Code. Dofir kënne GPT, Claude, Gemini, Grok a lokal Modeller dëse Skill lueden, wann eng Ufro dozou passt.

Wéi vill KI-Modeller kann ech mat Ai Agentic Workflows benotzen?

Esou vill Dir wëllt. Soulaang e Modell Skills ënnerstëtzt, kënnt Dir Ai Agentic Workflows domat benotzen – GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama a méi – alles op TypingMind mat Ären eegenen API-Schlësselen.

Ass de KI-Skill Ai Agentic Workflows gratis?

Jo. De Skill gëtt vum j4flmao ënner der Lizenz MIT op GitHub publizéiert. Dir bezuelt nëmmen Ären eegene KI-Ubidder fir d'Token, déi Dir benotzt.

Wat si KI-Skills?

E KI-Skill ass e weiderverwendbaart Pak vun Instruktiounen, dat engem KI-Modell bäibréngt, wéi en eng bestëmmt Aufgab erfëllt. E follegt dem oppenen Agent Skills-Format: eng Datei SKILL.md mat engem Numm an enger Beschreiwung, plus all Scripten, Virlagen oder Referenzdateien, déi de Modell eventuell brauch. De Modell liest d'Instruktiounen eréischt, wann Är Ufro zum Skill passt. En installéierte Skill kascht also näischt, bis e benotzt gëtt.

Wéi ënnerscheede sech KI-Skills vu Plugins oder MCP-Serveren?

E Plugin oder MCP-Server gëtt engem Modell nei Tools, déi en opruffe kann – Code, deen iergendwou leeft an e Resultat zeréckgëtt. E KI-Skill gëtt dem Modell dogéint Wëssen an eng Virgoensweis: wéi en eng Aufgab ugeet, wéi eng Schrëtt en nokënnt a wéi eng gutt Ausgab ausgesäit. Skills bestinn aus einfachem Markdown, brauche kee Server, keen API-Schlëssel a keng Lafzäitëmfeld a funktionéiere mat all Modell.

All weisen

Elo Ären eegene KI-Workspace ariichten

Abonnéiert Iech op eisen Newsletter, fir iwwer nei Funktiounen an zukünfteg Gewënnspiller informéiert ze ginn 👇