Skip to content
Agentmart
Submit a tool

bitbucket-pr

Use when code or model changes are ready for review — to branch, commit, push, and open a Bitbucket pull request with ad-git pr.

Skill by agentchieflou

IndexedMIT★ 1
Write a review

Chalk Labs

Need help deploying bitbucket-pr?

Chalk Labs sets up agents like this inside real teams: connected to your tools, tested on your data, with a human in the loop where it matters.

Book a call

Install

Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.

npx agentmarket install skill/agentchieflou-bitbucket-pr

Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.

Get the weekly diff

The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.

We use your email only for this newsletter. Privacy

About

Use when code or model changes are ready for review — to branch, commit, push, and open a Bitbucket pull request with ad-git pr. Works with or without a ticket. Never merges.

Use cases: marketing

No reviews yet. Installed it? Reviews come from verified installers only. How reviews work

Permissions

What this skill can do and what it asks for, from its SKILL.md and code. Checked Nov 1, 2026.

Tools
No tools found
Secrets
None asked for
Install scripts
None found

Network hosts it talks to 1

  • codeload.github.com · found in install command

Files it touches

  • ~/.claude/skills/bitbucket-pr

What's inside

Skill name
bitbucket-pr
Description
Use when code or model changes are ready for review — to branch, commit, push, and open a Bitbucket pull request with ad-git pr. Works with or without a ticket. Never merges.
License
MIT
Instructions
14 lines in SKILL.md · view on GitHub

Files (1)

  • SKILL.md

SKILL.md (first lines)

# Open a PR (never merge)

`ad-git pr` runs toil's `bitbucket pr create|update` behind the approval gate -- or `github pr create|update` when the remote is on toil's GitHub connection's host; `ad-doctor` rows `toil / toil launcher` and that provider's connection must not be `fail`.
1. `state.branch` must be set. `state.active_ticket` too, unless the work is **untracked**: the `ticket_policy` fact is `optional` (or absent) and the router recorded the `none` assumption. Both missing → `session-bootstrap`. STOP.
2. Look before you branch (AGENTS.md rule 16): `git for-each-ref refs/heads --format=%(refname:short)`. A branch carrying `<KEY>` already exists → it is this ticket's: continue on it when it is the current branch, else `ad-state ask` the operator to check it out and STOP -- never a second branch per ticket. None → `git checkout -b <branch>`; untracked work branches as `<type>/<slug≤4 words>` (`chore/rename-margin-measure`). Six or more local branches (`fleet.branches.warn`) → `git branch --no-merged <default>`, name them in one line, `ad-state ask --assume "continue on <branch>"`, and continue. `git status` — only intended files staged.
3. Commit: `<type>: <KEY> <what>` where type ∈ `feat|fix|docs|chore`; untracked work: `<type>: <what>`. One commit per logical change.
4. Push: `ad-git push --dry-run`, read `"ok"` (it names the branch, target and commits; a `refused` code says why not), then `ad-git push`. `refused: approval_timeout` or `approval_denied` → `friction-log` type `missing-info` quoting the `approval` id and the `hint`, as step 6. Never raw `git push`.
5. `ad-git pr --title "<KEY>: <summary>" --dry-run` (`--overwrite <PR id>` when `state.pr_url` names this branch's PR). On Bitbucket the PR opens ready for review: toil's Bitbucket PR verb has no draft, and `--draft` is refused (`draft_unsupported`); on GitHub, `--draft` when the work is not ready for review. Untracked: `--title "<summary>"`. Read `"ok"`, then `provider`, `action`, `source`, `target`, `connection`, `command`. `refused: writes_off`, `no_connection` or `toil_not_ready` → toil cannot write it yet, a person's setup: print `hint` verbatim, `friction-log` type `missing-info`, STOP. Any other `false` → `friction-log`. Never a toil write yourself (`--allow-write`): a fleet refuses it, and only `ad-git pr` passes the approval gate.
6. Re-run without `--dry-run`. Capture `url`. `refused: approval_timeout` or `approval_denied` → `friction-log` type `missing-info` quoting the `approval` id and the `hint`. `refused: WRITE_DISABLED` → toil turned the write down after all (writes switched off since the dry run): print `hint` verbatim, `friction-log` type `missing-info`, STOP. Do not retry.
7. Move the ticket: invoke `jira-transition` with `--to review --comment "PR: <URL>"`. It asks Jira what this
   issue type can do — a Task and a Story do not share a workflow, so never write a status name here.
   Untracked work has no ticket to move: skip this step and say so in one line.
8. `state-update`: `pr_url`, `phase=pr_open`. Print URL. STOP. A human merges.

From agentchieflou/this-next-please, MIT.

More from agentchieflou/this-next-please

Signals

Stars
1
Forks
0
Open issues
61
Last commit (this folder)
Oct 21, 2026 (16 days ago)

From GitHub (fetched Oct 24, 2026).

Details

License
MIT
First seen
Oct 24, 2026
Last checked
Oct 24, 2026

More from agentchieflou

Done for you

Rather not set it up yourself?

Chalk Labs scopes, builds and runs agents for your team: the task audit, the eval harness, the integrations and the weekly ops report. Fixed scope, priced before we start.

See how we build AI agents →Read the case studies

Chalk Labs is a two-founder AI and growth studio. We build AI agents, CRMs and MVPs for Web3 and AI companies, and have shipped 50+ product and token launches.

launches shipped
50+
launches shipped
media placements
500+
media placements
founders on every account
2
founders on every account

Press we've placed: Forbes · CoinDesk · Decrypt · Cointelegraph · The Block

Rahil Jain, Co-founder, Chalk Labs. Ex-Goldman Sachs engineer. You talk to the person who builds it.

Get bitbucket-pr running in your business

Tell us what you want to automate. A founder replies within one working day with a plan, not a pitch deck.

Goes to the Chalk Labs founders, not the newsletter. Privacy

Need help deploying bitbucket-pr?

CallGet help
Cite this page

bitbucket-pr skill. Agent Mart. https://agentmart.dev/skills/agentchieflou-bitbucket-pr (last updated 2026-10-24)