Workflow
Use this skill to add a Workflow to this template.
- Read
AGENTS.mdand the existing files insrc/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
idas an idempotency key when supported. - Run
npm run checkandnpm run build.
Do not write credentials. Add only environment variable names and safe
placeholders to .env.example when configuration is required.