From bitbucket
View and manage Bitbucket Pipelines (CI/CD) using the Bitbucket REST API. Use this skill when the user wants to check pipeline status, view build logs, trigger pipelines, or manage pipeline configuration.
How this skill is triggered — by the user, by Claude, or both
Slash command
/bitbucket:bitbucket-pipelineThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Bitbucket Pipelines is Bitbucket Cloud's integrated CI/CD system, configured via `bitbucket-pipelines.yml`. Use the Bitbucket REST API to manage pipelines from the command line.
Bitbucket Pipelines is Bitbucket Cloud's integrated CI/CD system, configured via bitbucket-pipelines.yml. Use the Bitbucket REST API to manage pipelines from the command line.
Set your credentials as environment variables for the examples below:
export BITBUCKET_USER="your-username"
export BITBUCKET_TOKEN="your-app-password-or-pat"
export BB_WORKSPACE="your-workspace"
export BB_REPO="your-repo"
curl -s -u "${BITBUCKET_USER}:${BITBUCKET_TOKEN}" \
"https://api.bitbucket.org/2.0/repositories/${BB_WORKSPACE}/${BB_REPO}/pipelines/?sort=-created_on&pagelen=10" \
| python3 -m json.tool
curl -s -u "${BITBUCKET_USER}:${BITBUCKET_TOKEN}" \
"https://api.bitbucket.org/2.0/repositories/${BB_WORKSPACE}/${BB_REPO}/pipelines/{pipeline-uuid}" \
| python3 -m json.tool
# Trigger on current branch
BRANCH="$(git rev-parse --abbrev-ref HEAD)"
curl -s -X POST -u "${BITBUCKET_USER}:${BITBUCKET_TOKEN}" \
-H "Content-Type: application/json" \
-d "{\"target\": {\"ref_type\": \"branch\", \"type\": \"pipeline_ref_target\", \"ref_name\": \"${BRANCH}\"}}" \
"https://api.bitbucket.org/2.0/repositories/${BB_WORKSPACE}/${BB_REPO}/pipelines/"
# Trigger a specific pipeline step by name
curl -s -X POST -u "${BITBUCKET_USER}:${BITBUCKET_TOKEN}" \
-H "Content-Type: application/json" \
-d '{"target": {"ref_type": "branch", "type": "pipeline_ref_target", "ref_name": "main", "selector": {"type": "custom", "pattern": "my-custom-pipeline"}}}' \
"https://api.bitbucket.org/2.0/repositories/${BB_WORKSPACE}/${BB_REPO}/pipelines/"
curl -s -X POST -u "${BITBUCKET_USER}:${BITBUCKET_TOKEN}" \
"https://api.bitbucket.org/2.0/repositories/${BB_WORKSPACE}/${BB_REPO}/pipelines/{pipeline-uuid}/stopPipeline"
curl -s -u "${BITBUCKET_USER}:${BITBUCKET_TOKEN}" \
"https://api.bitbucket.org/2.0/repositories/${BB_WORKSPACE}/${BB_REPO}/pipelines/{pipeline-uuid}/steps/" \
| python3 -m json.tool
curl -s -u "${BITBUCKET_USER}:${BITBUCKET_TOKEN}" \
"https://api.bitbucket.org/2.0/repositories/${BB_WORKSPACE}/${BB_REPO}/pipelines/{pipeline-uuid}/steps/{step-uuid}/log"
curl -s -X PUT -u "${BITBUCKET_USER}:${BITBUCKET_TOKEN}" \
-H "Content-Type: application/json" \
-d '{"enabled": true}' \
"https://api.bitbucket.org/2.0/repositories/${BB_WORKSPACE}/${BB_REPO}/pipelines_config"
curl -s -u "${BITBUCKET_USER}:${BITBUCKET_TOKEN}" \
"https://api.bitbucket.org/2.0/repositories/${BB_WORKSPACE}/${BB_REPO}/pipelines_config/variables/" \
| python3 -m json.tool
# Plain 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/${BB_WORKSPACE}/${BB_REPO}/pipelines_config/variables/"
# 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/${BB_WORKSPACE}/${BB_REPO}/pipelines_config/variables/"
# List deployment environments
curl -s -u "${BITBUCKET_USER}:${BITBUCKET_TOKEN}" \
"https://api.bitbucket.org/2.0/repositories/${BB_WORKSPACE}/${BB_REPO}/environments/" \
| python3 -m json.tool
# List variables for a deployment environment
curl -s -u "${BITBUCKET_USER}:${BITBUCKET_TOKEN}" \
"https://api.bitbucket.org/2.0/repositories/${BB_WORKSPACE}/${BB_REPO}/deployments_config/environments/{environment-uuid}/variables" \
| python3 -m json.tool
caches: to speed up buildsparallel: to run independent steps concurrentlytrigger: manual for deployment gatescondition: with changesets to skip steps when irrelevant files change| Status | Meaning |
|---|---|
PENDING | Queued, waiting to start |
IN_PROGRESS | Currently running |
SUCCESSFUL | All steps passed |
FAILED | One or more steps failed |
ERROR | Pipeline configuration error |
STOPPED | Manually stopped |
PAUSED | Waiting at a manual step |
npx claudepluginhub tanyagray/claude --plugin bitbucketManages Buildkite CI/CD workflows from the terminal: trigger/cancel builds, view logs, manage secrets, and control pipelines via the bk CLI.
Generates a complete CI/CD pipeline with lint, test, build, deploy, and verify stages. Detects project type and recommends GitHub Actions, Vercel, Railway, or Docker-based deployment.