From bitbucket
Interact with Bitbucket Cloud and Server/Data Center repositories. List and manage pull requests, browse repos, view commits, read files, and search code via CLI. Auto-detects Cloud vs Server from URL. Use when user mentions Bitbucket, pull requests, PRs, repo browsing, code search, commit history, or PR diffs.
How this skill is triggered — by the user, by Claude, or both
Slash command
/bitbucket:bitbucketThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Manage Bitbucket **Cloud** (bitbucket.org) and **Server/Data Center** from the command line.
Manage Bitbucket Cloud (bitbucket.org) and Server/Data Center from the command line.
Auto-detects platform from BITBUCKET_URL. For Cloud, use workspace as the first argument (e.g., myteam from bitbucket.org/myteam/my-repo).
cd /path/to/skills/bitbucket
python3 -m venv .venv
.venv/bin/pip install -r requirements.txt
cp .env.example .env # then edit .env with your credentials
.venv/bin/python3 -m scripts workspaces list # verify
Cloud needs BITBUCKET_URL=https://bitbucket.org + BITBUCKET_USERNAME + BITBUCKET_API_TOKEN (App Password).
Server needs BITBUCKET_URL + BITBUCKET_PAT_TOKEN.
All commands run from the skill directory. Pattern: .venv/bin/python3 -m scripts <resource> <action> [args] [--flags]
# Workspaces / Projects
.venv/bin/python3 -m scripts workspaces list
# Repositories
.venv/bin/python3 -m scripts repos list myteam
# Pull Requests
.venv/bin/python3 -m scripts pr list myteam my-repo [--state=OPEN] [--limit=25]
.venv/bin/python3 -m scripts pr get myteam my-repo 123
.venv/bin/python3 -m scripts pr create myteam my-repo "Title" source-branch target-branch [--desc=...] [--reviewers=a,b]
.venv/bin/python3 -m scripts pr merge myteam my-repo 123 [--strategy=squash]
.venv/bin/python3 -m scripts pr decline myteam my-repo 123
.venv/bin/python3 -m scripts pr comment myteam my-repo 123 "LGTM!"
.venv/bin/python3 -m scripts pr diff myteam my-repo 123
# Commits
.venv/bin/python3 -m scripts commits list myteam my-repo [--branch=main] [--limit=10]
.venv/bin/python3 -m scripts commits get myteam my-repo abc123def
# Files
.venv/bin/python3 -m scripts files get myteam my-repo src/main.py [--branch=main]
.venv/bin/python3 -m scripts files search "query" [--workspace=myteam] [--repo=my-repo]
All output is JSON to stdout. Errors go to stderr with non-zero exit code.
Errors return: {"success": false, "error": "message", "error_type": "AuthenticationError"}
Types: ConfigurationError, AuthenticationError, ValidationError, NotFoundError, APIError, NetworkError.
See REFERENCE.md for using as a Python library with direct function calls.
npx claudepluginhub ferrants/skill-bitbucketAutomates Bitbucket repositories, pull requests, branches, issues, and workspace management via Rube MCP (Composio). Always searches tools first for current schemas.
Automates Bitbucket repositories, pull requests, branches, issues, and workspaces using Composio toolkit via Rube MCP. Requires Rube MCP and active Bitbucket OAuth connection for PR creation, listing, diffs, and repo ops.