界面已本地化;技能介绍与说明文档按所选语言由 AI 自动翻译,代码、命令、路径和专业术语保留原文,以原作者文档为准。
探索技能
效率与协作 · SKILL.md

workflow

workflow

【效率与协作】Scaffold a Notion Worker Workflow with typed triggers and replay-safe durable steps.

独立 GitHub 快照 · 自动分类 · 以原作者文档为准

技能说明

GitHub

name: workflow description: Scaffold a Notion Worker 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.

  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] }.
  8. Return JSON-safe values needed by later steps.
  9. Use the step id as an idempotency key when supported.
  10. 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.

我的收藏