scheduled-job-best-practices
Installation
SKILL.md
Use This Skill
Put this line at the very top of any scheduled job prompt:
@scheduled-job-best-practices
Then write your task below it.
Core Principles
- No magic injection. Do not assume placeholders like TODAY exist. Compute runtime values using tools (bash) during the run.
- Non-interactive. Scheduled jobs must not rely on QR codes, manual logins, or confirmation dialogs.
- Idempotent. Make reruns safe (maintain a seen/state file; avoid duplicate messages).
- Observable. Print a short summary at the end with status + outputs.
- Minimal side effects. Write durable artifacts under outputs/ in the job workdir.
Runtime Values: Dates
If you need local dates, compute them at runtime.