Notre avis
Cette compétence utilise l'outil en ligne de commande `gh` pour interagir avec GitHub afin de gérer les pull requests, les issues et les releases.
Points forts
- Automatisation des tâches GitHub récurrentes directement depuis le terminal.
- Sortie structurée en JSON pour un traitement facile par les scripts.
- Gestion explicite du contexte du dépôt avec `--repo` pour éviter les erreurs.
Limites
- Nécessite que `gh` soit installé et authentifié au préalable.
- Ne couvre pas les opérations avancées comme les workflows GitHub Actions.
- Les écritures (création de PR, releases) demandent une confirmation manuelle.
Lorsque vous devez consulter ou modifier rapidement des éléments GitHub (PR, issues, releases) sans quitter votre environnement en ligne de commande.
Pour des opérations nécessitant une interface graphique riche ou des interactions complexes avec l'API GitHub (préférez alors l'API REST directement).
Analyse de sécurité
SûrThe skill instructs the use of the official GitHub CLI (gh) for standard repository operations like listing PRs, viewing issues, and creating releases. It includes explicit security precautions: avoiding token leakage, preferring structured output, and not altering remotes or pushing without permission. No destructive or exfiltrating commands are present.
Aucun point d'attention détecté
Exemples
List open PRs with authors for repo owner/name using ghShow issue 42 details and comments via ghCheckout PR 17 locally with ghname: gh-cli
description: Interact with GitHub repositories, PRs, and issues using the gh CLI. Use when the user asks to "list PRs", "check out PR", "view issue", or "create release".
allowed-tools: Bash
Use GitHub CLI
Instructions
- Ensure gh is available and authenticated: run
gh auth status(do not use --show-token); respect GH_HOST if set. Prefer GH_TOKEN/GITHUB_TOKEN env auth; never print tokens or add them to files. - Set repo context explicitly with
--repo owner/nameor by checking the current repo viagh repo view; avoid assuming defaults. - Prefer structured output with
--jsonfields and--limitto keep responses concise (e.g.,gh pr list --state open --json number,title,author,headRefName,baseRefName,url --limit 20). - Common reads:
gh pr view <number> --json number,title,state,author,mergedAt,commits,files,comments,url,gh issue list --state all --json number,title,state,author,url --limit 30,gh release list --limit 20,gh release view <tag> --json tagName,name,publishedAt,url. - For write operations (create/update PRs, issues, comments, releases), confirm intent and required fields; use
--title,--body, or--body-filewithout secrets. Avoid noisy outputs; capture URLs/results only. - When checking out PRs locally, use
gh pr checkout <number>and handle branch existence gracefully; do not alter remotes or push unless explicitly requested.
Example prompts
- "List open PRs with authors for repo owner/name using gh"
- "Show issue 42 details and comments via gh"
- "Checkout PR 17 locally with gh"
- "Draft release v1.2.0 on repo owner/name using gh"
Expert Next.js App Router
Developpement
Un skill qui transforme Claude en expert Next.js App Router.
Générateur de README
Developpement
Crée des README.md professionnels et complets pour vos projets.
Rédacteur de Documentation API
Developpement
Génère de la documentation API complète au format OpenAPI/Swagger.