# Ecmascript temporal

> Ecmascript temporal is an open-source agent skill for developer tools. Guides agents to write, review and migrate date and time code with Temporal. It is available on Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose.

- **Kind:** Skill
- **Pricing:** Open source
- **Platforms:** Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf, Goose
- **Website:** https://github.com/ScaleDockHQ/better-supabase/tree/main/.agents/skills/ecmascript-temporal
- **Repository:** https://github.com/scaledockhq/better-supabase
- **GitHub stars:** 5
- **License:** MIT
- **Skill name:** ecmascript-temporal
- **Collection:** https://github.com/ScaleDockHQ/better-supabase
- **Categories:** [developer tools](https://ai-powered.com/categories/developer-tools)
- **Listing updated:** 2026-12-02

## About

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.

## What it can access

From a static check of the files on GitHub; nothing was run.

- [Instructions only, no scripts](https://github.com/ScaleDockHQ/better-supabase/tree/HEAD/.agents/skills/ecmascript-temporal)
- [License: MIT](https://github.com/ScaleDockHQ/better-supabase/tree/HEAD/.agents/skills/ecmascript-temporal)

## Features

- **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

## Install

### Claude Code

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

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

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

```sh
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.

### Codex

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

```sh
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.

### Cursor

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

```sh
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.

### Gemini CLI

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

```sh
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.

### VS Code

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

```sh
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.

### Other agents

Get the folder:

```sh
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.

## 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.

## Alternatives

- [Dotnet timezone](https://ai-powered.com/skills/dotnet-timezone): Dotnet timezone is an open-source agent skill for developer tools.
- [TypeScript best practices](https://ai-powered.com/skills/typescript-best-practices): TypeScript best practices is an open-source agent skill for developer tools.
- [Agents SDK](https://ai-powered.com/skills/agents-sdk): Agents SDK is an open-source agent skill for developer tools.
- [JSON schema](https://ai-powered.com/skills/json-schema): JSON schema is an open-source agent skill for developer tools.
- [Technical writing](https://ai-powered.com/skills/technical-writing): Technical writing is an open-source agent skill for developer tools.
- [Dmux workflows](https://ai-powered.com/skills/dmux-workflows): Dmux workflows is an open-source agent skill for developer tools.
- [Developing genkit js](https://ai-powered.com/skills/developing-genkit-js): Developing genkit js is an open-source agent skill for developer tools.
- [Ecc conventions](https://ai-powered.com/skills/ecc-conventions): Ecc conventions is an open-source agent skill for developer tools.

---
Source: https://ai-powered.com/skills/ecmascript-temporal
