agent/skills/zap-<slug>/ directory is a self-contained portable capability: a SKILL.md that describes when and how to use the recipe, a Zap.md whose frontmatter is directly executable metadata, and prompt files that ground the agent’s creative output. Because the schema is machine-readable and the CLI produces structured JSON output, any coding agent that can run shell commands — Codex, Claude Code, Cursor, OpenClaw, Hermes, and others — can author new recipes, validate them, run them in mock mode, and surface results to creators without any custom tooling.
Machine-Readable Skill Registry
Before editing any recipe, point your agent at the remote skill registry so it has an up-to-date view of available capabilities and authoring conventions:/api/skills endpoint returns a manifest of every registered skill. The /api/skills/zap and /api/skills/zap-authoring endpoints return the core Zap framework skill and the authoring skill respectively. Append ?format=json for structured JSON output instead of Markdown prose.
Agent Prompts by Tool
Use the prompt below for your specific agent tool. Each prompt tells the agent where to find skills, which CLI commands to run for validation and execution, and how to treat provider spend.- Codex
- Claude Code
- Cursor
- OpenClaw / Hermes
Agent Contract
Any agent operating on a Zap project must follow these rules to ensure recipes remain valid, provider spend stays opt-in, and run results are reproducible:- Read
SKILL.mdfirst. Before editing or running a recipe, readSKILL.mdto understand the intended use case, input requirements, and any special authoring notes for that skill. - Treat
Zap.mdfrontmatter as executable recipe metadata. The YAML block between the---delimiters is the machine contract — do not move fields to prose, do not duplicate declarations in comments. - Keep prompts in
prompts/*.md. Creative instructions belong in dedicated prompt files under the skill directory, referenced from stepprompt:fields. Do not inline prompt text inZap.md. - Use deterministic
run_zaporzap runfor creator flows. When executing a recipe on behalf of a creator, always go through the CLI (zap run) or therun_zapEve tool. Do not call provider APIs directly. - Use primitive tools only for creative development or new recipe authoring. Direct model calls are acceptable when exploring outputs during recipe authoring, but the final pipeline must be expressed as
Zap.mdsteps. - Keep provider spend opt-in. Default to
provider: mockin all scaffolded and authored recipes. Never add--liveor switch a recipe’sdefaults.provideraway frommockwithout explicit creator instruction and confirmed credentials.
Root Flow Diagram
The following diagram shows the canonical execution flow from creator request to final asset. Agents should map their tool calls onto this sequence:- The agent identifies the correct
zap-<slug>skill directory for the creator’s intent (or scaffolds a new one withzap new). - It reads
Zap.mdto discover requiredinputsand prompts the creator to supply any that are missing. - It calls
zap validateto confirm the recipe is schema-valid and the budget cap is set. - It calls
zap run <Zap.md> --json(mock by default) and captures therunIdandzapUrlfrom the JSON result. - It returns the
runIdand asset URL to the creator, or passes them to a downstream tool.
For a deeper look at the agent framework architecture — Eve conventions, the
run_zap tool, step primitives, and how Convex and Upstash back the live runtime — see Agent Overview.