Automated summary
This skill publishes the current branch as a GitHub pull request, discovers implemented issues from commit footers, and moves those issues to “In review” on the board.
Strengths
- Chooses the PR base from the configured upstream to avoid mixing stacked-branch commits with those of the parent branch.
- Stops on a dirty working tree or when the current branch is already the base, and reuses an existing PR instead of creating a second one.
- Deduplicates Closes/Fixes/Part of references found in commits to list the relevant issues.
- Asks for confirmation before the visible external action and distinguishes Closes from Part of based on the PR’s actual scope.
Limitations
- Works only with GitHub through gh, with no GitLab MR equivalent.
- Issue discovery relies entirely on Closes/Fixes/Part of footers written in commits.
- Moving issues to In review assumes an existing GitHub board for the affected issues.
Use when the branch is ready and you want to open the GitHub PR while updating the issue board in one step.
Avoid on GitLab, with uncommitted changes, or when commits lack issue footers but board tracking is required.
Security analysis
CautionThe skill uses bash, git, and GitHub CLI to push branches, create pull requests, and move issues on a board. These are legitimate but powerful network and shell operations with external side effects. No destructive or exfiltration commands are present, and a confirmation step is included, but the external visibility and state-changing nature warrant caution.
- •Executes git push and gh pr create, which publish a branch and create a pull request on GitHub, externally visible actions that could expose code or metadata.
- •Runs bash .claude/scripts/board-move.sh, which may interact with external project boards and could modify issue states.
- •Although a confirmation step is included, the skill relies on the agent correctly pausing and the user reviewing before publication; misbehavior could lead to unintended public PRs.
Examples
Open the pull request for the current branch and move the implemented issues to In review.Open a PR for this branch titled 'Add OAuth login flow' and link the issues found in the commit footers.Open the PR against the upstream branch, not main, and update the board issues this PR closes.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
ghde ponta a ponta e não tem equivalente configurável. Um projeto pode rastrear issues em GitLab ou em markdown local — o/start-issuee o/commitlidam 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-issuee o/afk-queuecriam 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 — provavelmenteAUTO_BRANCH=off, ou commits feitos fora do pipeline. - Árvore suja: pare e peça para rodar
/commitantes. 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:
$ARGUMENTSse 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 #Npara 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 .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 #Nfecha 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 filesThis 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.mdFrom the root of a test project, save the file as .skill-downloads/open-a-pull-request-mt2h8kqa/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-pull-request-mt2h8kqa' && curl --fail --show-error --location 'https://skills-guides.com/api/skills/open-a-pull-request-mt2h8kqa/download' --output '.skill-downloads/open-a-pull-request-mt2h8kqa/SKILL.md.part' && mv '.skill-downloads/open-a-pull-request-mt2h8kqa/SKILL.md.part' '.skill-downloads/open-a-pull-request-mt2h8kqa/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-pull-request-mt2h8kqa/SKILL.md' && test -s '.skill-downloads/open-a-pull-request-mt2h8kqa/SKILL.md' && mkdir -p '.claude/skills' && test ! -e '.claude/skills/open-pr' && cp -R '.skill-downloads/open-a-pull-request-mt2h8kqa' '.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 installationopenskills install './.skill-downloads/open-a-pull-request-mt2h8kqa'openskills read 'open-a-pull-request-mt2h8kqa'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 syncManual 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-pull-request-mt2h8kqa/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.
React Hook Form Best Practices
Development
Master React Hook Form: avoid anti-patterns, manage subscriptions, and handle reset, dirty state, and controlled inputs correctly.
Emotion to Mantine Migration
Development
Migrate Emotion styled-components to Mantine components with style props and CSS modules. Use when converting .styled.tsx files or removing @emotion imports.
Scope Creep Detector
Development
Analyzes git diffs against a stated intent to detect scope creep, unrelated files, broad PRs, and oversized changes, then suggests keep, split, or justify actions.