GitHub - Scripts et Automatisation

VérifiéSûr

Scripts d'enveloppe pour les opérations GitHub utilisant gh CLI ou curl avec GITHUB_TOKEN. Fournit des commandes pour les issues, pull requests et vérification d'authentification, y compris entre dépôts. Utile lorsque les commandes gh directes sont bloquées.

Spar Skills Guide Bot
DeveloppementDébutant
7002/06/2026
Claude Code
#github#issues#pull-requests#authentication#gh-cli

Recommandé pour

Notre avis

Fournit des scripts d'encapsulation pour les opérations GitHub (issues, PRs, authentification) utilisant curl avec GITHUB_TOKEN ou gh CLI en solution de repli.

Points forts

  • Bascule transparente entre le token et gh CLI
  • Prise en charge des opérations inter-dépôts avec l'option -R
  • Couvre les interactions GitHub courantes (lister, voir, créer, commenter, fermer issues/PRs)
  • Préconfiguré pour les environnements distants via un hook de session

Limites

  • Limité aux opérations de base ; manque de fonctionnalités avancées (GraphQL, actions, releases)
  • Nécessite un token correctement configuré ou une authentification gh
  • Les scripts dépendent de bash et de chemins spécifiques ; peu portables en dehors de Claude Code
Quand l'utiliser

Lorsque vous devez interagir rapidement avec les issues ou pull requests GitHub dans le dépôt courant ou un autre, sans changer de contexte.

Quand l'éviter

Pour des workflows GitHub complexes ou lorsque vous avez besoin de toute la flexibilité de l'API ; utilisez directement l'API GitHub ou gh avec des arguments personnalisés.

Analyse de sécurité

Sûr
Score qualité90/100

The skill provides wrapper scripts for GitHub CLI operations (issues, PRs, auth). It uses standard tools (Bash, Read) and only runs legitimate GitHub commands via curl or gh CLI. There are no destructive, exfiltrating, or obfuscated actions. The scripts are not provided, but the description indicates normal GitHub interactions.

Aucun point d'attention détecté

Exemples

List open issues
Show me all open issues in this repository.
Create a new issue
Create a new GitHub issue titled 'Fix login bug' with description 'The login button does not work on mobile devices.'
View pull request details
Show me the details of pull request number 42.

name: GitHub description: Wrapper scripts for GitHub CLI (gh) commands to access issues, PRs, and authentication status. Supports cross-repository operations. Use when direct gh commands are blocked. allowed-tools:

  • Bash
  • Read

GitHub

This skill provides wrapper scripts for GitHub operations. Scripts automatically use curl with GITHUB_TOKEN when available, falling back to gh CLI otherwise. All issue commands support -R owner/repo for cross-repository operations.

Available Scripts

Authentication

bash .claude/skills/github/scripts/gh-auth.sh" status

Issues

# List issues
bash .claude/skills/github/scripts/gh-issue.sh" list
bash .claude/skills/github/scripts/gh-issue.sh" list --state all -L 10

# View issue
bash .claude/skills/github/scripts/gh-issue.sh" view 123

# Create issue
bash .claude/skills/github/scripts/gh-issue.sh" create --title "Bug report" --body "Description"

# Add comment
bash .claude/skills/github/scripts/gh-issue.sh" comment 123 --body "My comment"

# Close issue
bash .claude/skills/github/scripts/gh-issue.sh" close 123

# Assign to yourself
bash .claude/skills/github/scripts/gh-issue.sh" assign 123

Cross-Repository Issue Operations

Use -R or --repo to target a different repository:

# List issues in another repo
bash .claude/skills/github/scripts/gh-issue.sh" -R owner/repo list

# View issue in another repo
bash .claude/skills/github/scripts/gh-issue.sh" -R owner/repo view 123

# Create issue in another repo
bash .claude/skills/github/scripts/gh-issue.sh" -R owner/repo create --title "Bug report" --body "Description"

# Add comment to issue in another repo
bash .claude/skills/github/scripts/gh-issue.sh" -R owner/repo comment 123 --body "My comment"

# Close issue in another repo
bash .claude/skills/github/scripts/gh-issue.sh" -R owner/repo close 123

Pull Requests

# List PRs
bash .claude/skills/github/scripts/gh-pr.sh" list
bash .claude/skills/github/scripts/gh-pr.sh" list --state all -L 10

# View PR
bash .claude/skills/github/scripts/gh-pr.sh" view 123

# Create PR
bash .claude/skills/github/scripts/gh-pr.sh" create --title "My PR" --body "Description" --base main

Authentication Methods

  1. GITHUB_TOKEN (preferred for remote): Set in .env file, scripts use curl with GitHub API
  2. gh CLI (fallback): Uses gh's own authentication when token not available

The session-start hook automatically configures GITHUB_TOKEN in .env for remote environments.

Skills similaires