speckit-git-remote

Detect the GitHub owner and repository from a local Git remote URL.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill helps automatically identify the GitHub repository behind a local Git project so GitHub-based workflows can link to the correct owner and repo.

Core Features & Use Cases

  • Git remote discovery: Reads the configured remote.origin.url from a Git working tree.
  • GitHub-safe parsing: Extracts the owner and repository name only when the remote URL actually points to github.com.
  • Graceful fallback: Returns an empty result (with a warning) when Git is unavailable, the directory isn’t a repo, or no remote is configured.

Quick Start

Ask the tool to detect the GitHub owner and repository name from the current project’s configured Git 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 owner and repository name from a local Git remote URL?

To get the GitHub owner and repository name from a local Git remote URL, the tool reads your configured `remote.origin.url` via git config. It parses both HTTPS and SSH formats to extract the exact owner and repo details for GitHub integration workflows.

What happens if Git is missing or no remote exists when parsing a repository?

If Git is missing or no remote exists when parsing a repository, the detection process applies a graceful fallback. It reads `remote.origin.url` and returns an empty result with a warning instead of failing, ensuring your workflow continues without crashing.

Can I detect if a Git remote points to GitHub using SSH or HTTPS formats?

Yes, you can detect if a Git remote points to GitHub using SSH or HTTPS formats. The parser reads the `remote.origin.url` from a valid work tree and supports both GitHub URL structures to accurately determine if the origin targets `github.com`.

How do I automatically extract repository metadata from a working tree's origin remote?

You extract repository metadata from a working tree's origin remote by running git inside the valid work tree. The tool reads the `remote.origin.url` configuration, extracting the owner and repo name to use in GitHub issue creation or metadata enrichment.

Does this GitHub remote detection require a specific Git configuration to work?

GitHub remote detection requires running git inside a valid work tree with a configured `remote.origin.url`. It specifically checks if the origin URL targets `github.com` to safely parse the owner and repository name, returning empty results if the prerequisite environment is missing.

Why does my GitHub repository detection return empty results without failing?

GitHub repository detection returns empty results without failing as a graceful fallback mechanism. When Git is unavailable, the directory isn't a repo, or no `remote.origin.url` is configured, it outputs empty data with a warning instead of throwing an error.