speckit-git-remote

Reads the Git remote URL and extracts GitHub owner and repository name.

Updated Aug 23, 2026
One-click install
npx skills add https://github.com/luansilvadb/divi-app --skill speckit-git-remote-luansilvadb
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: speckit-git-remote
Source: https://github.com/luansilvadb/divi-app/tree/main/.agents/skills/speckit-git-remote
Command: npx skills add https://github.com/luansilvadb/divi-app --skill speckit-git-remote-luansilvadb

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Detect Git remote URL for GitHub integrations, enabling automation to identify repository context from a local clone.

Core Features & Use Cases

  • URL detection: Reads the remote.origin URL from the local Git configuration and parses HTTPS and SSH formats.
  • Context extraction: Extracts repository owner and name and determines whether the remote points to GitHub for downstream automation (e.g., issue creation).
  • Graceful handling: If not in a Git repository or no remote is configured, returns an empty result without errors.

Quick Start

Run the command inside a Git repository to print the GitHub owner and repository name from the configured remote URL.

Frequently Asked Questions about speckit-git-remote

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

FAQPage Schema
How do I extract the repository owner and name from a Git remote URL?

To extract repository owner and name from a Git remote URL, read the remote.origin URL from Git configuration and parse common HTTPS and SSH formats to identify the specific repository details.

How do I detect if a local Git repository points to GitHub for automation?

Detect if a local Git repository points to GitHub by reading the remote origin URL via git config, validating the github.com domain, and returning an is_github status for downstream automation.

What happens if there is no Git remote configured when parsing repository context?

If there is no Git remote configured when parsing repository context, the process gracefully handles the absence by returning an empty result without throwing errors, ensuring automation pipelines do not break.

Can I parse both SSH and HTTPS Git remote URLs to identify the repository owner?

Yes, you can parse both SSH and HTTPS Git remote URLs to identify the repository owner and name, supporting various common URL formats to accurately determine the repository context for issue creation or deployment.

Does this Git remote URL detection work outside of a Git repository?

Git remote URL detection gracefully handles execution outside of a Git repository by returning an empty result without errors, allowing automation scripts to safely check repository context without failing.