본문으로 건너뛰기
cccskills
무료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.

한국어 요약은 준비 중입니다. 영어 요약을 표시하고 있습니다.

원문원문 설명 보기

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.

설치 방법 보기

이럴 때 유용합니다

  • 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

포함된 파일(2)

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

SKILL.md(원문)

설치하기 전에 에이전트에게 전달되는 지시 내용을 확인할 수 있습니다.

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

리뷰

아직 리뷰가 없습니다. 사용해 본 소감을 남겨 주세요.

댓글

로그인 없이 쓸 수 있습니다. 사용 후기, 질문, 작동하지 않은 환경 등을 편하게 남겨 주세요.

아직 댓글이 없습니다. 첫 댓글을 남겨 보세요.

보내면 바로 공개됩니다. 이메일 주소나 전화번호 같은 개인 정보는 쓰지 마세요. URL은 2개까지입니다.

0 / 1,000자

이 양식은 reCAPTCHA로 보호되며 Google 개인정보처리방침 및 서비스 약관이 적용됩니다.

같은 저장소의 스킬

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.9천2026년 10월 18일 업데이트

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.9천2026년 10월 18일 업데이트

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.9천2026년 10월 18일 업데이트

last7Days

무료

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.9천2026년 10월 18일 업데이트

lastMonth

무료

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.9천2026년 10월 18일 업데이트

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.9천2026년 10월 18일 업데이트

HarnessMD의 스킬 모두 보기

이 스킬의 문제 신고