From atlas
Bitbucket PR: view/diff/comment/approve. Trigger: 'PR', 'pull request', 'PR 확인', '승인', 'approve PR', 'PR 코멘트'
How this skill is triggered — by the user, by Claude, or both
Slash command
/atlas:pr <PR number or URL><PR number or URL>This skill is limited to the following tools:
The summary Claude sees in its skill listing — used to decide when to auto-load this skill
Use this skill for Bitbucket Cloud PR lifecycle work: discover an existing PR, inspect its diff and comments, create a PR, write or revise its description, respond to review, approve, and merge.
Use this skill for Bitbucket Cloud PR lifecycle work: discover an existing PR, inspect its diff and comments, create a PR, write or revise its description, respond to review, approve, and merge.
Prefer ${CLAUDE_PLUGIN_ROOT}/scripts/bb_pr.sh for supported operations. It auto-detects workspace/repo from git remote get-url origin; override with WORKSPACE=... REPO_SLUG=... when operating outside a checked-out repo.
BITBUCKET_EMAIL and BITBUCKET_API_TOKEN must be in env. If missing, run /atlas:setup before doing PR work.
/pull-requests/<id>.bb_pr.sh find-by-branch first.@file for long markdown descriptions, review replies, and merge messages.references/pr-conventions.md for PR description structure and review reply format.${CLAUDE_PLUGIN_ROOT}/scripts/bb_pr.sh get <pr_id>
${CLAUDE_PLUGIN_ROOT}/scripts/bb_pr.sh diff <pr_id>
${CLAUDE_PLUGIN_ROOT}/scripts/bb_pr.sh comments <pr_id>
${CLAUDE_PLUGIN_ROOT}/scripts/bb_pr.sh activity <pr_id>
Report findings first when reviewing code. Include file/line references from the diff when possible.
Prepare the branch, push it, write a concise markdown body, then create:
${CLAUDE_PLUGIN_ROOT}/scripts/bb_pr.sh create "PR title" @/tmp/pr-body.md [source_branch] [destination_branch]
Defaults are current_branch -> main. The created PR closes the source branch on merge.
${CLAUDE_PLUGIN_ROOT}/scripts/bb_pr.sh update <pr_id> title "New title"
${CLAUDE_PLUGIN_ROOT}/scripts/bb_pr.sh update <pr_id> description @/tmp/pr-body.md
Use this when review feedback asks for a clearer PR description or when implementation scope changes.
${CLAUDE_PLUGIN_ROOT}/scripts/bb_pr.sh comment <pr_id> @/tmp/reply.md
${CLAUDE_PLUGIN_ROOT}/scripts/bb_pr.sh inline <pr_id> path/to/file.py 42 @/tmp/inline-reply.md
Before replying, read comments and activity so the response matches the actual review thread.
bb_pr.sh comment posts a general comment — NOT a thread reply.
To reply inside a reviewer's comment thread, use the Bitbucket API directly with "parent": {"id": <comment_id>}. See references/bitbucket-api.md → "Reply to Comment Thread" and references/pr-conventions.md → "Review Reply Convention" for the full workflow.
Steps to post a thread reply:
bb_pr.sh comments <pr_id> — find the parent comment ID (.id field of the reviewer's comment)/tmp/reply.md following the "Review Reply Convention" in pr-conventions.md (lead tally + ### Important N: … — Fixed/Follow-up blocks, mirroring the reviewer's severity label){"content": {"raw": "..."}, "parent": {"id": <id>}}${CLAUDE_PLUGIN_ROOT}/scripts/bb_pr.sh approve <pr_id>
${CLAUDE_PLUGIN_ROOT}/scripts/bb_pr.sh merge <pr_id> @/tmp/merge-message.md
Merge only after checking current PR state, review status, and any requested validation results.
| Call | Purpose |
|---|---|
bb_pr.sh get <pr_id> | PR details, URL, and description |
bb_pr.sh diff <pr_id> | unified diff |
bb_pr.sh comments <pr_id> | general and inline comments grouped by file |
bb_pr.sh activity <pr_id> | approvals, updates, and comment activity |
bb_pr.sh list [state] | list PRs; default OPEN |
bb_pr.sh find-by-branch [branch] | find open PR for branch; default current branch |
bb_pr.sh create <title> [desc|@file] [source] [dest] | create PR |
bb_pr.sh update <pr_id> title|description <value|@file> | update PR metadata |
bb_pr.sh comment <pr_id> <body|@file> | post general comment |
bb_pr.sh inline <pr_id> <path> <line> <body|@file> | post inline comment |
bb_pr.sh approve <pr_id> | approve PR |
bb_pr.sh merge <pr_id> [message|@file] | merge PR and close source branch |
For edge cases not covered by the wrapper, call Bitbucket REST directly with Basic auth. Keep tokens out of logs and use references/bitbucket-api.md for endpoint shapes.
npx claudepluginhub yoonjong12/atlas --plugin atlasCreates, edits, and optimizes skills for Claude Code, including drafting, evaluating with test prompts, iterating on performance, and improving skill descriptions for better triggering accuracy.