speckit-git-remote

Detects Git remote URLs and extracts GitHub owner and repository name.

Updated May 2, 2026
One-click install
npx skills add https://github.com/ayehiaa/my-travel-assistant --skill speckit-git-remote-ayehiaa
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: speckit-git-remote
Source: https://github.com/ayehiaa/my-travel-assistant/tree/main/.agents/skills/speckit-git-remote
Command: npx skills add https://github.com/ayehiaa/my-travel-assistant --skill speckit-git-remote-ayehiaa

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Speckit-git-remote helps workflows automatically detect the Git remote URL so GitHub-related integrations (like issue creation) can be configured without manual copy/paste.

Core Features & Use Cases

  • Git remote detection: Reads the repository’s origin remote URL from the local Git configuration.
  • GitHub-only reporting: Extracts repository owner and name only when the remote URL actually points to github.com, supporting both HTTPS and SSH URL formats.
  • Graceful fallback: Returns empty output when Git is unavailable or the directory is not a Git repository, so other workflows continue uninterrupted.

Quick Start

Run the speckit-git-remote skill in a cloned repository directory to retrieve the GitHub owner and repository name from the configured remote origin.

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

To get GitHub repository owner and name from a git remote URL, you can use a tool that reads remote.origin.url and parses both HTTPS and SSH formats. It outputs the owner and repository name only when the remote targets github.com.

Can I extract GitHub metadata from both SSH and HTTPS remote URLs?

Yes, you can extract GitHub metadata from both SSH and HTTPS remote URLs. The parsing logic supports both URL formats to reliably identify the repository owner and name for github.com remotes.

Does git remote detection work in a directory that is not a Git repository?

Git remote detection handles non-repository directories gracefully by returning empty output. This ensures your integration workflows continue uninterrupted when Git is unavailable or the directory lacks a configured origin remote.

How do I automate GitHub issue creation using local repository metadata?

To automate GitHub issue creation using local repository metadata, you need a workflow that detects the remote origin URL and derives the repository owner and name. This automatically configures GitHub integrations without manual copy/paste.

What happens if my git remote URL points to a non-GitHub host?

If your git remote URL points to a non-GitHub host, the extraction returns empty output. GitHub details are only reported when the parsed remote URL actually targets github.com, preventing false integration configurations.