Workflow

From makenotion/notion-cookbook · View interactive version

Workflow is an AI agent skill from the GitHub repository makenotion/notion-cookbook. Scaffold a Notion Worker Workflow with typed triggers and replay-safe durable steps.

How to use this skill

Skill file

Workflow

Use this skill to add a Workflow to this template.

  1. Read AGENTS.md and the existing files in src/workflows/.
  2. Inspect the installed Workflow and trigger declarations.
  3. Choose the trigger, outcome, step boundaries, and required configuration.
  4. Create one camelCase file directly in src/workflows/.
  5. Default-export createWorkflow(...) and use typed trigger creators.
  6. Put all non-deterministic work in awaited context.step(...) calls.
  7. Give each step a stable display name. For repeated steps, keep the name

constant and pass a stable, unique composite key, such as

{ key: ["process-page", page.id] }.

  1. Return JSON-safe values needed by later steps.
  2. Use the step id as an idempotency key when supported.
  3. Run npm run check and npm run build.

Do not write credentials. Add only environment variable names and safe

placeholders to .env.example when configuration is required.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.