bitbucket

bitbucket is a skill for Claude Code, Codex from OpenHands/extensions. It costs 52 tokens per session (704 once invoked), scanned A, original, MIT.

A Bitbucket integration that identifies whether a repository uses Bitbucket Cloud, hosted at bitbucket.org, or Bitbucket Data Center, a self-managed version.

In plain words
What is it for?
Use it for Bitbucket repository and pull-request tasks, including selecting the correct service-specific instructions.
Why use it?
The two Bitbucket products use different login details, repository addresses, and tools, so choosing the wrong one can cause requests to fail.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it for Bitbucket repository and pull-request tasks, including selecting the correct service-specific instructions.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/openhands/extensions/bitbucket
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add OpenHands/extensions --skill bitbucket
Clone the repo
git clone --depth 1 https://github.com/OpenHands/extensions

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for bitbucket

README.md
[![agentmods](https://agentmods.dev/badge/skills/openhands/extensions/bitbucket/github.svg)](https://agentmods.dev/skills/openhands/extensions/bitbucket)
Your own site
<a href="https://agentmods.dev/skills/openhands/extensions/bitbucket"><img src="https://agentmods.dev/badge/skills/openhands/extensions/bitbucket/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for bitbucket

Your own site · 80×15
<a href="https://agentmods.dev/skills/openhands/extensions/bitbucket"><img src="https://agentmods.dev/badge/skills/openhands/extensions/bitbucket.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 52 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 704 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector warn 7 Sept 2026
SkillSpector: 1 finding, up to medium

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • medium Data Exfiltration · line 54
    Data is being sent to an external URL. This could be legitimate telemetry or data exfiltration. Manual review is recommended.
    Fix: Verify the destination URL is trusted and necessary. Remove or replace with documented APIs. Ensure no secrets, tokens, or PII are transmitted.
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00052 $0.00704
Opus 5.5 $0.00021 $0.00282
Sonnet 5.5 $0.00010 $0.00141
Haiku 4.5 $0.00005 $0.00070

Measured 12d ago against content hash 3d7501778cf5, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

bitbucket scanned grade A with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 12d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

Use authenticated Bitbucket MCP tools first when they are available in the agent's environment. Detect this by tool availability, without depending on a particular MCP server name. Still identify Cloud versus Data Center
skills/bitbucket/SKILL.md · 59 lines

How it starts

The opening of the file, as written. The whole thing — 59 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Use authenticated Bitbucket MCP tools first when they are available in the agent's environment. Detect this by tool availability, without depending on a particular MCP server name. Still identify Cloud versus Data Center and load the matching detailed skill. Use the token and direct API instructions only when Bitbucket MCP tools are unavailable or when raw API or curl access is explicitly needed.

You are working with Bitbucket, which ships as two distinct products that behave differently:

  • Bitbucket Cloud (bitbucket.org) — authenticates with the BITBUCKET_TOKEN environment variable.
  • Bitbucket Data Center (self-hosted Bitbucket Server) — authenticates with the BITBUCKET_DATA_CENTER_TOKEN environment variable.

They use different REST APIs, repository identifiers, git remote URL formats, and pull request tools, so you must first determine which one you are on, then load the matching detailed skill for full instructions.

Step 1 — Detect which Bitbucket you are on

First use the repository host or available Bitbucket MCP tool context to identify the product. For the token fallback, check which token environment variable is present. Environment variable names are case-sensitive, so look for it case-insensitively:

env | grep -i 'bitbucket' || echo "no bitbucket token found"
  • If a BITBUCKET_DATA_CENTER_TOKEN variable is set (in any letter case) → you are on Bitbucket Data Center.
  • Otherwise, if a BITBUCKET_TOKEN variable is set → you are on Bitbucket Cloud.
  • If neither is set, ask the user how they authenticate to Bitbucket before proceeding.

When you reference the token later, use the exact variable name (and letter case) that actually exists in the environment.

Step 2 — Load the detailed skill

Once you know the environment, use the invoke_skill tool to load the matching skill for full instructions on API calls, authenticated git remotes, and opening pull requests:

  • Bitbucket Cloud → invoke the bitbucket-cloud skill.
  • Bitbucket Data Center → invoke the bitbucket-data-center skill.

Read the full file on GitHub · 59 lines

Files

What ships with it

4 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 12d ago Changed · +3 lines 3d7501778cf5
  2. 1mo ago First seen · 56 lines · 52 tokens per session scan A b9c7fb63cef3

Subscribe to this mod's changes

bitbucket is a skill published in the GitHub repository OpenHands/extensions (167 stars, last pushed today), licensed MIT. It adds 52 tokens to every session and 704 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.