tsadrakula

Claude Code Bitbucket — Development skill for Claude Code

Development community

A repo to imitate the github_action functionality but for Bitbucket.

How to install Claude Code Bitbucket

This entry records only its repository, not the path inside it, so there is no exact command to give. Open tsadrakula/Claude_Code_Bitbucket and copy the folder into ~/.claude/skills/, or the file into ~/.claude/agents/.

What Claude Code Bitbucket does

A repo to imitate the github_action functionality but for Bitbucket.

Alternatives in Development

  • Bitbucket 71.9k ★
  • Code Simplifier — Simplify code while preserving functionality 14k ★
  • Retro — Facilitate structured sprint retrospectives with action items 7.8k ★

README

Claude Code for Bitbucket Pipelines

Bring Claude's AI-powered code assistance directly into your Bitbucket Pipelines workflows. This pipe enables automated code reviews, intelligent PR responses, and AI-driven development tasks within your CI/CD pipeline.

🚀 Quick Start

Copy this to your `bitbucket-pipelines.yml`:

# Basic setup - Claude responds to @claude mentions in PRs
pipelines:
  pull-requests:
    '**':
      - step:
          name: Claude Code Assistant
          image: atlassian/default-image:4
          script:
            # Install Bun
            - curl -fsSL https://bun.sh/install | bash
            - export PATH="$HOME/.bun/bin:$PATH"
            # Clone and setup Claude pipe
            - git clone https://github.com/tsadrakula/Claude_Code_Bitbucket.git /tmp/claude-pipe
            - cd /tmp/claude-pipe && bun install && bun run build
            # Return to repository directory and run Claude
            - cd $BITBUCKET_CLONE_DIR && bun run /tmp/claude-pipe/dist/index.js
          services:
            - docker

Add these Repository Variables:

  1. Go to **Repository settings** → **Repository variables**

  2. **REQUIRED for PR comments** (choose one option):

    **Option A: Repository Access Token (Recommended)**

    • Go to Repository settings → Access tokens → Create access token
    • Name: "Claude Code"
    • Permissions: Pull requests (write), Repositories (read)
    • Set BITBUCKET_ACCESS_TOKEN = x-token-auth:your_token_here

    **Option B: App Password**

    **Option C: Separate Variables**

    • BITBUCKET_USERNAME = Your username
    • BITBUCKET_APP_PASSWORD = Your app password
  3. Add your Claude API key (choose one):

    • ANTHROPIC_API_KEY - For Anthropic Claude API
    • AWS_ACCESS_KEY_ID + AWS_SECRET_ACCESS_KEY - For AWS Bedrock
    • GCP_PROJECT_ID + `GCP_SERVICE_