Command Palette

Search for a command to run...

UnylyUnyly
Back to skills

bitbucket-devops

FreeRuns bundled scriptsNot checked

Comprehensive Bitbucket pipeline automation using direct Node.js API calls. Monitor pipeline status, analyze failures, download logs, and trigger builds. Use…

aiskillstoreby aiskillstore★ 509 GitHub stars

About this skill

Bitbucket DevOps Skill

This skill provides comprehensive Bitbucket DevOps automation using direct Node.js API calls via a Bash-equivalent tool. Built on the bitbucket-mcp client library. It's plain Node.js CLI invocation with no Claude-specific dependency, so it runs unchanged under Claude Code, AGY, OpenCode, or any other agent runtime that can shell out to node.

Note on paths: Paths below (~/.claude/skills/bitbucket-devops/...) reflect Claude Code's skill-install convention, since install.sh/install.ps1 default to --llm claude. If this skill was installed with --llm agy or --llm opencode, substitute ~/.gemini/antigravity-cli/skills/bitbucket-devops/ or ~/.config/opencode/skills/bitbucket-devops/ respectively (or whatever TARGET_DIR was used) - the commands themselves are identical.

Key Advantage: Uses direct Node.js calls via a Bash-equivalent tool instead of MCP tools. This works the same way in any agent runtime that can invoke shell commands (Claude Code, AGY, OpenCode, etc.) - there's no Claude-specific API or tool assumption anywhere in this skill's code. In Claude Code specifically, Bash is auto-approved by default, which also eliminates the MCP approval-prompt friction described in GitHub Issue #10801; other runtimes may have their own approval model for shell commands, but the underlying calls are identical either way.

⚠️ MANDATORY: How to Approach User Requests

You MUST follow this three-tier fallback strategy for ALL Bitbucket operations. This is REQUIRED, not optional.

CRITICAL RULES:

  • DO NOT create new .js files for Bitbucket API calls
  • DO NOT use node -e for inline Bitbucket API operations
  • ONLY use the pre-built CLI tools listed below
  • ALWAYS start with Tier 1, fall back to Tier 2 if needed, use Tier 3 only as last resort

Tier 1: High-Level Helper Functions (REQUIRED FIRST STEP)

You MUST check these helpers FIRST before attempting any other approach.

These solve common workflows in a single command. If the user's request matches any of these patterns, you MUST use the corresponding helper.

Location: ~/.claude/skills/bitbucket-devops/lib/helpers.js

Available Commands:

  • get-latest-failed <workspace> <repo> - Get most recent failed pipeline
  • get-latest <workspace> <repo> - Get most recent pipeline (any status)
  • get-by-number <workspace> <repo> <build-number> - Find pipeline by build number
  • get-failed-steps <workspace> <repo> <pipeline-uuid> - Get all failed steps
  • download-failed-logs <workspace> <repo> <pipeline-uuid> <build-number> - Download all failed step logs
  • get-info <workspace> <repo> <pipeline-uuid> - Get formatted pipeline + steps info
  • list-environments <workspace> <repo> - List deployment environments (sandbox/production/etc)
  • create-environment <workspace> <repo> <name> [environment_type] [rank] - Create a deployment environment
  • list-deploy-variables <workspace> <repo> <environment> - List secured deployment variables for an environment
  • create-deploy-variable <workspace> <repo> <environment> <key> <value> [secured] - Add a deployment variable
  • update-deploy-variable <workspace> <repo> <environment> <variable> [key] [value] [secured] - Update a deployment variable
  • delete-deploy-variable <workspace> <repo> <environment> <variable> - Delete a deployment variable
  • check-credentials - Reports which credential file is active and whether it's shaped correctly (field names, format validity), WITHOUT ever printing a secret value. Run this instead of opening/catting a credentials file directly to debug an auth problem.
  • check-for-updates - Reports whether this repo's main branch has moved forward since this skill was installed. Report-only, never applies anything.
  • self-update [confirm] - Without confirm, same report as check-for-updates. With confirm, pulls/rebuilds the update in place (git checkout installs) or redeploys from a fresh clone (file-copy installs) - never overwrites credentials.json.

MUST use for: "latest failed build", "download logs for pipeline #123", "what failed in this build", "get pipeline by number", "create a sandbox/production deployment environment", "add a deployment secret/variable", "list deployment environments", "check for skill updates", "update this skill"

Requires a different app-password scope than the rest of this skill - see Deployment Environments & Variables below before using these six commands.

Usage:

node ~/.claude/skills/bitbucket-devops/lib/helpers.js <command> <args>

Example:

# User: "What's the latest failing pipeline?"
# You MUST use:
node ~/.claude/skills/bitbucket-devops/lib/helpers.js get-latest-failed "workspace" "repo"

# DO NOT create a new script
# DO NOT use node -e
# DO NOT write custom API calls

Full SKILL.md on GitHub

Install bitbucket-devops in Claude Code & Claude Desktop

Sign up to install this skill

Create a free account to reveal the install command and save the skill to your library.

  • Reveal the one-line install command
  • Save skills to your synced library
  • Get notified when skills update
Sign up freeI already have an account

Allowed tools

Tools this skill is permitted to call.

Bash
Read
Write
Grep
Glob

Bundled files

.gitattributes.gitignore.gitmodulesCHANGELOG.mdCONTRIBUTING.mdLICENSEREADME.mdTESTING.mdcredentials.json.templateinstall.ps1install.shpackage.jsonskill-report.jsonsmoke-test.sh

FAQ

What does the bitbucket-devops skill do?

Comprehensive Bitbucket pipeline automation using direct Node.js API calls. Monitor pipeline status, analyze failures, download logs, and trigger builds. Use this skill when the user asks to check pipeline status, find failing pipelines, download logs, trigger builds, or debug pipeline failures. No MCP approval prompts required - uses Bash tool with node commands.

How do I install the bitbucket-devops skill?

Copy the skill folder into ~/.claude/skills (the Claude Code tab above does this in one command), or install it as a plugin.

Does the bitbucket-devops skill run scripts?

Yes, this skill bundles executable scripts. Review the source before installing.

Related skills

Compare bitbucket-devops with