Claude Code Bitbucket — Development skill for Claude Code
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:
Go to **Repository settings** → **Repository variables**
**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**
BITBUCKET_ACCESS_TOKEN=username:app_password(Create app password)
**Option C: Separate Variables**
BITBUCKET_USERNAME= Your usernameBITBUCKET_APP_PASSWORD= Your app password
Add your Claude API key (choose one):
ANTHROPIC_API_KEY- For Anthropic Claude APIAWS_ACCESS_KEY_ID+AWS_SECRET_ACCESS_KEY- For AWS BedrockGCP_PROJECT_ID+ `GCP_SERVICE_
Related Skills
Atlassian Integration
Integrate with Jira, Confluence, and Bitbucket
Ccundo
Integrates seamlessly with Claude Code to provide granular undo functionality by reading directly from Claude
Claude Code Viewer
A full-featured web-based Claude Code client that provides complete interactive functionality for managing Cla
Assess Project
DEPRECATED: Use /bootstrap-project instead. This command is superseded — bootstrap-project includes all assess
Sc Help
List all available /sc:sc commands and their functionality
CheckTests
Add or create tests to verify code functionality for a specific source file
Related Agents
Bitbucket Migrator
Specialized agent for migrating existing Bitbucket Pipelines to GitHub Actions workflows
Cicd Generator
Use this agent to generate or update CI/CD pipeline files based on VCS choice (GitHub/GitLab/Bitbucket) and cu
Comment Responder
Full-cycle agent for answering PR reviewer comments. Fetches unanswered comments from a Bitbucket PR, reads th