sentry
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseSentry Skill
Sentry Skill
Overview
概述
Enables Claude to access Sentry to view and triage application errors, monitor performance issues, check release health, and analyze error trends across projects.
让Claude能够访问Sentry,查看并分类处理应用程序错误、监控性能问题、检查发布健康状况,以及跨项目分析错误趋势。
Quick Install
快速安装
bash
curl -sSL https://canifi.com/skills/sentry/install.sh | bashOr manually:
bash
cp -r skills/sentry ~/.canifi/skills/bash
curl -sSL https://canifi.com/skills/sentry/install.sh | bash或者手动安装:
bash
cp -r skills/sentry ~/.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 SENTRY_EMAIL "your-email@example.com"
undefinedcanifi-env set SENTRY_EMAIL "your-email@example.com"
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 error issues and trends
- Check performance metrics
- Monitor release health
- View user impact analysis
- Check alert status
- Analyze stack traces
- 查看错误问题与趋势
- 检查性能指标
- 监控发布健康状况
- 查看用户影响分析
- 检查警报状态
- 分析堆栈追踪
Usage Examples
使用示例
Example 1: Check Issues
示例1:检查问题
User: "What errors are happening in production?"
Claude: I'll check your Sentry dashboard.
- Opens sentry.io via Playwright MCP
- Logs into account
- my-app Issues (last 24h):
- TypeError: Cannot read 'id': 234 events, 45 users
- NetworkError: fetch failed: 89 events, 23 users
- ReferenceError: undefined: 12 events, 5 users
- Total: 335 events
- Error rate: 0.3%
- Most affected: /api/users endpoint用户:"生产环境中出现了哪些错误?"
Claude:我将查看你的Sentry仪表板。
- 通过Playwright MCP打开sentry.io
- 登录账户
- my-app 问题(过去24小时):
- TypeError: Cannot read 'id': 234次事件,45位用户
- NetworkError: fetch failed: 89次事件,23位用户
- ReferenceError: undefined: 12次事件,5位用户
- 总计:335次事件
- 错误率:0.3%
- 最受影响的端点:/api/usersExample 2: Check Performance
示例2:检查性能
User: "How's my app performance?"
Claude: I'll check Performance.
- Views Performance section
- Web Vitals:
- LCP: 1.8s (Good)
- FID: 45ms (Good)
- CLS: 0.05 (Good)
- Slowest transactions:
- /api/reports: 2.3s avg
- /api/search: 1.8s avg
- Throughput: 45k req/hr
- Apdex: 0.94用户:"我的应用性能如何?"
Claude:我将检查性能情况。
- 查看性能板块
- Web Vitals:
- LCP: 1.8秒(良好)
- FID: 45毫秒(良好)
- CLS: 0.05(良好)
- 最慢的事务:
- /api/reports: 平均2.3秒
- /api/search: 平均1.8秒
- 吞吐量:45000次请求/小时
- Apdex: 0.94Example 3: Check Release Health
示例3:检查发布健康状况
User: "How's the latest release doing?"
Claude: I'll check release health.
- Views Releases section
- v2.4.0 (deployed 6h ago):
- Crash-free rate: 99.2%
- Sessions: 12,456
- Users affected: 98
- New issues: 3
- Compared to v2.3.9:
- Errors: +2% (slight regression)
- Performance: -5% (improved)用户:"最新版本的表现如何?"
Claude:我将检查发布健康状况。
- 查看发布板块
- v2.4.0(6小时前部署):
- 无崩溃率:99.2%
- 会话数:12,456
- 受影响用户数:98
- 新问题数:3
- 与v2.3.9对比:
- 错误数:增加2%(轻微倒退)
- 性能:提升5%(有所改善)Authentication Flow
认证流程
- Navigate to sentry.io via Playwright MCP
- Enter email or use SSO/OAuth
- Enter password if email login
- Handle 2FA if enabled
- Select organization if multiple
- Maintain session for dashboard access
- 通过Playwright MCP导航至sentry.io
- 输入邮箱或使用SSO/OAuth
- 若使用邮箱登录则输入密码
- 若启用则处理2FA认证
- 若存在多个组织则选择对应组织
- 维持会话以访问仪表板
Error Handling
错误处理
- Login Failed: Retry credentials
- 2FA Required: Complete verification
- Project Access: Check permissions
- Session Expired: Re-authenticate
- Rate Limited: Wait and retry
- Quota Exceeded: Check plan
- 登录失败:重试凭证
- 需2FA认证:完成验证
- 项目访问权限:检查权限设置
- 会话过期:重新认证
- 速率限制:等待后重试
- 配额超限:查看套餐情况
Self-Improvement Instructions
自我改进说明
After each interaction:
- Track error patterns
- Note performance trends
- Log release metrics
- Document UI changes
Suggest updates when:
- Sentry updates dashboard
- New features added
- Metrics expand
- Integrations added
每次交互后:
- 追踪错误模式
- 记录性能趋势
- 记录发布指标
- 文档化UI变更
在以下情况时建议更新:
- Sentry更新仪表板
- 添加新功能
- 指标扩展
- 添加集成
Notes
注意事项
- Error monitoring standard
- Performance tracking
- Release tracking
- Source map support
- Issue assignment
- Alert integrations
- Self-hosted option
- 错误监控标准
- 性能追踪
- 发布追踪
- 源映射支持
- 问题分配
- 警报集成
- 自托管选项