speckit-git-remote

Detect the Git remote URL and parse GitHub repository owner and name.

4|Updated Oct 24, 2025
One-click install
npx skills add https://github.com/sethdavis512/iridium --skill speckit-git-remote-sethdavis512
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: speckit-git-remote
Source: https://github.com/sethdavis512/iridium/tree/main/.agents/skills/speckit-git-remote
Command: npx skills add https://github.com/sethdavis512/iridium --skill speckit-git-remote-sethdavis512

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. This Skill detects the Git remote URL and extracts the repository owner and name so downstream GitHub integrations can target the correct repository. ## Core Features & Use Cases - Remote URL Detection: Runs git config --get remote.origin.url to retrieve the configured remote for the current repository. - URL Parsing: Extracts the repository owner and name from both HTTPS (https://github.com/<owner>/<repo>.git) and SSH ([email protected]:<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 is configured. - Use Case: Before creating a GitHub issue from a spec-kit workflow, run this detection to confirm the project remote and obtain the owner/repo pair needed by the GitHub API. ## Quick Start Detect the Git remote URL for this project and tell me the GitHub repository owner and 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 configured origin remote URL. You can first verify you are inside a Git work tree with `git rev-parse --is-inside-work-tree`.

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

Parse the URL path segments: for HTTPS URLs like `https://github.com/<owner>/<repo>.git` and SSH URLs like `[email protected]:<owner>/<repo>.git`, the owner is the segment after github.com and the repo is the final segment with the `.git` suffix removed.

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

No. The detection only reports a repository as GitHub when the remote URL actually points to github.com. Remotes hosted on GitLab, Bitbucket, or other platforms are not treated as GitHub repositories.

What happens if Git is not installed or no remote is configured?

The detection returns an empty result and outputs a warning instead of raising an error. Other workflows continue running without Git remote information, so missing Git or a missing remote never blocks execution.

Why does git remote detection return an empty result?

An empty result occurs when Git is not installed, the current directory is not inside a Git work tree, or the repository has no origin remote configured. Check `git rev-parse --is-inside-work-tree` and `git remote -v` to diagnose.