---
name: Last 7 Days
slug: last-7-days
category: AI Engineering
description: "Last 7 Days resolves 'last7Days' to a concrete inclusive date range and exact UTC instants for a rolling 7-day window ending today. Use it before any 'last 7 days' or trailing-week task to get temporal bounds without computing dates by hand."
github: "https://github.com/chaitanyagiri/munder-difflin/tree/main/resources/skills/last7Days"
language: TypeScript
stars: 2178
forks: 253
install: "npx degit https://github.com/chaitanyagiri/munder-difflin/tree/main/resources/skills/last7Days ~/.claude/skills/last7Days"
installs_to: ~/.claude/skills/last7Days
source_path: resources/skills/last7Days/SKILL.md
collection_size: 17
category_size: 2451
collection_url: "https://dirskills.com/collections/chaitanyagiri/munder-difflin"
added: 2026-08-19T07:25:43.212Z
last_synced: 2026-08-19T07:25:43.212Z
canonical_url: "https://dirskills.com/skills/last-7-days"
---

# Last 7 Days

Last 7 Days resolves 'last7Days' to a concrete inclusive date range and exact UTC instants for a rolling 7-day window ending today. Use it before any 'last 7 days' or trailing-week task to get temporal bounds without computing dates by hand.

**Install:**

```bash
npx degit https://github.com/chaitanyagiri/munder-difflin/tree/main/resources/skills/last7Days ~/.claude/skills/last7Days
```

## README

## /last7Days

Get the concrete date range for **a rolling 7-day window ending today** by running the bundled resolver:

```bash
node "$AGENT_DIR/.claude/skills/temporal/when.mjs" last7Days
```

It prints a human-readable line plus a JSON record:

- `start` / `end` — inclusive civil dates (`YYYY-MM-DD`) in your local timezone
- `startUtc` / `endExclusiveUtc` — the same window as a half-open `[start, end)`
  range of exact UTC instants, for timestamp-based queries
- `days`, `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.
