ruhrpotter

Oura Ring Integration

生活服務v1.0.2
作者:ruhrpotter更新於 2026-05-11共 3 個版本 · 最新版本釋出於 2026-01-08oura@clawhub_ruhrpotter/oura
健康管理#Repository

據 AlphaMoat 統計,截至 2026-09,Oura Ring Integration 累計下載 3,878 次、獲 4 個星標,在全部 5,078 個 AI 技能中排名第 2,680 位,在「生活服務」分類(246 個)中排名第 105 位。

累計安裝
243
累計下載
3878
星標
4
全站排名
#2,680
全站前 53% · 「生活服務」前 43%
平台累計安裝累計下載星標評論
ClawHub ↗11936244-
SkillHub ↗24338784—

各平台的計數口徑不同,統計時間不一致。

這個技能是做什麼的

從 ruhrpotter/oura-cli 倉庫構建 CLI,經 OAuth 認證(令牌儲存在 ~/.config/oura-cli/config.json),然後以 ./oura get <category> 加 --start/--end 日期區間查詢。類別包括 sleep、activity、readiness、heartrate、workout、spo2、sleep-details、stress、resilience、cv-age、vo2-max、ring-config 等;多數時間序列資料必須提供 --start <YYYY-MM-DD>,--end 可選。CLI 必須已認證,認證報錯時提示使用者執行 ./oura auth login;相對日期(今天、昨天、上週)須解析為絕對 YYYY-MM-DD 格式,輸出為 JSON。

資料釋出於 2026-10-27

可以用來做什麼

  • 回答使用者關於睡眠評分、準備度或活動量的問題
  • 查詢某日期區間的心率時間序列或訓練記錄
  • 讀取個人資料與戒指硬體配置資訊

什麼時候用

  • 使用者詢問 Oura Ring 的睡眠、準備度、心率等健康資料
  • 需要呼叫 Oura API (V2) 的生物特徵資料回答健康類問題

示例提示詞

以下是根據技能文件生成的示例,不代表實際執行結果。

我昨晚睡得怎麼樣?
我今天的準備度得分是多少?
展示 2024 年 1 月第一週的心率資料

月度資料趨勢

累計下載3878
2580327739742026-03 · 累計下載 26762026-05 · 累計下載 30472026-06 · 累計下載 31942026-07 · 累計下載 34862026-08 · 累計下載 36002026-09 · 累計下載 387826-0326-09
星標4
3452026-03 · 星標 42026-05 · 星標 42026-06 · 星標 42026-07 · 星標 42026-08 · 星標 42026-09 · 星標 426-0326-09

2026-09 起統計方法調整:同名技能按作者分別統計,並覆蓋全部技能。圖中虛線為調整前的月份,與之後的資料不直接比較,也不計算跨越調整的增長。

月份累計下載環比星標
2026-093878—4
2026-083600+3.3%4
2026-073486+9.1%4
2026-063194+4.8%4
2026-053047—4
2026-032676—4

SKILL.md 原文

以下是作者釋出的原始檔案,按純文字顯示,本站未做修改或稽核;其中的連結不可點選,命令請核實後再執行。抓取於 2026-10-23。

3.6 KB · ClawHub v1.0.2
# Oura Ring CLI Skill

## Description
This tool allows retrieving health and biometric data from the Oura Ring API (V2) via a command-line interface. Use this to answer questions about the user's sleep, activity, readiness, and physiological stats.

Repository: [https://github.com/ruhrpotter/oura-cli](https://github.com/ruhrpotter/oura-cli)

## Installation

### 1. Build the CLI
展開全部(共 99 行)
```bash
cd ~
git clone https://github.com/ruhrpotter/oura-cli.git
cd oura-cli
go build -o oura ./cmd/oura
```

### 2. Create Oura OAuth App
1. Go to [Oura Developer Portal](https://cloud.ouraring.com/oauth/developer)
2. Create a new application
3. Set Redirect URI to: `http://localhost:8080/callback`
4. Note down your **Client ID** and **Client Secret**

### 3. Authenticate
```bash
export OURA_CLIENT_ID="your_client_id"
export OURA_CLIENT_SECRET="your_client_secret"
./oura auth login
```

A browser will open for OAuth authorization. Tokens are stored in `~/.config/oura-cli/config.json`.

## Prerequisite
The CLI must be authenticated. If a command fails with an auth error, notify the user to run `./oura auth login`.

## Syntax
`./oura get <category> [flags]`

## Categories
- `personal`: User profile (age, weight, height, email).
- `sleep`: Daily sleep scores and efficiency.
- `activity`: Daily activity scores, steps, and movement.
- `readiness`: Daily readiness scores indicating recovery.
- `heartrate`: Time-series heart rate data.
- `workout`: Detailed workout sessions.
- `spo2`: Blood oxygen saturation levels.
- `sleep-details`: Detailed sleep sessions including hypnograms.
- `sessions`: Activity sessions (e.g. naps, rest).
- `sleep-times`: Optimal bedtime guidance.
- `stress`: Daily stress levels.
- `resilience`: Daily resilience scores and recovery.
- `cv-age`: Cardiovascular age estimates.
- `vo2-max`: VO2 Max measurements.
- `ring-config`: Ring hardware configuration (color, size, etc.).
- `rest-mode`: Rest mode periods.
- `tags`: Enhanced tags (notes, lifestyle choices).

## Arguments
- `--start <YYYY-MM-DD>`: REQUIRED for most time-series data. The start date of the range.
- `--end <YYYY-MM-DD>`: OPTIONAL. The end date of the range. If omitted, it may default to the start date or return a single day depending on context.

## Agent Instructions
1.  **Date Resolution**: You **MUST** resolve all relative date terms (e.g., "today", "yesterday", "last week", "this month") into absolute `YYYY-MM-DD` string format based on the current operational date.
2.  **Date ranges**:
    - For "today": Set `--start` to today's date.
    - For "yesterday": Set `--start` to yesterday's date.
    - For "last 7 days": Set `--start` to 7 days ago and `--end` to today.
3.  **Path**: Assume the binary is `./oura` in the current working directory unless the user specifies otherwise.
4.  **Output**: The CLI returns JSON. Parse the JSON `data` array to formulate a natural language response.

## Examples

**User Request**: "How was my sleep last night?"
**Context**: Today is 2024-03-15. "Last night" usually implies the sleep session ending on the morning of today, or the previous day's data depending on how Oura dates it (Oura dates sleep by the morning it ends).
**Reasoning**: Sleep for the night of the 14th to 15th is logged as `2024-03-15`.
**Command**:
```bash
./oura get sleep --start 2024-03-15
```

**User Request**: "What is my readiness score today?"
**Context**: Today is 2024-03-15.
**Command**:
```bash
./oura get readiness --start 2024-03-15
```

**User Request**: "Show my heart rate for the first week of January 2024."
**Command**:
```bash
./oura get heartrate --start 2024-01-01 --end 2024-01-07
```

**User Request**: "Who am I?"
**Command**:
```bash
./oura get personal
```

「生活服務」分類下的熱門技能

資料月份:2026-09 · 下載/星標/安裝數聚合自公開技能註冊庫(ClawHub、SkillHub),按月更新。口徑說明見資料方法。