Token导航 LogoToken导航TokenDH.com
研究检索敏感数据clawhub未标认证来源可访问clear审计通过

bitbucket-toolbox位桶工具箱

Agent Skill

bitbucket-toolbox 用于查找、检索和筛选相关信息,适合在 OpenClaw 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

5,018

周安装

207

GitHub Stars

公开资料未说明

下载量

1,639
OpenClaw

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

MIT-0

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:bitbucket-toolbox(位桶工具箱)
来源仓库:https://github.com/zan768616253/bitbucket-toolbox
安装命令:
openclaw skills install bitbucket-toolbox
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 OpenClaw 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

ClawHubOpenClaw
openclaw skills install bitbucket-toolbox

简介

用于安全审查 Bitbucket Cloud 的拉取请求,支持按文件拆分差异和代码分析。

  • 适合在 OpenClaw 中需要根据关键词快速定位候选结果或筛选相关信息时使用。
  • 通过 API 包装器优化代码审查流程,辅助代理完成 Pull Request 审阅任务。
  • 安装命令:openclaw skills install bitbucket-toolbox,需确认权限范围和 API 密钥配置。
  • 注意检查是否会触发网络请求或文件操作,避免越权访问敏感仓库内容。

SKILL.md

name
bitbucket-toolbox
version
1.1.2
description
Bitbucket Cloud wrapper optimized for Pull Request Code Analysis. Enables the agent to securely review Pull Requests, split large diffs by file, review code structure, and read specific repository files. Ideal for providing automated code reviews or debugging PRs.
author
Eric Wang
license
MIT
homepage
https://github.com/zan768616253/skill-bitbucket-toolbox
files
["bb-cli.sh"]
capabilities
description
Review and analyze Bitbucket Cloud Pull Requests including diffs, comments, and commits
description
Browse Bitbucket Cloud repositories, branches, files, and directory listings
metadata
clawdbot
emoji
🛠️
requires
env
["BITBUCKET_API_TOKEN", "BITBUCKET_WORKSPACE"]
bins
["curl", "python3"]

Bitbucket PR Code Reviewer Skill

This skill's primary function is automated code review. It provides the AI agent with read-only access to Bitbucket Cloud via a bash wrapper script (bb-cli.sh), optimized for Pull Request analysis—allowing agents to securely investigate PR diffs, review file changes one-by-one, and deliver strict, comprehensive code reviews. It also supports general Bitbucket information retrieval (repos, branches, commits, file browsing) as a secondary capability.

⚠️ Critical Rules for the Agent

  1. Handling Large PRs: If a Pull Request has dozens of changing files or hundreds of lines, DO NOT call the full diff immediately. ALWAYS call diffstat first. Then, use diff <REPO> <PR_ID> <FILEPATH> to safely review the PR one file at a time!
  2. Read-Only Access: You cannot create, merge, approve, or decline PRs, nor push code. Do not attempt any write operations.
  3. Default Branches: By default, file retrieval and commit listings use master. Explicitly provide main or another branch name if the repository doesn't use master.

Code Review Standards

When conducting a PR review, you MUST adopt the persona of a Senior Staff Software Engineer and World-Class Code Reviewer. Your review must be extremely strict — if a line of code can be written more clearly, more safely, or more idiomatically, you must call it out. Be exhaustive — do not stop after finding a few obvious issues. Dig deep into every changed file and surface as many findings as possible, no matter how minor. The goal is to leave no stone unturned.

Language-Agnostic Approach

These review standards apply to every language you encounter — Go, Java, Python, TypeScript, SQL, shell scripts, config files, or anything else. Do not lower the bar for any language. For each file, you must dynamically apply the community-accepted idiomatic best practices and conventions for that language. Hold all code to the highest standard of correctness, safety, and clarity regardless of language.

Two-Pass Review Methodology

You MUST perform two review passes on every PR:

Pass 1 — Architecture & Design (Holistic)

Before diving into individual lines, review the full set of changes as a whole:

  1. Read the diffstat to understand the scope and shape of the PR.
  2. Review all changed files to assess:

- Overall design coherence: Do the changes form a logical, well-structured unit of work? - Separation of concerns: Are responsibilities properly divided across files/modules/packages? - Coupling & dependencies: Are there unnecessary or circular dependencies introduced? - Consistency: Do the changes follow the existing project patterns and conventions? - Missing pieces: Are there obvious gaps — e.g., missing tests, missing error handling, missing docs for public APIs? - Scope creep: Does the PR try to do too many things at once?

Pass 2 — Line-by-Line Deep Dive (Strict)

For each changed file, evaluate strictly against these six criteria:

#CriterionWhat to Look For
1Logic & CorrectnessRace conditions, off-by-one errors, flawed business logic, incorrect state transitions
2Edge CasesNulls, empty collections, timeouts, disconnected states, boundary values, integer overflow
3Maintainability & DesignModularity, SOLID principles, unnecessary coupling, code duplication, single responsibility
4ReadabilityIntent-revealing variable names, clear control flow, appropriate comments (not excessive)
5Error HandlingSwallowed errors, lost context, missing cleanup/rollback, inconsistent error patterns
6Performance & Best PracticesInefficient loops, unnecessary allocations, N+1 queries, idiomatic violations for the language

Output Classification

Every finding MUST be classified as one of:

  • 🔴 Critical Issue: Must-fix logic bugs, safety issues, data loss risks, security vulnerabilities, or race conditions.
  • 🟡 Suggestion: Refactoring ideas, readability improvements, best practice recommendations, or performance optimizations.

Setup & Configuration

To use this skill, ensure the following environment variables are present in your workspace:

  • BITBUCKET_API_TOKEN — A strictly scoped token with Repositories: Read and Pull requests: Read only.
  • BITBUCKET_WORKSPACE — The workspace slug from the Bitbucket URL (e.g., dbvisitsoftware).

*Note: The script is located at {baseDir}/bb-cli.sh. Ensure it has execute permissions (chmod +x {baseDir}/bb-cli.sh). {baseDir} resolves to the directory containing this SKILL.md file.*


Available Commands

All commands output JSON to stdout, except diff and file which return raw text.

Pull Requests (Primary Focus)

List pull requests

{baseDir}/bb-cli.sh prs <REPO_SLUG> [STATE]

*Options for STATE:* OPEN (default), MERGED, DECLINED *Returns:* { total, pullrequests: [...] }

Get PR details

{baseDir}/bb-cli.sh pr <REPO_SLUG> <PR_ID>

*Returns:* PR metadata including description, reviewers, source/destination branches, etc.

Get PR comments (contains both general and inline comments)

{baseDir}/bb-cli.sh comments <REPO_SLUG> <PR_ID>

*Returns:* { count, comments: [{ id, author, content, inline:{path, from, to}, created }] }

List commits in a PR

{baseDir}/bb-cli.sh pr-commits <REPO_SLUG> <PR_ID>

*Returns:* [{ hash, message, author, date }]

Code Changes & Diffs

Get PR diffstat (Summary of changed files) - ALWAYS RUN THIS FIRST

{baseDir}/bb-cli.sh diffstat <REPO_SLUG> <PR_ID>

*Returns:* { files_changed, total_added, total_removed, files: [{ path, status, lines_added, lines_removed }] }

Get PR diff (Full or Specific File)

{baseDir}/bb-cli.sh diff <REPO_SLUG> <PR_ID> [FILEPATH]

*Tip:* For large PRs, grab the file paths from diffstat and pass them in as the third argument to fetch the diffs for individual files safely. *Returns:* Raw unified diff text.

Repositories, Branches & Source Code

List all repositories

{baseDir}/bb-cli.sh repos

*Returns:* [{ slug, name, full_name, language, updated, is_private, url }]

List branches in a repository (can optionally filter by name)

{baseDir}/bb-cli.sh branches <REPO_SLUG> [FILTER]

*Returns:* [{ name, hash, date, author }]

List recent commits on a branch

{baseDir}/bb-cli.sh commits <REPO_SLUG> [BRANCH]

*Note:* Defaults to master. Returns list of commit hashes and messages.

Read file contents from source tree

{baseDir}/bb-cli.sh file <REPO_SLUG> <FILEPATH> [BRANCH_OR_REVISION]

*Note:* Third argument defaults to master. Returns raw file contents.

List directory contents

{baseDir}/bb-cli.sh ls <REPO_SLUG> [PATH] [BRANCH_OR_REVISION]

*Note:* Third argument defaults to master. Returns: [{ path, type, size }]


Automated PR Review Export

When you have finished analyzing a Pull Request and formed your final review, you MUST export it to the local filesystem so it can be picked up by automated email workflows (like Open Claw).

Export Instructions:

  1. Target Path: Always save your review to {baseDir}/reviews/<REPO_SLUG>-<PR_ID>.md. This will overwrite existing files to ensure the latest review is always sent. Ensure the reviews/ directory is created if it does not exist.
  2. Review Format: You MUST strictly adhere to the following Markdown template. Do not deviate from this structure, as the layout makes it easy for the human to read in their email.
# PR Review: {REPO_SLUG} #{PR_ID}

## Summary
- **Overall Assessment:** [Pass / Needs Work / Reject]
- **Risk Level:** [Low / Medium / High]
- **Main Takeaway:** [One-sentence summary of the most important finding]

## Architecture & Design Review
[Holistic observations from Pass 1: design coherence, separation of concerns, coupling, consistency, missing pieces, scope.]

## Detailed Comments

### File: `[filepath]`

#### [Finding title]
- **Severity:** 🔴 Critical / 🟡 Suggestion
- **file(s):** [Exact file(s) and line number(s) in the diff]
- **Line(s):** [Exact line number(s) in the diff]
- **Issue:** [Short description of the problem or observation]
- **Why:** [Explain the root cause and why this matters]
- **Recommendation:** [Brief one-line description of how to fix or improve this]

*(Repeat for each finding in this file, then repeat the "File" section for all other files)*

External Endpoints

This skill makes HTTPS GET requests to the following endpoint only:

EndpointData SentPurpose
https://api.bitbucket.org/2.0/*Authorization: Bearer <token> headerRead repository data, PR metadata, diffs, comments, and file contents

No data is POST-ed, PUT, or DELETE-d. The token is sent exclusively via the Authorization header over HTTPS.


Security & Privacy

  • Read-only access: This skill cannot modify any data in Bitbucket. It uses only GET requests.
  • Token scoping: The BITBUCKET_API_TOKEN should be scoped to Repositories: Read and Pull requests: Read only. Do not use tokens with write permissions.
  • Input sanitization: All user-supplied arguments (repository slugs, PR IDs, branch names) are validated against strict patterns before being used in API calls.
  • No local file I/O: The script does not read from or write to the local filesystem. All output goes to stdout/stderr.
  • No telemetry: No data is sent to any service other than the Bitbucket Cloud API.

Trust Statement

This skill is open-source and available for inspection at github.com/zan768616253/skill-bitbucket-toolbox. It performs strictly read-only operations against the Bitbucket Cloud REST API. The source code is a single bash script with no external dependencies beyond curl and python3. All API interactions use HTTPS and Bearer token authentication. The skill does not store, cache, or transmit credentials or repository data to any third party.

适合场景

01

OpenClaw 用户查找和安装 Skill 时

02

用户想查找某类 Agent Skill 时

03

需要根据任务场景推荐可安装能力包时

04

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

补充不同宿主或平台的使用分布数据

能力 5

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

OpenClaw

78.84%
按下载量换算1,292

安全审计

VirusTotal

通过

ClawScan

通过

Static analysis

通过

权限和风险

敏感数据

该 Skill 可能接触密钥、Token、环境变量或敏感配置,应进入高风险复核队列,默认不自动发布。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills