← 返回
未分类 中文

Bitbucket

Browse Bitbucket repositories, manage branches, review pull requests, and work with source code via the Bitbucket Cloud API. Use this skill when users want t...
浏览Bitbucket仓库,管理分支,审查pull请求,通过Bitbucket Cloud API处理源代码。当用户想要...
hith3sh hith3sh 来源
未分类 clawhub v1.0.6 2 版本 99867.4 Key: 无需
★ 6
Stars
📥 1,386
下载
💾 1
安装
2
版本
#latest

概述

Bitbucket

!Bitbucket

Work with Bitbucket from chat — browse repositories, inspect files, manage branches, review pull requests, and coordinate repository workflows via the Bitbucket Cloud API with OAuth authentication.

This skill uses ClawLink for hosted connection flows and credentials so you do not need to configure Bitbucket API access yourself.

Setup in 3 Steps

Step 1: InstallStep 2: Pair AccountStep 3: Connect Bitbucket
:---::---::---:
!Install!PairApp-specific connection GIF coming soon
Run the install command in OpenClawSign in and approve the deviceOpen the dashboard and connect Bitbucket

How It Works

┌─────────────────┐     ┌──────────────┐     ┌──────────────────────┐
│   OpenClaw      │────▶│   ClawLink   │────▶│ Bitbucket Cloud API  │
│   (User Chat)   │     │   (OAuth)    │     │ (Repos/PRs/Branches)│
└─────────────────┘     └──────────────┘     └──────────────────────┘
         │                       │                       │
         │  1. Install Plugin    │                       │
         │  2. Pair Device       │                       │
         │  3. Connect Bitbucket  │                       │
         │                       │  4. Secure Token      │
         │                       │  5. Proxy Requests    │
         │                       │                       │
         ▼                       ▼                       ▼
   ┌──────────┐           ┌──────────┐           ┌──────────┐
   │  SKILL   │           │ Dashboard│           │ Bitbucket│
   │  File    │           │ Auth     │           │ Cloud │
   └──────────┘           └──────────┘           └──────────┘

Install

Install the verified ClawLink plugin from ClawHub. After the user confirms, complete the full setup so ClawLink tools are visible in the next OpenClaw chat.

openclaw plugins install clawhub:clawlink-plugin
openclaw config set tools.alsoAllow '["clawlink-plugin"]' --strict-json
openclaw gateway restart

Then tell the user: "OpenClaw has been restarted. Send /new as a standalone message to start a fresh chat, then ask for Bitbucket again."

Quick Start

# List repositories in a workspace
clawlink_call_tool --tool "bitbucket_list_repositories_in_workspace" --params '{"workspace": "your-workspace"}'

# List branches in a repository
clawlink_call_tool --tool "bitbucket_list_branches" --params '{"workspace": "your-workspace", "repo_slug": "your-repo"}'

# Get a pull request
clawlink_call_tool --tool "bitbucket_get_pull_request" --params '{"workspace": "your-workspace", "repo_slug": "your-repo", "pull_request_id": 1}'

Authentication

All Bitbucket tool calls are authenticated automatically by ClawLink using the user's connected Bitbucket account.

No API key is required in chat. ClawLink stores the OAuth token securely and injects it into every Bitbucket API request on the user's behalf.

Getting Connected

  1. Install the ClawLink plugin (see Install above).
  2. Pair the plugin with clawlink_begin_pairing if it is not configured yet.
  3. Open https://claw-link.dev/dashboard?add=bitbucket and connect Bitbucket.
  4. Call clawlink_list_integrations to verify the connection is active.

Connection Management

List Connections

clawlink_list_integrations

Response: Returns all connected integrations. Look for bitbucket in the list.

Verify Connection

clawlink_list_tools --integration bitbucket

Response: Returns the live tool catalog for Bitbucket.

Reconnect

If Bitbucket tools are missing or the connection shows an error:

  1. Direct the user to https://claw-link.dev/dashboard?add=bitbucket
  2. After they confirm, call clawlink_list_integrations to verify
  3. Then call clawlink_list_tools --integration bitbucket

Security& Permissions

  • Access is scoped to repositories and resources accessible to the connected Bitbucket account.
  • All write operations require explicit user confirmation. Before executing any create, update, or delete call, confirm the target resource and intended effect with the user.
  • Destructive actions (delete repository, delete branch, delete issue) are marked as high-impact and must be confirmed.
  • Repository deletion does not affect forks.

Tool Reference

Repository Operations

ToolDescriptionMode
-------------------------
bitbucket_list_repositories_in_workspaceList repositories in a workspaceRead
bitbucket_list_repositoriesList public repositoriesRead
bitbucket_get_repositoryGet repository metadataRead
bitbucket_create_repositoryCreate a new repository in a workspaceWrite
bitbucket_delete_repositoryPermanently delete a repositoryWrite
bitbucket_browse_repository_pathGet file content or list directory at a revisionRead
bitbucket_get_file_from_repositoryGet a specific file's content at a commitRead
bitbucket_list_repository_pathsList files and directories under a pathRead

Branch Operations

ToolDescriptionMode
-------------------------
bitbucket_list_branchesList branches with optional name filteringRead
bitbucket_get_branchGet branch metadata and target commitRead
bitbucket_create_branchCreate a new branch from a target commitWrite
bitbucket_get_repositories_branching_modelGet the repository's branch workflow configurationRead
bitbucket_get_repositories_effective_branching_modelGet effective branching model (including inheritance)Read

Commit Operations

ToolDescriptionMode
-------------------------
bitbucket_list_commitsList commits with optional branch/path filtersRead
bitbucket_get_repositories_commitGet detailed commit informationRead
bitbucket_get_commit_diffGet the unified diff for a commit or rangeRead
bitbucket_get_commit_changesGet changed files in a commitRead
bitbucket_get_commit_build_statusGet build status for a commitRead
bitbucket_get_commit_diffstatGet diffstat (files changed, lines added/removed)Read

Pull Request Operations

ToolDescriptionMode
-------------------------
bitbucket_list_pull_requestsList pull requests by state (OPEN/MERGED/DECLINED)Read
bitbucket_get_pull_requestGet a single pull request with full detailsRead
bitbucket_get_pull_request_commitsGet commits included in a PRRead
bitbucket_get_pull_request_diffGet the unified diff for a PRRead
bitbucket_get_pull_request_diffstatGet diffstat for a PRRead
bitbucket_create_pull_requestCreate a new pull requestWrite
bitbucket_update_pull_requestUpdate PR title, description, or reviewersWrite
bitbucket_merge_pull_requestMerge a pull requestWrite
bitbucket_approve_pull_requestApprove a pull requestWrite
bitbucket_request_pull_request_changesRequest changes on a PRWrite
bitbucket_create_pull_request_commentAdd a top-level or threaded comment to a PRWrite
bitbucket_delete_pull_request_commentDelete a PR commentWrite
bitbucket_resolve_pull_request_commentResolve or reopen a PR comment threadWrite

Issue Operations

ToolDescriptionMode
-------------------------
bitbucket_list_issuesList issues with optional state/priority filtersRead
bitbucket_create_issueCreate a new issueWrite
bitbucket_update_issueUpdate issue attributesWrite
bitbucket_delete_issuePermanently delete an issueWrite
bitbucket_create_issue_commentAdd a comment to an issueWrite

User & Workspace

ToolDescriptionMode
-------------------------
bitbucket_get_current_userGet the authenticated user's profileRead
bitbucket_list_workspacesList workspaces accessible to the userRead
bitbucket_get_workspaceGet workspace metadataRead
bitbucket_list_workspace_membersList members of a workspaceRead
bitbucket_list_workspace_projectsList projects in a workspaceRead

Pipelines & Deployments

ToolDescriptionMode
-------------------------
bitbucket_list_pipelinesList pipeline runs for a repositoryRead
bitbucket_get_repositories_pipelines2Get a specific pipeline's detailsRead
bitbucket_list_repositories_environmentsList deployment environmentsRead
bitbucket_list_deploymentsList deployment historyRead

Code Search

ToolDescriptionMode
-------------------------
bitbucket_get_workspaces_search_codeSearch code across all repos in a workspaceRead
bitbucket_search_user_repositories_codeSearch code in a specific user's reposRead

Code Examples

List branches in a repository

clawlink_call_tool --tool "bitbucket_list_branches" \
  --params '{
    "workspace": "your-workspace",
    "repo_slug": "your-repo",
    "q": "name~\"feature\""
  }'

Create a pull request

clawlink_call_tool --tool "bitbucket_create_pull_request" \
  --params '{
    "workspace": "your-workspace",
    "repo_slug": "your-repo",
    "title": "Add new feature",
    "source_branch": "feature/new-feature",
    "destination_branch": "main",
    "description": "This PR adds the new feature as described in issue #123"
  }'

Approve a pull request

clawlink_call_tool --tool "bitbucket_approve_pull_request" \
  --params '{
    "workspace": "your-workspace",
    "repo_slug": "your-repo",
    "pull_request_id": 42
  }'

Get file content from a repository

clawlink_call_tool --tool "bitbucket_get_file_from_repository" \
  --params '{
    "workspace": "your-workspace",
    "repo_slug": "your-repo",
    "path": "README.md",
    "commit_revision": "main"
  }'

Discovery Workflow

  1. Call clawlink_list_integrations to confirm Bitbucket is connected.
  2. Call clawlink_list_tools --integration bitbucket to see the live catalog.
  3. Treat the returned list as the source of truth. Do not guess or assume what tools exist.
  4. If the user describes a capability but the exact tool is unclear, call clawlink_search_tools with a short query and integration bitbucket.
  5. If no Bitbucket tools appear, direct the user to https://claw-link.dev/dashboard?add=bitbucket.

Execution Workflow

┌─────────────────────────────────────────────────────────────┐
│  READ OPERATIONS (Safe)                                     │
│  list → get → search → describe → call                      │
│                                                             │
│  Example: List repos → List branches → Show results          │
└─────────────────────────────────────────────────────────────┘
                              │
                              ▼
┌─────────────────────────────────────────────────────────────┐
│  WRITE OPERATIONS (Require Confirmation)                     │
│  list → get → describe → preview → confirm → call         │
│                                                             │
│  Example: Describe tool → Preview changes → User approves   │
│           → Execute update                                 │
└─────────────────────────────────────────────────────────────┘
  1. For unfamiliar tools, ambiguous requests, or any write action, call clawlink_describe_tool first.
  2. Use the returned guidance, schema, whenToUse, askBefore, safeDefaults, examples, and followups to shape the call.
  3. Prefer read, list, search, and get operations before writes when that reduces ambiguity.
  4. For writes or anything marked as requiring confirmation, call clawlink_preview_tool first.
  5. Execute with clawlink_call_tool. Pass confirmation only after the preview matches the user's intent.
  6. If the tool call fails, report the real error. Do not invent results or restate the failure as a missing capability unless the live catalog supports that conclusion.

Notes

  • Branch names must be unique within a repository and must not include the refs/heads/ prefix.
  • Pull request IDs are numeric. Use bitbucket_list_pull_requests to find PR IDs.
  • Repository deletion does not affect forks — forks are separate copies.
  • Pagination: use the next field in responses to iterate through large result sets.
  • BBQL (Bitbucket Query Language) supports server-side filtering for branch names.

Error Handling

Status / ErrorMeaning
-------------------------
Tool not foundThe tool name does not exist in the current catalog. Verify with clawlink_list_tools --integration bitbucket.
Missing connectionBitbucket is not connected. Direct the user to https://claw-link.dev/dashboard?add=bitbucket.
BranchNotFoundBranch does not exist. Check the branch name.
PullRequestNotFoundPull request does not exist. Check the PR ID.
RepositoryNotFoundRepository does not exist or is not accessible.
InvalidArgumentInvalid parameter or missing required field. Review the tool schema with clawlink_describe_tool.
Write rejectedUser did not confirm a write action. Always confirm before executing writes.

Troubleshooting: Tools Not Visible

  1. Check that the ClawLink plugin is installed:

```bash

openclaw plugins list

```

  1. If the plugin is installed but tools are missing, tell the user to send /new as a standalone message to reload the catalog.
  2. If a fresh chat does not help, run:

```bash

openclaw config set tools.alsoAllow '["clawlink-plugin"]' --strict-json

openclaw gateway restart

```

  1. After restart, tell the user to send /new again and retry.

Troubleshooting: Invalid Tool Call

  1. Ensure the integration slug is exactly bitbucket.
  2. Use clawlink_describe_tool to verify parameter names and types before calling.
  3. For write operations, always call clawlink_preview_tool first.

Resources

Related Skills

  • GitHub — For GitHub repository operations
  • GitLab — For GitLab repository operations
  • Jira — For Jira issue tracking

Powered by ClawLink — an integration hub for OpenClaw

!ClawLink Logo

版本历史

共 2 个版本

  • v1.0.6 当前
    2026-06-09 16:20 安全 安全
  • v0.1.0
    2026-05-08 04:17 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

dev-programming

Github

steipete
使用 `gh` CLI 与 GitHub 交互,通过 `gh issue`、`gh pr`、`gh run` 和 `gh api` 管理议题、PR、CI 运行及高级查询。
★ 679 📥 327,883
dev-programming

CodeConductor.ai

larsonreever
AI驱动平台,提供快速全栈开发、智能体、工作流自动化及低代码AI集成的可扩展产品创建。
★ 72 📥 181,987
dev-programming

Mcporter

steipete
使用 mcporter CLI 直接列出、配置、认证及调用 MCP 服务器/工具(支持 HTTP 或 stdio),涵盖临时服务器、配置编辑及 CLI/类型生成功能。
★ 195 📥 67,714