bb-api
NewBitbucket Cloud CLI built for AI coding agents — single-file bash, with CLAUDE.md snippet, .claude/rule, and skill bundled out of the box
Summary
bb-api is a single-file Bash CLI that wraps the Bitbucket Cloud REST API, designed specifically for AI coding agents.
- claude/rule bundled for seamless integration into Claude Code workflows.
Install & Usage
mkdir -p .claude/skillsmkdir -p .claude/skills && curl -o .claude/skills/bb-api.md https://raw.githubusercontent.com/restarter/bb-api/main/SKILL.md/bb-apiUse Cases
Usage Examples
/bb-api list-pull-requests --repo my-team/my-project
/bb-api create-pr --repo my-team/my-project --source feature/new-feature --title "Add new feature" --description "Implements the new feature as discussed"
/bb-api get-pr-diff --repo my-team/my-project --pr 42
Security Audits
Frequently Asked Questions
What is bb-api?
bb-api is a single-file Bash CLI that wraps the Bitbucket Cloud REST API, designed specifically for AI coding agents. It provides authenticated access to repositories, pull requests, branches, and more, with a CLAUDE.md snippet and .claude/rule bundled for seamless integration into Claude Code workflows.
How to install bb-api?
To install bb-api: create the skills directory (mkdir -p .claude/skills), then run: mkdir -p .claude/skills && curl -o .claude/skills/bb-api.md https://raw.githubusercontent.com/restarter/bb-api/main/SKILL.md. Finally, /bb-api in Claude Code.
What is bb-api best for?
bb-api is a skill categorized under General. It is designed for: api, agent. Created by restarter.
What can I use bb-api for?
bb-api is useful for: List all pull requests for a repository with their status and reviewers.; Create a new pull request from a feature branch with a title and description.; Fetch the diff of a specific pull request to review code changes.; List branches in a repository and filter by name or recent activity.; Get repository details including description, language, and last updated time.; Approve or merge a pull request directly from the CLI..