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.
npx claudepluginhub tanyagray/claude --plugin bitbucketThis skill uses the workspace's default tool permissions.
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.
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`.
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 |