| name | date-check |
| description | Use this skill when the user asks for current date, time, timestamp, timezone-aware datetime, or ISO datetime. Prefer deterministic runtime output over guessing. |
Date Check Skill
Use this skill for requests such as:
- what day is today
- current time
- unix timestamp now
- current ISO datetime
Available Resource
- Script:
scripts/get-date.ts
- runScript example:
runScript({ "skillName": "date-check", "script": "get-date", "args": ["--iso", "--tz", "Asia/Shanghai"] })
- Supported flags:
--date -> YYYY-MM-DD
--time -> HH:MM:SS
--iso -> YYYY-MM-DDTHH:MM:SS+ZZZZ
--timestamp -> unix seconds
--tz <IANA timezone> (example: Asia/Shanghai, America/New_York)
Workflow (Framework Agnostic)
- Determine the output format requested by the user: date, time, ISO datetime, or timestamp.
- Use the
runScript tool to run the bundled script with the matching flags.
- If the user specifies a timezone, pass
--tz <timezone>.
- Return the script output directly, with minimal reformatting.
Notes
- Do not assume or hallucinate date/time values.
- If no timezone is provided, use the runtime default timezone.
- If execution capability is unavailable, clearly state that limitation and provide the expected command/arguments for the host runtime to execute.