Skip to content
Skill

Ecmascript temporal

Guides agents to write, review and migrate date and time code with Temporal

Ecmascript temporal is an open-source agent skill for developer tools. It is available on Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose.

Scripts
None
Platforms
Claude Code, Codex, Cursor
GitHub stars
5
Last commit
License
MIT
Listing updated

Similar skills

About Ecmascript temporal

This skill teaches an AI coding agent to use the Temporal API for JavaScript date and time work. It covers choosing between exact-time, zoned, plain date, time and duration types, handling IANA time zones and daylight saving transitions, and working with calendars. It also explains which comparison and arithmetic methods to use, and how to read and write RFC 9557 and RFC 3339 strings.

The skill follows a stepwise workflow: pick the API version, model each value with one type, decide how wall-clock times map to exact times, write the arithmetic with explicit units, and then parse, serialize and format values. A verification checklist covers common pitfalls such as comparing Temporal values with operators, omitting a disambiguation choice, or formatting zoned values with Intl.DateTimeFormat.

It also includes upgrade guidance for moving code from the legacy Date object and from older Temporal polyfill APIs. The rules are tied to a pinned revision of the proposal specification, and the skill ships reference files for versions, types, time zones, arithmetic and parsing. No scripts are included.

When your agent uses it

ECMAScript Temporal (ES2027, stage 4): write, review and migrate JavaScript date and time code with Temporal.Instant, ZonedDateTime, PlainDate, PlainTime, PlainDateTime, PlainYearMonth, PlainMonthDay, Duration and Temporal.Now. Use when picking a Temporal type, handling IANA time zones and DST (disambiguation compatible, earlier, later or reject; offset use, ignore, prefer or reject), calendars (iso8601, withCalendar, monthCode), arithmetic with add, subtract, until, since, round and total (largestUnit, smallestUnit, roundingMode, relativeTo, balancing), parsing and serializing RFC 9557 IXDTF strings with [time zone] and [u-ca=] annotations or RFC 3339 timestamps, compare versus equals, Intl.DateTimeFormat and toLocaleString, or replacing new Date(), Date.parse and getTimezoneOffset. Targets Temporal (ECMAScript 2027), posture build; upgrades from ECMAScript Date and from Temporal pre-reduction polyfill API code that uses Temporal.Calendar, Temporal.TimeZone, getISOFields or withPlainDate.

From the skill's SKILL.md. Your agent reads this description to decide when to load the skill.

What it can access

From a static check of its 7 files (56 KB) on GitHub on 2 December 2026. Nothing was run. Read the files before you install a skill: it can tell your agent to run anything its tools allow.

Check another skill before you install it.

Install

This skill ships in the better-supabase plugin. In Claude Code, add the marketplace and install the plugin (it may include other skills too):

/plugin marketplace add ScaleDockHQ/better-supabase
/plugin install better-supabase@better-supabase

Or copy only this skill to ~/.claude/skills/ecmascript-temporal:

tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/ScaleDockHQ/better-supabase.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/ecmascript-temporal &&
cp -R "$tmp/.agents/skills/ecmascript-temporal" ~/.claude/skills/ecmascript-temporal &&
rm -rf "$tmp"

For one project only, put the folder in .claude/skills/ecmascript-temporal inside it instead.

Claude Code docs on skills

Copy the skill folder to ~/.agents/skills/ecmascript-temporal to use it in every repository:

tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/ScaleDockHQ/better-supabase.git "$tmp" &&
mkdir -p ~/.agents/skills &&
rm -rf ~/.agents/skills/ecmascript-temporal &&
cp -R "$tmp/.agents/skills/ecmascript-temporal" ~/.agents/skills/ecmascript-temporal &&
rm -rf "$tmp"

For one repository only, put the folder in .agents/skills/ecmascript-temporal inside it instead.

Codex docs on skills

Copy the skill folder to ~/.cursor/skills/ecmascript-temporal to use it in every project:

tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/ScaleDockHQ/better-supabase.git "$tmp" &&
mkdir -p ~/.cursor/skills &&
rm -rf ~/.cursor/skills/ecmascript-temporal &&
cp -R "$tmp/.agents/skills/ecmascript-temporal" ~/.cursor/skills/ecmascript-temporal &&
rm -rf "$tmp"

For one project only, put the folder in .cursor/skills/ecmascript-temporal inside it instead.

Cursor docs on skills

Run in a terminal (add --scope workspace to install it for the current workspace only):

gemini skills install https://github.com/ScaleDockHQ/better-supabase.git --path .agents/skills/ecmascript-temporal

Or copy the folder to ~/.gemini/skills/ecmascript-temporal yourself.

Gemini CLI docs on skills

For GitHub Copilot in VS Code, copy the skill folder to ~/.copilot/skills/ecmascript-temporal:

tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/ScaleDockHQ/better-supabase.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/ecmascript-temporal &&
cp -R "$tmp/.agents/skills/ecmascript-temporal" ~/.copilot/skills/ecmascript-temporal &&
rm -rf "$tmp"

For one project only, put the folder in .github/skills/ecmascript-temporal inside it instead.

VS Code docs on skills

Get the folder:

git clone --depth 1 https://github.com/ScaleDockHQ/better-supabase.git

Then copy better-supabase/.agents/skills/ecmascript-temporal into your agent's skills folder as ecmascript-temporal. Agents that support SKILL.md read one folder per skill.

The SKILL.md format

What it does

Type selection guidance
Explains which Temporal type fits an instant, zoned time, plain date, time or duration.
DST and time zone handling
Covers disambiguation and offset options for IANA zones and daylight saving transitions.
Date arithmetic and rounding
Describes add, subtract, until, since, round and total with units and reference dates.
String parsing and formatting
Covers RFC 9557 and RFC 3339 strings, toString options and locale formatting.
Legacy Date migration
Provides upgrade steps from Date and from older Temporal polyfill code.

Good for

  • Replace Date handling in a module with Temporal types
  • Check scheduling code for daylight saving time bugs
  • Compute the difference between two dates in days or hours
  • Parse and serialize timestamps with IANA time zone annotations
  • Format a zoned date and time for display

Ecmascript temporal FAQ

What does the skill need to run?

It has no scripts and no tool requirements; it works through the agent's instructions and reference files for Temporal code.

Which Temporal version does Ecmascript temporal target?

It targets the Temporal API expected in ECMAScript 2027 at stage 4, written against a pinned proposal specification revision.

Does Ecmascript temporal change how Date code behaves?

It guides migration from Date and older polyfill code, and says to confirm exact times and wall-clock values match on test cases, including a DST gap and overlap.

How do I install Ecmascript temporal in Claude Code?

Copy the skill folder from GitHub to ~/.claude/skills/ecmascript-temporal to use it in all your projects, or to .claude/skills/ecmascript-temporal in one project. Or install the better-supabase plugin, which includes it: /plugin marketplace add ScaleDockHQ/better-supabase, then /plugin install better-supabase@better-supabase.

Does Ecmascript temporal run scripts?

No. It is instructions only, with no scripts. This comes from a static check of the files on GitHub; nothing was run. Read the files before you install it.

Which AI agents can use Ecmascript temporal?

Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose. Each reads skills in the SKILL.md format from its own folder; the install steps on this page list them.

What are the best alternatives to Ecmascript temporal?

The closest alternatives to Ecmascript temporal are Dotnet timezone, TypeScript best practices, Agents SDK, JSON schema and Technical writing.

Where this comes from

  • Description: from the skill's own SKILL.md.

More from ScaleDockHQ/better-supabase

  1. Apply the CommonMark 0.31.2 spec when parsing or rendering Markdown

    • Open source
    • 5 GitHub stars
    • Files and documents
  2. Publish Agent Cards and run agent-to-agent calls over the A2A 1.0 protocol

    • Open source
    • 5 GitHub stars
    • Developer tools
  3. Lets an agent stream runs, tool calls and shared state to user-facing apps over AG-UI 1.0

    • Open source
    • 5 GitHub stars
    • Developer tools
  4. Lets an AI agent drive Chrome or Chromium through a fast browser automation CLI

    • Open source
    • 5 GitHub stars
    • Browser automation
  5. Guides an agent to write, review and validate SKILL.md skills against the Agent Skills

    • Open source
    • 5 GitHub stars
    • Developer tools
  6. Write, place, migrate and review AGENTS.md instruction files for coding agents

    • Open source
    • 5 GitHub stars
    • Developer tools