speckit-git-remote

Extract the GitHub remote URL, owner, and repository from local git config.

9|4|Updated May 13, 2025
One-click install
npx skills add https://github.com/opsmill/infrahub-mcp --skill speckit-git-remote-opsmill
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: speckit-git-remote
Source: https://github.com/opsmill/infrahub-mcp/tree/main/.agents/skills/speckit-git-remote
Command: npx skills add https://github.com/opsmill/infrahub-mcp --skill speckit-git-remote-opsmill

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Detecting the Git remote URL is essential for integrating local repositories with GitHub services, issue trackers, and automation pipelines without manual URL reconstruction.

Core Features & Use Cases

  • Identify the owner and repository name from the remote URL.
  • Determine whether the remote points to GitHub (https/SSH) for compatible workflows.
  • Use in automation tasks such as repository onboarding, CI checks, and workflow generation.

Quick Start

Run git config --get remote.origin.url to retrieve the 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 get the GitHub repository owner and name from a local git remote URL?

To get the GitHub repository owner and name from a local git remote URL, the skill reads the local git config to extract remote.origin.url, validates that it points to GitHub, and returns the owner and repository name.

Can I check if my git remote points to GitHub using SSH or HTTPS?

Yes, you can check if your git remote points to GitHub using SSH or HTTPS. The skill validates the extracted remote.origin.url to determine if it is a GitHub repository and returns a boolean is_github flag.

What is the best way to automate detecting GitHub remote URLs for CI checks?

The best way to automate detecting GitHub remote URLs for CI checks is to programmatically read the local git config, extract remote.origin.url, and validate its GitHub origin to return owner and repository details.

Does this remote URL parser work without manual URL reconstruction?

Yes, this remote URL parser works without manual URL reconstruction. It automatically reads the local git config to extract remote.origin.url and identifies the repository owner and name directly.

Why do I need to identify whether a remote is GitHub for automation pipelines?

You need to identify whether a remote is GitHub for automation pipelines to ensure compatible workflows. The skill validates the remote URL and returns an is_github flag to confirm the repository supports GitHub-specific automation.