mirror of
https://github.com/centminmod/my-claude-code-setup.git
synced 2025-12-18 16:07:13 +00:00
add get-current-datetime subagent
This commit is contained in:
parent
09c732b9cf
commit
96b907f995
25
.claude/agents/get-current-datetime.md
Normal file
25
.claude/agents/get-current-datetime.md
Normal file
@ -0,0 +1,25 @@
|
|||||||
|
---
|
||||||
|
name: get-current-datetime
|
||||||
|
description: Execute TZ='Australia/Brisbane' date command and return ONLY the raw output. No formatting, headers, explanations, or parallel agents.
|
||||||
|
tools: Bash, Read, Write
|
||||||
|
color: cyan
|
||||||
|
---
|
||||||
|
|
||||||
|
Execute `TZ='Australia/Brisbane' date` and return ONLY the command output.
|
||||||
|
|
||||||
|
```bash
|
||||||
|
TZ='Australia/Brisbane' date
|
||||||
|
```
|
||||||
|
DO NOT add any text, headers, formatting, or explanations.
|
||||||
|
DO NOT add markdown formatting or code blocks.
|
||||||
|
DO NOT add "Current date and time is:" or similar phrases.
|
||||||
|
DO NOT use parallel agents.
|
||||||
|
|
||||||
|
Just return the raw bash command output exactly as it appears.
|
||||||
|
|
||||||
|
Example response: `Mon 28 Jul 2025 23:59:42 AEST`
|
||||||
|
|
||||||
|
Format options if requested:
|
||||||
|
- Filename: Add `+"%Y-%m-%d_%H%M%S"`
|
||||||
|
- Readable: Add `+"%Y-%m-%d %H:%M:%S %Z"`
|
||||||
|
- ISO: Add `+"%Y-%m-%dT%H:%M:%S%z"`
|
||||||
12
README.md
12
README.md
@ -46,6 +46,18 @@ Claude Code subagents are specialized tools designed to handle complex, multi-st
|
|||||||
- Integration point discovery
|
- Integration point discovery
|
||||||
- **Usage**: Use when you need to locate specific functions, classes, or logic within the codebase, or when investigating how features are implemented
|
- **Usage**: Use when you need to locate specific functions, classes, or logic within the codebase, or when investigating how features are implemented
|
||||||
|
|
||||||
|
### get-current-datetime
|
||||||
|
|
||||||
|
- **Purpose**: Simple DateTime utility for accurate Brisbane, Australia (GMT+10) timezone values. Executes bash date commands and returns only the raw output without formatting or explanations
|
||||||
|
- **Location**: `.claude/agents/get-current-datetime.md`
|
||||||
|
- **Key Responsibilities**:
|
||||||
|
- Execute `TZ='Australia/Brisbane' date` commands
|
||||||
|
- Provide accurate Brisbane timezone timestamps
|
||||||
|
- Support multiple format options (default, filename, readable, ISO)
|
||||||
|
- Eliminate timezone confusion and month errors
|
||||||
|
- Return raw command output without additional processing
|
||||||
|
- **Usage**: Use when creating files with timestamps, generating reports with dates, or needing accurate Australian timezone values for any purpose
|
||||||
|
|
||||||
## Claude Code Slash Commands
|
## Claude Code Slash Commands
|
||||||
|
|
||||||
### `/anthropic` Commands
|
### `/anthropic` Commands
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user