speckit-git-remote

Extract GitHub owner and repository from a Git origin remote URL.

1|Updated Mar 15, 2026
One-click install
npx skills add https://github.com/youssif-mohamed1/Smart-LMS-with-AI-Proctoring --skill speckit-git-remote-youssif-mohamed1
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: speckit-git-remote
Source: https://github.com/youssif-mohamed1/Smart-LMS-with-AI-Proctoring/tree/main/source%20code/LMS-Project/.agents/skills/speckit-git-remote
Command: npx skills add https://github.com/youssif-mohamed1/Smart-LMS-with-AI-Proctoring --skill speckit-git-remote-youssif-mohamed1

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

It eliminates guesswork when a workflow needs to know which repository a local Git checkout belongs to, enabling downstream actions like GitHub issue creation.

Core Features & Use Cases

  • Detects the configured Git remote: Reads the repository’s remote.origin.url when running inside a Git work tree.
  • Parses owner and repository name: Extracts the GitHub owner and repo from supported HTTPS and SSH URL formats.
  • Safely reports GitHub only when correct: Treats the remote as GitHub only if the URL actually points to github.com, otherwise it returns empty results.

Quick Start

Ask the AI to detect the current Git remote URL for GitHub integration by running in the project directory.

Frequently Asked Questions about speckit-git-remote

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I find the GitHub owner and repository name from a local Git checkout?

To find the GitHub owner and repository name, you can detect the Git remote configured in your working directory. This Skill reads the repository's remote.origin.url via git config and parses supported HTTPS and SSH formats to extract the upstream GitHub project identifiers.

Can I use this to detect Git remotes in a CI automation environment?

Yes, you can use this to detect Git remotes in a CI automation environment. It is designed for local development and CI-style environments that require mapping a working directory to its upstream GitHub project for integration tasks.

What happens if my Git remote URL does not point to github.com?

If your Git remote URL does not point to github.com, the detection treats the remote as non-GitHub and returns empty results. It safely reports GitHub data only when the parsed URL actually points to github.com.

Do I need to be inside a Git work tree to detect the repository remote URL?

Yes, you need to be inside a Git work tree to detect the repository remote URL. The Skill requires running inside a Git work tree to retrieve remote.origin.url and returns empty output gracefully when Git or remotes are unavailable.

What Git URL formats are supported for parsing GitHub repository information?

The supported Git URL formats for parsing GitHub repository information are standard HTTPS and SSH formats. It parses these formats to reliably extract the GitHub owner and repository name for downstream integration actions.