Skip to content
cccskills
FreePublished on GitHub

temporal

Convert periods such as last month, this quarter, or the past 45 days into explicit date ranges. Get local dates and exact UTC boundaries in readable text or JSON for time-based searches and reports.

OriginalShow the original description

Resolve ANY named time window — today, yesterday, thisWeek, lastWeek, last7Days, last30Days, last90Days, thisMonth, lastMonth, thisQuarter, lastQuarter, thisYear, lastYear, last12Months — or an arbitrary range (lastNdays / lastNweeks / lastNmonths) to a concrete ISO date range relative to your run time. Read-only: no writes, no network. Use whenever a task is time-scoped and you need exact start/end dates without computing them by hand.

See how to install

Good for

  • Confirm the full date range for last month's report
  • Set UTC boundaries for the past 30 days
  • Check quarter-to-date or year-to-date ranges
  • Resolve a custom rolling period such as the past six months

Files included (2)

  • SKILL.md2.9 KB
  • when.mjs7.1 KB

SKILL.md (original)

Review the instructions the agent will receive before you install.

/temporal — concrete date ranges, relative to now

This is the single source of truth for "what dates does <window> mean right now?". It resolves named windows to concrete ISO date ranges relative to your run time (new Date() at the moment you invoke it), so you never re-derive dates manually. It only reads the clock and prints — no files written, no network.

Run it

# all windows at once (a quick temporal-context dump)
node "$AGENT_DIR/.claude/skills/temporal/when.mjs"

# one or several specific windows
node "$AGENT_DIR/.claude/skills/temporal/when.mjs" last30Days thisQuarter

# JSON only (machine-readable), or list the supported keywords
node "$AGENT_DIR/.claude/skills/temporal/when.mjs" --json last7Days
node "$AGENT_DIR/.claude/skills/temporal/when.mjs" --list

If $AGENT_DIR is somehow unset, the script also lives under ~/.claude/skills/temporal/when.mjs.

Windows

KeywordMeaning
today / yesterdaythe single civil day
thisWeek / lastWeekISO week (Mon-start); this = Mon→today, last = the full prior Mon→Sun
last7Days / last30Days / last90Daysrolling N-day window ending today (inclusive)
thisMonth / lastMonththis = 1st→today; last = the full prior calendar month
thisQuarter / lastQuarterthis = quarter-start→today; last = the full prior quarter
thisYear / lastYearthis = Jan 1→today (YTD); last = the full prior year
last12Monthsrolling 12 months ending today
lastNdays / lastNweeks / lastNmonthsarbitrary rolling window, e.g. last45days, last2weeks, last6months

Aliases: ytd, qtd, mtd, wtd, 7d, 30d, 90d, 12m.

Convention: this* windows are period-start → today (to-date); last* named periods are the full prior complete period.

Output

Each window prints a human line plus a JSON record:

  • start / end — inclusive civil dates (YYYY-MM-DD) in your local timezone
  • startUtc / endExclusiveUtc — the same span as a half-open [start, end) range of exact UTC instants, ideal for timestamp / createdAt-style queries
  • days, inclusive, timezone, tzOffsetMinutes, asOf — span, tz, and the instant the range was resolved

Use the returned dates as the time bounds for the task. The named shortcuts /today, /yesterday, /last30Days, /lastQuarter, … each call this same resolver for their one window.

Reviews

No reviews yet. Tell others what you thought.

Comments

No login needed. Share how it worked for you, ask a question, or note where it did not run.

No comments yet. Be the first to write one.

Comments are published right away. Do not include personal information such as email addresses or phone numbers. Up to 2 URLs.

0 / 1,000 characters

This form is protected by reCAPTCHA, and the Google Privacy Policy and Terms of Service apply.

More skills from this repository

capabilities

FreeSummary

Help a spawned worker check which date-range helpers and external integrations are available and how to call them. The catalog explains environment settings, local broker access, and availability checks so the worker can choose tools for its task.

  • Checking available tools when a worker starts
  • Looking up calls for Slack replies or shared knowledge searches
  • Checking date-range helpers before querying external services
HarnessMD/munder-difflin8.9KUpdated Oct 19, 2026

Plan and generate hand-drawn article illustrations that turn key ideas, processes, and metaphors into clear visual scenes. The skill suggests image placement, creates individual 16:9 images with an active central character, and checks composition and annotations.

  • Plan illustration placement for an article
  • Illustrate a workflow or abstract idea
  • Generate hand-drawn images for blog posts
HarnessMD/munder-difflin8.9KUpdated Oct 19, 2026

last30Days

FreeSummary

Resolve the last 30 days, including today, into local calendar dates and exact UTC time boundaries. Use the text and JSON output to scope trend analysis or recent activity reviews without manual date calculations or network access.

  • Set a rolling 30-day period for trend analysis
  • Define the date range for recent activity reviews
  • Prepare UTC boundaries for 30-day timestamp queries
HarnessMD/munder-difflin8.9KUpdated Oct 19, 2026

last7Days

FreeSummary

Turn “last seven days” into a concrete date range ending today. Get local calendar dates and precise UTC boundaries, the global time reference, to use as consistent limits for reports or timestamp searches.

  • Set the reporting period for the last seven days
  • Define UTC boundaries for timestamp searches
  • Check the local dates covered by a trailing week
HarnessMD/munder-difflin8.9KUpdated Oct 19, 2026

lastMonth

FreeSummary

Turn “last month” into the full previous calendar month's date range. Get local calendar dates and precise UTC boundaries, the global time reference, to set consistent periods for monthly reports, summaries, or timestamp searches.

  • Set the reporting period for the previous calendar month
  • Confirm the dates for a month-end summary
  • Define UTC boundaries for last month's timestamp searches
HarnessMD/munder-difflin8.9KUpdated Oct 19, 2026

lastQuarter

FreeSummary

Get the date range for the previous full quarter, based on when the skill runs. It returns local dates and precise UTC boundaries to define reporting periods for quarterly reviews, quarter-over-quarter comparisons, and timestamp-based queries.

  • Setting the period for a quarterly review
  • Checking the previous quarter's comparison period
  • Getting UTC boundaries for timestamp queries
HarnessMD/munder-difflin8.9KUpdated Oct 19, 2026

See all skills by HarnessMD

Report a problem with this skill