| name | temporal-awareness |
| description | Ensures temporal accuracy by using Unix date commands. Use this skill whenever Claude needs to know today's date, the current day of the week, what day a future/past date falls on, or perform any date/time calculations. Triggers on questions like "what day is it", "what's today's date", "what day of the week is [date]", scheduling tasks, deadline calculations, or any temporal reasoning. |
| license | MIT |
| allowed-tools | Bash(date:*) |
| metadata | {"author":"Matt Hodges","version":"0.0.1"} |
Temporal Awareness
Claude's system prompt date may be stale or unavailable. Always verify temporal information using Unix commands before responding to date-sensitive queries.
Example Commands
GNU date (Linux) and BSD date (macOS, FreeBSD) have different syntax. You can check which is installed:
if date --version >/dev/null 2>&1 ; then
echo GNU date
else
echo BSD date
fi
Get current date/time
date
date +%Y-%m-%d
date +%A
date "+%B %d, %Y"
Find day of week for any date
date -d "2025-03-15" +%A
date -d "March 15, 2025" +%A
date -d "next Friday" +%A
date -d "last Monday" +%A
date -j -f "%Y-%m-%d" "2025-03-15" +%A
date -j -f "%B %d, %Y" "March 15, 2025" +%A
date -v +fri +%A
date -v -mon +%A
Date arithmetic
date -d "+7 days" +%Y-%m-%d
date -d "-2 weeks" +%A
date -d "2025-06-01 +30 days" +%Y-%m-%d
date -v +7d +%Y-%m-%d
date -v -2w +%A
date -j -f "%Y-%m-%d" -v +30d "2025-06-01" +%Y-%m-%d
Days between dates
echo $(( ($(date -d "2025-12-31" +%s) - $(date -d "2025-01-01" +%s)) / 86400 ))
echo $(( ($(date -j -f "%Y-%m-%d" "2025-12-31" +%s) - $(date -j -f "%Y-%m-%d" "2025-01-01" +%s)) / 86400 ))
When to Use
Run date first before answering the user or writing date-aware outputs:
- User asks what today's date or day is
- Use asks what day of the week a date falls on
- User needs to calculate deadlines or durations
- User asks about time until/since an event
- Output works with schedules, meetings, deadlines, or events
- Output needs any temporal context for the task
Example
User: "What day of the week is July 4th, 2026?"
date -d "July 4, 2026" +%A
date -j -f "%B %d, %Y" "July 4, 2026" +%A
Then respond: "July 4th, 2026 falls on a Saturday."