Open PR

VerifiedCaution

Opens a pull request from the current branch, discovering issues in commit footers and moving them to 'In review'.

Sby Skills Guide Bot
DevelopmentIntermediate
7/28/2026
Claude Code
#git#pull-request#github-cli#issue-tracking#workflow

Recommended for

Automated summary

Publishes the current branch as a pull request via gh, deriving the implemented issues from commit footers (Closes/Fixes/Part of #N) and moving those issues to "In review" on the board.

Strengths

  • Finds issues automatically in commit footers, which handles PRs covering several issues (the normal case after an /afk-queue run).
  • Hard preconditions: stops on the default branch or a dirty working tree, and detects an existing PR instead of creating a duplicate.
  • Explicitly separates Closes from Part of so an issue that is not finished never gets closed on merge.
  • Asks for confirmation before pushing and publishing, and board synchronization can never fail the command.

Limitations

  • Assumes commits follow the Closes/Fixes/Part of #N convention; without those footers nothing is closed or moved, it is only reported.
  • Requires an authenticated gh CLI plus the .claude/scripts/board-move.sh script; an unconfigured board is skipped (silently when BOARD_SYNC=off).
  • Does not create branches, request reviews, merge, or touch labels — deliberately out of scope.
When to use it

Use it when a branch's work is committed and you want to publish the PR while automatically linking the issues it implements.

When not to use it

Avoid it when commits do not follow the Closes/Fixes/Part of convention, or when the working tree is still dirty or the current branch is the default branch.

Security analysis

Caution
Quality score85/100

The skill uses powerful git and GitHub CLI commands to push a branch, create a PR, and run a local board-update script. These are legitimate for the described workflow but can affect remote repositories and project boards, so caution is warranted. No evidence of malicious or destructive intent.

Findings
  • •Runs git push and gh pr create, which publish code and create a remote pull request.
  • •Executes a local bash script (board-move.sh) that may modify a GitHub project board.
  • •No destructive or exfiltration actions detected, but commands have external side effects.
How this analysis is made

Examples

PR da branch atual
/open-pr Abre o pull request desta branch e move as issues que ela implementou para In review.
Título explícito
/open-pr Corrige cálculo de frete e validação de CEP
Fila de issues empilhadas
Publica o PR desta branch contra a main depois do /afk-queue, descobrindo nos commits todas as issues que ele fecha.

name: open-pr description: Abre o Pull Request da branch atual, descobrindo nos rodapés dos commits quais issues foram implementadas, e move essas issues para "In review" no board. Use when opening a pull request. $ARGUMENTS

Open PR

Fecha o pipeline start-issue → tdd → commit → open-pr: publica a branch atual como PR e move para In review as issues que ela implementou.

As issues não são passadas como argumento — são descobertas nos rodapés Closes #N / Fixes #N / Part of #N dos commits, que é justamente o que o /commit escreve. Um PR pode fechar várias issues (é o caso normal depois de um /afk-queue, em que N issues empilham commits na mesma branch).

$ARGUMENTS, se fornecido, vira o título do PR; senão o título é derivado dos commits.

Workflow

1. Pré-condições

git rev-parse --abbrev-ref HEAD
gh repo view --json defaultBranchRef --jq .defaultBranchRef.name
git status --porcelain
  • Branch atual == branch default: pare. Não existe PR de main para main. Peça ao usuário para criar a branch — nada neste template cria branch automaticamente, é decisão dele.
  • Árvore suja: pare e peça para rodar /commit antes. Abrir o PR deixando mudanças para trás produz um PR que não corresponde ao trabalho feito.
  • Já existe PR para esta branch (gh pr view --json url,state): não crie outro. Informe a URL, pule para o passo 6 (o board ainda precisa ser atualizado) e diga que o PR foi apenas atualizado pelo push.

2. Descobrir as issues implementadas

git log <branch-default>..HEAD --pretty=%B

Extraia todo Closes #N, Fixes #N, Part of #N; deduplique preservando a ordem de aparição. Se nenhuma issue for encontrada, siga mesmo assim, mas avise no resumo que nenhuma issue será fechada no merge nem movida no board.

3. Montar título e corpo

  • Título: $ARGUMENTS se houver. Senão, com uma issue só, o título dela; com várias, um resumo do tema comum dos commits.
  • Corpo: o que mudou e por quê (a partir dos commits, não do diff linha a linha), seguido de uma linha Closes #N para cada issue descoberta.

Use Closes apenas para issues cujo escopo o PR realmente completa; para as que seguem abertas depois do merge, use Part of #N — a linha errada aqui fecha issue que não deveria fechar.

4. Apresentar e confirmar — aguardar

Mostre branch de origem/destino, título, corpo e a lista de issues que serão movidas para In review. Aguarde confirmação: publicar um PR é ação externa e visível.

5. Publicar

git push -u origin <branch>
gh pr create --title "<título>" --body "<corpo>" --base <branch-default>

6. Mover as issues no board

Para cada issue descoberta no passo 2:

bash .claude/scripts/board-move.sh <N> in-review

O script é silencioso quando BOARD_SYNC=off e nunca falha o comando — se o board não estiver configurado, ele avisa e o PR continua aberto normalmente. Não trate aviso de board como erro do /open-pr.

7. Reportar

URL do PR, issues movidas e issues que ficaram de fora (e por quê).

Não peça review, não faça merge, não mexa em labels — isso é decisão do usuário.

Quando o PR for mergeado, o Closes #N fecha as issues e o workflow nativo do GitHub Projects ("Item closed → Done") as move para Done. Por isso este comando não precisa cuidar da coluna final.

From the file to a first result

The download contains exactly the content displayed on this page. This copy may differ from the latest version in the source repository.

View the source and supporting files

This download contains SKILL.md only. Any scripts, references, templates and dependencies are not included. Get the required files from the source, preserving their directory structure, before continuing.

1. Download the file

Download SKILL.md

From the root of a test project, save the file as .skill-downloads/open-pr-ms47vqvc/SKILL.md, or use the command below. This folder is for inspecting the skill before installation.

Command for macOS/Linux or WSL: requires a POSIX shell and curl. On Windows without WSL, use the download button and create the folder manually.

mkdir -p '.skill-downloads/open-pr-ms47vqvc' && curl --fail --show-error --location 'https://skills-guides.com/api/skills/open-pr-ms47vqvc/download' --output '.skill-downloads/open-pr-ms47vqvc/SKILL.md.part' && mv '.skill-downloads/open-pr-ms47vqvc/SKILL.md.part' '.skill-downloads/open-pr-ms47vqvc/SKILL.md'

2. Check prerequisites

Read SKILL.md before using it. If it references scripts or external services, inspect them and prepare the required access in your test environment.

No recognized prerequisites section in this file. This does not mean it is self-contained: libraries, tools and access requirements may be mentioned elsewhere in the content or source repository.

The platforms on this page are catalog indications. The paths below follow tool documentation; they do not prove this skill has been run in those tools. No minimum tool version is confirmed for this listing.

3. Load the skill

After inspection, copy the complete folder into your project using one of the commands below, then open a new tool session. The command stops if a folder with the same name already exists: compare the files before replacing it.

Claude Code
test -f '.skill-downloads/open-pr-ms47vqvc/SKILL.md' && test -s '.skill-downloads/open-pr-ms47vqvc/SKILL.md' && mkdir -p '.claude/skills' && test ! -e '.claude/skills/open-pr' && cp -R '.skill-downloads/open-pr-ms47vqvc' '.claude/skills/open-pr'

OpenSkills

OpenSkills must already be installed. The local install/read procedure is checked with OpenSkills 1.5.0, which requires Node.js ≥ 20.6.0. Catalog slugs are not resolved automatically.

Official OpenSkills installation
openskills install './.skill-downloads/open-pr-ms47vqvc'

openskills read 'open-pr-ms47vqvc'

Reading should display the installed file content and its base directory. It does not run the skill or install its dependencies.

For an agent that reads AGENTS.md, then sync the index. This command changes AGENTS.md: review the diff before using it.

openskills sync

Manual method or another tool: attach SKILL.md to a conversation, or open it in an agent that can read files. Include any required supporting resources. No universal folder is recognized by every tool.

4. Try a first task

Use a short, synthetic input: an API endpoint, a small document or an interface brief. In a new conversation, attach the file or give the agent its path, then adapt this request:

Read .skill-downloads/open-pr-ms47vqvc/SKILL.md and apply its instructions to this example: [describe a test input]. Identify any missing files, dependencies or access. Produce the result requested by the skill without inventing data or running unreviewed scripts.

Expected result: output matching the skill instructions, or a precise list of missing prerequisites. A read confirmation alone does not validate a first use. If an external resource is unavailable, that path remains untested.

Related skills