Ouvrir le dépôt GitHub

VérifiéSûr

Ouvre dans le navigateur par défaut la page du dépôt GitHub synchronisé avec Claude Code. Il récupère l'URL distante depuis la configuration git locale et la convertit en lien HTTPS. Pratique pour accéder rapidement au dépôt sans devoir y naviguer manuellement.

Spar Skills Guide Bot
DeveloppementDébutant
7002/06/2026
Claude Code
#github#sync#repository#open#browser

Recommandé pour

Notre avis

Ouvre la page du dépôt GitHub associé à la configuration de synchronisation de Claude Code.

Points forts

  • Commande unique et simple
  • Détection automatique du navigateur sur macOS, Linux et WSL
  • Conversion automatique des URL SSH en HTTPS

Limites

  • Fonctionne uniquement si la synchronisation est configurée
  • Nécessite une connexion internet
  • Peut échouer si la commande 'open' n'est pas disponible
Quand l'utiliser

Utilisez-la lorsque vous souhaitez consulter rapidement le dépôt GitHub de synchronisation de Claude Code.

Quand l'éviter

Ne l'utilisez pas si vous n'avez pas encore configuré la synchronisation ou si vous devez modifier le dépôt localement.

Analyse de sécurité

Sûr
Score qualité90/100

The skill opens a URL in the browser based on the local git remote. It does not execute destructive operations, exfiltrate data, or download external payloads. The script uses safe system commands (open, xdg-open, wslview) and only reads the remote URL from git config.

Aucun point d'attention détecté

Exemples

Open sync repository
/claude-github-sync:open

name: open description: Open GitHub sync repository page in browser

Open GitHub Repository

Open your Claude Code sync repository page in the default browser.

Usage

/claude-github-sync:open

Configuration Reference

| Item | Path | Description | |------|------|-------------| | Config file | ~/.claude/sync-config.json | Sync configuration (repo URL, setup method) | | Git remote | ~/.claude/.git/config | Primary check - git origin remote URL |

Instructions

cd ~/.claude

# Get remote URL
REPO_URL=$(git remote get-url origin 2>/dev/null)

if [ -z "$REPO_URL" ]; then
    echo "❌ Not configured"
    echo ""
    echo "Run: /claude-github-sync:setup"
    exit 1
fi

# Convert SSH URL to HTTPS if needed
# git@github.com:user/repo.git -> https://github.com/user/repo
# https://github.com/user/repo.git -> https://github.com/user/repo
HTTPS_URL=$(echo "$REPO_URL" | sed -E 's|git@github.com:|https://github.com/|' | sed 's|\.git$||')

echo "🌐 Opening: $HTTPS_URL"

# Open in default browser (macOS/Linux/WSL)
if command -v open &>/dev/null; then
    open "$HTTPS_URL"
elif command -v xdg-open &>/dev/null; then
    xdg-open "$HTTPS_URL"
elif command -v wslview &>/dev/null; then
    wslview "$HTTPS_URL"
else
    echo ""
    echo "Could not detect browser. Open manually:"
    echo "  $HTTPS_URL"
fi
Skills similaires