agentprism-workflow-authoringlisted
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