speckit-git-remote

Parse Git remote URLs to extract owner, repository, and GitHub flag.

Updated Mar 4, 2026
One-click install
npx skills add https://github.com/kerolos-saaid/refranario --skill speckit-git-remote-kerolos-saaid
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: speckit-git-remote
Source: https://github.com/kerolos-saaid/refranario/tree/main/.agents/skills/speckit-git-remote
Command: npx skills add https://github.com/kerolos-saaid/refranario --skill speckit-git-remote-kerolos-saaid

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Detect the Git remote URL of a local repository to enable GitHub integration and automation workflows (e.g., issue creation).

Core Features & Use Cases

  • Parses remote.origin.url to extract repository owner, repository name, and whether the remote points to GitHub.
  • Supports both HTTPS and SSH URL formats.
  • Graceful degradation: returns no result when Git is unavailable or no remote is configured.

Quick Start

Run git config --get remote.origin.url in your repository to retrieve the remote URL and determine if it points to GitHub.

Frequently Asked Questions about speckit-git-remote

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

FAQPage Schema
How do I extract the GitHub owner and repository name from a Git remote URL?

To extract the GitHub owner and repository name from a Git remote URL, the Skill parses the output of git config --get remote.origin.url, supporting both HTTPS and SSH formats to return the specific owner and repo details.

What is the best way to check if a local Git repository points to GitHub for CI automation?

Checking if a local Git repository points to GitHub for CI automation involves parsing the remote origin URL to return an is_github flag along with the owner and repository name for deployment hooks.

Does the Git remote URL parser work with both SSH and HTTPS formats?

Yes, the Git remote URL parser works with both SSH and HTTPS formats. It successfully extracts the owner and repository name from either remote URL structure to enable GitHub integration.

Do I need Git installed to detect the remote repository URL?

Yes, you need Git installed to detect the remote repository URL. The Skill requires Git to execute the git config --get remote.origin.url command and parse the output for GitHub integration.

What happens when Git is unavailable or no remote is configured?

When Git is unavailable or no remote is configured, the Skill gracefully degrades by returning no result. It outputs nothing instead of failing, ensuring automation workflows handle missing remotes safely.