headspace

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese

Headspace Skill

Headspace Skill

Overview

概述

Enables Claude to use Headspace for mindfulness tracking including viewing meditation history, tracking progress, and accessing the meditation content library.
让Claude能够使用Headspace进行正念追踪,包括查看冥想历史、追踪进度以及访问冥想内容库。

Quick Install

快速安装

bash
curl -sSL https://canifi.com/skills/headspace/install.sh | bash
Or manually:
bash
cp -r skills/headspace ~/.canifi/skills/
bash
curl -sSL https://canifi.com/skills/headspace/install.sh | bash
或手动安装:
bash
cp -r skills/headspace ~/.canifi/skills/

Setup

设置

Configure via canifi-env:
bash
undefined
通过canifi-env进行配置:
bash
undefined

First, ensure canifi-env is installed:

首先,确保已安装canifi-env:

canifi-env set HEADSPACE_EMAIL "your-email@example.com" canifi-env set HEADSPACE_PASSWORD "your-password"
undefined
canifi-env set HEADSPACE_EMAIL "your-email@example.com" canifi-env set HEADSPACE_PASSWORD "your-password"
undefined

Privacy & Authentication

隐私与认证

Your credentials, your choice. Canifi LifeOS respects your privacy.
您的凭证,由您做主。 Canifi LifeOS尊重您的隐私。

Option 1: Manual Browser Login (Recommended)

选项1:手动浏览器登录(推荐)

If you prefer not to share credentials with Claude Code:
  1. Complete the Browser Automation Setup using CDP mode
  2. Login to the service manually in the Playwright-controlled Chrome window
  3. Claude will use your authenticated session without ever seeing your password
如果您不想与Claude Code共享凭证:
  1. 使用CDP模式完成浏览器自动化设置
  2. 在Playwright控制的Chrome窗口中手动登录该服务
  3. Claude将使用您的已认证会话,全程不会获取您的密码

Option 2: Environment Variables

选项2:环境变量

If you're comfortable sharing credentials, you can store them locally:
bash
canifi-env set SERVICE_EMAIL "your-email"
canifi-env set SERVICE_PASSWORD "your-password"
Note: Credentials stored in canifi-env are only accessible locally on your machine and are never transmitted.
如果您愿意共享凭证,可以将其存储在本地:
bash
canifi-env set SERVICE_EMAIL "your-email"
canifi-env set SERVICE_PASSWORD "your-password"
注意:存储在canifi-env中的凭证仅能在您的本地机器上访问,绝不会被传输至外部。

Capabilities

功能

  • View meditation history
  • Check practice streaks
  • Access meditation library
  • View progress statistics
  • Check completed courses
  • Browse sleep content
  • 查看冥想历史
  • 查看练习连续天数
  • 访问冥想库
  • 查看进度统计数据
  • 查看已完成课程
  • 浏览睡眠相关内容

Usage Examples

使用示例

Example 1: Check Meditation Streak

示例1:查看冥想连续天数

User: "How's my meditation streak?"
Claude: I'll check your streak.
1. Opening Headspace via Playwright MCP
2. Accessing profile/stats
3. Viewing current streak
4. Reporting streak days
用户:"我的冥想连续天数是多少?"
Claude:我将为您查看连续天数。
1. 通过Playwright MCP打开Headspace
2. 访问个人资料/统计页面
3. 查看当前连续天数
4. 反馈连续天数

Example 2: View Practice History

示例2:查看练习历史

User: "What meditations have I done this week?"
Claude: I'll review your practice.
1. Navigating to history section
2. Filtering to this week
3. Listing completed sessions
4. Summarizing practice time
用户:"我这周做了哪些冥想?"
Claude:我将为您查看练习记录。
1. 导航至历史记录板块
2. 筛选本周内容
3. 列出已完成的会话
4. 总结练习时长

Example 3: Check Progress

示例3:查看进度

User: "How much total time have I meditated?"
Claude: I'll calculate your total.
1. Accessing statistics
2. Viewing total meditation time
3. Checking sessions count
4. Reporting progress summary
用户:"我总共冥想了多长时间?"
Claude:我将为您计算总时长。
1. 访问统计数据页面
2. 查看总冥想时长
3. 查看会话次数
4. 反馈进度总结

Authentication Flow

认证流程

  1. Navigate to headspace.com via Playwright MCP
  2. Click "Log in" and enter email
  3. Enter password
  4. Handle SSO if configured
  5. Complete 2FA if required (via iMessage)
  1. 通过Playwright MCP导航至headspace.com
  2. 点击“登录”并输入邮箱
  3. 输入密码
  4. 若配置了SSO则处理单点登录
  5. 若需要则完成双因素认证(通过iMessage)

Error Handling

错误处理

  • Login Failed: Retry up to 3 times, notify via iMessage
  • Session Expired: Re-authenticate automatically
  • Rate Limited: Implement exponential backoff
  • 2FA Required: Send iMessage notification
  • Content Unavailable: Check subscription status
  • Sync Error: Refresh and retry
  • 登录失败:最多重试3次,通过iMessage通知
  • 会话过期:自动重新认证
  • 速率限制:实现指数退避策略
  • 需要双因素认证:发送iMessage通知
  • 内容不可用:检查订阅状态
  • 同步错误:刷新并重试

Self-Improvement Instructions

自我更新说明

When Headspace updates:
  1. Document new content categories
  2. Update progress tracking features
  3. Track new meditation types
  4. Log interface changes
当Headspace更新时:
  1. 记录新的内容分类
  2. 更新进度追踪功能
  3. 追踪新的冥想类型
  4. 记录界面变更

Notes

注意事项

  • Subscription required for full access
  • Guided meditation library
  • Sleep sounds and stories
  • Courses for specific topics
  • Mindfulness exercises
  • 完整访问需要订阅
  • 引导式冥想库
  • 睡眠音效与故事
  • 特定主题课程
  • 正念练习