Instructions
Update the Dashboard.md file in the Obsidian vault with current system status.
Steps
- •
Identify the vault path:
- •Check environment variable
VAULT_PATHor use default~/AI_Employee_Vault - •Verify the vault exists
- •Check environment variable
- •
Count pending items:
- •List all
.mdfiles in/Needs_Action/folder (including/Needs_Action/Email/) - •Report the total count
- •List all
- •
Read recent activity:
- •Read the most recent entries from
/Logs/claude_*.log(today's date) - •Parse JSON lines format
- •Extract last 10 entries
- •Read the most recent entries from
- •
Check watcher status:
- •Check if
/Logs/watcher_*.logexists for today - •If modified within last 2 minutes, watcher is "running"
- •Otherwise, watcher is "stopped"
- •Check if
- •
Check for warnings:
- •Count errors in the last hour from activity log
- •If more than 5 errors, add warning to dashboard
- •
Generate Dashboard.md:
- •Use the following template:
markdown
# AI Employee Dashboard **Last Updated**: [TIMESTAMP] ## Status - **Watcher**: [running/stopped/unknown] - **Pending Items**: [COUNT] - **Processed Today**: [COUNT] ## Recent Activity | Time | Action | Item | Result | |------|--------|------|--------| | [TIME] | [ACTION] | [ITEM] | [RESULT] | ## Warnings [LIST OF WARNINGS OR "None"] --- *Auto-generated by AI Employee*
- •Write the file:
- •Write to
[VAULT_PATH]/Dashboard.md - •Report success
- •Write to
Arguments
$ARGUMENTS - Optional vault path override (e.g., /path/to/vault)
Error Handling
- •If vault doesn't exist, report error and suggest running vault init
- •If logs don't exist, use default values (0 counts, empty activity)
- •Always complete the update even if some data is missing