Open a GitHub PR and update the board

VerifiedCaution

Opens the current branch's PR via gh, discovers implemented issues from commit footers, and moves them to "In review" on the board.

Sby Skills Guide Bot
DevOpsIntermediate
9/14/2026
Claude Code
#pull-request#github#git#issue-tracking#workflow

Recommended for

Automated summary

Opens the pull request for the current branch on GitHub, derives the implemented issues from commit footers (Closes/Fixes/Part of), and moves those issues to the "In review" column on the board.

Strengths

  • Discovers issues automatically from commit trailers and deduplicates them while preserving order of appearance
  • Picks the PR base deliberately (the branch's upstream rather than a hardcoded trunk), avoiding dragging in the parent branch's commits
  • Fails safely on a dirty tree, on branch == base, or when a PR already exists (it then just reports the URL and updates the board)
  • Shows source branch, chosen base with rationale, title, body and the issues to move, then waits for confirmation before publishing

Limitations

  • GitHub-only through gh: no configurable equivalent, so a GitLab MR has to be opened by hand
  • Assumes a board where issues can be moved to "In review"; the move fails otherwise
  • Does not create a branch when the commits already sit on the trunk: it stops and leaves the user to relocate them
When to use it

Use it after /commit, once the current branch is ready to be published as a pull request and its issues should move to review.

When not to use it

Avoid it on a GitLab repository, or when uncommitted changes or commits made directly on the trunk still need to be dealt with.

Security analysis

Caution
Quality score92/100

The skill uses powerful tools (git, gh, bash) for legitimate GitHub PR creation and board updates. There are no destructive, exfiltrating, or obfuscated actions. The risk is limited to publishing a PR, which is guarded by a confirmation step.

Findings
  • •Executes git push and gh pr create, which publish externally and are visible actions.
  • •Invokes a bash script (board-move.sh) to update the board.
  • •Does not declare allowed tools despite instructing shell commands.
How this analysis is made

Examples

Ouvrir le PR de la branche courante
/open-pr
PR avec un titre imposé
/open-pr feat: extrair parser de configuração do módulo legado
PR après une file AFK
/open-pr — a branch tem commits de três issues empilhadas, abre o PR e move todas para In review

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.

Este comando é GitHub. Abrir PR é operação de forge, não de tracker: usa gh de ponta a ponta e não tem equivalente configurável. Um projeto pode rastrear issues em GitLab ou em markdown local — o /start-issue e o /commit lidam com isso — e ainda assim não usar este comando. Em GitLab, abra o MR à mão.

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 e base do PR

git rev-parse --abbrev-ref HEAD
git rev-parse --abbrev-ref --symbolic-full-name @{u} 2>/dev/null   # base, se houver
gh repo view --json defaultBranchRef --jq .defaultBranchRef.name   # base, senão
git status --porcelain

A base do PR é a branch de onde esta saiu, não o tronco por decreto. Se a branch atual tem upstream configurado e ele não é ela mesma no origin, essa é a base; senão, a branch default do repositório. Isso importa porque o ensure-branch.sh deixa empilhar de propósito — uma segunda issue na branch da primeira, ou um /afk-queue sobre uma branch já preparada. Contra o tronco, esse PR levaria junto os commits da branch-pai e anunciaria Closes #N de issues que outro PR já fecha.

  • Branch atual == base: pare. Não existe PR de uma branch para ela mesma. Peça ao usuário para criar a branch e mover os commits para lá — não crie você. O /start-issue e o /afk-queue criam a branch antes de implementar (ensure-branch.sh); aqui os commits já estão no tronco, e tirá-los de lá é outra operação, com risco de perder trabalho. Chegar neste ponto significa que a branch não foi criada lá atrás — provavelmente AUTO_BRANCH=off, ou commits feitos fora do pipeline.
  • Á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 <base>..HEAD --pretty=%B

Use a mesma base do passo 1 — é o que garante que só as issues desta branch entrem no PR.

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, base escolhida e por quê (upstream ou branch default), 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 <base>

6. Mover as issues no board

Para cada issue descoberta no passo 2:

bash "${ARK_HOME:-.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, ou se o tracker deste repo não for GitHub, ele avisa e o PR continua aberto normalmente. Não trate aviso de board como erro do /open-pr.

7. Reportar

URL do PR, base, 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-a-github-pr-and-update-the-board-mu0qzoz1/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-a-github-pr-and-update-the-board-mu0qzoz1' && curl --fail --show-error --location 'https://skills-guides.com/api/skills/open-a-github-pr-and-update-the-board-mu0qzoz1/download' --output '.skill-downloads/open-a-github-pr-and-update-the-board-mu0qzoz1/SKILL.md.part' && mv '.skill-downloads/open-a-github-pr-and-update-the-board-mu0qzoz1/SKILL.md.part' '.skill-downloads/open-a-github-pr-and-update-the-board-mu0qzoz1/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-a-github-pr-and-update-the-board-mu0qzoz1/SKILL.md' && test -s '.skill-downloads/open-a-github-pr-and-update-the-board-mu0qzoz1/SKILL.md' && mkdir -p '.claude/skills' && test ! -e '.claude/skills/open-pr' && cp -R '.skill-downloads/open-a-github-pr-and-update-the-board-mu0qzoz1' '.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-a-github-pr-and-update-the-board-mu0qzoz1'

openskills read 'open-a-github-pr-and-update-the-board-mu0qzoz1'

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-a-github-pr-and-update-the-board-mu0qzoz1/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