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
累计下载
3,878
星标
4
全站排名
#2,680
全站前 53% · 「生活服务」前 43%
平台累计安装累计下载星标评论
ClawHub ↗1193,6244-
SkillHub ↗2433,8784—

各平台的计数口径不同,统计时间不一致。

这个技能是做什么的

从 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 月第一周的心率数据

月度数据趋势

累计下载3,878
2,5803,2773,9742026-03 · 累计下载 2,6762026-05 · 累计下载 3,0472026-06 · 累计下载 3,1942026-07 · 累计下载 3,4862026-08 · 累计下载 3,6002026-09 · 累计下载 3,87826-0326-09
星标4
3452026-03 · 星标 42026-05 · 星标 42026-06 · 星标 42026-07 · 星标 42026-08 · 星标 42026-09 · 星标 426-0326-09

2026-09 起统计方法调整:同名技能按作者分别统计,并覆盖全部技能。图中虚线为调整前的月份,与之后的数据不直接比较,也不计算跨越调整的增长。

月份累计下载环比星标
2026-093,878—4
2026-083,600+3.3%4
2026-073,486+9.1%4
2026-063,194+4.8%4
2026-053,047—4
2026-032,676—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),按月更新。口径说明见数据方法。