# AISkills402 Cron Dialect Convert

> AISkills402 Cron Dialect Convert is a paid API for AI agents from api.aiskills402.com, paid per call via x402, $0.005/call, status unknown (last checked 2026-10-14).

Converts cron schedule expressions between crontab, GitHub Actions, Cron Hub, Quartz, and Cloudflare Workers formats, preserving exact firing times.

## Facts

- Endpoint: POST https://api.aiskills402.com/v1/run/cron-dialect-convert?utm_source=zero.xyz
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/aiskills402-cron-dialect-convert-adf049e7
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_xTkfDDatkD0DywFCKPzOP

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability aiskills402-cron-dialect-convert-adf049e7 -d '<json body>'
```

Example prompt: Convert this GitHub Actions cron schedule '0 9 * * 1-5' to a Quartz expression — the source timezone is America/New_York.

## When to prefer this

Choose this endpoint when you need a deterministic, rule-based conversion of a cron expression between specific supported scheduler dialects (crontab, GitHub Actions, Cron Hub, Quartz, Cloudflare Workers) without relying on an LLM to guess syntax. It handles edge cases like weekday number differences, day-of-week/day-of-month ambiguity, macros, and timezone annotations. Prefer it over asking a general-purpose LLM when correctness and an explicit CANNOT CONVERT verdict are required. Requires micro-payment of $0.005 USDC per call via x402.

## Known failure modes

- CANNOT CONVERT verdict returned when the source and target dialects cannot express the same firing times (e.g. Quartz day-of-week/day-of-month mutual exclusion vs crontab both-day rules)
- Invalid source or target dialect enum value returns a 400 error
- Malformed or unparseable schedule string causes a parsing error
- Payment failure via x402 prevents the call from completing
- Timezone string not recognized as a valid IANA zone

## How this service works

Cron Dialect Convert API: moves a schedule between crontab, GitHub Actions, Cron Hub, Quartz and Cloudflare Workers Cron Triggers so the target fires at exactly the same times - weekday numbers, either/both day rules, macros, time zones. $0.005 USDC per call, no account, no language model: what cannot run at the same times gets a paid CANNOT CONVERT verdict. POST JSON {source, target, schedule, timezone}; free example at https://api.aiskills402.com/v1/run/cron-dialect-convert/example

## Output

Returns a JSON object with an 'ok' boolean, a 'crons' array containing the converted schedule expression(s) in the target dialect, an optional 'note' explaining any nuances or limitations of the conversion, and a 'refusal' field set to a CANNOT CONVERT message if the conversion is mathematically impossible. Also includes a settlement receipt with the blockchain transaction hash.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "source": {
   "enum": [
    "crontab",
    "github",
    "cronhub",
    "quartz",
    "cloudflare"
   ],
   "type": "string",
   "description": "The scheduler the schedule comes from."
  },
  "target": {
   "enum": [
    "crontab",
    "github",
    "cronhub",
    "quartz",
    "cloudflare"
   ],
   "type": "string",
   "description": "The scheduler to convert it to."
  },
  "schedule": {
   "type": "string",
   "maxLength": 60000,
   "minLength": 1,
   "description": "The schedule as written in the source: a crontab, a workflow snippet, a Cron Hub job, a Quartz expression or a wrangler crons list."
  },
  "timezone": {
   "type": [
    "string",
    "null"
   ],
   "default": null,
   "maxLength": 64,
   "description": "IANA zone of the source schedule (for example Asia/Tokyo), when the schedule itself does not name one."
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "ok": true,
  "skill": "cron-dialect-convert",
  "engine": "1.0.0",
  "replay": false,
  "result": {
   "note": "",
   "crons": [
    "0 9 * * MON-FRI"
   ]
  },
  "receipt": {
   "tx": "0x<settlement transaction>",
   "settled": true
  },
  "refusal": null,
  "input_sha256": "<sha256 of the request>"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/aiskills402-cron-dialect-convert-adf049e7/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.aiskills402.com](https://www.zero.xyz/host/api.aiskills402.com/llms.txt)
