speckit-git-remote

Extract GitHub owner and repository name from the configured Git remote URL.

Updated May 3, 2026
One-click install
npx skills add https://github.com/Mohsen3-5/Trader --skill speckit-git-remote-mohsen3-5
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: speckit-git-remote
Source: https://github.com/Mohsen3-5/Trader/tree/main/Trader/.claude/skills/speckit-git-remote
Command: npx skills add https://github.com/Mohsen3-5/Trader --skill speckit-git-remote-mohsen3-5

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

It helps you reliably determine the GitHub repository owner and name by reading the configured Git remote, so downstream GitHub integrations can create links or issue context without manual copy-paste.

Core Features & Use Cases

  • Git remote URL detection: Reads the current repository’s configured remote.origin.url and safely handles cases where Git is unavailable or no remote exists.
  • GitHub owner/repo extraction: Parses supported HTTPS and SSH Git URL formats to extract the repository owner and repository name.
  • Safety-first reporting: Only reports GitHub details when the remote URL actually points to github.com, avoiding incorrect assumptions.

Use case: You’re running an automation workflow that needs to open or create a GitHub issue in the correct repository for the current working tree.

Quick Start

Ask the AI to detect the Git remote URL for the current project and return the GitHub owner and repository name when the remote points to github.com.

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 Git remote URL?

To extract the GitHub repository owner and name, you can read the configured `remote.origin.url` via `git config`. This process parses supported HTTPS and SSH URL formats to safely return the required repository details for downstream automation.

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

If the Git remote URL does not point to github.com, the extraction returns empty results. This safety-first reporting mechanism avoids incorrect assumptions and prevents invalid GitHub integrations from being configured for non-GitHub repositories.

Can I detect Git remote details when Git is unavailable or no remote exists?

Yes, detecting Git remote details safely handles cases where Git is unavailable or no remote exists. It runs `git rev-parse` to verify a Git work tree first, returning empty results rather than failing if the required environment or remote configuration is missing.

Does Git remote URL detection support both SSH and HTTPS formats?

Yes, Git remote URL detection supports both SSH and HTTPS URL formats. It parses the `remote.origin.url` configuration value to accurately extract the GitHub repository owner and repository name regardless of which supported protocol your local repository uses.

Why do I need to extract GitHub context from a local Git repository?

You need to extract GitHub context from a local Git repository to enable automation workflows like opening or creating GitHub issues. This determines the correct repository owner and name automatically, eliminating manual copy-paste when linking issues to your current working tree.