cron-expressions

Generate native cron parsing and scheduling implementations from a TypeScript reference.

1|1|Updated Jan 30, 2026
One-click install
npx skills add https://github.com/caryden/special --skill cron-expressions
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: cron-expressions
Source: https://github.com/caryden/special/tree/main/skills/cron-expressions
Command: npx skills add https://github.com/caryden/special --skill cron-expressions

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill enables teams to generate native cron parsing, matching, and scheduling implementations from a verified TypeScript reference, eliminating manual translation.

Core Features & Use Cases

  • Cron parsing and validation: produce correct CronExpression ASTs from standard 5-field inputs, including aliases and extensions (L, W, #, 7 normalization).
  • End-to-end scheduling API: provide next/previous occurrence calculations and iteration via a single CronSchedule facade.
  • Cross-language translation hints: types and interfaces come with language-agnostic specs and references to speed up porting to Python, Rust, Go, or TypeScript.

Quick Start

Generate a native cron parsing and scheduling implementation from the TypeScript reference.

Frequently Asked Questions about cron-expressions

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I parse and validate cron expressions with aliases and modifiers in TypeScript?

Cron parsing and validation produces correct CronExpression ASTs from standard 5-field inputs, supporting aliases and extensions like L, W, and # with Vixie semantics. It enforces 5-field cron syntax and normalizes 7 to provide a verified TypeScript reference.

What's the best way to calculate the next or previous cron occurrence for a schedule?

Calculating next and previous cron occurrences is handled by a single CronSchedule facade. This scheduling API exposes next, prev, nextN, and iterate functions, enabling end-to-end matching and iteration across varied scheduling use cases.

Can I translate a TypeScript cron parser to Python, Rust, or Go?

Yes, cross-language translation is supported by providing language-agnostic specs and references. Types and interfaces come with translation hints to speed up porting the verified TypeScript reference to Python, Rust, Go, or TypeScript.

Does this cron scheduling implementation support Vixie cron semantics?

Yes, the cron parser enforces 5-field syntax with Vixie semantics. It supports standard aliases and modifiers, including L for last day of month, W for nearest weekday, and # for nth weekday of the month.

How do I generate a native cron scheduler from a reference implementation?

Generating a native cron scheduler involves using the verified TypeScript reference to produce parsing, matching, and scheduling implementations. This eliminates manual translation by providing a public CronSchedule API for immediate use.

What are the limitations of using a 5-field cron expression syntax?

The cron parser is limited to standard 5-field syntax, meaning it does not support 7-field expressions with seconds or years. It focuses strictly on minute, hour, day, month, and day-of-week fields with Vixie semantics and specific modifiers.