zereight/skill · Archived

bitbucket-api-env

Use this skill for Bitbucket Cloud work when the user wants REST/API access through injected environment variables and explicitly does not want Bitbucket MCP, mcporter Bitbucket, or connector-backed Bitbucket tools.

First seen May 11, 2026

Installation

$ npx skills add zereight/skill --skill bitbucket-api-env

Stronger alternatives

This repository is archived — consider an actively maintained alternative.

Similar popular skills

Related neighbors and high-traction skills in the same topics — useful to compare before installing.

Also in this package

Other skills from zereight/skill · top by installs.

npx skills add zereight/skill

Browse all from zereight/skill

More details

Agent compatibility

Declared targets from SKILL.md / docs. Unmarked agents are not listed — the skill may still install via the CLI.

Claude Code Not declared
Cursor Not declared
Codex Not declared
GitHub Copilot Not declared
Windsurf Not declared
Gemini CLI Not declared
Cline Not declared
OpenCode Not declared

Repository health

Default branch main
Open issues 0
Status Archived

Package contents

Files included with this skill beyond the listing page.

  • skill md SKILL.md 3,281 B
  • docs SUMMARY.md 240 B

History

  1. First seen on skills.sh
  2. First recorded snapshot · 1 installs

SKILL.md

Bitbucket API Env

Use Bitbucket Cloud REST directly. Do not use Bitbucket MCP, mcporter list bitbucket, mcporter call bitbucket.*, or connector-backed Bitbucket tools unless the user explicitly overrides this skill.

Environment

Required repository target:

export BITBUCKET_WORKSPACE=bank-x
export BITBUCKET_REPO_SLUG=mobile-app-workspace

Use one auth mode.

Basic auth with Atlassian email and API token:

export BITBUCKET_USERNAME="$ATLASSIAN_USER_EMAIL"
export BITBUCKET_API_TOKEN="$ATLASSIAN_API_TOKEN"

Bearer auth with a Bitbucket access token:

export BITBUCKET_ACCESS_TOKEN="<token>"

Never paste token values into the conversation or hard-code them into files. Prefer already-exported environment variables. If variables are missing, say exactly which names are missing.

Workflow

  1. Parse Bitbucket URLs into workspace, repo_slug, and pull request id when possible. Otherwise use the environment target.
  2. Use the bundled helper for common read paths:
node /Users/tao.exe/Documents/skill/skills/bitbucket-api-env/scripts/bitbucket-api.mjs pr 123
node /Users/tao.exe/Documents/skill/skills/bitbucket-api-env/scripts/bitbucket-api.mjs comments 123
node /Users/tao.exe/Documents/skill/skills/bitbucket-api-env/scripts/bitbucket-api.mjs activity 123
node /Users/tao.exe/Documents/skill/skills/bitbucket-api-env/scripts/bitbucket-api.mjs diffstat 123
node /Users/tao.exe/Documents/skill/skills/bitbucket-api-env/scripts/bitbucket-api.mjs diff 123 > /private/tmp/bitbucket-pr-123.diff
  1. For custom endpoints, use request:
node /Users/tao.exe/Documents/skill/skills/bitbucket-api-env/scripts/bitbucket-api.mjs request GET "/repositories/$BITBUCKET_WORKSPACE/$BITBUCKET_REPO_SLUG/pullrequests?state=OPEN&pagelen=50"
  1. Keep raw large outputs in /private/tmp; summarize with exact ids, statuses, branch names, file paths, or line references.
  2. For Korean internal engineering requests, answer in Korean.

Guardrails

  • Default to read-only. Mutating methods require both an explicit user request and BITBUCKETAPIALLOW_WRITE=1.
  • Report the exact HTTP status and response body excerpt when an API call fails.
  • Do not claim that a PR, comment, or file was checked unless the matching API call was actually run.
  • Do not fall back to Bitbucket MCP because REST failed. Say the API failure directly, then ask whether to try another route.

Common Endpoints

  • Pull request: GET /repositories/{workspace}/{reposlug}/pullrequests/{pullrequest_id}
  • Comments: GET /repositories/{workspace}/{reposlug}/pullrequests/{pullrequest_id}/comments
  • Activity: GET /repositories/{workspace}/{reposlug}/pullrequests/{pullrequest_id}/activity
  • Diff: GET /repositories/{workspace}/{reposlug}/pullrequests/{pullrequest_id}/diff
  • Diffstat: GET /repositories/{workspace}/{reposlug}/pullrequests/{pullrequest_id}/diffstat
  • Commits: GET /repositories/{workspace}/{reposlug}/pullrequests/{pullrequest_id}/commits