bitbucket

Automate Bitbucket repository and pull request management via the Bitbucket API.

134|67|Updated Nov 24, 2025
One-click install
npx skills add https://github.com/OpenHands/skills --skill bitbucket
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: bitbucket
Source: https://github.com/OpenHands/skills/tree/main/skills/bitbucket
Command: npx skills add https://github.com/OpenHands/skills --skill bitbucket

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Interacting with Bitbucket repositories and pull requests via API can be error-prone and tedious; this Skill provides safe, parameterized guidance for common Bitbucket tasks using environment tokens and API calls.

Core Features & Use Cases

  • API-driven Bitbucket operations: manage repositories, issues, and pull requests through authenticated API calls.
  • PR workflow guidance: instructions for creating, updating, and merging pull requests using tokens and git.
  • Security-conscious practices: explicit guidance for token handling and avoiding credential leakage in automation scenarios.

Quick Start

Set the BITBUCKET_TOKEN in your environment and follow the prompts to perform a sample PR creation or repository operation using curl and git.

Frequently Asked Questions about bitbucket

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I automate Bitbucket pull request creation using an API token?

Automate Bitbucket pull request creation by setting the BITBUCKET_TOKEN environment variable and using curl for authenticated API calls. This Skill provides parameterized guidance to safely manage PR workflows and repository operations without exposing credentials.

Do I need a Bitbucket token to manage repositories via the API?

Yes, the BITBUCKET_TOKEN environment variable is required to authenticate API calls for repository and PR management. This Skill uses this token to provide safe, parameterized guidance for Bitbucket operations.

What is the best way to handle authentication and token refresh for Bitbucket API calls?

Handle Bitbucket API authentication securely by storing credentials in the BITBUCKET_TOKEN environment variable. This Skill offers security-conscious practices for token handling and avoiding credential leakage during automation scenarios.

Can I use git and curl to merge Bitbucket pull requests programmatically?

Yes, you can use git and curl to merge Bitbucket pull requests programmatically. This Skill provides workflow guidance for creating, updating, and merging pull requests through authenticated Bitbucket API operations.

Why does my Bitbucket API request fail during automated pull request workflows?

Bitbucket API requests may fail if the BITBUCKET_TOKEN environment variable is missing or expired. This Skill helps manage token refresh scenarios and provides parameterized API calls to prevent common authentication errors.

How do I safely manage Bitbucket repository operations without leaking credentials?

Safely manage Bitbucket repository operations by using environment variables for authentication instead of hardcoding tokens. This Skill provides security-conscious practices and parameterized API calls to avoid credential leakage.