speckit-git-remote

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

Updated Apr 8, 2026
One-click install
npx skills add https://github.com/msaid1976/TSP-SmartAIRoute --skill speckit-git-remote-msaid1976
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: speckit-git-remote
Source: https://github.com/msaid1976/TSP-SmartAIRoute/tree/main/.agents/skills/speckit-git-remote
Command: npx skills add https://github.com/msaid1976/TSP-SmartAIRoute --skill speckit-git-remote-msaid1976

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 scripts often fail when Git is missing or no remote is configured. ## Core Features & Use Cases - Remote URL Detection: Runs git config --get remote.origin.url to retrieve the configured origin remote. - 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 exists. - Use Case: A spec-kit workflow needs to create a GitHub issue for a new feature specification; it first uses this Skill to determine the target repository owner and name from the local Git configuration. ## Quick Start Ask the assistant to detect the Git remote URL of the current repository and report the GitHub owner and repository 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 origin remote URL. The Skill executes this command and parses the result into owner and repository name components.

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

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

Does this work with non-GitHub remotes like GitLab or Bitbucket?▼

No. The Skill only reports a repository as GitHub when the remote URL actually points to github.com. Remotes hosted on 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 continue normally without Git remote information.

Which Git remote URL formats are supported?▼

Both common GitHub formats are supported: HTTPS URLs like `https://github.com/owner/repo.git` and SSH URLs like `git@github.com:owner/repo.git`. Other URL formats are not parsed as GitHub remotes.