Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

cronjob-org

БесплатноБез исполняемых скриптовНе проверен

Cron-Job.org Documentation

rawvegот rawveg★ 42 звезды на GitHub19 установок в других каталогах

Об этом скилле

Cronjob-Org Skill

Comprehensive assistance with the Cron-Job.org REST API for programmatically managing scheduled HTTP jobs. This skill provides guidance on creating, updating, deleting, and monitoring cron jobs through the official API.

When to Use This Skill

This skill should be triggered when:

  • Creating automated HTTP requests on a schedule using Cron-Job.org
  • Managing cron jobs programmatically through the REST API
  • Implementing job monitoring and execution history tracking
  • Setting up notifications for job failures or successes
  • Working with API authentication and rate limits
  • Debugging cron job executions or analyzing performance metrics
  • Building integrations that require scheduled HTTP calls
  • Configuring job schedules using timezone-aware cron expressions

Key Concepts

API Authentication

  • API Keys: Generated in the Cron-Job.org Console under Settings
  • Bearer Token: API keys are sent via the Authorization header
  • IP Restrictions: Optional IP allowlisting for enhanced security
  • Rate Limits: 100 requests/day (default), 5,000 requests/day (sustaining members)

Job Object

A Job represents a scheduled HTTP request with:

  • URL: The endpoint to call
  • Schedule: Cron expression with timezone support
  • Settings: Timeout, HTTP method, headers, authentication
  • State: Enabled/disabled, execution status, history

Execution History

Each job execution creates a HistoryItem containing:

  • Timing: Actual vs planned execution time, jitter, duration
  • Response: HTTP status code, headers, body (if saveResponses enabled)
  • Performance: DNS lookup, connection, SSL handshake, transfer times

Rate Limits

Different endpoints have different rate limits:

  • Job List/Details: 5 requests/second
  • Job Creation: 1 request/second, 5 requests/minute
  • History: 5 requests/second

Quick Reference

1. Authentication Setup

# Set your API key as a bearer token in the Authorization header
Authorization: Bearer YOUR_API_KEY_HERE

Notes:

  • API keys are generated in the Console → Settings
  • Treat API keys as secrets (like passwords)
  • Enable IP restrictions whenever possible for security

2. List All Jobs (curl)

curl -X GET https://api.cron-job.org/jobs \
  -H "Authorization: Bearer YOUR_API_KEY"

Response:

{
  "jobs": [
    {
      "jobId": 12345,
      "enabled": true,
      "title": "Daily Backup",
      "url": "https://example.com/backup",
      "lastStatus": 200,
      "lastExecution": 1699920000,
      "nextExecution": 1700006400
    }
  ],
  "jobsPartialError": false
}

Rate Limit: 5 requests/second

3. Create a New Job (Python)

import requests

API_KEY = "your_api_key_here"
headers = {
    "Authorization": f"Bearer {API_KEY}",
    "Content-Type": "application/json"
}

job_data = {
    "job": {
        "url": "https://example.com/api/health-check",
        "enabled": True,
        "title": "Health Check",
        "saveResponses": True,
        "schedule": {
            "timezone": "America/New_York",
            "hours": [-1],          # Every hour
            "mdays": [-1],          # Every day of month
            "minutes": [0],         # At minute 0
            "months": [-1],         # Every month
            "wdays": [-1]           # Every day of week
        }
    }
}

response = requests.post(
    "https://api.cron-job.org/jobs",
    headers=headers,
    json=job_data
)

print(f"Created job ID: {response.json()['jobId']}")

Rate Limit: 1 request/second, 5 requests/minute

4. Update an Existing Job

import requests

API_KEY = "your_api_key_here"
JOB_ID = 12345

headers = {
    "Authorization": f"Bearer {API_KEY}",
    "Content-Type": "application/json"
}

# Only include fields you want to change
update_data = {
    "job": {
        "enabled": False,  # Disable the job
        "title": "Updated Title"
    }
}

response = requests.patch(
    f"https://api.cron-job.org/jobs/{JOB_ID}",
    headers=headers,
    json=update_data
)

print("Job updated successfully" if response.status_code == 200 else "Update failed")

Rate Limit: 5 requests/second

5. Job with HTTP Authentication

{
  "job": {
    "url": "https://api.example.com/protected",
    "enabled": true,
    "title": "Protected Endpoint",
    "auth": {
      "enable": true,
      "user": "api_user",
      "password": "secret_password"
    }
  }
}

Notes:

  • Uses HTTP Basic Authentication
  • Credentials are stored securely by Cron-Job.org

6. Job with Custom Headers

{
  "job": {
    "url": "https://api.example.com/webhook",
    "enabled": true,
    "title": "Webhook with Headers",
    "extendedData": {
      "headers": {
        "X-API-Key": "your-api-key",
        "Content-Type": "application/json",
        "User-Agent": "MyCronJob/1.0"
      },
      "body": "{\"event\": \"scheduled_check\"}"
    },
    "requestMeth
Полный SKILL.md на GitHub

Установить cronjob-org в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

plugin.jsonreferences/api.mdreferences/index.md

FAQ

Что делает скилл cronjob-org?

Cron-Job.org Documentation

Как установить скилл cronjob-org?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл cronjob-org запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить cronjob-org с