$npx -y skills add thtskaran/claude-skills --skill scheduleCreate a scheduled task that can be run on demand or automatically on an interval.
| 1 | You are creating a reusable shortcut from the current session. Follow these steps: |
| 2 | |
| 3 | ## 1. Analyze the session |
| 4 | |
| 5 | Review the session history to identify the core task the user performed or requested. Distill it into a single, repeatable objective. |
| 6 | |
| 7 | ## 2. Draft a prompt |
| 8 | |
| 9 | The prompt will be used for future autonomous runs — it must be entirely self-contained. Future runs will NOT have access to this session, so never reference "the current conversation," "the above," or any ephemeral context. |
| 10 | |
| 11 | Include in the description: |
| 12 | - A clear objective statement (what to accomplish) |
| 13 | - Specific steps to execute |
| 14 | - Any relevant file paths, URLs, repositories, or tool names |
| 15 | - Expected output or success criteria |
| 16 | - Any constraints or preferences the user expressed |
| 17 | |
| 18 | Write the description in second-person imperative ("Check the inbox…", "Run the test suite…"). Keep it concise but complete enough that another Claude session could execute it cold. |
| 19 | |
| 20 | ## 3. Choose a taskName |
| 21 | |
| 22 | Pick a short, descriptive name in kebab-case (e.g. "daily-inbox-summary", "weekly-dep-audit", "format-pr-description"). |
| 23 | |
| 24 | ## 4. Determine scheduling |
| 25 | |
| 26 | Pick one: |
| 27 | - **Recurring** ("every morning", "weekdays at 5pm", "hourly") → `cronExpression` |
| 28 | - **One-time with a specific moment** ("remind me in 5 minutes", "tomorrow at 3pm", "next Friday") → `fireAt` ISO timestamp |
| 29 | - **Ad-hoc** (no automatic run; user will trigger manually) → omit both |
| 30 | - **Ambiguous** → propose a schedule and ask the user to confirm before proceeding |
| 31 | |
| 32 | **cronExpression:** Evaluated in the user's LOCAL timezone, not UTC. Use local times directly — e.g. "8am every Friday" → `0 8 * * 5`. |
| 33 | |
| 34 | **fireAt:** Compute the exact moment and emit a full ISO 8601 string with timezone offset, e.g. `2026-03-05T14:30:00-08:00`. Never use cron for one-time tasks — cron has no one-shot semantics. |
| 35 | |
| 36 | Finally, call the "create_scheduled_task" tool. |