apple-fitness

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese

Apple Fitness+ Skill

Apple Fitness+ Skill

Overview

概述

Enables Claude to access Apple Fitness+ content information and workout tracking through the web interface, including viewing available workouts and checking subscription status.
让Claude能够通过网页界面访问Apple Fitness+的内容信息和训练追踪功能,包括查看可用训练项目和订阅状态。

Quick Install

快速安装

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

Setup

配置设置

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

First, ensure canifi-env is installed:

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

canifi-env set APPLE_EMAIL "your-email@example.com" canifi-env set APPLE_PASSWORD "your-password"
undefined
canifi-env set APPLE_EMAIL "your-email@example.com" canifi-env set APPLE_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

功能特性

  • Browse workout library
  • View workout categories
  • Check new workout releases
  • Access trainer information
  • View subscription status
  • Browse collections
  • 浏览训练项目库
  • 查看训练分类
  • 查看新上线训练项目
  • 获取教练信息
  • 查看订阅状态
  • 浏览训练合集

Usage Examples

使用示例

Example 1: Browse Workouts

示例1:浏览训练项目

User: "What new workouts are available on Apple Fitness+?"
Claude: I'll check new workouts.
1. Opening Apple Fitness+ via Playwright MCP
2. Navigating to workout library
3. Viewing recent additions
4. Listing new workout types
5. Summarizing available content
用户:“Apple Fitness+上有哪些新的训练项目?”
Claude:我将查询新的训练项目。
1. 通过Playwright MCP打开Apple Fitness+
2. 导航至训练项目库
3. 查看最近新增内容
4. 列出新训练类型
5. 总结可用内容

Example 2: Find Workout Type

示例2:查找特定训练类型

User: "Find HIIT workouts on Apple Fitness+"
Claude: I'll search for HIIT.
1. Browsing workout categories
2. Filtering to HIIT
3. Listing available sessions
4. Noting duration options
用户:“在Apple Fitness+上找到HIIT训练项目”
Claude:我将搜索HIIT训练。
1. 浏览训练分类
2. 筛选出HIIT训练
3. 列出可用课程
4. 标注时长选项

Example 3: Check Trainers

示例3:查询教练信息

User: "Who are the Apple Fitness+ trainers?"
Claude: I'll list the trainers.
1. Accessing trainer section
2. Listing available trainers
3. Showing their specialties
4. Providing trainer info
用户:“Apple Fitness+的教练有哪些?”
Claude:我将列出教练名单。
1. 访问教练板块
2. 列出所有可用教练
3. 展示他们的专业领域
4. 提供教练详细信息

Authentication Flow

认证流程

  1. Navigate to fitness.apple.com via Playwright MCP
  2. Sign in with Apple ID
  3. Enter password
  4. Handle 2FA if required (via iMessage)
  5. Maintain session for content access
  1. 通过Playwright MCP导航至fitness.apple.com
  2. 使用Apple ID登录
  3. 输入密码
  4. 如需2FA则处理(通过iMessage)
  5. 维持会话以访问内容

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
  • Region Restricted: Note geographic limits
  • 登录失败:最多重试3次,通过iMessage通知
  • 会话过期:自动重新认证
  • 速率限制:实现指数退避机制
  • 需要2FA:发送iMessage通知
  • 内容不可用:检查订阅状态
  • 区域限制:标注地理限制

Self-Improvement Instructions

自我更新说明

When Apple Fitness+ updates:
  1. Document new workout types
  2. Update trainer roster
  3. Track feature additions
  4. Log content organization changes
当Apple Fitness+更新时:
  1. 记录新训练类型
  2. 更新教练名单
  3. 追踪新增功能
  4. 记录内容组织变化

Notes

注意事项

  • Requires Apple Fitness+ subscription
  • Best with Apple Watch
  • Limited web functionality
  • Most features on Apple devices
  • New workouts added weekly
  • 需要Apple Fitness+订阅
  • 搭配Apple Watch使用效果最佳
  • 网页功能有限
  • 多数功能仅支持Apple设备
  • 每周新增训练项目