bitbucket

Use Bitbucket Cloud to manage code repositories, Pipelines, and code review; used to set up Bitbucket repositories, configure Bitbucket Pipelines for CI/CD, manage pull requests, set branch permissions, use the REST API, create webhooks, manage deployment environments, integrate with Jira, and configure merge checks and repository automation.

Last repository push
GitHub Stars
219
Forks
38
Issues / PRs
1

Installation

Review the source and dependencies with a prompt. A package is available to download.

Install with an AI assistant

Copy the prompt so your assistant can review the pinned revision and dependencies first.

View promptHide prompt
Check whether SkillPI Skill Finder is installed for your current agent. If it is missing, install and enable it using the official instructions at https://github.com/Findskills/skillpi. Then use Skill Finder to locate and install "bitbucket" from this exact SkillPI detail page: https://skillpi.com/skills/deepskill-ccf9d504de26fbedc3ad442629a689de84df2fb86f67983fe17c1e17027290e0. Verify the upstream source and version against https://github.com/TerminalSkills/skills before installing. If they do not match, stop and report the mismatch. Report the installed path and source version.

Source and setup

github.com

Setup guidance pending

See the original source for supported tools, dependencies, and permissions.

Installation test pending

Use Bitbucket Cloud to manage code repositories, Pipelines, and code review; used to set up Bitbucket repositories, configure Bitbucket Pipelines for CI/CD, manage pull requests, set branch permissions, use the REST API, create webhooks, manage deployment environments, integrate with Jira, and configure merge checks and repository automation.

0 Downloads

Introduction source: third_party · TerminalSkills · 1.0.0 Reference

SkillPi interpretation

Tasks
Browse repos, review PRs, read diffs and source code via a bash CLI wrapper. Read-only access — the agent cannot create, merge, or modify anything. No `jq` required — uses `python3` for JSON parsing.
Software, accounts and paid services
Set these environment variables on your OpenClaw gateway: `ATLASSIAN_EMAIL` — the Atlassian account email `BITBUCKET_API_TOKEN` — a scoped API token with **Repositories: Read** and **Pull requests: Read** only. Create at id.atlassian.com/manage-profile/security/api-tokens, select **Bitbucket** as the app. `BITBUCKET_WORKSPACE` — the workspace slug from your Bitbucket URLs (e.g. `mycompany` from `bitbucket.org/mycompany/repo`) Security note:** Use a separate read-only scoped token for Bitbucket, not the same token as Jira/Confluence. This ensures the agent cannot write to repositories even if instructed to. Make the script executable: `chmod +x {baseDir}/bitbucket-cli.sh`
Testing
Not tested

Browse files

Browse files at the source ↗

Original SKILL.md

Open original ↗
Frontmatter
name: bitbucket
version: 1.0.0
description: Browse Bitbucket Cloud repos, review pull requests, read diffs, check branches. Use when user mentions PRs, code changes, diffs, branches, Bitbucket, or repo names.
author: Viksi.ai
license: MIT
metadata:
  openclaw:
    emoji: "🪣"
    requires:
      env: ["ATLASSIAN_EMAIL", "BITBUCKET_API_TOKEN", "BITBUCKET_WORKSPACE"]
      tools: ["curl", "python3"]

Bitbucket Cloud (Read-Only)

Browse repos, review PRs, read diffs and source code via a bash CLI wrapper. Read-only access — the agent cannot create, merge, or modify anything. No jq required — uses python3 for JSON parsing.

Script location: {baseDir}/bitbucket-cli.sh

Setup

Set these environment variables on your OpenClaw gateway:

  • ATLASSIAN_EMAIL — the Atlassian account email
  • BITBUCKET_API_TOKEN — a scoped API token with Repositories: Read and Pull requests: Read only. Create at id.atlassian.com/manage-profile/security/api-tokens, select Bitbucket as the app.
  • BITBUCKET_WORKSPACE — the workspace slug from your Bitbucket URLs (e.g. mycompany from bitbucket.org/mycompany/repo)

Security note: Use a separate read-only scoped token for Bitbucket, not the same token as Jira/Confluence. This ensures the agent cannot write to repositories even if instructed to.

Make the script executable: chmod +x {baseDir}/bitbucket-cli.sh

Commands

List repositories

{baseDir}/bitbucket-cli.sh repos

Returns: [{ slug, name, full_name, language, updated, is_private, url }]

List pull requests

{baseDir}/bitbucket-cli.sh prs my-repo
{baseDir}/bitbucket-cli.sh prs my-repo MERGED

State: OPEN (default), MERGED, DECLINED.

Returns: { total, pullrequests: [{ id, title, author, source, destination, state, created, updated, url }] }

Get PR details

{baseDir}/bitbucket-cli.sh pr my-repo 42

Returns: { id, title, description, author, source, destination, state, reviewers, created, updated, comment_count, url }

Get PR diffstat (file change summary)

Use this first to understand scope before reading the full diff.

{baseDir}/bitbucket-cli.sh diffstat my-repo 42

Returns: { files_changed, total_added, total_removed, files: [{ path, status, lines_added, lines_removed }] }

Get full diff

{baseDir}/bitbucket-cli.sh diff my-repo 42

Returns raw unified diff text. For large PRs (500+ lines), read diffstat first.

Get PR comments

{baseDir}/bitbucket-cli.sh comments my-repo 42

Returns: { count, comments: [{ id, author, content, inline, created }] }

Inline comments include { path, from, to } showing which file and line.

List commits in a PR

{baseDir}/bitbucket-cli.sh pr-commits my-repo 42

Returns: [{ hash, message, author, date }]

List branches

{baseDir}/bitbucket-cli.sh branches my-repo
{baseDir}/bitbucket-cli.sh branches my-repo "feature"

Returns: [{ name, hash, date, author }]

Recent commits on a branch

{baseDir}/bitbucket-cli.sh commits my-repo main

Returns: [{ hash, message, author, date }] (last 10)

Read file contents

{baseDir}/bitbucket-cli.sh file my-repo README.md
{baseDir}/bitbucket-cli.sh file my-repo src/main.py develop

Returns raw file content. Default branch is main — always specify the branch explicitly if the user mentions a specific branch.

List directory contents

{baseDir}/bitbucket-cli.sh ls my-repo
{baseDir}/bitbucket-cli.sh ls my-repo src/
{baseDir}/bitbucket-cli.sh ls my-repo src/ develop
{baseDir}/bitbucket-cli.sh ls my-repo "" develop

Returns: [{ path, type, size }]

Default branch is main. To list root on a different branch, pass empty string as path.

Recursive directory listing

{baseDir}/bitbucket-cli.sh tree my-repo
{baseDir}/bitbucket-cli.sh tree my-repo src/
{baseDir}/bitbucket-cli.sh tree my-repo "" develop

Returns one line per entry: d for directories, f for files. Sorted alphabetically. Use this to understand repo structure in a single call instead of calling ls on every subdirectory.

Search code

{baseDir}/bitbucket-cli.sh search "class UserService"
{baseDir}/bitbucket-cli.sh search "def process" my-repo

Returns: [{ file, repo, matched_lines }]

Searches across all repos in the workspace, or scoped to a specific repo.

Compare branches

{baseDir}/bitbucket-cli.sh compare my-repo main develop
{baseDir}/bitbucket-cli.sh compare my-repo release/1.0 hotfix/bugfix

Returns raw unified diff between two branches. Use when you need to see differences without an existing PR.

Repository Exploration

When exploring a repository:

  1. Always start with tree to see the full directory structure in one call
  2. Read key files first: README.md, package.json, requirements.txt, pom.xml, build.gradle, Makefile, Dockerfile, docker-compose.yml
  3. Never read every file — pick the ones relevant to the task
  4. Specify the branch — do not assume main. If the user mentions a branch, pass it to every command
  5. For large repos, use search to find specific code instead of reading files one by one

Rules

  • This skill has READ-ONLY access. Never attempt to create, merge, approve, or decline PRs.
  • For large diffs, always read diffstat before the full diff.
  • All output is JSON to stdout (except diff and file which return raw text).
  • Results are paginated: repos (max 50), PRs (max 25), branches (max 25), commits (max 10). If you need more, tell the user the results may be incomplete.

Current listing version

1.0.0

Verify the source revision ↗

Safety and assessment details

Quality assessment

Out of 100 · Assessment report from SkillPi LAB.

Scenario Value78/100

Areas to improve

  • 缺少 When to Use 章节 Reported severity: Minor

    文档中缺少明确的 When to Use 使用场景说明章节

    Recommendation: 建议添加 When to Use 章节,明确说明在什么情况下应该使用此 Skill

Highlights

  • 提供完整的 Bitbucket Cloud 代码仓库管理功能
  • 支持查看仓库、PR、diff、分支等核心开发场景
  • 明确的只读访问策略,保障安全性
Trigger Precision85/100

Areas to improve

  • 触发词可进一步细化 Reported severity: Minor

    description 中触发词较为通用,可添加更多 Bitbucket 特定术语

    Recommendation: 建议添加更多 Bitbucket 特定触发词,如 'bitbucket pipelines', 'webhook', 'merge checks' 等

Highlights

  • 触发词覆盖合理,包含 Bitbucket、PRs、code changes 等关键词
  • 边界清晰,不易与其他代码管理 Skill 重叠
Structure and Standards92/100

Areas to improve

  • 文档结构可优化 Reported severity: Minor

    Commands 部分较长,可考虑按功能分组或使用子标题

    Recommendation: 建议将 Commands 部分按功能分组,如 'Repository Management', 'Pull Request Operations' 等

Highlights

  • 文档结构完整,包含 Setup、Commands、Rules 等必要章节
  • 提供详细的使用示例和参数说明
  • frontmatter 信息完整规范
Execution Reliability88/100

Areas to improve

  • 错误处理说明不足 Reported severity: Minor

    文档中缺少对 API 调用失败等异常情况的处理说明

    Recommendation: 建议添加错误处理说明,如网络错误、认证失败等情况的应对策略

Highlights

  • 工具来源明确,使用标准的 curl 和 python3
  • 参数说明完整,环境变量和命令参数均有详细说明
  • 强调使用只读 token,提供安全保障
Evidence Verifiability (mean of the first four)86/100

The arithmetic mean of the first four original scores, rounded to a whole number.

Static text checks

100 / 100 · skillpi-20261123-no-r3-v1

No current rules matched the text.

This score reflects rule matches in the text and is provided for reference before use. It excludes attachments and runtime behavior.

Permissions and checks before use

Automatically summarized from this main document. Matches may be examples or defensive advice; they are not actual permission declarations. Attachments, external dependencies and runtime behavior are not covered.

These common operations were not identified in the main document. This does not mean no permissions or risks exist.

Domains or addresses referenced in the document

These addresses may be documentation links or examples, not an approved network allowlist. Verify actual destinations and outgoing data before use.

  • id.atlassian.com

These notices grant no permissions. Your host tool must still confirm file changes, secrets, external transfers or costs as needed.

Security rating and access scope

safe · Static evidence review; not a runtime safety guarantee.

Set these environment variables on your OpenClaw gateway: `ATLASSIAN_EMAIL` — the Atlassian account email `BITBUCKET_API_TOKEN` — a scoped API token with **Repositories: Read** and **Pull requests: Read** only. Create at id.atlassian.com/manage-profile/security/api-tokens, select **Bitbucket** as the app. `BITBUCKET_WORKSPACE` — the workspace slug from your Bitbucket URLs (e.g. `mycompany` from `bitbucket.org/mycompany/repo`) Security note:** Use a separate read-only scoped token for Bitbucket, not the same token as Jira/Confluence. This ensures the agent cannot write to repositories even if instructed to. Make the script executable: `chmod +x {baseDir}/bitbucket-cli.sh`

Before use, confirm and authorize actual file access, external services and network destinations in your host. This review grants no runtime permissions.