lose-it
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseLose It! Skill
Lose It! Skill
Overview
概述
Enables Claude to use Lose It! for calorie and weight tracking including viewing food logs, monitoring weight trends, and checking nutrition goals.
让Claude能够使用Lose It!进行卡路里和体重追踪,包括查看饮食记录、监控体重趋势以及检查营养目标。
Quick Install
快速安装
bash
curl -sSL https://canifi.com/skills/lose-it/install.sh | bashOr manually:
bash
cp -r skills/lose-it ~/.canifi/skills/bash
curl -sSL https://canifi.com/skills/lose-it/install.sh | bash或手动安装:
bash
cp -r skills/lose-it ~/.canifi/skills/Setup
设置
Configure via canifi-env:
bash
undefined通过canifi-env进行配置:
bash
undefinedFirst, ensure canifi-env is installed:
First, ensure canifi-env is installed:
curl -sSL https://canifi.com/install.sh | bash
curl -sSL https://canifi.com/install.sh | bash
canifi-env set LOSEIT_EMAIL "your-email@example.com"
canifi-env set LOSEIT_PASSWORD "your-password"
undefinedcanifi-env set LOSEIT_EMAIL "your-email@example.com"
canifi-env set LOSEIT_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 food diary
- Check calorie budget
- Track weight progress
- View nutrition breakdown
- Access meal history
- Check exercise logging
- 查看饮食日记
- 查看卡路里预算
- 追踪体重进展
- 查看营养成分明细
- 访问用餐历史
- 查看运动记录
Usage Examples
使用示例
Example 1: Check Calorie Budget
示例1:查看卡路里预算
User: "How many calories do I have left today?"
Claude: I'll check your budget.
1. Opening Lose It! via Playwright MCP
2. Accessing today's diary
3. Viewing calorie total
4. Calculating remaining
5. Reporting budget status用户: "我今天还剩多少卡路里?"
Claude: 我来查看你的预算情况。
1. 通过Playwright MCP打开Lose It!
2. 访问今日饮食记录
3. 查看卡路里总计
4. 计算剩余额度
5. 报告预算状态Example 2: View Weight Trend
示例2:查看体重趋势
User: "How's my weight trending this month?"
Claude: I'll analyze your weight trend.
1. Accessing weight section
2. Viewing monthly data
3. Calculating trend
4. Comparing to goal用户: "我这个月的体重趋势如何?"
Claude: 我来分析你的体重趋势。
1. 访问体重板块
2. 查看月度数据
3. 计算趋势变化
4. 与目标进行对比Example 3: Check Meal Breakdown
示例3:查看用餐明细
User: "What did I eat for lunch this week?"
Claude: I'll review your lunches.
1. Accessing food diary
2. Filtering to lunch meals
3. Listing this week's entries
4. Summarizing patterns用户: "我这周午餐吃了什么?"
Claude: 我来查看你的午餐记录。
1. 访问饮食日记
2. 筛选午餐记录
3. 列出本周的条目
4. 总结饮食模式Authentication Flow
认证流程
- Navigate to loseit.com via Playwright MCP
- Click "Log In" and enter email
- Enter password
- Handle 2FA if required (via iMessage)
- Maintain session for diary access
- 通过Playwright MCP导航至loseit.com
- 点击“登录”并输入邮箱
- 输入密码
- 如需双因素认证则进行处理(通过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
- Data Unavailable: Check for logged entries
- Sync Error: Refresh and retry
- 登录失败:最多重试3次,通过iMessage发送通知
- 会话过期:自动重新认证
- 速率限制:实现指数退避机制
- 需要双因素认证:发送iMessage通知
- 数据不可用:检查是否有已记录的条目
- 同步错误:刷新并重试
Self-Improvement Instructions
自我更新说明
When Lose It! updates:
- Document new tracking features
- Update food database changes
- Track premium feature updates
- Log interface modifications
当Lose It!更新时:
- 记录新增的追踪功能
- 更新食物数据库的变更
- 追踪高级功能的更新
- 记录界面修改
Notes
注意事项
- Calorie-focused approach
- Large food database
- Barcode scanning on mobile
- Premium for detailed nutrients
- Device integrations available
- 以卡路里为核心的追踪方式
- 庞大的食物数据库
- 移动端支持条形码扫描
- 高级版可查看详细营养成分
- 支持设备集成