calm
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseCalm Skill
Calm Skill
Overview
概述
Enables Claude to use Calm for wellness tracking including viewing meditation history, sleep story usage, and accessing the mindfulness content library.
让Claude能够使用Calm进行健康追踪,包括查看冥想历史、睡眠故事使用情况以及访问正念内容库。
Quick Install
快速安装
bash
curl -sSL https://canifi.com/skills/calm/install.sh | bashOr manually:
bash
cp -r skills/calm ~/.canifi/skills/bash
curl -sSL https://canifi.com/skills/calm/install.sh | bash或者手动安装:
bash
cp -r skills/calm ~/.canifi/skills/Setup
设置
Configure via canifi-env:
bash
undefined通过canifi-env进行配置:
bash
undefinedFirst, ensure canifi-env is installed:
首先,确保已安装canifi-env:
curl -sSL https://canifi.com/install.sh | bash
curl -sSL https://canifi.com/install.sh | bash
canifi-env set CALM_EMAIL "your-email@example.com"
canifi-env set CALM_PASSWORD "your-password"
undefinedcanifi-env set CALM_EMAIL "your-email@example.com"
canifi-env set CALM_PASSWORD "your-password"
undefinedPrivacy & 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:
- Complete the Browser Automation Setup using CDP mode
- Login to the service manually in the Playwright-controlled Chrome window
- Claude will use your authenticated session without ever seeing your password
如果您不想与Claude Code共享凭据:
- 使用CDP模式完成浏览器自动化设置
- 在Playwright控制的Chrome窗口中手动登录该服务
- 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 session history
- Check practice streaks
- Access meditation library
- Browse sleep stories
- View progress stats
- Check completed programs
- 查看会话历史
- 查看练习连续天数记录
- 访问冥想库
- 浏览睡眠故事
- 查看进度统计
- 查看已完成的项目
Usage Examples
使用示例
Example 1: Check Session History
示例1:查看会话历史
User: "What Calm sessions have I done this month?"
Claude: I'll review your session history.
1. Opening Calm via Playwright MCP
2. Accessing session history
3. Filtering to this month
4. Listing completed sessions
5. Summarizing usage patterns用户:"我这个月完成了哪些Calm会话?"
Claude:我将查看您的会话历史。
1. 通过Playwright MCP打开Calm
2. 访问会话历史页面
3. 筛选本月的记录
4. 列出已完成的会话
5. 总结使用模式Example 2: View Streak
示例2:查看连续练习天数
User: "How's my Daily Calm streak?"
Claude: I'll check your streak.
1. Accessing profile section
2. Viewing streak status
3. Checking consecutive days
4. Reporting current streak用户:"我的每日Calm连续练习天数是多少?"
Claude:我将查看您的连续练习记录。
1. 访问个人资料板块
2. 查看连续练习状态
3. 确认连续天数
4. 报告当前连续练习天数Example 3: Check Sleep Content
示例3:查看睡眠内容
User: "What sleep stories are available?"
Claude: I'll browse sleep stories.
1. Navigating to sleep section
2. Viewing story library
3. Listing available stories
4. Noting narrators and themes用户:"有哪些可用的睡眠故事?"
Claude:我将浏览睡眠故事。
1. 导航至睡眠板块
2. 查看故事库
3. 列出可用故事
4. 记录讲述者和主题Authentication Flow
认证流程
- Navigate to calm.com via Playwright MCP
- Click "Log In" and enter email
- Enter password
- Handle Apple/Google SSO if configured
- Complete 2FA if required (via iMessage)
- 通过Playwright MCP导航至calm.com
- 点击"登录"并输入邮箱
- 输入密码
- 若已配置,处理Apple/Google单点登录
- 若需要,完成双因素认证(通过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 Locked: Check subscription status
- Playback Error: Retry or check connection
- 登录失败:最多重试3次,通过iMessage发送通知
- 会话过期:自动重新认证
- 请求受限:实现指数退避机制
- 需要双因素认证:发送iMessage通知
- 内容锁定:检查订阅状态
- 播放错误:重试或检查网络连接
Self-Improvement Instructions
自我更新说明
When Calm updates:
- Document new content additions
- Update navigation patterns
- Track new feature releases
- Log library organization changes
当Calm更新时:
- 记录新增内容
- 更新导航路径
- 追踪新功能发布
- 记录内容库组织方式的变化
Notes
注意事项
- Subscription for full library
- Daily Calm feature
- Sleep Stories popular feature
- Music and nature sounds
- Programs for specific goals
- 需订阅才能访问完整内容库
- 每日Calm功能
- 睡眠故事是热门功能
- 包含音乐与自然音效
- 针对特定目标的项目