Refactor high-complexity React components in Dify frontend. Use when `pnpm analyze-component...
npx skills add greenclawdbot/goc-health-tracker
Or install specific skill: npx add-skill https://github.com/greenclawdbot/goc-health-tracker
# Description
Log and query health metrics (pee, poop, water, exercise, sleep, energy) with timestamps. Use when: /log pee, /log poop, /log water 24, /log exercise 30, /query health today, and daily check-in cron jobs. Commands: /log <metric> [value], /query health [today|week], and cron management commands.
# SKILL.md
name: health-tracker
description: Log and query health metrics (pee, poop, water, exercise, sleep, energy) with timestamps. Use when: /log pee, /log poop, /log water 24, /log exercise 30, /query health today, and daily check-in cron jobs. Commands: /log
Health Tracker Skill
Quick Start
See SHORTCUTS.md for natural language shortcut mappings (e.g., "P", "W 24", "Gym 30").
Commands
Log Health Metrics
| Command | Example | Description |
|---|---|---|
/log pee |
/log pee |
Log pee event with timestamp |
/log poop |
/log poop |
Log poop event with timestamp |
/log water <oz> |
/log water 24 |
Log water in ounces |
/log exercise <min> |
/log exercise 30 |
Log exercise in minutes |
/log sleep <hours> |
/log sleep 7.5 |
Log sleep in hours |
/log energy <1-10> |
/log energy 7 |
Log energy level (1-10) |
/log food <item> |
/log food "coffee" |
Log food item |
/log location <place> |
/log location work |
Log location change |
/log wake |
/log wake |
Log wake time |
Query Health Data
| Command | Example | Description |
|---|---|---|
/query health today |
/query health today |
Show today's summary |
/query health week |
/query health week |
Show weekly stats |
Cron Management
| Command | Example | Description |
|---|---|---|
/health-tracker install-crons |
/health-tracker install-crons |
Set up all 16 health check crons |
/health-tracker verify-crons |
/health-tracker verify-crons |
List configured crons and next run times |
/health-tracker remove-crons |
/health-tracker remove-crons |
Delete all health check crons |
Data File
Health data is stored in ~/clawd/health-tracker.json:
{
"metrics": {
"pee": { "entries": [{"timestamp": "ISO-DATE"}] },
"poop": { "entries": [{"timestamp": "ISO-DATE"}] },
"water": { "entries": [{"timestamp": "ISO-DATE", "value": 24}] },
"exercise": { "entries": [{"timestamp": "ISO-DATE", "value": 30}] },
"sleep": { "entries": [{"timestamp": "ISO-DATE", "value": 7.5}] },
"energy": { "entries": [{"timestamp": "ISO-DATE", "value": 7}] },
"wake": { "entries": [{"timestamp": "ISO-DATE"}] }
},
"events": {
"food": { "entries": [{"timestamp": "...", "item": "..."}] },
"location": { "entries": [{"timestamp": "...", "location": "..."}] }
},
"goals": { "water": 64, "pee": 6, "poop": 1, "sleep": 7.5, "exercise": 30 }
}
Scripts (JavaScript/Node.js)
scripts/log.cjs- Log health events (pee, poop, water, etc.)scripts/query.cjs- Query health data (today, week, all)scripts/init_db.cjs- Initialize health-tracker.json if missingscripts/charts/chart.cjs- Generate charts (pee, water, all)scripts/setup_crons.cjs- Set up all health check crons
Chart Commands
| Command | Description |
|---|---|
node scripts/charts/chart.cjs pee |
Bar chart of pee events over 14 days |
node scripts/charts/chart.cjs water |
Bar chart of water intake with goal line |
node scripts/charts/chart.cjs all |
Radar chart: Today vs Goals |
Charts are saved to ~/clawd/health-chart.png and can be sent to Discord.
Cron Schedule
| Time | Check |
|---|---|
| 7:00 AM | 🌅 Morning Check-in |
| 7:30 AM | 🔍 Morning Analysis |
| 9:00 AM | ☀️ Midday Check |
| 9:30 AM | 🔍 Midday Analysis |
| 11:00 AM | 💧 Hydration Check |
| 11:30 AM | 🔍 Late Morning Analysis |
| 1:00 PM | 🌞 Afternoon Check |
| 1:30 PM | 🔍 Afternoon Analysis |
| 3:00 PM | 🏋️ Activity Check |
| 3:30 PM | 🔍 Mid-Afternoon Analysis |
| 5:00 PM | 🌅 Evening Check |
| 5:30 PM | 🔍 Evening Analysis |
| 7:00 PM | 🌙 Dinner Check |
| 7:30 PM | 🔍 Night Analysis |
| 9:00 PM | 😴 Sleep Prep |
| 9:30 PM | 🔍 Pre-Sleep Analysis |
Requirements
- Node.js 18+
- Clawdbot Gateway running
- Discord server with Clawdbot
License
MIT
# README.md
Health Tracker Skill
Log and query daily health metrics with timestamps.
Quick Start
# Log health events
node ~/clawd/skills/goc-health-tracker/scripts/log.cjs pee
node ~/clawd/skills/goc-health-tracker/scripts/log.cjs water 24
node ~/clawd/skills/goc-health-tracker/scripts/log.cjs exercise 30
node ~/clawd/skills/goc-health-tracker/scripts/log.cjs sleep 7.5
node ~/clawd/skills/goc-health-tracker/scripts/log.cjs energy 7
node ~/clawd/skills/goc-health-tracker/scripts/log.cjs wake
# Query data
node ~/clawd/skills/goc-health-tracker/scripts/query.cjs today
node ~/clawd/skills/goc-health-tracker/scripts/query.cjs week
# Generate charts
node ~/clawd/skills/goc-health-tracker/scripts/charts/chart.cjs water
Metrics
| Metric | Unit | Example |
|---|---|---|
| pee | count | /log pee |
| poop | count | /log poop |
| water | oz | /log water 24 |
| exercise | minutes | /log exercise 30 |
| sleep | hours | /log sleep 7.5 |
| wake | timestamp | /log wake |
| energy | 1-10 | /log energy 7 |
Data Location
All data stored in ~/clawd/health-tracker.json
Discord Commands
/log <metric> [value]- Log health event/query health today- Today's summary/query health week- Weekly stats/chart <metric>- Generate chart image
Requirements
- Node.js 18+
- Discord server with Clawdbot
License
MIT
# Supported AI Coding Agents
This skill is compatible with the SKILL.md standard and works with all major AI coding agents:
Learn more about the SKILL.md standard and how to use these skills with your preferred AI coding agent.