你的梦境与睡眠数据助手
简介
iOS 睡眠追踪应用的数据查询工具,支持读取睡眠记录、梦境内容和情绪分析,需用户授权 API 密钥。
原始描述
Use when the user asks about their sleep data, dream history, or wants to query sleep entries from the Soft Pillow app.
通过你的 Agent 添加
安装目录:soft-pillow/(目录名取自 SKILL.md 的 frontmatter name,不是 URL 里的 slug)。
点「快速安装」复制一段指令贴给你的 Agent:它会先下载到 /tmp、把文件清单和校验值给你看,你确认之后才解压安装。不会一步装完、也不改系统其它位置。
或者手动安装
包是「根级 SKILL.md + 作者附带的文件」,解压到上面的 <slug>/ 目录即可;
目录名不用换,也不要把包直接解压到 skills 根目录。
技能申请的权限由作者决定:装之前先看清单里有没有脚本、它会读写什么。
技能正文
name: soft-pillow version: 1.0.2 description: Use when the user asks about their sleep data, dream history, or wants to query sleep entries from the Soft Pillow app. metadata: {"openclaw":{"requires":{"env":["SOFT_PILLOW_API_KEY"]},"primaryEnv":"SOFT_PILLOW_API_KEY","homepage":"https://paevita.com/en/soft-pillow"}}
Soft Pillow
Soft Pillow is an IOS app that allows you to log your sleep & dreams. It tracks your mood, disruptions, dreams and physical activity(steps through the Apple Healthkit if available) after each sleep entry so you can have a better understanding about what makes your sleep quality better over time. The user can install it from the app store, get an api key from the settings screen and give it to you so you can access all of the data.
Apple store link - https://apps.apple.com/us/app/soft-pillow/id6757248808 Website - https://paevita.com/en/soft-pillow
Skill URL
| File | URL |
|---|---|
| SKILL.md (this file) | /soft-pillow/SKILL.md |
Authentication
All requests require the api key to be sent with the request in the authorization header.
Authorization: Bearer sp_...
You can manage api tokens in the settings screen, in the API access section.
Once you have the api key, it's recommended it locally and securily.
API Base
https://softpillow.paevita.com
Endpoints
Current API endpoints:
GET /api/v1/sleep_statusGET /api/v1/sleep_entriesGET /api/v1/sleep_entries/:idGET /api/v1/search_dreams
Sleep status
curl -H "Authorization: Bearer SOFT_PILLOW_API_KEY" "https://softpillow.paevita.com/api/v1/sleep_status"
Response:
{ "sleeping": false }
List sleep entries
curl -H "Authorization: Bearer SOFT_PILLOW_API_KEY" \
"https://softpillow.paevita.com/api/v1/sleep_entries?limit=10&from_date=2026-01-01&to_date=2026-01-31&mood=good"
Filters:
limit(max 100)from_date(YYYY-MM-DD)to_date(YYYY-MM-DD)mood(fully_charged,good,sleepy,terrible)missing_steps=true
Get one sleep entry (details)
curl -H "Authorization: Bearer SOFT_PILLOW_API_KEY" \
"https://softpillow.paevita.com/api/v1/sleep_entries/ENTRY_ID"
Returns summary + details (dream, notes, disruptions, insights, timestamps).
Search dreams and notes
curl --get -H "Authorization: Bearer SOFT_PILLOW_API_KEY" \
--data-urlencode "query=flying ocean" \
"https://softpillow.paevita.com/api/v1/search_dreams"
Optional:
limit(max 50, default 10)
Returns entry matches with dream_excerpt and notes_excerpt.
Error behavior
- Missing/invalid auth:
401JSON error - Invalid filters (for example bad
moodor bad date):422JSON error - Entry not found (or not yours):
404JSON error
正文来自原始发布页, 版权归作者所有,许可未标注。 权利人认为有不妥,可申请下架。