Git Repository Detection
Installation
SKILL.md
Git Repository Detection
Expert knowledge for detecting and extracting GitHub repository information from git remotes, including repository name, owner, and full identifiers.
Core Expertise
Repository Identification
- Extract owner and repository name from git remotes
- Parse GitHub URLs (HTTPS and SSH)
- Handle GitHub Enterprise URLs
- Format as
owner/repofor CLI/API usage
URL Parsing
- Parse HTTPS URLs:
https://github.com/owner/repo.git - Parse SSH URLs:
git@github.com:owner/repo.git - Handle custom domains:
https://github.enterprise.com/owner/repo.git - Clean
.gitsuffix and extra paths