speckit-git-remote

Detects the Git remote URL and parses GitHub repository owner and name.

Updated May 28, 2026
One-click install
npx skills add https://github.com/whw23/PingoGate --skill speckit-git-remote-whw23
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: speckit-git-remote
Source: https://github.com/whw23/PingoGate/tree/main/.claude/skills/speckit-git-remote
Command: npx skills add https://github.com/whw23/PingoGate --skill speckit-git-remote-whw23

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? When automating GitHub workflows such as issue creation, you need to know which repository the current project points to. Manually inspecting Git configuration is error-prone, and assuming a GitHub remote when none exists breaks downstream integrations. ## Core Features & Use Cases - Remote URL Detection: Runs git config --get remote.origin.url to retrieve the configured remote for the current repository. - URL Parsing: Extracts the repository owner and name from both HTTPS (https://github.com/<owner>/<repo>.git) and SSH (git@github.com:<owner>/<repo>.git) formats, and verifies the remote actually points to github.com. - Graceful Degradation: Returns an empty result with a warning instead of failing when Git is unavailable, the directory is not a repository, or no remote is configured. - Use Case: In a spec-kit project, before creating a GitHub issue from a specification, use this Skill to confirm the repository owner and name so the issue is filed against the correct repo. ## Quick Start Detect the Git remote URL for this project and tell me the GitHub repository owner and name.

Frequently Asked Questions about speckit-git-remote

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I get the Git remote URL of a repository?▼

Run `git config --get remote.origin.url` inside the repository to retrieve the configured remote URL. You can first verify you are inside a Git work tree with `git rev-parse --is-inside-work-tree`.

How to extract GitHub owner and repo name from a remote URL?▼

Parse the URL according to its format: for HTTPS use `https://github.com/<owner>/<repo>.git`, and for SSH use `git@github.com:<owner>/<repo>.git`. The owner and repository name are the two path segments after the host.

Does this work with GitLab or Bitbucket remotes?▼

No. The Skill only reports a repository as GitHub when the remote URL actually points to github.com. Remotes hosted on GitLab, Bitbucket, or other platforms are not treated as GitHub repositories.

What happens if Git is not installed or no remote is configured?▼

The Skill outputs a warning such as "Git repository not detected" and returns an empty result instead of raising an error. Other workflows can continue without Git remote information.

Why does Git remote detection return an empty result?▼

An empty result occurs when Git is unavailable, the current directory is not inside a Git work tree, or no `origin` remote is configured. Check each condition with `git rev-parse --is-inside-work-tree` and `git remote -v`.