← 返回列表
全部 Skill›工具 Tools›automation

automation

作者 @asgeirtj · 语言 en
Interactive guide to design and create a scheduled background automation. Use this skill when the user wants to create an automated or recurring scheduled task (e.g. "summarize my emails every morning", "every Monday send me a to-do list"). Also triggered by the /automation slash command.
工具 Tools自动化工具需海外环境访问网络读写文件待翻译
最近源活动
—
检测 SKILL.md 语言
en
星标 ★
72,517
分支 Fork
0
安装选项
提示
指令
使用 AI 助手安装
将下面的提示复制到你正在使用的 AI 助手中。
下载完整 Skill 目录(含全部配套文件)。 下载压缩包 ↓
SKILL.md 原文预览

Scheduled Automations

A scheduled automation is a background sidecar ("builtin": "schedule")

that runs on a cron schedule and starts a fresh agent conversation (`agentapi

new-conversation`) on each run.

This skill is strictly for scheduled (cron) automations. Do not use it to

create UI sidecars, continuous generic command/daemon sidecars, or in-turn

timers (use the schedule tool instead).

Quick Start (5-Turn Creation Flow)

  1. Turn 1 — Cadence: Ask via ask_question (Hourly, Daily, Weekly,

or Custom cron schedule).

  1. Turn 2 — Time / Day: Ask for the specific time or day of week

(ask_question).

  1. Turn 3 — Task Prompt: Ask what the agent should do on each run and

refine into a self-contained prompt.

  1. Turn 4 — Write sidecar.json: Create

~/.gemini/jetski/sidecars/<slug>/sidecar.json with `"builtin":

"schedule", "args": {"schedule": "<cron>", "prompt": "<prompt>"}`.

  1. Turn 5 — Optional Test Run: Offer to test the prompt immediately via

agentapi new-conversation.

--------------------------------------------------------------------------------

Interactive Creation Workflow

Guide the user through creating the automation one step at a time across

turns. If the user already provided some details in their initial prompt (such

as the schedule or the task), skip the questions already answered and proceed to

the next missing step.

Turn 1: Ask for the Cadence

If the schedule cadence is not yet specified, use the ask_question tool to

ask:

  • Question: "What should be the cadence of the automation?"
  • Options:
  • Hourly
  • Daily
  • Weekly
  • Custom cron schedule

Wait for the user's response before moving to the next question.

Turn 2: Confirm the Specific Time / Day

Based on the chosen cadence, confirm the exact schedule in a follow-up turn

using ask_question:

  • If Daily: Use ask_question to confirm the hour of the day (e.g., `9:00

AM, 12:00 PM, 5:00 PM`; the user can also enter a custom time via the

built-in write-in option).

  • If Weekly: Use ask_question to confirm both the day(s) of the week

(e.g., Monday, Friday, Weekdays (Mon–Fri)) and the hour of the day

(e.g., 9:00 AM, 5:00 PM).

  • If Hourly: Default to the top of every hour (0 * * * *), or confirm if

they want a specific minute offset.

  • If Custom cron schedule: Ask the user to specify their desired cron

expression or interval (e.g., */30 * * * * for every 30 minutes).

Wait for the user's response before asking what the task should do.

Turn 3: Ask What the Task Should Do

Once the schedule is set (and if the task itself has not been described yet),

ask the user in plain text (do not use ask_question for this open-ended

step):

*"What would you like the task to do? (For example: 'Summarize my unread
emails from the last 24 hours and highlight any that need a reply' or 'Check
my open pull requests and list any with failing checks.')"*

Wait for the user's response.

--------------------------------------------------------------------------------

Step 4: Create sidecar.json & Offer a Test Run to Configure Permissions

1. Translate Schedule & Author Self-Contained Run Prompt

  • Cron schedule: Standard 5-field cron expression (`minute hour

day-of-month month day-of-week`) written in the user's local time, always

prefixed with CRON_TZ=<IANA zone> so it runs in the user's timezone:

  • Hourly: CRON_TZ=America/New_York 0 * * * *
  • Daily at 9:00 AM: CRON_TZ=America/New_York 0 9 * * *
  • Daily at 5:00 PM: CRON_TZ=America/New_York 0 17 * * *
  • Weekly on Monday at 9:00 AM: CRON_TZ=America/New_York 0 9 * * 1
  • Weekdays at 9:00 AM: CRON_TZ=America/New_York 0 9 * * 1-5
  • Determine the user's timezone (an IANA name such as Europe/Zurich;

never an abbreviation like PST or a raw offset like +02:00):

  1. If the user already stated a timezone or city, use the matching IANA

zone.

  1. Otherwise detect the host's timezone (map any OS-specific zone name to

its IANA equivalent).

  1. If detection fails, use ask_question to confirm the user's timezone

(offer the detected zone plus a few common zones; the user can write in

their own).

  1. If the user supplies a custom cron that already starts with CRON_TZ=

or TZ=, keep it as-is and do not add a second prefix.

  1. When confirming the schedule to the user, state it with the zone (e.g.,

"every day at 9:00 AM Europe/Zurich time").

  • Self-contained prompt: Each scheduled run starts a brand-new

conversation with no memory of prior runs. Write a clear, self-contained

prompt stating the data sources, actions, and desired output format.

2. Announce Automation Creation & Write <configDir>/sidecars/<sidecar-id>/sidecar.json

Before calling write_to_file, always output a short message to the user

stating that you are now creating the <display_name> automation (do not

mention sidecar.json or internal file details to the user). Also set

toolAction / toolSummary on write_to_file to `"Creating <display_name>

automation"`.

Create the configuration file at:

<configDir>/sidecars/<sidecar-id>/sidecar.json
  • <configDir> is the user's .gemini/config directory (typically

~/.gemini/config).

  • <sidecar-id> is a short, unique kebab-case identifier derived from the

task (e.g., daily-pr-check).

  • Choo
评论
Aasgeirtj
asgeirtj
asgeirtj/system_prompts_leaks
查看 GitHub 仓库 查看作者的其他 Skill
来源信息
作者@asgeirtj
所属大类工具 Tools / 自动化工具
国内可用性需海外环境
最近源活动—
风险提示访问网络、读写文件
提示:风险标签为程序静态扫描结果,仅作提示,不代表安全认证。安装前请阅读 SKILL.md 及其引用的脚本、权限,自行判断是否可信。