speckit-git-remote

Extract repository owner, name, and GitHub host from Git remote URLs.

1|Updated Mar 26, 2026
One-click install
npx skills add https://github.com/duonghuan2122000/sora-piggy --skill speckit-git-remote-duonghuan2122000
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: speckit-git-remote
Source: https://github.com/duonghuan2122000/sora-piggy/tree/main/.claude/skills/speckit-git-remote
Command: npx skills add https://github.com/duonghuan2122000/sora-piggy --skill speckit-git-remote-duonghuan2122000

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Detects the Git remote URL to enable integration with GitHub services such as issue creation and repository linking.

Core Features & Use Cases

  • Reads the configured remote.origin URL from Git to extract repository owner, name, and GitHub-compatibility.
  • Supports both HTTPS and SSH URL formats and gracefully handles non-Git repos or missing remotes.

Quick Start

Run the command git config --get remote.origin.url to retrieve the remote URL.

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 GitHub repository owner and name from a local Git remote URL?

To extract the GitHub repository owner and name, you can read the configured remote.origin URL. This process parses both HTTPS and SSH formats to identify the repository details for integration.

Does Git remote URL detection support both HTTPS and SSH formats?

Yes, Git remote URL detection supports both HTTPS and SSH formats. It reads the remote.origin.url configuration to determine the repository owner, name, and host compatibility.

What happens if I run Git remote URL detection on a repository without a configured remote?

If Git is not installed or the repository lacks a configured remote, the detection returns an empty result and issues a warning instead of extracting repository details.

When do I need to detect a Git remote URL for GitHub integration?

You need to detect a Git remote URL when integrating local repositories with GitHub services like issue creation or repository linking, requiring the extraction of owner and repository name.

Can I use this method to check if a local repository is hosted on github.com?

Yes, detecting the remote URL allows you to check if the host is github.com. It parses the remote.origin.url to verify GitHub compatibility and extract the repository owner and name.