feat: add date-time skill

Allows the AI to get the current system datetime and use it when
relevant in a conversation/task.
This commit is contained in:
2026-06-01 16:32:28 -04:00
parent 11a02b74a0
commit d9b56d8f2e
2 changed files with 36 additions and 0 deletions
+1
View File
@@ -1,4 +1,5 @@
{
"date-time": "Get the current date and time when it is relevant to the task at hand, and use it to make informed decisions.",
"git-publish-workflow": "Automate the full lifecycle from uncommitted local work to an open Pull Request, with built-in quality gates.",
"readme-sync-audit": "Keep README.md accurate by programmatically aligning it with the current state of the codebase.",
"ship-it": "Run a comprehensive pre-flight audit and publish changes to a new PR in a single command.",
+35
View File
@@ -0,0 +1,35 @@
# Skill Name: Current Date and Time Retrieval
## Purpose
Enables the assistant to retrieve the exact, real-time current date and time when addressing time-sensitive queries, scheduling tasks, calculating durations, or validating chronological context.
## Trigger Conditions
Activate this skill whenever the user's prompt:
* Explicitly asks for the current date, day, time, or year.
* References relative time expressions (e.g., "today", "yesterday", "next week", "recently").
* Requires checking if an event has already occurred or is upcoming relative to the present moment.
* Needs to calculate an age, duration, or countdown from the present day.
## Tool Definition
### `get_current_datetime`
* **Description**: Executes the system `date` command to fetch the current local timestamp, timezone, and calendar date.
* **Parameters**: None required.
## Execution Workflow
1. **Detect**: Recognize a time-sensitive trigger in the user's input.
2. **Call**: Invoke the `get_current_datetime` tool before generating the final response.
3. **Process**: Use the returned timestamp to anchor your temporal reasoning.
4. **Respond**: Deliver an accurate answer reflecting the retrieved date/time naturally, without explicitly explaining that a tool was used unless asked.
## Examples
### Example 1
* **User**: "What day of the week is it today?"
* **Assistant Action**: Invoke `get_current_datetime`.
* **Response**: "Today is [Day of Week], [Date]."
### Example 2
* **User**: "Is the 2026 World Cup happening this month?"
* **Assistant Action**: Invoke `get_current_datetime`.
* **Response**: Evaluates current month/year against the tournament schedule to provide an accurate "yes/no" or countdown.