Ask your agent
What it does
Turn a task you keep doing by hand into a scheduled AI agent: a standalone agent prompt, a schedule, a quiet-when-nothing-changed rule and a cost check.
SKILL.md
--- name: recurring-task-to-agent description: Turn a task you keep doing by hand into a scheduled AI agent. Use when someone says "every morning", "check daily", "ping me when", "keep an eye on" or describes any repeat chore. Produces a standalone agent prompt, a schedule, a quiet-when-nothing-changed rule and a cost check. --- # Recurring task -> scheduled agent Most "automations" fail for three boring reasons: the prompt depends on the chat it was written in, the agent pings you every run even when nothing happened, and it runs far more often than it needs to. This skill fixes all three. ## 1. Pin down the job (ask only what you can't infer) - What does the person do by hand today, step by step? - What source does it read (inbox, dashboard, feed, repo, sheet)? - What counts as "new" or "worth telling me"? Get one concrete example. - What must the agent NEVER do (reply, send, buy, delete, mark as read)? - Where should the result go (chat, email, Slack, a file)? ## 2. Pick the slowest schedule that still works - Ask: how late can the person learn about this before it costs something? - Use that as the interval. Hourly is rarely needed; 2-3 fixed times a day covers most inbox/dashboard checks. - Write it as cron in the person's local time. Avoid :00 if many jobs fire then; use :07, :17 etc. - Rough cost: runs per day x avg run cost. Every 5 minutes is 12x hourly and 288 runs a day. Say this number out loud before committing. ## 3. Write the agent prompt as if the agent has never met you The prompt runs in a fresh session with no chat history. It must contain: 1. Goal in one sentence. 2. Where to look, with exact URLs, folders, accounts or queries. 3. How to tell what is new: keep a small state file (last seen id or timestamp) and compare against it. Update it at the end of each run. 4. What to report, in what format, and at what length. 5. Hard limits (never send, never reply, never pay, read-only). 6. The quiet rule: "If nothing new matches, end without sending anything. No 'no updates' messages." 7. What to do on failure: one short alert after 2 consecutive failures, not every run. ## 4. Dry run before you schedule - Run the prompt once by hand. - Check: did it find the right items, skip the old ones, stay silent when it should, and stay inside the hard limits? - Fix the prompt, not the schedule. ## 5. Ship it and set a review date - Create the scheduled job. - After one week: how many runs actually produced something useful? If under 20%, slow the schedule down or move to an event trigger (webhook, email rule) instead of polling. ## Output template Name: <short name> Schedule: <cron> (<timezone>) ~<runs/day> runs a day Prompt: <the full standalone prompt> State file: <path and what it stores> Never: <list> Review on: <date>
1 file
- SKILL.md2.7 KB