From bitbucket
Manage Bitbucket repositories, view project details, and handle repository settings using bbt and the Bitbucket REST API. Use this skill for repository-level operations like listing, viewing, and cloning repos.
How this skill is triggered — by the user, by Claude, or both
Slash command
/bitbucket:bitbucket-repoThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Use the `bbt` CLI and Bitbucket REST API to manage Bitbucket repositories.
Use the bbt CLI and Bitbucket REST API to manage Bitbucket repositories.
# List repositories in the current workspace
bbt repo list
# List repositories for a specific workspace
bbt repo list -R workspace
# View current repository details
bbt repo view
# View a specific repository
bbt repo view -R workspace/repo
bbt does not provide a clone subcommand — use standard git with HTTPS or SSH:
# Clone via HTTPS
git clone https://bitbucket.org/workspace/repo.git
# Clone via SSH
git clone [email protected]:workspace/repo.git
# Clone to a specific directory
git clone [email protected]:workspace/repo.git ./my-directory
# Get repository details
curl -s -u "${BITBUCKET_USER}:${BITBUCKET_TOKEN}" \
"https://api.bitbucket.org/2.0/repositories/{workspace}/{repo}"
# List branches
curl -s -u "${BITBUCKET_USER}:${BITBUCKET_TOKEN}" \
"https://api.bitbucket.org/2.0/repositories/{workspace}/{repo}/refs/branches"
# List tags
curl -s -u "${BITBUCKET_USER}:${BITBUCKET_TOKEN}" \
"https://api.bitbucket.org/2.0/repositories/{workspace}/{repo}/refs/tags"
# List branch restrictions
curl -s -u "${BITBUCKET_USER}:${BITBUCKET_TOKEN}" \
"https://api.bitbucket.org/2.0/repositories/{workspace}/{repo}/branch-restrictions"
# List repository variables
curl -s -u "${BITBUCKET_USER}:${BITBUCKET_TOKEN}" \
"https://api.bitbucket.org/2.0/repositories/{workspace}/{repo}/pipelines_config/variables/"
# Create a repository variable
curl -s -X POST -u "${BITBUCKET_USER}:${BITBUCKET_TOKEN}" \
-H "Content-Type: application/json" \
-d '{"key": "MY_VAR", "value": "my-value", "secured": false}' \
"https://api.bitbucket.org/2.0/repositories/{workspace}/{repo}/pipelines_config/variables/"
# Create a secured (masked) variable
curl -s -X POST -u "${BITBUCKET_USER}:${BITBUCKET_TOKEN}" \
-H "Content-Type: application/json" \
-d '{"key": "SECRET_KEY", "value": "s3cret", "secured": true}' \
"https://api.bitbucket.org/2.0/repositories/{workspace}/{repo}/pipelines_config/variables/"
# List webhooks
curl -s -u "${BITBUCKET_USER}:${BITBUCKET_TOKEN}" \
"https://api.bitbucket.org/2.0/repositories/{workspace}/{repo}/hooks"
# List deploy keys
curl -s -u "${BITBUCKET_USER}:${BITBUCKET_TOKEN}" \
"https://api.bitbucket.org/2.0/repositories/{workspace}/{repo}/deploy-keys"
# Add a deploy key
curl -s -X POST -u "${BITBUCKET_USER}:${BITBUCKET_TOKEN}" \
-H "Content-Type: application/json" \
-d '{"label": "CI Deploy Key", "key": "ssh-rsa AAAA..."}' \
"https://api.bitbucket.org/2.0/repositories/{workspace}/{repo}/deploy-keys"
BITBUCKET_USER and BITBUCKET_TOKEN (app password or PAT) as environment variables for API callsbbt repo view to quickly check repository info without curlnpx claudepluginhub tanyagray/claude --plugin 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.