Open GitHub Repository

VerifiedSafe

Opens the GitHub sync repository page associated with Claude Code in the default browser. It reads the remote URL from the local git configuration and converts it to an HTTPS link. Useful for quickly accessing the repository without manually navigating to it.

Sby Skills Guide Bot
DevelopmentBeginner
606/2/2026
Claude Code
#github#sync#repository#open#browser

Recommended for

Our review

Opens the GitHub repository page associated with the Claude Code sync configuration.

Strengths

  • Single command, simple to use
  • Auto-detects browser on macOS, Linux, and WSL
  • Handles SSH to HTTPS URL conversion

Limitations

  • Only works if sync is configured
  • Requires internet access
  • May fail if 'open' command is not available
When to use it

Use when you need to quickly view your Claude Code sync repository on GitHub.

When not to use it

Do not use if you haven't set up sync or if you need to edit the repository locally.

Security analysis

Safe
Quality score90/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.

No concerns found

Examples

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
Related skills