bitbucket
安装方式
先用 Prompt 核对来源与依赖。也可下载安装包。
用 AI 助手安装
复制提示词,让助手先核对固定版本和依赖。
查看 Prompt收起 Prompt
先检查当前 Agent 是否已安装 SkillPI Skill Finder。如果尚未安装,请按官方仓库的说明安装并启用:https://github.com/Findskills/skillpi。然后使用 Skill Finder 打开此 SkillPI 详情页并定位 "bitbucket":https://skillpi.com/zh/skills/deepskill-ccf9d504de26fbedc3ad442629a689de84df2fb86f67983fe17c1e17027290e0。安装前核对上游来源和版本:https://github.com/TerminalSkills/skills。来源不一致时停止并说明差异。核对通过后,用 Skill Finder 安装目标 Skill,并报告安装路径和来源版本。
来源与配置
github.com
配置方式待核实
请查看原始来源中的适用工具、依赖和权限要求。
安装实测待补充
使用 Bitbucket Cloud 管理代码仓库、Pipelines 与代码审查;用于设置 Bitbucket 仓库、配置 Bitbucket Pipelines 实现 CI/CD、管理拉取请求、设置分支权限、使用 REST API、创建 Webhook、管理部署环境、与 Jira 集成以及配置合并检查和自动化仓库操作。
介绍来源: third_party · TerminalSkills · 1.0.0 参考来源
SkillPi 解读
- 能完成的任务
- 翻译待完成,请参阅来源文档。
- 软件、账号及付费要求
- 翻译待完成,请参阅来源文档。
- 实测状态
- 未测试
文件浏览
Frontmatter
name: bitbucket
version: 1.0.0
description: Browse Bitbucket Cloud repos, review pull requests, read diffs, check branches. Use when user mentions PRs, code changes, diffs, branches, Bitbucket, or repo names.
author: Viksi.ai
license: MIT
metadata:
openclaw:
emoji: "🪣"
requires:
env: ["ATLASSIAN_EMAIL", "BITBUCKET_API_TOKEN", "BITBUCKET_WORKSPACE"]
tools: ["curl", "python3"]Bitbucket Cloud (Read-Only)
Browse repos, review PRs, read diffs and source code via a bash CLI wrapper. Read-only access — the agent cannot create, merge, or modify anything. No jq required — uses python3 for JSON parsing.
Script location: {baseDir}/bitbucket-cli.sh
Setup
Set these environment variables on your OpenClaw gateway:
ATLASSIAN_EMAIL— the Atlassian account emailBITBUCKET_API_TOKEN— a scoped API token with Repositories: Read and Pull requests: Read only. Create at id.atlassian.com/manage-profile/security/api-tokens, select Bitbucket as the app.BITBUCKET_WORKSPACE— the workspace slug from your Bitbucket URLs (e.g.mycompanyfrombitbucket.org/mycompany/repo)
Security note: Use a separate read-only scoped token for Bitbucket, not the same token as Jira/Confluence. This ensures the agent cannot write to repositories even if instructed to.
Make the script executable: chmod +x {baseDir}/bitbucket-cli.sh
Commands
List repositories
{baseDir}/bitbucket-cli.sh repos
Returns: [{ slug, name, full_name, language, updated, is_private, url }]
List pull requests
{baseDir}/bitbucket-cli.sh prs my-repo
{baseDir}/bitbucket-cli.sh prs my-repo MERGED
State: OPEN (default), MERGED, DECLINED.
Returns: { total, pullrequests: [{ id, title, author, source, destination, state, created, updated, url }] }
Get PR details
{baseDir}/bitbucket-cli.sh pr my-repo 42
Returns: { id, title, description, author, source, destination, state, reviewers, created, updated, comment_count, url }
Get PR diffstat (file change summary)
Use this first to understand scope before reading the full diff.
{baseDir}/bitbucket-cli.sh diffstat my-repo 42
Returns: { files_changed, total_added, total_removed, files: [{ path, status, lines_added, lines_removed }] }
Get full diff
{baseDir}/bitbucket-cli.sh diff my-repo 42
Returns raw unified diff text. For large PRs (500+ lines), read diffstat first.
Get PR comments
{baseDir}/bitbucket-cli.sh comments my-repo 42
Returns: { count, comments: [{ id, author, content, inline, created }] }
Inline comments include { path, from, to } showing which file and line.
List commits in a PR
{baseDir}/bitbucket-cli.sh pr-commits my-repo 42
Returns: [{ hash, message, author, date }]
List branches
{baseDir}/bitbucket-cli.sh branches my-repo
{baseDir}/bitbucket-cli.sh branches my-repo "feature"
Returns: [{ name, hash, date, author }]
Recent commits on a branch
{baseDir}/bitbucket-cli.sh commits my-repo main
Returns: [{ hash, message, author, date }] (last 10)
Read file contents
{baseDir}/bitbucket-cli.sh file my-repo README.md
{baseDir}/bitbucket-cli.sh file my-repo src/main.py develop
Returns raw file content. Default branch is main — always specify the branch explicitly if the user mentions a specific branch.
List directory contents
{baseDir}/bitbucket-cli.sh ls my-repo
{baseDir}/bitbucket-cli.sh ls my-repo src/
{baseDir}/bitbucket-cli.sh ls my-repo src/ develop
{baseDir}/bitbucket-cli.sh ls my-repo "" develop
Returns: [{ path, type, size }]
Default branch is main. To list root on a different branch, pass empty string as path.
Recursive directory listing
{baseDir}/bitbucket-cli.sh tree my-repo
{baseDir}/bitbucket-cli.sh tree my-repo src/
{baseDir}/bitbucket-cli.sh tree my-repo "" develop
Returns one line per entry: d for directories, f for files. Sorted alphabetically. Use this to understand repo structure in a single call instead of calling ls on every subdirectory.
Search code
{baseDir}/bitbucket-cli.sh search "class UserService"
{baseDir}/bitbucket-cli.sh search "def process" my-repo
Returns: [{ file, repo, matched_lines }]
Searches across all repos in the workspace, or scoped to a specific repo.
Compare branches
{baseDir}/bitbucket-cli.sh compare my-repo main develop
{baseDir}/bitbucket-cli.sh compare my-repo release/1.0 hotfix/bugfix
Returns raw unified diff between two branches. Use when you need to see differences without an existing PR.
Repository Exploration
When exploring a repository:
- Always start with
treeto see the full directory structure in one call - Read key files first: README.md, package.json, requirements.txt, pom.xml, build.gradle, Makefile, Dockerfile, docker-compose.yml
- Never read every file — pick the ones relevant to the task
- Specify the branch — do not assume
main. If the user mentions a branch, pass it to every command - For large repos, use
searchto find specific code instead of reading files one by one
Rules
- This skill has READ-ONLY access. Never attempt to create, merge, approve, or decline PRs.
- For large diffs, always read diffstat before the full diff.
- All output is JSON to stdout (except
diffandfilewhich return raw text). - Results are paginated: repos (max 50), PRs (max 25), branches (max 25), commits (max 10). If you need more, tell the user the results may be incomplete.
当前收录版本
1.0.0
安全与评测信息
质量评测
满分100 · 来自 SkillPi LAB 实验室的评测报告。
待提升项
-
缺少 When to Use 章节 原报告严重程度:轻微
文档中缺少明确的 When to Use 使用场景说明章节
改进建议:建议添加 When to Use 章节,明确说明在什么情况下应该使用此 Skill
亮点
- 提供完整的 Bitbucket Cloud 代码仓库管理功能
- 支持查看仓库、PR、diff、分支等核心开发场景
- 明确的只读访问策略,保障安全性
待提升项
-
触发词可进一步细化 原报告严重程度:轻微
description 中触发词较为通用,可添加更多 Bitbucket 特定术语
改进建议:建议添加更多 Bitbucket 特定触发词,如 'bitbucket pipelines', 'webhook', 'merge checks' 等
亮点
- 触发词覆盖合理,包含 Bitbucket、PRs、code changes 等关键词
- 边界清晰,不易与其他代码管理 Skill 重叠
待提升项
-
文档结构可优化 原报告严重程度:轻微
Commands 部分较长,可考虑按功能分组或使用子标题
改进建议:建议将 Commands 部分按功能分组,如 'Repository Management', 'Pull Request Operations' 等
亮点
- 文档结构完整,包含 Setup、Commands、Rules 等必要章节
- 提供详细的使用示例和参数说明
- frontmatter 信息完整规范
待提升项
-
错误处理说明不足 原报告严重程度:轻微
文档中缺少对 API 调用失败等异常情况的处理说明
改进建议:建议添加错误处理说明,如网络错误、认证失败等情况的应对策略
亮点
- 工具来源明确,使用标准的 curl 和 python3
- 参数说明完整,环境变量和命令参数均有详细说明
- 强调使用只读 token,提供安全保障
取前四项原始分值的算术平均,四舍五入取整。可通过收录报告核对各项评分与说明,运行记录需单独查证。
正文静态检测
100 / 100 · skillpi-20261123-no-r3-v1
正文未命中当前规则。
分数仅反映正文中的规则命中,供使用前参考。附件与运行行为不在此评分范围内。
权限与使用前检查
根据当前主文档自动整理,命中内容可能是示例或防护说明;不是实际权限声明,也未覆盖附件、外部依赖或运行行为。
未从主文档识别到上述常见操作,不能据此判断无需权限或没有风险。
文档引用的域名或地址
这些地址可能用于文档链接或示例,不是已批准的联网清单。使用前核对实际目的地及发送的数据。
- id.atlassian.com
安全评级与访问范围
safe · 静态证据核验,不代表运行安全保证。
翻译待完成,请参阅来源文档。
使用前请由宿主核对并授权实际文件读写、外部服务和联网目的地;本站的核验不会授予任何运行权限。
用户讨论
还没有已核实的点评。