# Bitbucket

> Bitbucket integration for AI agents via ClawLink — browser login, no API key setup. Connect Bitbucket through ClawLink's hosted setup to manage repositories, pull requests, issues, branches, and pipelines from your Bitbucket workspace. Use this skill when the user wants to work with Bitbucket (Developer Tools) — connect Bitbucket, read or update Bitbucket data, or take actions in Bitbucket from chat instead of saying you cannot access it.

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

---


# Bitbucket

Use **Bitbucket** from your AI agent through [ClawLink](https://claw-link.dev) — browser login, no API key to paste, no config to edit. Connect Bitbucket once and the agent can read and act on it. Works in any agent that can run shell commands (Claude Code, Cursor, Codex, Cline, and more).

## Setup

Run these once — the agent can run them for you:

```bash
npx @useclawlink/cli login              # opens browser → approve (mints + stores a key)
npx @useclawlink/cli connect bitbucket   # opens browser → authorize Bitbucket
```

No API key to create or paste — `login` stores the credential at `~/.clawlink/credentials.json`.

## Using Bitbucket

```bash
npx @useclawlink/cli actions bitbucket "<what you want to do>"   # find an action
npx @useclawlink/cli describe bitbucket <action-id>             # see its inputs (before writes)
npx @useclawlink/cli run bitbucket <action-id> --input '<json>' # execute
```

Reads first; confirm with the user before any write.

## Available actions

| Action | Description |
|--------|-------------|
| `bitbucket_create_pull_request` | Create a new pull request |
| `bitbucket_create_issue` | Create a new issue in a repository |
| `bitbucket_create_branch` | Create a new branch in a repository |
| `bitbucket_approve_pull_request` | Approve a pull request |
| `bitbucket_create_repository` | Create a new repository |
| `bitbucket_browse_repository_path` | Browse repository contents at a path |

## Notes

- **No API key for Bitbucket itself** — ClawLink holds the OAuth token; the agent only holds your ClawLink credential.
- Not connected yet, or access expired? Re-run `npx @useclawlink/cli connect bitbucket`.
- The action list above is a snapshot; `npx @useclawlink/cli actions bitbucket` is always current.

## Resources

- ClawLink: https://claw-link.dev
- Docs: https://docs.claw-link.dev
- CLI: https://www.npmjs.com/package/@useclawlink/cli

---

**Powered by [ClawLink](https://claw-link.dev)** — connect 90+ apps to any AI agent.

