← ClaudeAtlas

agentprism-workflow-authoringlisted

Write and run AgentPrism workflow scripts — the `export const meta` + agent()/parallel()/pipeline() JavaScript DSL executed by @automatalabs/workflows and by the @automatalabs/mcp-server `workflow` tool. Use when writing or editing a workflow script, or when running one through the MCP `workflow` tool. Covers the script API, per-call routing to ACP backends (Claude Code, Codex, OpenCode, pi, custom agents), structured outputs via JSON Schema, human checkpoints, token budgets, worktree isolation, the resume rules, and run operations (run, await, inspect, stop, execution logs).
VikashLoomba/agentprism-workflows · ★ 2 · AI & Automation · score 68
Install: claude install-skill VikashLoomba/agentprism-workflows
# Writing AgentPrism workflow scripts A workflow script is plain JavaScript, passed around as a **string**, not a module. The engine runs it in a deterministic sandboxed realm. Each `agent()` call opens a session on an [Agent Client Protocol](https://agentclientprotocol.com) (ACP) backend — Claude Code, OpenAI Codex, OpenCode, pi, or a custom ACP agent server. The backend runs its own tool loop to completion and returns final text or a schema-validated object. One script can mix backends per call. `reference.md` (same directory) holds the exhaustive option tables, routing grammar, and error codes. ## The guide, by task <!-- guide-index:begin --> Read the section your task needs — each is a separate document in this skill directory: 1. **[Running workflows](mcp-server-setup.md)** — register `@automatalabs/mcp-server`; the `workflow` tool's run/await/inspect/stop actions; background runs; execution logs through the events resource. 2. **[Backends and structured output](models-and-output.md)** — per-call model routing, `configOptions`, and schema-validated outputs on every backend. 3. **[Composition and failure](composition-and-failure.md)** — the `meta` header, `parallel` and `pipeline`, null semantics, budgets, and phases. 4. **[Quality helpers and checkpoints](gates-and-lenses.md)** — `gate`, `retry`, `verify`, `judgePanel`, `loopUntilDry`, `completenessCheck`, and the human `checkpoint()` gate. 5. **[Execution environment](environment-and-tools.md)** — working directori