Claude Code Bitbucket
Description
A repo to imitate the github_action functionality but for Bitbucket
Installation
This entry records only its repository, not the path inside it, so there is no
exact command to give. Open the source below and copy the folder into
~/.claude/skills/, or the file into ~/.claude/agents/.
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
Awesome Go
A curated list of awesome Go frameworks, libraries and software
Development next.js
| The React Framework | 138360 | 1503 | 1 |
Development sharing-skills
skill for guidance.
Development root-cause-tracing
Use when errors occur deep in execution and you need to trace back to find the original trigger.
Development Template Skill
Minimal skeleton for a new skill project structure.
Development Third-party Notices
THE FOLLOWING SETS FORTH ATTRIBUTION NOTICES FOR THIRD PARTY SOFTWARE THAT MAY BE CONTAINED IN PORTIONS OF THI
Development