Agent Skills
› chaitanyagiri/munder-difflin
› thisYear
thisYear
GitHub解析当前年份至今(1月1日至今天)的具体日期范围,提供本地时区日期和精确UTC时间戳,避免手动计算日期。适用于需要YTD指标或本年度时间上下文的只读任务。
触发场景
获取今年到目前为止的日期范围
查询YTD指标的时间边界
需要精确的年度起始和当前UTC时间戳
安装
npx skills add chaitanyagiri/munder-difflin --skill thisYear -g -y
SKILL.md
Frontmatter
{
"name": "thisYear",
"description": "Resolve \"thisYear\" to a concrete ISO date range relative to your run time —\nthis year so far (Jan 1 → today). Returns inclusive civil dates plus exact UTC instants so you have\ntemporal context without computing dates by hand. Read-only: no writes, no\nnetwork. Use before a year-to-date task (YTD metrics, \"so far this year\").\n",
"allowed-tools": [
"Bash"
]
}
/thisYear
Get the concrete date range for this year so far (Jan 1 → today) by running the bundled resolver:
node "$AGENT_DIR/.claude/skills/temporal/when.mjs" thisYear
It prints a human-readable line plus a JSON record:
start/end— inclusive civil dates (YYYY-MM-DD) in your local timezonestartUtc/endExclusiveUtc— the same window as a half-open[start, end)range of exact UTC instants, for timestamp-based queriesdays,timezone,asOf— the span, your timezone, and when this resolved
Use the returned dates as the time bounds for the task at hand. Do not derive
dates by hand — this resolver is the source of truth. For the full window list
or an arbitrary range (e.g. last45days, last6months), see the /temporal skill.
版本历史
- df15a9a 当前 2026-07-05 15:41


