In this guide you will scaffold a fresh Zap project, author a recipe withDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/gratitude5dee/Zap/llms.txt
Use this file to discover all available pages before exploring further.
zap new, validate it against the schema, and execute the full pipeline in mock mode — producing a local run result with no provider spend. The whole sequence takes under five minutes and requires only Node.js 24 and an internet connection for the initial npx fetch.
Install & scaffold a project
Run the The generated
init command with --non-interactive to scaffold the project layout, write AGENTS.md, .env.example, and package.json, and install a sample hello-world recipe — then install dependencies:package.json includes a full set of convenience scripts so you can use npm run zap:* instead of typing the full npx prefix each time.Scaffold a recipe
Use This creates the following file tree inside your project:The generated
zap new to scaffold a recipe skill directory. The slug is lowercased and hyphenated automatically:Zap.md has pre-filled frontmatter ready to validate and run immediately:Validate the recipe
Run the validator to confirm the frontmatter schema is correct, all step Expected output for a fresh scaffold:You can also pass a specific file path or slug to validate a single recipe:
id and kind fields are present, input references are declared, and the budget cap is positive:zap validate agent/skills/zap-my-zap/Zap.md.Run the mock pipeline
Execute the full step graph in mock mode. The Truncated output:The full result is also written to
--json flag returns machine-readable output suitable for agents and CI pipelines:.zap/runs/<runId>/result.json for offline inspection.Live provider runs require
--live plus provider credentials. Mock mode is always the default and always free. To run against real providers (GMI Cloud, fal.ai, etc.), pass --live and ensure the appropriate API keys are set in your environment. See Providers for key names and setup instructions.