Bitbucket
An open-source arsenal of reusable skills for AI agents — repo understanding, code review, delivery workflows, security pentests, and plug-and-play integrations with Jira, GitHub, GitLab, Jenkins & more. Drop into Claude Code, Codex, or any skill-aware host.
npx -y skills add yuelenghan/orbit --skill bitbucketAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
One thing to look at
- 0 stars0 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.
What its author says it does
Copied from the file, not written here
Use when the user needs Bitbucket Data Center repository, branch, pull request, comment, merge, or build-trigger operations.
SKILL.md
6.0 KB, as published. Nobody here has run it
Bitbucket Skill
This skill is one implementation of the repo capability in the Orbit shared provider framework. Core repository, branch, and pull request operations live here; repo required-reviewers, jira pr-issues, jira issue-commits, and similar bridge flows are optional Bitbucket-specific enhancements layered on top.
Use this skill to operate Bitbucket Data Center repositories, branches, and pull requests through the packaged launcher and local CLI runtime.
Runtime and execution
Always run the packaged launcher through ${BITBUCKET_SKILL_DIR} so it works from the user's current working directory:
- macOS/Linux:
${BITBUCKET_SKILL_DIR}/bin/bitbucket - Windows:
${BITBUCKET_SKILL_DIR}\bin\bitbucket.cmd
${BITBUCKET_SKILL_DIR} is a documentation placeholder, not a guaranteed shell environment variable.
Do not execute ${BITBUCKET_SKILL_DIR}/bin/bitbucket or ${BITBUCKET_SKILL_DIR}\bin\bitbucket.cmd literally when the host has not resolved that placeholder.
Resolve BIN to a real launcher path once before the first CLI call.
When the host leaves the placeholder unresolved, check the current workspace install first, such as .claude/skills/bitbucket/bin/bitbucket or .Codex/skills/bitbucket/bin/bitbucket, then fall back to the host-provided installed skill directory when available.
Do not call node dist/cli.js directly.
Do not start with version, doctor, or --help when the user already asked for a concrete Bitbucket read or write task, unless the launcher itself is failing.
When exact command syntax is unclear, use the packaged launcher with <group> --help or <group> <action> --help before guessing flags.
The launcher first reuses a compatible system Node runtime when available (currently Node >= 20), and only downloads the required runtime into the local cache when the machine does not already have one.
Scope and boundaries
- Bitbucket Data Center only (not Bitbucket Cloud).
- CLI-mediated operations only.
- Do not call Bitbucket REST API directly from the skill layer.
- The CLI may use explicitly allowlisted plugin endpoints when the project scope permits them, including the Jenkins branch trigger endpoint for
build jenkins-trigger.
Provider-specific caveats
- Prefer stable, structured CLI output that downstream agents can parse reliably.
- Distinguish read actions and write actions explicitly.
- For write failures, return explicit and actionable failure details; do not swallow errors.
Review behavior
- During code review, if no high-confidence, actionable, non-trivial issues are found, return a clean result instead of proposing or submitting comments, and use
pr approvewhen the task is to submit the review result.
Quick reference — common operations
Use these directly without reading supporting files. BIN = the resolved launcher path for this session, not the literal ${BITBUCKET_SKILL_DIR} placeholder token.
| Task | Command |
|---|---|
| Trigger build (simplified) | BIN build trigger --repo <slug> --branch <name> [--project <KEY>] |
| Trigger build (explicit) | BIN build jenkins-trigger --project <KEY> --repo <slug> --branch refs/heads/<name> |
| List repos in a project | BIN repo list --project <KEY> |
| Search repos by name | BIN repo search --name <name> |
| List open PRs (project) | BIN pr list --project <KEY> --state OPEN --draft false |
| List merged PRs (date) | BIN pr list --project <KEY> --state MERGED --after YYYY-MM-DD |
| Get single PR | BIN pr get --project <KEY> --repo <slug> --id <ID> |
| Create branch | BIN branch create --project <KEY> --repo <slug> --name <branch> --start-point <ref> |
| Read file content | BIN repo content --project <KEY> --repo <slug> --path <path> [--at <ref>] |
Notes on build trigger:
--branchaccepts short names likedev(auto-prefixed torefs/heads/dev) or full refs.--projectis optional; when omitted, auto-resolved from repo slug via search. If multiple repos share the same slug across projects, specify--projectexplicitly.- For requests to trigger a specific repository branch build, default to
BIN build trigger --repo <slug> --branch <name>and do not runrepo searchjust to discover the project key. - Only fall back to
BIN build jenkins-trigger ...when the user already provided--project,build triggerreports that the same slug exists in multiple projects, or the user explicitly asks for full refs or explicit control. - Protected branches (main/master/prod/production) require
--confirm-production true.
Capability Domain
Domain:
repo
Provides:
repo.config.getrepo.config.setrepo.repo.listrepo.repo.searchrepo.repo.getrepo.repo.contentrepo.repo.default-branch.getrepo.branch.listrepo.branch.createrepo.pr.listrepo.pr.getrepo.pr.changesrepo.pr.diffrepo.pr.activitiesrepo.pr.createrepo.pr.updaterepo.pr.commentrepo.pr.review-commentrepo.pr.approverepo.commit.listrepo.commit.getrepo.commit.changesrepo.commit.pull-requestsrepo.repo.required-reviewersrepo.pr.linked-work-itemsrepo.issue.linked-commits-via-repo- project-scoped pull request aggregation
- provider-specific workflow helpers
Config check:
bitbucket config get
Config check
Run bitbucket config get when configuration state is unknown or before the first provider-scoped task in a new session.
Supporting files
- Read
references/commands.mdfor command families and packaged launcher forms. - Read
references/usage.mdfor execution policy, aggregation rules, and read/write behavior. - Follow
references/usage.mdfinding classification and routing rules before submitting PR review feedback. - Read
examples/common-workflows.mdfor end-to-end examples.