gh-cli
Skill0 starsChanged 3 months agoMITView on GitHub
Automatización de flujos de GitHub con gh CLI y scripts: Pull Requests con Conventional Commits, emojis y labels verificados, diagnóstico de GitHub Actions, issues y releases con notas generadas. Úsala al crear o revisar PRs, depurar workflows fallidos o publicar releases.
- Deletes or force-pushes
- Commits and pushes
22 other projects use a version of this.
Adopted by
Most recently taken up by
- zlliang/skillstheir own version, first seen Oct 5, 2026
- zkmake/skillstheir own version, first seen Oct 3, 2026
- devantler-tech/ksailtheir own version, first seen Oct 3, 2026
- ericmjl/skillstheir own version, first seen Sep 26, 2026
- gspencergoog/skillstheir own version, first seen Sep 8, 2026
- nb-99/skillektiontheir own version, first seen Aug 19, 2026
Used with
Projects with it also use git-commit, frontend-design and 8 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.
GitHubSkillgit-commit
Execute git commit with conventional commit message analysis, intelligent staging, and message generation. Use when user asks to commit changes, create a git commit, or mentions "/commit". Supports: (1) Auto-detecting type and scope from changes, (2) Generating conventional commit messages from diff, (3) Interactive commit with optional type/scope/description overrides, (4) Intelligent file staging for logical grouping
Also in 4 projects that use this
VercelSkillfrontend-design
Create distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, artifacts, posters, or applications (examples include websites, landing pages, dashboards, React components, HTML/CSS layouts, or when styling/beautifying any web UI). Generates creative, polished code and UI design that avoids generic AI aesthetics.
Also in 6 projects that use this
OpenAISkillwriting-plans
Use when you have a spec or requirements for a multi-step task, before touching code
Also in 3 projects that use this
AnthropicSkillpptx
Use this skill any time a .pptx or .potx file is involved in any way — as input, output, or both. This includes: creating slide decks, pitch decks, or presentations; reading, parsing, or extracting text from any .pptx or .potx file (even if the extracted content will be used elsewhere, like in an email or summary); editing, modifying, or updating existing presentations; combining or splitting slide files; working with templates (.potx), layouts, speaker notes, or comments. Trigger whenever the user mentions \"deck,\" \"slides,\" \"presentation,\" or references a .pptx or .potx filename, regardless of what they plan to do with the content afterward. If a .pptx or .potx file needs to be opened, created, or touched, use this skill.
Also in 3 projects that use this
AnthropicSkilldocx
Comprehensive document creation, editing, and analysis with support for tracked changes, comments, formatting preservation, and text extraction. When Claude needs to work with professional documents (.docx files) for: (1) Creating new documents, (2) Modifying or editing content, (3) Working with tracked changes, (4) Adding comments, or any other document tasks
Also in 3 projects that use this
OpenAISkilltest-driven-development
Use when implementing any feature or bugfix, before writing implementation code
Also in 3 projects that use this
- +1 more from openai
- +1 more from anthropics
Other versions22 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 22
- devantler-tech/ksail★ 166same name
- ericmjl/skills★ 39same name
- tenequm/skills★ 37same name
- MorningStar0709/trae-agent-enhancements★ 18same name
- JamesPrial/github-skills★ 17same name
- nicholyx/ai-skills★ 6same name
- gspencergoog/skills★ 2same name
- thesammykins/skills★ 2same name
- X-FRI/skills★ 2same name
- zkmake/skills★ 2same name
12 more not listed
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 repository10 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- skill-creatorSkill
- flutter-architectureSkill
- monorepo-architectureSkill
- nestjs-architectureSkill
- nextjs-architectureSkill
- dart-import-organizerSkill
- glab-cliSkill
- ts-import-organizerSkill
The file
We split this skill into the rules it gives an agent
1 rule. 0 are common, 0 are distinctive, and 1 is very specific to this project.
0
Common
Most of the 15 edited versions we read keep these.
0
Distinctive
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 33
No aplica a repositorios de GitLab: usa la skill glab-cli.
“Common” is measured: kept by at least 6 in 10 of the 15 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
🐙 GitHub CLI (gh) Workflow & Automation
🎯 Propósito
Guiar al asistente en la gestión de repositorios de GitHub con gh CLI y scripts auxiliares. Estandariza la creación de Pull Requests (Conventional Commits, emoji por tipo, scope solo con issue, labels que ya existen en el repo), el diagnóstico de GitHub Actions fallidos, el trabajo con issues y la publicación de releases con notas generadas por GitHub.
⚡ Cuándo Activar esta Skill
- Al trabajar en repositorios alojados en GitHub (
github.como GitHub Enterprise). - Al crear, revisar, aprobar o fusionar Pull Requests (
gh proscripts/create_pr.sh). - Al diagnosticar workflows o checks fallidos de GitHub Actions (
gh run,gh pr checksoscripts/diagnose_run.sh). - Al crear, listar o comentar issues, o al publicar releases y tags.
- No aplica a repositorios de GitLab: usa la skill
glab-cli.
📋 Flujo de Trabajo Paso a Paso
flowchart TD
A["Verificar Entorno\n(scripts/check_env.sh)"] --> B{"Tarea Requerida"}
B -->|"Crear Pull Request"| C["scripts/create_pr.sh --dry-run\n→ confirmar → sin --dry-run"]
B -->|"Depurar Actions"| D["scripts/diagnose_run.sh\n(gh run view --log-failed)"]
B -->|"Issues"| E["gh issue list/view/create/comment"]
B -->|"Releases"| F["scripts/release_helper.sh\n(gh release create --generate-notes)"]- Paso 1: Verificación de Estado y Autenticación:
Si falla la autenticación, pide al usuario que ejecutebash <skill-dir>/scripts/check_env.shgh auth login; nunca pidas ni escribas tokens. - Paso 2: Creación Estandarizada de Pull Requests:
- Previsualiza siempre primero y muestra al usuario título, labels y rama base:
# Issue detectado de la rama (feat/42-login-form) o explícito: bash <skill-dir>/scripts/create_pr.sh --issue 42 --domain auth --dry-run # Sin issue (título sin scope: <type>: <emoji> <desc>): bash <skill-dir>/scripts/create_pr.sh --dry-run - Tras la confirmación, repite el comando sin
--dry-run. Añade--pushsolo si la rama no está publicada y el usuario lo aprueba;--draftsi el trabajo no está listo. - Alternativa manual:
gh pr create --title "<título>" --body "<cuerpo>" --base main.
- Previsualiza siempre primero y muestra al usuario título, labels y rama base:
- Paso 3: Revisión y Fusión de PRs:
gh pr view <n> --comments # contexto y conversación gh pr diff <n> # cambios gh pr checks <n> # estado de CI gh pr review <n> --approve # o --request-changes --body "..." gh pr merge <n> --squash --delete-branch # solo con aprobación explícita del usuario - Paso 4: Diagnóstico de GitHub Actions:
Lee el log, identifica la causa y corrige el código. Reintenta (# Último run fallido de la rama actual, solo logs de pasos fallidos: bash <skill-dir>/scripts/diagnose_run.sh # Checks de un PR y logs de un job concreto: bash <skill-dir>/scripts/diagnose_run.sh --pr 57 --job lint --lines 50gh run rerun <id> --failed) solo si el fallo es transitorio (red, runner caído). - Paso 5: Issues y Releases:
gh issue list --assignee @me --state open gh issue view 42 --comments bash <skill-dir>/scripts/release_helper.sh draft-notes bash <skill-dir>/scripts/release_helper.sh create v1.4.0 --dry-run
🛠️ Scripts y Herramientas Auxiliares
Rutas:
<skill-dir>es el directorio que contiene esteSKILL.md(p. ej..claude/skills/<name>/o.agents/skills/<name>/). Ejecuta los scripts desde la raíz del proyecto del usuario, no desde<skill-dir>.
scripts/check_env.sh: Validagit,gh, la sesión activa y el repositorio de GitHub detrás deorigin.scripts/create_pr.sh: Crea el PR con:- Título con issue:
<type>(#<issue-id>): <emoji> <description>; sin issue:<type>: <emoji> <description>. - Label de tipo con los labels por defecto de GitHub (
enhancement,bug,documentation) ydomain: <nombre>opcional. - Dominios permitidos: si existe
.gh-domainsen la raíz del repo (uno por línea),--domaindebe estar en esa lista. - Verificación previa de que todos los labels existen, de que no hay ya un PR abierto para la rama y de que la rama tiene upstream.
- Cuerpo con
Closes #<id>, resumen de commits y la plantilla.github/pull_request_template.mdsi existe.
- Título con issue:
scripts/diagnose_run.sh: Último run fallido de la rama o PR y logs de los pasos fallidos, filtrables por job.scripts/release_helper.sh:list,view,draft-notesycreate <tag>con validación SemVer y notas generadas por GitHub.
⚠️ Reglas Críticas
- Regla de Título y Scope del PR:
- Con issue:
<type>(#<issue-id>): <emoji> <description>(ej.feat(#42): ✨ login form). - Sin issue:
<type>: <emoji> <description>(ej.chore: 🔧 upgrade dependencies). - NUNCA usar carpetas, paquetes ni apps como scope (
feat(web): ...está PROHIBIDO).
- Con issue:
- Labels existentes, nunca inventados:
- Usa solo labels que ya existen en el repositorio (
gh label list). No ejecutesgh label createsin permiso explícito del usuario. - Los dominios válidos son los de
.gh-domains; nunca inventes uno.
- Usa solo labels que ya existen en el repositorio (
- Acciones con efectos externos requieren confirmación:
- Crear o fusionar PRs, aprobar, cerrar issues, publicar releases, relanzar workflows o hacer push: muestra primero lo que se hará (
--dry-run) y espera confirmación. - PROHIBIDO
git push --forcehacia ramas compartidas,gh pr merge --adminpara saltarse protecciones ygh repo delete.
- Crear o fusionar PRs, aprobar, cerrar issues, publicar releases, relanzar workflows o hacer push: muestra primero lo que se hará (
- No interactividad: Pasa siempre
--title/--body(o--fill) y flags explícitos; nunca dejesghesperando un prompt. - Credenciales: Nunca imprimas, pidas ni guardes tokens (
GH_TOKEN,gh auth token). La autenticación la hace el usuario congh auth login. - Salida estructurada: Para leer datos usa
--json <campos> --jq <filtro>en lugar de parsear texto formateado.
📚 Referencias Adicionales
- Estándares de GitHub: títulos, emojis, labels y cuerpo del PR
- CheatSheet de comandos gh
- GitHub Actions y resolución de problemas
- Ejemplos de flujos de trabajo
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.

