superset-automate

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese

Superset Automate

Superset 自动化

Turn "I keep doing X every morning" into an automation that does X on a schedule.
将“我每天早上都要做X这件事”转化为按计划执行X的自动化流程。

1. Understand the chore

1. 明确重复性工作内容

Pin down: the outcome, the cadence, the inputs it reads, and what "done" looks like. Then draft the automation prompt — write it as instructions for an agent with zero context, and if the task has rules that will evolve (triage criteria, formats), put them in a document the automation reads at runtime so they can be edited without touching the prompt.
确定:预期结果、执行频率、读取的输入内容,以及“完成”的标准。然后草拟自动化提示词——将其编写为面向无上下文Agent的指令;如果任务包含会随时间变化的规则(如分类标准、格式要求),请将这些规则放在一份文档中,让自动化流程在运行时读取,这样无需修改提示词即可编辑规则。

2. Pick the target

2. 选择目标环境

  • superset projects list
    — a project target creates a fresh workspace per run (most tasks)
  • superset workspaces list
    — a workspace target reuses the same workspace every run (stateful tasks)
  • superset projects list
    —— 以项目为目标时,每次运行都会创建一个全新的工作区(适用于大多数任务)
  • superset workspaces list
    —— 以工作区为目标时,每次运行都会复用同一个工作区(适用于有状态的任务)

3. Confirm before creating

3. 创建前确认

Show the user (use the ask_user tool if available): the name, the schedule as an RRULE, the agent, and the target — plus the exact command you will run. Never create without explicit confirmation.
向用户展示(如果可用,请使用ask_user工具):自动化名称、以RRULE格式表示的调度计划、使用的Agent,以及目标环境——还要展示你将执行的具体命令。未经用户明确确认,绝不要创建自动化。

4. Create and shake down

4. 创建并调试

bash
superset automations create \
  --name "Daily issue triage" \
  --rrule "FREQ=DAILY;BYHOUR=9;BYMINUTE=0" \
  --timezone America/Los_Angeles \
  --project <id> \
  --agent claude \
  --prompt-file /tmp/automation-prompt.md
(
--workspace <id>
instead of
--project
for reuse mode;
--host <id>
if it should run on another machine; prefer
--prompt-file
for multiline prompts.)
Then trigger a first run now with
superset automations run <id>
, review
superset automations logs <id>
with the user, and refine the prompt via
superset automations prompt set <id>
until the run output is right. An automation isn't done until one real run looked good.
bash
superset automations create \
  --name "Daily issue triage" \
  --rrule "FREQ=DAILY;BYHOUR=9;BYMINUTE=0" \
  --timezone America/Los_Angeles \
  --project <id> \
  --agent claude \
  --prompt-file /tmp/automation-prompt.md
(复用模式下使用
--workspace <id>
替代
--project
;如果需要在其他机器上运行,使用
--host <id>
;多行提示词优先使用
--prompt-file
。)
然后使用
superset automations run <id>
立即触发首次运行,与用户一起查看
superset automations logs <id>
的日志,并通过
superset automations prompt set <id>
优化提示词,直到运行结果符合要求。只有当一次真实运行的结果达标时,自动化流程才算完成。