agentleFS
contactandrewchl-wqcontactandrewchl-wq/turtle-mcp/skills/gh-cli/SKILL.md

gh-cli

Skill2 starsChanged 5 months agoMITView on GitHub

Operar GitHub desde la terminal con `gh`: PRs (crear, revisar, merge), issues, runs de CI, releases, gists, API cruda. Cargá cuando vayas a interactuar con GitHub desde la línea de comandos en lugar del navegador.

  • Commits and pushes

32 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use glab-cli, agent-browser and 10 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • DataKnifeAISkill

    glab-cli

    Uses the GitLab CLI (`glab`) for merge requests, issues, CI/CD, releases, and GitLab API access from the terminal. Apply when the remote is GitLab (GitLab.com or self-managed) or when the user mentions MRs, pipelines, or GitLab projects.

    Also in 3 projects that use this

  • VercelSkill

    agent-browser

    Automates browser interactions for web testing, form filling, screenshots, and data extraction. Use when the user needs to navigate websites, interact with web pages, fill forms, take screenshots, test web applications, or extract information from web pages.

    Also in 5 projects that use this

  • VercelSkill

    web-design-guidelines

    Review UI code for Web Interface Guidelines compliance. Use when asked to "review my UI", "check accessibility", "audit design", "review UX", or "check my site against best practices".

    Also in 5 projects that use this

  • MicrosoftSkill

    git-commit

    Stage user-selected paths, confirm the exact staged set, and create one local Conventional Commit, or generate a commit message for staged changes without committing. Use when you want a guarded commit or a ready-to-paste message.

    Also in 3 projects that use this

  • AnthropicSkill

    pdf

    Comprehensive PDF manipulation toolkit for extracting text and tables, creating new PDFs, merging/splitting documents, and handling forms. When Claude needs to fill in a PDF form or programmatically process, generate, or analyze PDF documents at scale.

    Also in 6 projects that use this

  • OpenAISkill

    using-git-worktrees

    Use when starting feature work that needs isolation from current workspace or before executing implementation plans - ensures an isolated workspace exists via native tools or git worktree fallback

    Also in 3 projects that use this

The file

Files
SKILL.md

GitHub CLI (gh)

Cuándo usar

  • Abrir o revisar un PR.
  • Chequear estado de CI o logs de un run fallido.
  • Crear o triagear issues.
  • Hacer una llamada cruda a la API de GitHub sin escribir cURL.

Setup mínimo

gh auth status           # ¿estás logueado?
gh auth login            # OAuth interactivo si no lo estás
gh repo set-default      # fijar el repo "current" del directorio

Pull requests

# Crear PR desde la rama actual (abre editor; --fill toma title/body del commit)
gh pr create --base main --fill
gh pr create --title "feat: x" --body-file PR_BODY.md

# Listar y filtrar
gh pr list --state open --author "@me"
gh pr list --label bug --assignee "@me"

# Ver detalle / diff / checks
gh pr view 123
gh pr view 123 --web                 # abrir en navegador
gh pr diff 123
gh pr checks 123

# Revisar
gh pr review 123 --approve -b "LGTM"
gh pr review 123 --request-changes -b "Ver comentarios"
gh pr comment 123 -b "Texto"

# Merge (squash por defecto en muchos repos)
gh pr merge 123 --squash --delete-branch
gh pr merge 123 --merge                # commit de merge
gh pr merge 123 --rebase               # rebase

Issues

gh issue list --state open --label bug
gh issue create --title "..." --body "..." --label bug --assignee "@me"
gh issue view 42
gh issue comment 42 -b "Texto"
gh issue close 42 --reason "not planned"

CI / runs

gh run list                              # últimos workflow runs
gh run list --workflow=ci.yml --branch main
gh run view <run-id>                     # detalle
gh run view <run-id> --log               # logs completos
gh run view <run-id> --log-failed        # solo lo que falló
gh run rerun <run-id>                    # reintentar
gh run rerun <run-id> --failed           # solo jobs fallidos
gh run watch <run-id>                    # esperar a que termine

Releases

gh release create v1.2.0 --generate-notes
gh release create v1.2.0 ./dist/* --notes "Cambios..."
gh release list
gh release view v1.2.0
gh release upload v1.2.0 ./dist/extra.tar.gz

API cruda

Cuando gh no tiene el comando:

gh api repos/{owner}/{repo}/pulls/123/comments
gh api -X POST repos/{owner}/{repo}/issues -f title="..." -f body="..."
gh api graphql -f query='query{viewer{login}}'

{owner}/{repo} se autocompletan con el repo actual si usás gh repo set-default.

Flujo típico para un cambio

git switch -c feat/x
# ...código + commits limpios (ver [[commit-hygiene]])...
git push -u origin feat/x
gh pr create --fill
gh pr checks --watch                   # esperar CI
gh pr merge --squash --delete-branch

Reglas

  • gh auth status antes si no sabés en qué cuenta estás (especialmente con varias cuentas/orgs).
  • Sin --force en merges/pushes salvo pedido explícito.
  • Sin merge si CI rojo. Arreglar primero.
  • PR description es el espacio para el "por qué"; el commit es para el "qué".

Validación

  • gh --version reciente (≥2.x).
  • gh auth status con scopes mínimos necesarios (repo, workflow si corresponde).

Relacionadas

[[commit-hygiene]]

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.