Oura

From vargasjr-dev/mycadet-temp · View interactive version

Oura is an AI agent skill from the GitHub repository vargasjr-dev/mycadet-temp. Pull sleep, activity, readiness, heart rate, and other health data from a connected Oura Ring via the Oura Cloud API V2

How to use this skill

Skill file

Oura Ring — Data Access

Pull sleep, activity, readiness, heart rate, and other health data from a connected Oura Ring via the Oura Cloud API V2.

For initial setup (OAuth, app registration, token exchange), see the oura-setup skill.

Prerequisites

Making Requests

All requests go through the credential proxy — no need to manually attach tokens.

curl -s "https://api.ouraring.com/v2/usercollection/{endpoint}?start_date=YYYY-MM-DD&end_date=YYYY-MM-DD"

Run via bash with:

Endpoints

| Endpoint | What It Returns | Best For |

| -------------------- | ------------------------------------------------------------------------ | ---------------------- |

| personal_info | Age, weight, height, email | Connection test |

| daily_sleep | Sleep score, duration, efficiency, stages | Morning check-in |

| sleep | Detailed sleep periods — HR, HRV, movement, timestamps | Deep sleep analysis |

| daily_readiness | Readiness score, HRV balance, recovery index | Morning readiness |

| daily_activity | Steps, calories, movement, MET data, activity score | Daily activity summary |

| heartrate | Continuous HR readings (uses start_datetime/end_datetime ISO format) | Workout HR, resting HR |

| workout | Detected workouts — HR, calories, duration, type | Exercise tracking |

| daily_spo2 | Blood oxygen (SpO2) nightly average | Breathing/oxygen |

| daily_stress | Stress score, recovery periods | Stress monitoring |

| ring_configuration | Ring model, firmware, color, design | Ring info |

Query Parameters

Common Patterns

Morning health check

Pull sleep + readiness + activity for today:

DATE=$(date +%Y-%m-%d)
curl -s "https://api.ouraring.com/v2/usercollection/daily_sleep?start_date=$DATE&end_date=$DATE"
curl -s "https://api.ouraring.com/v2/usercollection/daily_readiness?start_date=$DATE&end_date=$DATE"

Workout details with HR

YESTERDAY=$(date -v-1d +%Y-%m-%d)
TODAY=$(date +%Y-%m-%d)
curl -s "https://api.ouraring.com/v2/usercollection/workout?start_date=$YESTERDAY&end_date=$TODAY"

Heart rate during a specific window

# Adjust the datetime range as needed (ISO 8601 with timezone offset)
curl -s "https://api.ouraring.com/v2/usercollection/heartrate?start_datetime=YYYY-MM-DDT23:00:00-05:00&end_datetime=YYYY-MM-DDT01:00:00-05:00"

Notes

Token Refresh

When the access token expires, use the refresh token via the oura-setup skill:

curl -s -X POST "https://api.ouraring.com/oauth/token" \
  -d "grant_type=refresh_token&refresh_token=REFRESH_TOKEN&client_id=CLIENT_ID&client_secret=CLIENT_SECRET"

Store the new access_token and refresh_token. See oura-setup for full details.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.