pr-open
Skill0 starsChanged 5 months agoMITView on GitHub
Abre um PR no GitHub a partir da branch atual, grava a spine ADO<->GitHub (link nativo AB#<id> no corpo + indice prs.json) e comenta de volta no work item do Azure DevOps.
- Commits and pushes
In this repository21 other files it gives its agents.
- ado-closeSkill
- ado-commentSkill
- ado-getSkill
- ado-refineSkill
- approve-reviewSkill
- autoSkill
- dart-clean-archSkill
- fixSkill
- flutter-clean-archSkill
- implementSkill
- kickoffSkill
- 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 213,895 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.
Defaults ADO
- Org:
<your-org>· Project:<your-project> - Sobrescritos por
--org=/--project=.
1. Pré-condições
source ~/.claude/bin/get-project.sh
PROJECT_NAME="$(get-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 work item (ado_id)
Ordem de resolução:
- Primeiro argumento numérico →
ADO_ID. - Senão, leia
~/.claude/workflow/$PROJECT_NAME/current.jsone use.ado_idse presente. - Senão,
ADO_IDfica vazio — PR sem vínculo. Avise: "Abrindo PR sem card ADO vinculado. Passe/pr-open <id>se quiser vincular."
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ãomain. - 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. Corpo: quando houver
ADO_ID, a primeira linha deve ser o link nativo Azure Boards (dispara o auto-vínculo PR↔work item da integração ADO↔GitHub):[AB#<ADO_ID>](https://dev.azure.com/<your-org>/<your-project>/_workitems/edit/<ADO_ID>)Depois: resumo do que muda + seção de teste. A syntax
AB#<id>é a fonte durável da spine — oprs.jsoné só índice.
5. Criar o PR
gh pr create --base "<BASE>" --head "$BRANCH" --title "<TITULO>" --body-file <(printf '%s\n' "<CORPO>")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>" "<ADO_ID>" "$BRANCH" "<BASE>" "<TITULO>" "<PR_URL>"7. Comentar de volta no card (só se houver ADO_ID)
O vínculo em si é automático: a syntax AB#<id> no corpo faz a integração Azure Boards↔GitHub linkar o PR ao work item sem ação manual. Não refaça o link.
Opcional (default: fazer) — sinal explícito via MCP azure-devops: wit_add_work_item_comment no work item <ADO_ID> com texto curto PR aberto: <PR_URL> (base: <BASE>). Aguardando review. Se o MCP falhar, não trave — o auto-vínculo já cobre a rastreabilidade.
Não mude estado/assignee do card — isso é do /ado-close.
8. Finalizar
Resumo em 3 linhas: número do PR + URL, base, e se o card foi anotado. Sugira: "Acompanhe com /pr-status."
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.

