speckit-git-remote

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

Updated Jan 28, 2026
One-click install
npx skills add https://github.com/alkampfergit/cisharpai --skill speckit-git-remote-alkampfergit
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: speckit-git-remote
Source: https://github.com/alkampfergit/cisharpai/tree/main/.claude/skills/speckit-git-remote
Command: npx skills add https://github.com/alkampfergit/cisharpai --skill speckit-git-remote-alkampfergit

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 (git@github.com:<owner>/<repo>.git) URL formats. - GitHub Verification: Confirms whether the remote actually points to github.com before reporting it as a GitHub repository. - 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 automatically instead of hardcoding them. ## Quick Start Ask the assistant to detect the Git remote URL of the current repository and report the GitHub owner and repository 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 remote URL. This Skill executes that command and parses the result into owner and repository name components.

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

Parse the remote URL according to its format: HTTPS URLs follow `https://github.com/<owner>/<repo>.git` and SSH URLs follow `git@github.com:<owner>/<repo>.git`. The owner and repo segments are extracted from the path portion.

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

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

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

The Skill degrades gracefully by returning an empty result with a warning instead of failing. Other workflows continue without Git remote information when Git is missing, the directory is not a repository, or no remote exists.

What are the prerequisites for detecting the Git remote?▼

The project must be inside a Git working tree, verifiable with `git rev-parse --is-inside-work-tree`, and should follow the spec-kit structure with a `.specify/` directory. A configured `remote.origin.url` is required to extract repository details.