bkt — Bitbucket CLI bitbucket-cli, community, Bitbucket CLI, ide skills, Bitbucket Data Center, Bitbucket Cloud, bkt install, Claude Code, Cursor, Windsurf

v1.0.20

关于此技能

非常适合需要统一Bitbucket Data Center和Bitbucket Cloud管理功能的DevOps代理。 bkt Bitbucket CLI

功能特性

Bitbucket Data Center
Bitbucket Cloud
JSON/YAML
gh
CLI
CI/CD

# 核心主题

avivsinai avivsinai
[48]
[12]
更新于: 3/18/2026

Killer-Skills Review

Decision support comes first. Repository text comes second.

Reference-Only Page Review Score: 10/11

This page remains useful for operators, but Killer-Skills treats it as reference material instead of a primary organic landing page.

Original recommendation layer Concrete use-case guidance Explicit limitations and caution Quality floor passed for review
Review Score
10/11
Quality Score
64
Canonical Locale
en
Detected Body Locale
en

非常适合需要统一Bitbucket Data Center和Bitbucket Cloud管理功能的DevOps代理。 bkt Bitbucket CLI

核心价值

赋予代理自动化Bitbucket工作流的能力,使用结构化的JSON/YAML输出,模仿gh的ergonomics,并提供与Git的无缝集成。它利用CLI命令进行高效的仓库管理,并使用JSON和YAML等协议进行数据交换。

适用 Agent 类型

非常适合需要统一Bitbucket Data Center和Bitbucket Cloud管理功能的DevOps代理。

赋予的主要能力 · bkt

自动化Bitbucket Data Center和Bitbucket Cloud工作流
生成结构化的JSON/YAML输出用于自动化脚本
使用统一的CLI命令调试仓库问题

! 使用限制与门槛

  • 需要bkt CLI安装
  • 仅限Bitbucket Data Center和Bitbucket Cloud平台

Why this page is reference-only

  • - Current locale does not satisfy the locale-governance contract.

Source Boundary

The section below is supporting source material from the upstream repository. Use the Killer-Skills review above as the primary decision layer.

实验室 Demo

Browser Sandbox Environment

⚡️ Ready to unleash?

Experience this Agent in a zero-setup browser environment powered by WebContainers. No installation required.

Boot Container Sandbox

常见问题与安装步骤

以下问题与步骤与页面结构化数据保持一致,便于搜索引擎理解页面内容。

? FAQ

bkt 是什么?

非常适合需要统一Bitbucket Data Center和Bitbucket Cloud管理功能的DevOps代理。 bkt Bitbucket CLI

如何安装 bkt?

运行命令:npx killer-skills add avivsinai/bitbucket-cli。支持 Cursor、Windsurf、VS Code、Claude Code 等 19+ IDE/Agent。

bkt 适用于哪些场景?

典型场景包括:自动化Bitbucket Data Center和Bitbucket Cloud工作流、生成结构化的JSON/YAML输出用于自动化脚本、使用统一的CLI命令调试仓库问题。

bkt 支持哪些 IDE 或 Agent?

该技能兼容 Cursor, Windsurf, VS Code, Trae, Claude Code, OpenClaw, Aider, Codex, OpenCode, Goose, Cline, Roo Code, Kiro, Augment Code, Continue, GitHub Copilot, Sourcegraph Cody, and Amazon Q Developer。可使用 Killer-Skills CLI 一条命令通用安装。

bkt 有哪些限制?

需要bkt CLI安装;仅限Bitbucket Data Center和Bitbucket Cloud平台。

安装步骤

  1. 1. 打开终端

    在你的项目目录中打开终端或命令行。

  2. 2. 执行安装命令

    运行:npx killer-skills add avivsinai/bitbucket-cli。CLI 会自动识别 IDE 或 AI Agent 并完成配置。

  3. 3. 开始使用技能

    bkt 已启用,可立即在当前项目中调用。

! 参考页模式

此页面仍可作为安装与查阅参考,但 Killer-Skills 不再把它视为主要可索引落地页。请优先阅读上方评审结论,再决定是否继续查看上游仓库说明。

Imported Repository Instructions

The section below is supporting source material from the upstream repository. Use the Killer-Skills review above as the primary decision layer.

Supporting Evidence

bkt

bkt Bitbucket CLI

SKILL.md
Readonly
Imported Repository Instructions
The section below is supporting source material from the upstream repository. Use the Killer-Skills review above as the primary decision layer.
Supporting Evidence

Bitbucket CLI (bkt)

bkt is a unified CLI for Bitbucket Data Center and Bitbucket Cloud. It mirrors gh ergonomics and provides structured JSON/YAML output for automation.

Dependency Check

Before executing any bkt command, verify the CLI is installed:

bash
1bkt --version

If the command fails or bkt is not found, install it using one of these methods:

PlatformCommand
macOS/Linuxbrew install avivsinai/tap/bitbucket-cli
Windowsscoop bucket add avivsinai https://github.com/avivsinai/scoop-bucket && scoop install bitbucket-cli
Gogo install github.com/avivsinai/bitbucket-cli/cmd/bkt@latest
BinaryDownload from GitHub Releases

Only proceed with bkt commands after confirming installation succeeds.

Authentication

bash
1# Data Center (opens browser for PAT creation) 2bkt auth login https://bitbucket.example.com --web 3 4# Data Center (direct) 5bkt auth login https://bitbucket.example.com --username alice --token <PAT> 6 7# Bitbucket Cloud 8bkt auth login https://bitbucket.org --kind cloud --web 9 10# Check auth status 11bkt auth status

Bitbucket Cloud Token Requirements:

  • Create an "API token with scopes" (not a general API token)
  • Select Bitbucket as the application
  • Required scope: Account: Read (read:user:bitbucket)
  • Additional scopes as needed: Repositories, Pull requests, Issues

Contexts

Contexts store host, project/workspace, and default repo settings:

bash
1# Create context for Data Center 2bkt context create dc-prod --host bitbucket.example.com --project ABC --set-active 3 4# Create context for Cloud 5bkt context create cloud-team --host bitbucket.org --workspace myteam --set-active 6 7# List and switch contexts 8bkt context list 9bkt context use cloud-team

Quick Command Reference

TaskCommand
List reposbkt repo list
View repobkt repo view <slug>
Clone repobkt repo clone <slug> --ssh
Create repobkt repo create <name> --description "..."
List PRsbkt pr list --state OPEN
View PRbkt pr view <id>
Create PRbkt pr create --title "..." --source feature --target main
Merge PRbkt pr merge <id>
PR checksbkt pr checks <id> --wait
List branchesbkt branch list
Create branchbkt branch create <name> --from main
Delete branchbkt branch delete <name>
List issues (Cloud)bkt issue list --state open
Create issuebkt issue create -t "Bug title" -k bug
Webhooksbkt webhook list
Run pipelinebkt pipeline run --ref main
API escape hatchbkt api /rest/api/1.0/projects

Repository Operations

bash
1bkt repo list --limit 20 2bkt repo list --workspace myteam # Cloud workspace override 3bkt repo view platform-api 4bkt repo create data-pipeline --description "Data ingestion" --project DATA 5bkt repo browse --project DATA --repo platform-api 6bkt repo clone platform-api --ssh

Pull Request Workflows

bash
1# List and view 2bkt pr list --state OPEN --limit 10 3bkt pr list --mine # PRs you authored 4bkt pr view 42 5bkt pr view 42 --web # Open in browser 6 7# Create and edit 8bkt pr create --title "feat: cache" --source feature/cache --target main --reviewer alice 9bkt pr edit 123 --title "New title" --body "Updated description" 10 11# Review and merge 12bkt pr approve 42 13bkt pr comment 42 --text "LGTM" 14bkt pr merge 42 --message "merge: feature/cache" 15bkt pr merge 42 --strategy fast-forward 16 17# CI/build status 18bkt pr checks 42 # Show build status 19bkt pr checks 42 --wait # Wait for builds to complete 20bkt pr checks 42 --wait --timeout 5m # With timeout 21bkt pr checks 42 --fail-fast # Exit on first failure 22 23# Checkout locally 24bkt pr checkout 42 # Fetches to pr/42 branch

Branch Management

bash
1bkt branch list 2bkt branch list --filter "feature/*" 3bkt branch create release/1.9 --from main 4bkt branch delete feature/old-stuff 5bkt branch set-default main # DC only 6bkt branch protect add main --type fast-forward-only # DC only

Issue Tracking (Bitbucket Cloud Only)

bash
1bkt issue list --state open --kind bug 2bkt issue view 42 --comments 3bkt issue create -t "Login broken" -k bug -p major 4bkt issue edit 42 --assignee "{uuid}" --priority critical 5bkt issue close 42 6bkt issue reopen 42 7bkt issue comment 42 -b "Fixed in v1.2.0" 8bkt issue status # Your assigned/created issues

Issue kinds: bug, enhancement, proposal, task Priorities: trivial, minor, major, critical, blocker

Webhooks

bash
1bkt webhook list 2bkt webhook create --name "CI" --url https://ci.example.com/hook --event repo:refs_changed 3bkt webhook delete <id> 4bkt webhook test <id>

Pipelines (Cloud)

bash
1bkt pipeline run --ref main --var ENV=staging 2bkt pipeline list # Recent runs 3bkt pipeline view <uuid> # Pipeline details 4bkt pipeline logs <uuid> # Fetch logs 5bkt status pipeline <uuid> # Alt: status check

Permissions (DC)

bash
1bkt perms project list --project DATA 2bkt perms project grant --project DATA --user alice --perm PROJECT_WRITE 3bkt perms repo list --project DATA --repo platform-api 4bkt perms repo grant --project DATA --repo api --user alice --perm REPO_WRITE

Raw API Access

For endpoints not yet wrapped:

bash
1bkt api /rest/api/1.0/projects --param limit=100 --json 2bkt api /repositories --param workspace=myteam --field pagelen=50

Output Modes

All commands support structured output:

bash
1bkt pr list --json # JSON output 2bkt pr list --yaml # YAML output 3bkt pr list --json | jq '.pull_requests[0].title'

Global Options

  • --json / --yaml — Structured output
  • --context <name> — Use specific context
  • --project <key> — Override project (DC)
  • --workspace <name> — Override workspace (Cloud)
  • --repo <slug> — Override repository

Environment Variables

  • BKT_CONFIG_DIR — Config directory override
  • BKT_ALLOW_INSECURE_STORE — Allow file-based credential storage
  • BKT_KEYRING_TIMEOUT — Keyring operation timeout (for example 2m)

References

相关技能

寻找 bkt 的替代方案 (Alternative) 或可搭配使用的同类 community Skill?探索以下相关开源技能。

查看全部

openclaw-release-maintainer

Logo of openclaw
openclaw

Your own personal AI assistant. Any OS. Any Platform. The lobster way. 🦞

333.8k
0
AI

widget-generator

Logo of f
f

为prompts.chat的信息反馈系统生成可定制的插件小部件

149.6k
0
AI

flags

Logo of vercel
vercel

React 框架

138.4k
0
浏览器

pr-review

Logo of pytorch
pytorch

Python中具有强大GPU加速的张量和动态神经网络

98.6k
0
开发者工具