bitbucket
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseBitbucket Skill
Bitbucket Skill
Overview
概述
Enables Claude to access Bitbucket to manage Git repositories, review pull requests, check Bitbucket Pipelines, and collaborate through Atlassian's code hosting platform.
让Claude能够访问Bitbucket,通过Atlassian的代码托管平台管理Git仓库、审核拉取请求(PR)、查看Bitbucket Pipelines并开展协作。
Quick Install
快速安装
bash
curl -sSL https://canifi.com/skills/bitbucket/install.sh | bashOr manually:
bash
cp -r skills/bitbucket ~/.canifi/skills/bash
curl -sSL https://canifi.com/skills/bitbucket/install.sh | bash或者手动安装:
bash
cp -r skills/bitbucket ~/.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 BITBUCKET_EMAIL "your-email@example.com"
undefinedcanifi-env set BITBUCKET_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 repositories and branches
- Check pull request status
- Monitor Bitbucket Pipelines
- View and manage issues (Jira integration)
- Check deployment status
- Manage repository settings
- 查看仓库与分支
- 检查拉取请求状态
- 监控Bitbucket Pipelines
- 查看并管理议题(Jira集成)
- 检查部署状态
- 管理仓库设置
Usage Examples
使用示例
Example 1: Check Pull Requests
示例1:查看拉取请求
User: "What PRs need my review?"
Claude: I'll check your Bitbucket PRs.
- Opens bitbucket.org via Playwright MCP
- Logs into account
- PRs requiring review:
- PR #45 "API refactor" - 2 days old
- PR #48 "Bug fix" - 5 hours old
- Your open PRs:
- PR #44 "Feature complete" - 1 approval, needs 1 more
- Total open: 8 PRs用户:“哪些PR需要我审核?”
Claude:我将查看你的Bitbucket PR。
- 通过Playwright MCP打开bitbucket.org
- 登录账户
- 需要审核的PR:
- PR #45 “API重构” - 已创建2天
- PR #48 “Bug修复” - 已创建5小时
- 你发起的PR:
- PR #44 “功能开发完成” - 已获得1个批准,还需1个
- 待处理PR总数:8个Example 2: Check Pipeline Status
示例2:查看流水线状态
User: "Did the deploy succeed?"
Claude: I'll check the pipeline status.
- Views Pipelines
- Latest pipeline (main):
- Status: Successful
- Duration: 5m 12s
- Steps: Build, Test, Deploy
- Deployed to: Production
- Last 5 runs: All passed用户:“部署成功了吗?”
Claude:我将检查流水线状态。
- 查看Pipelines页面
- 最新流水线(main分支):
- 状态:成功
- 耗时:5分12秒
- 步骤:构建、测试、部署
- 部署至:生产环境
- 最近5次运行:全部成功Example 3: View Repository Activity
示例3:查看仓库活动
User: "What's happened in the repo today?"
Claude: I'll check recent activity.
- Views repository activity
- Today's activity:
- 12 commits to main
- 3 PRs merged
- 2 branches created
- Most active: feature/user-auth (8 commits)
- Contributors today: 4用户:“今天仓库里有什么更新?”
Claude:我将查看近期活动。
- 查看仓库活动页面
- 今日活动:
- 向main分支提交了12次代码
- 合并了3个PR
- 创建了2个分支
- 最活跃分支:feature/user-auth(8次提交)
- 今日贡献者:4人Authentication Flow
认证流程
- Navigate to bitbucket.org via Playwright MCP
- Enter email (Atlassian account)
- Enter password
- Handle 2FA if enabled
- Maintain session for operations
- 通过Playwright MCP导航至bitbucket.org
- 输入邮箱(Atlassian账户)
- 输入密码
- 若启用了双因素认证(2FA)则完成验证
- 保持会话以进行后续操作
Error Handling
错误处理
- Login Failed: Check Atlassian credentials
- 2FA Required: Complete verification
- Pipeline Failed: Check step logs
- Session Expired: Re-authenticate
- Permission Denied: Check workspace access
- Rate Limited: Wait and retry
- 登录失败:检查Atlassian凭证
- 需要2FA:完成验证
- 流水线失败:查看步骤日志
- 会话过期:重新认证
- 权限不足:检查工作区访问权限
- 请求受限:等待后重试
Self-Improvement Instructions
自我优化说明
After each interaction:
- Track PR review patterns
- Note pipeline configurations
- Log common queries
- Document UI changes
Suggest updates when:
- Bitbucket updates interface
- Pipeline features change
- Jira integration updates
- Deployment features expand
每次交互后:
- 记录PR审核模式
- 记录流水线配置
- 记录常见查询
- 记录UI变更
在以下情况时建议更新:
- Bitbucket更新界面
- 流水线功能变更
- Jira集成更新
- 部署功能扩展
Notes
注意事项
- Part of Atlassian ecosystem
- Strong Jira integration
- Pipelines for CI/CD
- Deployments tracking built-in
- Code Insights for quality
- Merge checks configurable
- Free for small teams
- 属于Atlassian生态系统
- 与Jira深度集成
- 提供Pipelines用于CI/CD
- 内置部署追踪功能
- Code Insights用于代码质量检测
- 可配置合并检查
- 对小型团队免费