xbox

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese

Xbox Skill

Xbox Skill

Overview

概述

Enables Claude to interact with Xbox for viewing game library, tracking achievements, managing Game Pass subscription, and connecting with Xbox Live friends.
让Claude能够与Xbox交互,查看游戏库、追踪成就、管理Game Pass订阅,以及连接Xbox Live好友。

Quick Install

快速安装

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

Setup

设置

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

First, ensure canifi-env is installed:

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

canifi-env set XBOX_EMAIL "your-email@example.com"
undefined
canifi-env set XBOX_EMAIL "your-email@example.com"
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 game library and purchases
  • Track achievements and Gamerscore
  • Browse Game Pass catalog
  • Manage friends and clubs
  • Access Xbox Store deals
  • 查看游戏库与购买记录
  • 追踪成就与Gamerscore
  • 浏览Game Pass目录
  • 管理好友与俱乐部
  • 获取Xbox Store优惠信息

Usage Examples

使用示例

Example 1: Achievement Progress

示例1:成就进度

User: "What achievements am I missing in Halo Infinite?"
Claude: I'll check your Halo Infinite achievements and show remaining ones.
用户:“我在《光环:无限》中还缺少哪些成就?”
Claude:我将查看你在《光环:无限》中的成就,并展示未完成的内容。

Example 2: Game Pass Browse

示例2:浏览Game Pass

User: "What new games are on Game Pass?"
Claude: I'll check the latest additions to Xbox Game Pass.
用户:“Game Pass上有什么新游戏?”
Claude:我将查看Xbox Game Pass的最新新增内容。

Example 3: Gamerscore

示例3:Gamerscore

User: "What's my total Gamerscore?"
Claude: I'll check your Xbox profile for your current Gamerscore total.
用户:“我的总Gamerscore是多少?”
Claude:我将查看你的Xbox个人资料,获取当前的总Gamerscore。

Authentication Flow

认证流程

  1. Navigate to xbox.com via Playwright MCP
  2. Click "Sign In" button
  3. Enter Microsoft account credentials
  4. Handle 2FA if enabled
  5. Maintain session for subsequent requests
  1. 通过Playwright MCP导航至xbox.com
  2. 点击“登录”按钮
  3. 输入Microsoft账户凭据
  4. 若启用了两步验证则进行处理
  5. 维持会话以用于后续请求

Error Handling

错误处理

  • Login Failed: Retry authentication up to 3 times, then notify via iMessage
  • Session Expired: Re-authenticate with Microsoft
  • 2FA Required: Wait for code via authenticator or email
  • Rate Limited: Implement exponential backoff
  • Game Pass: Verify subscription status
  • 登录失败:最多重试3次认证,随后通过iMessage通知
  • 会话过期:重新通过Microsoft认证
  • 需要两步验证:等待通过验证器或邮箱发送的验证码
  • 速率限制:实现指数退避机制
  • Game Pass:验证订阅状态

Self-Improvement Instructions

自我改进说明

When encountering new UI patterns:
  1. Document Xbox interface changes
  2. Update selectors for new layouts
  3. Track Game Pass catalog changes
  4. Monitor achievement system updates
遇到新的UI模式时:
  1. 记录Xbox界面的变化
  2. 更新针对新布局的选择器
  3. 追踪Game Pass目录的变化
  4. 监控成就系统的更新

Notes

注意事项

  • Uses Microsoft account for login
  • Game Pass includes PC and cloud gaming
  • Smart Delivery provides cross-gen versions
  • Play Anywhere enables PC and Xbox play
  • 使用Microsoft账户登录
  • Game Pass包含PC和云游戏
  • Smart Delivery提供跨世代版本
  • Play Anywhere支持PC和Xbox跨平台游玩