speckit-git-remote

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

2|Updated Jun 22, 2026
One-click install
npx skills add https://github.com/Kemetra/Seshat-BI --skill speckit-git-remote-kemetra
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: speckit-git-remote
Source: https://github.com/Kemetra/Seshat-BI/tree/main/.claude/skills/speckit-git-remote
Command: npx skills add https://github.com/Kemetra/Seshat-BI --skill speckit-git-remote-kemetra

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? When automating GitHub integrations such as issue creation, workflows need the repository's remote URL, owner, and name, but manually inspecting Git configuration is error-prone and breaks when Git is missing or no remote is configured. ## Core Features & Use Cases - Remote URL Detection: Runs git config --get remote.origin.url to retrieve the configured origin remote. - URL Parsing: Extracts the 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 from the URL shape. - 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 exists. - Use Case: In a spec-kit project, use this before creating GitHub issues so the workflow targets the correct repository without hardcoding owner and repo values. ## Quick Start Detect the Git remote URL for this repository and tell me 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 from the command line?▼

Run `git config --get remote.origin.url` inside a Git repository to print the origin remote URL. You can first verify you are in a repository with `git rev-parse --is-inside-work-tree`.

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

Parse the path segment of the URL: for HTTPS `https://github.com/<owner>/<repo>.git` and SSH `git@github.com:<owner>/<repo>.git`, the owner is the first path component and the repo is the second, with the `.git` suffix removed.

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. Remotes hosted on GitLab, Bitbucket, or other services are not treated as GitHub repositories.

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

The skill outputs a warning such as 'Git repository not detected' and returns an empty result instead of raising an error. Other workflows continue normally without Git remote information.

Why does git remote detection fail in some directories?▼

Detection fails when the directory is not inside a Git work tree, Git is not installed, or no origin remote has been configured. Each case is handled by returning an empty result with a warning.