# Bitbucket

> Manage Bitbucket repositories, pull requests, and pipelines via API.

- Skill: `thinkfleetai/bitbucket` (Agent Skill)
- Install (CLI): `npx skillmds@latest add thinkfleetai/bitbucket`
- Raw SKILL.md: https://api.skillmd.com/api/skills/thinkfleetai/bitbucket/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Integrations & APIs
- Author: thinkfleetai (https://skillmd.com/u/thinkfleetai)
- Updated: 2026-09-17
- Page: https://skillmd.com/skills/thinkfleetai/bitbucket

---

# Bitbucket
Git repository hosting.
## Environment
```bash
export BITBUCKET_USERNAME="xxxxxxxxxx"
export BITBUCKET_APP_PASSWORD="xxxxxxxxxx"
```
## List Repositories
```bash
curl -u "$BITBUCKET_USERNAME:$BITBUCKET_APP_PASSWORD" "https://api.bitbucket.org/2.0/repositories/$BITBUCKET_USERNAME"
```
## Create Pull Request
```bash
curl -X POST -u "$BITBUCKET_USERNAME:$BITBUCKET_APP_PASSWORD" \
  "https://api.bitbucket.org/2.0/repositories/{workspace}/{repo}/pullrequests" \
  -H "Content-Type: application/json" \
  -d '{"title": "Feature PR", "source": {"branch": {"name": "feature"}}, "destination": {"branch": {"name": "main"}}}'
```
## Links
- Docs: https://developer.atlassian.com/cloud/bitbucket/rest

