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.
npx claudepluginhub tanyagray/claude --plugin bitbucketThis skill uses the workspace's default tool permissions.
Use the `bbt` CLI and Bitbucket REST API to manage Bitbucket repositories.
Searches, retrieves, and installs Agent Skills from prompts.chat registry using MCP tools like search_skills and get_skill. Activates for finding skills, browsing catalogs, or extending Claude.
Searches prompts.chat for AI prompt templates by keyword or category, retrieves by ID with variable handling, and improves prompts via AI. Use for discovering or enhancing prompts.
Checks Next.js compilation errors using a running Turbopack dev server after code edits. Fixes actionable issues before reporting complete. Replaces `next build`.
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 git@bitbucket.org:workspace/repo.git
# Clone to a specific directory
git clone git@bitbucket.org: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 curl