Schedule
Schedule vault maintenance tasks using macOS launchd
от DavidROliverBA★ 53 звезды на GitHub
Установить Schedule в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
/schedule
Schedule recurring vault maintenance tasks using macOS launchd (or cron on Linux).
Usage
/schedule list # List scheduled jobs
/schedule add <job> <schedule> # Add a scheduled job
/schedule remove <job> # Remove a scheduled job
/schedule run <job> # Run job immediately
/schedule status # Show job status and last run times
Examples
/schedule list
/schedule add health-check daily
/schedule add graph-rebuild hourly
/schedule add validate weekly
/schedule remove health-check
/schedule status
Available Jobs
| Job | Description | Default Schedule |
|---|---|---|
health-check |
Run vault health check (scripts/health-check.js) | Daily at 6am |
validate |
Run frontmatter/link validation (scripts/validate.js) | Weekly on Monday |
graph-rebuild |
Rebuild knowledge graph index (scripts/generate-graph-enhanced.js) | Hourly |
vault-index |
Rebuild SQLite FTS5 search index (scripts/vault-to-sqlite.js) | Daily at 5am |
backup |
Git commit and push vault changes | Daily at midnight |
weblink-check |
Check for dead weblinks | Weekly on Sunday |
custom |
User-defined command | As specified |
Schedule Formats
| Format | Description | Example |
|---|---|---|
hourly |
Every hour at :00 | hourly |
daily |
Every day at 6:00 AM | daily |
daily@HH:MM |
Every day at specific time | daily@09:30 |
weekly |
Every Monday at 6:00 AM | weekly |
weekly@DAY |
Specific day at 6:00 AM | weekly@friday |
cron EXPR |
Cron expression (5 fields) | cron 0 */4 * * * |
Instructions
1. Parse Command
Identify the subcommand:
list- Show all scheduled jobsadd- Create new scheduled jobremove- Delete scheduled jobrun- Execute job immediatelystatus- Show job status
2. Handle Subcommands
For list:
Read launchd plist files from ~/Library/LaunchAgents/:
ls -la ~/Library/LaunchAgents/com.vault.* 2>/dev/null
Display in table format:
Scheduled Vault Jobs
====================
| Job | Schedule | Status | Last Run |
|---------------|---------------|---------|------------|
| health-check | Daily @ 06:00 | Active | 2026-01-26 |
| graph-rebuild | Hourly | Active | 2026-01-26 |
| validate | Weekly Mon | Paused | 2026-01-20 |
For add:
- Parse job name and schedule
- Generate launchd plist file
- Write to
~/Library/LaunchAgents/com.vault.{{job}}.plist - Load the job:
launchctl load ~/Library/LaunchAgents/com.vault.{{job}}.plist
Plist Template:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Label</key>
<string>com.vault.{{job}}</string>
<key>ProgramArguments</key>
<array>
<string>/usr/local/bin/node</string>
<string>{{vault_path}}/scripts/{{script}}.js</string>
</array>
<key>WorkingDirectory</key>
<string>{{vault_path}}</string>
<key>StartCalendarInterval</key>
{{schedule_dict}}
<key>StandardOutPath</key>
<string>{{vault_path}}/.claude/logs/{{job}}.log</string>
<key>StandardErrorPath</key>
<string>{{vault_path}}/.claude/logs/{{job}}.error.log</string>
<key>EnvironmentVariables</key>
<dict>
<key>PATH</key>
<string>/usr/local/bin:/usr/bin:/bin</string>
</dict>
</dict>
</plist>
Schedule Dict Examples:
<!-- Daily at 6am -->
<dict>
<key>Hour</key>
<integer>6</integer>
<key>Minute</key>
<integer>0</integer>
</dict>
<!-- Hourly -->
<dict>
<key>Minute</key>
<integer>0</integer>
</dict>
<!-- Weekly on Monday -->
<dict>
<key>Weekday</key>
<integer>1</integer>
<key>Hour</key>
<integer>6</integer>
<key>Minute</key>
<integer>0</integer>
</dict>
For remove:
- Unload the job:
launchctl unload ~/Library/LaunchAgents/com.vault.{{job}}.plist - Delete the plist file
- Confirm removal
For run:
Execute the job immediately:
launchctl start com.vault.{{job}}
Or run directly:
node scripts/{{script}}.js
For status:
Show status for all jobs:
launchctl list | grep com.vault
Display last run times from log files.
3. Job Definitions
Map job names to scripts:
``
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл Schedule?
Schedule vault maintenance tasks using macOS launchd
Как установить скилл Schedule?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл Schedule запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
theme-factory
AnthropicToolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
access
AnthropicManage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
configure
AnthropicSet up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
access
AnthropicManage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…