pr-open
Skill0 starsChanged 27 days agoMITView on GitHub
Abre um PR no GitHub a partir da branch atual, grava a spine card<->GitHub (referência ao card no corpo — AB#<id> no Azure DevOps, chave no Jira/Linear — + indice prs.json) e comenta de volta no card.
- Commits and pushes
1 other project uses a version of this.
Adopted by
Most recently taken up by
- bklit/bklit-uitheir own version, first seen Oct 8, 2026
Other versions1 project uses a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 1
- bklit/bklit-ui★ 1.9ksame name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository28 other files it gives its agents.
- ado-closeSkill
- ado-commentSkill
- ado-getSkill
- ado-refineSkill
- adrSkill
- approve-reviewSkill
- appSkill
- autoSkill
- challenge-specSkill
- completeSkill
- dart-clean-archSkill
- discoverySkill
- fixSkill
- flutter-clean-archSkill
- implementSkill
- jira-refineSkill
- kickoffSkill
- linear-refineSkill
- orcamentoSkill
- planSkill
- post-reviewSkill
- pr-statusSkill
- refineSkill
- reviewSkill
- specifySkill
- statusSkill
- tasksSkill
- verifySkill
The file
We split this skill into the rules it gives an agent
1 rule. About 0 are common, 0 are distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈0
Distinctive · estimate
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 34
Default: se existir uma branch release/* ativa (veja os últimos PRs com gh pr list --limit 5 --json baseRefName), use a mais recente como …
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Materializa o vínculo card↔PR no momento em que o PR nasce. Isso é o que permite o /pr-status acompanhar tudo depois sem poll manual.
1. Pré-condições
source ~/.claude/bin/get-project.sh
PROJECT_PATH=$(git rev-parse --show-toplevel)
PROJECT_NAME="$(get-project-name)"
WF_DIR="$HOME/.claude/workflow/$PROJECT_NAME"
BRANCH="$(git rev-parse --abbrev-ref HEAD)"- Se
BRANCHformainou casar^release/, pare: "Você está na branch base ($BRANCH). Faça checkout da branch de trabalho antes de abrir PR." - Garanta que não há mudanças não commitadas:
git status --porcelain. Se houver, pare e avise — não commite por conta própria. - Garanta que a branch está pushada:
git push -u origin "$BRANCH"(ok rodar; é ação de rotina).
2. Resolver o card
Ordem de resolução:
- Primeiro argumento que não é flag →
REF=$(python3 ~/.claude/bin/tracker.py ref "<arg>" "$PROJECT_PATH"). Saída 2 → pare repassando o stderr (org sem tracker ou ID que não é desse tracker). - Senão, o
trackerdo$WF_DIR/current.json, se for um card (kindado,jiraoulinear, comid). - Senão, sem card — PR sem vínculo. Avise: "Abrindo PR sem card vinculado. Passe
/pr-open <id>se quiser vincular." (tracker.kindmanualtambém cai aqui, sem o aviso.)
Daqui em diante, <KIND>, <ID> e <CARD_URL> são os campos do card (url pode ser null).
3. Resolver a base
- Default: se existir uma branch
release/*ativa (veja os últimos PRs comgh pr list --limit 5 --json baseRefName), use a mais recente como base; senão a branch padrão do remoto. - Apresente a base escolhida e confirme com o usuário antes de criar (a base errada é custosa de corrigir).
4. Montar título e corpo
- Título: conventional commit refletindo a mudança (
feat(scope): ...,fix(scope): ...). Derive dos commits da branch (git log origin/<base>..HEAD --oneline). Não invente escopo — use o do código tocado. Com card Jira ou Linear, termine o título com[<ID>]: as integrações de GitHub dos dois vinculam o PR pela chave no título. Corpo: com card, a primeira linha é a referência que dispara o auto-vínculo do tracker:
kind Primeira linha ado[AB#<ID>](<CARD_URL>)— a syntaxAB#<id>liga o PR ao work item pela integração Azure Boards↔GitHubjira[<ID>](<CARD_URL>)linear[<ID>](<CARD_URL>)(sem URL: só<ID>)Depois: resumo do que muda + seção de teste. Com
--from-complete, se$WF_DIR/adr-candidates.mdexistir, anexe o conteúdo numa seção## ADRs propostasdo corpo. A referência no corpo é a fonte durável da spine — oprs.jsoné só índice.
5. Criar o PR
Escreva o corpo com Write em $WF_DIR/.pr-body.md (nunca interpole o texto em shell) e rode:
gh pr create --base "<BASE>" --head "$BRANCH" --title "<TITULO>" --body-file "$WF_DIR/.pr-body.md"Capture o número e a URL do PR do output (gh pr view --json number,url).
6. Gravar no índice
~/.claude/bin/pr-registry.sh register "<PR_NUMBER>" "$BRANCH" "<BASE>" "<TITULO>" "<PR_URL>" "<KIND>" "<ID>" "<CARD_URL>"Sem card, omita os três últimos argumentos.
7. Comentar de volta no card (só com card)
O vínculo em si é automático pela referência no corpo/título. Não refaça o link.
Opcional (default: fazer) — sinal explícito no card com o texto curto PR aberto: <PR_URL> (base: <BASE>). Aguardando review.:
- ADO:
~/.claude/bin/ado.sh comment <ID> "<texto>". - Jira: escreva o texto com Write em
$WF_DIR/.card-comment.mde rode~/.claude/bin/jira.py comment <ID> "$WF_DIR/.card-comment.md". - Linear: comentário via MCP
linear.
Se falhar, não trave — o auto-vínculo já cobre a rastreabilidade.
Não mude estado/assignee do card — no ADO isso é do /ado-close; no Jira/Linear, decisão do usuário.
8. Finalizar
Resumo em 3 linhas: número do PR + URL, base, e se o card foi anotado. Sugira: "Acompanhe com /pr-status."
Chamado pelo /complete (argumento --from-complete): a última linha do resultado é só a URL do PR, sem texto, formatação ou pontuação depois. O /complete grava a URL no relatório. Este skill nunca grava no relatório: avulso, não grava relatório.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

