Skip to main content

Squillify development is paused indefinitely. Read why, and discover what this experiment achieved. Read the story

MicroSkills Reference

Cron Validate

workflow.cron_validate

ProductionBounded custom (Class B)Deterministicstrictfastv1.0.0
No network

Overview

You send one cron expression and a required dialect: UNIX_5, QUARTZ_6_7, SPRING_6 or AWS_EVENTBRIDGE. There is no AUTO. A valid expression comes back with normalized fields and an English description; an invalid one is a successful answer with valid false and diagnostics, not a guess in another dialect. This does not schedule jobs or parse natural language. A successful call costs 1 execution credit.

Callers need a published dialect, not an engine that guesses UNIX versus Quartz.

Reliability

Powered by pinned cron-utils 9.2.1. Invalid expressions return valid false. CRON_LIMIT_EXCEEDED — trigger: expression longer than 1024 characters; retryable: no; next: shorten it.

Context footprint

Returns fields and a short English description, never a schedule dump. A successful call costs 1 execution credit.

When to use it

When one cron string must be accepted or rejected in a named dialect.

When you need next-run instants, timezone resolution, or job execution.

Powered by cron-utils 9.2.1 with Squillify dialect adapters. No scheduler is involved.

Scope

Note
Parses one cron expression in a caller-declared dialect with no AUTO fallback.

Non-goals

  • Does not run or schedule jobs
  • Does not parse natural-language schedules
  • Does not accept Kubernetes or GitHub macros unless they are valid in the dialect

Properties

IdempotentRetry safeStreaming supportedFile input supportedRequires external service

Capabilities

validation

Cost & billing

Flat rate per invocation

MetercallsBillable onsuccessCost per call1 credit

File handling

Accepts file_refProduces file_refMax input64 KB

How we handle your data

Sensitive input, safe output
What this means

This skill may receive sensitive content, but it does not target sensitive data and returns only a structured non-sensitive result.

Squillify guarantees
  • Runs inside Squillify
  • This skill runs inside Squillify.
  • Payloads are not sent to an external service by this skill.
  • Squillify does not permanently store submitted payloads.
  • Telemetry records metadata only, not submitted content.
  • Submitted payloads are not used for training.
  • Submitted payloads are not reviewed by humans.
  • This skill does not target sensitive data.
  • The response does not contain submitted content.
Your responsibility

Squillify does not determine whether submitted content is sensitive. Your application is responsible for deciding what data it is allowed to submit. Your application is responsible for securing the response.

Read the Microskill Data Handling Policy

Input schema

FieldTypeRequiredDescription
expressionstringYesCron text, 1 through 1025 characters; runtime accepts at most 1024.
dialectstringYesUNIX_5, QUARTZ_6_7, SPRING_6 or AWS_EVENTBRIDGE. There is no AUTO.

Output schema

FieldTypeRequiredDescription
validbooleanYesTrue when the expression parsed in the declared dialect.
dialectstringYesDialect that was actually applied to this expression.
normalizedstringYesEngine canonical form, or the trimmed input when parsing failed.
fieldsobjectYesNamed cron fields present in this dialect as string values — unconstrained RFC 8259 JSON items are not used; keys are field names.
descriptionstringYesEnglish semantic description from cron-utils; empty when valid is false.
warningsarrayYesRare-schedule warnings in a stable order, 0 through 16 strings.
diagnosticsarrayYesParse diagnostics when valid is false, 0 through 16 closed {code, message} objects.

API contract

POST /v1/execute
curl
curl -sS -X POST "$BASE/v1/execute" -H "Authorization: Bearer $KEY" -H 'Content-Type: application/json' -d '{"skillKey":"workflow.cron_validate","input":{"expression":"0 12 * * *","dialect":"UNIX_5"}}'
Integrations
TypeScript SDK
import { Squillify } from "@squillify/sdk";

const sq = new Squillify({ apiKey: process.env.SQUILLIFY_API_KEY });

const { output } = await sq.execute("workflow.cron_validate", {"dialect":"UNIX_5","expression":"0 12 * * *"});

Errors

CodeHTTPRetryableDescription
VALIDATION_ERROR400NoThe request payload failed schema validation.
UNAUTHORIZED401NoMissing or invalid API key.
SKILL_NOT_ACCESSIBLE403NoThe API key is not granted access to this skill.
SKILL_NOT_AVAILABLE_FOR_PLAN403NoThis skill is not included in your current plan.
PLAN_ELIGIBILITY_UNAVAILABLE503YesPlan eligibility could not be decided. Retry after backoff.
SKILL_NOT_FOUND404NoThe requested skill or version does not exist.
TENANT_RATE_LIMITED429YesRequest rate limit exceeded. Retry after backoff.
QUOTA_EXCEEDED429YesPlan quota exhausted. Retryable once the quota period resets.
EXECUTION_TIMEOUT504YesExecution exceeded the allowed time budget.
CRON_LIMIT_EXCEEDED429NoA size, quota, rate, or time limit was exceeded.

Other limits

LimitValue
Recommended inline bytes32 KiB

Limitations

  • Does not run or schedule jobs
  • Does not parse natural-language schedules
  • Does not accept Kubernetes or GitHub macros unless they are valid in the dialect
  • Choosing a timezone
  • Enumerating next runs

How to call

POST /v1/execute (requires authentication)

Request bodyjson
{
  "skillKey": "workflow.cron_validate",
  "input": {
    "dialect": "UNIX_5",
    "expression": "0 12 * * *"
  }
}

Examples

A five-field UNIX expression that fires every day at noon

Inputjson
{
  "dialect": "UNIX_5",
  "expression": "0 12 * * *"
}
Expected outputjson
{
  "fields": {
    "dayOfWeek": "*",
    "hour": "12",
    "dayOfMonth": "*",
    "month": "*",
    "minute": "0"
  },
  "dialect": "UNIX_5",
  "valid": true,
  "normalized": "0 12 * * *",
  "diagnostics": [],
  "description": "at 12:00",
  "warnings": []
}
Tip
UNIX_5 accepts five fields; noon is minute 0 hour 12.

A Quartz six-field expression is invalid under UNIX_5

Inputjson
{
  "dialect": "UNIX_5",
  "expression": "0 0 12 * * ?"
}
Expected outputjson
{
  "fields": {},
  "dialect": "UNIX_5",
  "valid": false,
  "normalized": "0 0 12 * * ?",
  "diagnostics": [
    {
      "code": "CRON_PARSE",
      "message": "expression is not valid for dialect UNIX_5"
    }
  ],
  "description": "",
  "warnings": []
}
Tip
Dialect-crossing is a false valid, not a silent reinterpretation.
  • Reject a Quartz expression sent as UNIX_5
  • Describe a valid AWS EventBridge cron

Avoid for

  • Choosing a timezone
  • Enumerating next runs

Composable with

Safety & privacy

  • Runs without calling any external service.
  • Your payloads are never stored permanently.
  • Telemetry captures metadata only — never your payload contents.
  • We never train models on your payloads.
  • No human reviews your payloads.

Tags

validationworkflow