スキル一覧に戻る

c-schedule

daxaur
更新日 2 days ago
3 閲覧
143
6
143
GitHubで表示
デザインscheduleautomationcronrecurringproactivecost-control

について

c-scheduleは、組み込みのコスト管理機能を備えたcron/launchdによるClaudeタスクの定期実行を自動化します。メール要約や通知などのタスクをスケジュール実行し、結果をTelegramやファイル、その他の出力先に配信します。このスキルは、支出制限を備えた能動的な自動化を必要とする開発者のために、OpenPawに組み込まれています。

クイックインストール

Claude Code

推奨
メイン
npx skills add daxaur/openpaw -a claude-code
プラグインコマンド代替
/plugin add https://github.com/daxaur/openpaw
Git クローン代替
git clone https://github.com/daxaur/openpaw.git ~/.claude/skills/c-schedule

このコマンドをClaude Codeにコピー&ペーストしてスキルをインストールします

ドキュメント

Smart Scheduling

Automate recurring tasks with Claude. Jobs run on a schedule via launchd (macOS) or cron (Linux), with built-in cost caps to prevent runaway spending.

Managing Schedules

# Add a scheduled job (inline)
openpaw schedule add "weekdays 8am" --run "check email and summarize the important ones"
openpaw schedule add "daily 9pm" --run "review today's GitHub notifications"
openpaw schedule add "every 30 minutes" --run "check if any urgent emails arrived" --model haiku

# Interactive mode (prompts for all options)
openpaw schedule add

# List all jobs
openpaw schedule list

# Remove a job
openpaw schedule remove <id>

# Manually trigger a job
openpaw schedule run <id>

# Enable/disable without removing
openpaw schedule enable <id>
openpaw schedule disable <id>

# View cost usage
openpaw schedule costs

# Set daily cost cap
openpaw schedule set-cap 10.00

Schedule Syntax

Human-readable formats:

  • weekdays 8am or weekdays 08:00
  • daily 9pm or daily 21:00
  • weekends 10am
  • every 30 minutes
  • every 2 hours
  • monday 9am, friday 5pm, etc.
  • Raw cron: 0 8 * * 1-5

Cost Control

  • Daily cap: $5/day by default — jobs are skipped if the cap would be exceeded
  • Per-run budget: Each job has its own budget cap (default $1.00)
  • Cost tracking: All costs logged to ~/.config/openpaw/schedule-costs.json
  • 30-day history: Old entries auto-pruned
  • View anytime: openpaw schedule costs

Delivery Methods

  • telegram — results sent directly to your Telegram (requires Telegram bridge setup)
  • file — saved to ~/.config/openpaw/schedule-results/ (always saved as backup)
  • notify — macOS notification via terminal-notifier

How It Works

  1. Jobs are stored in ~/.config/openpaw/schedules.json
  2. Each job registers as a system scheduler:
    • macOS: launchd plist in ~/Library/LaunchAgents/
    • Linux: crontab entry
  3. When triggered, openpaw schedule run <id> is called
  4. Claude runs with the job's prompt via the Agent SDK
  5. Results are delivered to the configured channel
  6. Cost is recorded

Guidelines

  • Use haiku for simple, frequent checks (cheapest)
  • Use sonnet for routine tasks like email summaries
  • Use opus only for complex analysis (expensive)
  • Test jobs manually first: openpaw schedule run <id>
  • Start with a higher per-run budget and reduce once you know typical costs
  • Check openpaw schedule costs to monitor spending

Common Recipes

# Morning briefing to Telegram
openpaw schedule add "weekdays 8am" --run "give me a morning briefing: check email, calendar, and any GitHub notifications" --delivery telegram

# Evening project summary
openpaw schedule add "daily 6pm" --run "summarize what I worked on today based on git commits and recent files" --delivery file

# Urgent email monitor
openpaw schedule add "every 30 minutes" --run "check for urgent emails and notify me if any" --model haiku --budget 0.25 --delivery notify

GitHub リポジトリ

daxaur/openpaw
パス: skills/c-schedule
0
ai-agentanthropicautomationclaudeclaude-codecli

関連スキル

executing-plans

デザイン

executing-plansスキルは、完全な実装計画があり、それを管理されたバッチでレビューチェックポイントを設けながら実行する場合に使用します。このスキルは計画を読み込んで批判的にレビューした後、小さなバッチ(デフォルトは3タスク)でタスクを実行し、各バッチの間に進捗状況を報告してアーキテクトのレビューを受けます。これにより、品質管理チェックポイントが組み込まれた体系的な実装が保証されます。

スキルを見る

requesting-code-review

デザイン

このスキルは、コードレビュアーサブエージェントを起動し、処理を進める前に要件に対してコード変更を分析します。タスク完了後、主要な機能の実装後、またはmainブランチへのマージ前などに使用すべきです。このレビューは、現在の実装と元の計画を比較することで、問題を早期に発見するのに役立ちます。

スキルを見る

connect-mcp-server

デザイン

このスキルは、開発者がHTTP、stdio、またはSSEトランスポートを使用してMCPサーバーをClaude Codeに接続するための包括的なガイドを提供します。GitHub、Notion、カスタムAPIなどの外部サービスを統合するためのインストール、設定、認証、セキュリティについて解説しています。MCP統合のセットアップ、外部ツールの設定、またはClaudeのModel Context Protocolを扱う際にご利用ください。

スキルを見る

web-cli-teleport

デザイン

このスキルは、タスク分析に基づいて開発者がClaude Code WebとCLIインターフェースの選択を支援し、これらの環境間でのシームレスなセッションテレポーテーションを可能にします。Web、CLI、モバイル環境を切り替える際のセッション状態とコンテキストを管理することで、ワークフローを最適化します。様々な段階で異なるツールを必要とする複雑なプロジェクトにご活用ください。

スキルを見る