speckit-git-remote

Detects the Git remote URL and parses GitHub repository owner and name.

Updated Sep 19, 2026
One-click install
npx skills add https://github.com/Ab0umar/selrs.cc.BU --skill speckit-git-remote-ab0umar
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: speckit-git-remote
Source: https://github.com/Ab0umar/selrs.cc.BU/tree/main/.agents/skills/speckit-git-remote
Command: npx skills add https://github.com/Ab0umar/selrs.cc.BU --skill speckit-git-remote-ab0umar

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? When automating GitHub workflows such as issue creation, agents 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 origin remote. - URL Parsing: Extracts repository owner and name from both HTTPS (https://github.com/<owner>/<repo>.git) and SSH (git@github.com:<owner>/<repo>.git) formats. - GitHub Verification: Confirms whether the remote actually points to github.com rather than assuming it. - Use Case: In a spec-kit project, before creating a GitHub issue from a specification, use this Skill to determine the target repository owner and name from the local Git configuration. ## Quick Start Ask the agent to detect the Git remote URL for this repository and report the GitHub owner and repo 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 print the origin remote URL. You can first verify you are in a Git work tree with `git rev-parse --is-inside-work-tree`.

How to parse GitHub owner and repo name from a remote URL?▼

Extract the owner and repository name from the URL path. For HTTPS URLs like `https://github.com/<owner>/<repo>.git` and SSH URLs like `git@github.com:<owner>/<repo>.git`, the last two path segments give the owner and repo.

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

No. The Skill only reports a GitHub repository when the remote URL actually points to github.com. Other hosts are not assumed to be GitHub and should not be reported as such.

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

The Skill returns an empty result without raising an error. If Git is unavailable it outputs a warning, and other workflows continue without Git remote information.

Why does git remote detection fail in my project directory?▼

Detection fails when the directory is not a Git work tree, Git is not installed, or no origin remote is configured. Check with `git rev-parse --is-inside-work-tree` and `git remote -v` to diagnose.