| name | workflow |
| description | Scaffold a Notion App workflow with typed triggers and replay-safe durable steps. |
| user-invocable | true |
| disable-model-invocation | true |
Workflow
Use this skill to add a workflow to this template.
- Read
AGENTS.md and the existing files in src/workflows/.
- Inspect the installed workflow and trigger declarations.
- Choose the trigger, outcome, step boundaries, and required configuration.
- Create one camelCase file directly in
src/workflows/.
- Default-export
createWorkflow(...) and use typed trigger creators.
- Put all non-deterministic work in awaited
context.step(...) calls.
- 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] }.
- Return JSON-safe values needed by later steps.
- Use the step
id as an idempotency key when supported.
- 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.