speckit-git-remote

Parse Git remote URLs to extract repository owner and name.

Updated Apr 12, 2026
One-click install
npx skills add https://github.com/ZainEldeen-Ashraf-Ibrahim-Ibrahim-Samak/SCCT --skill speckit-git-remote
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: speckit-git-remote
Source: https://github.com/ZainEldeen-Ashraf-Ibrahim-Ibrahim-Samak/SCCT/tree/main/.agent/skills/speckit-git-remote
Command: npx skills add https://github.com/ZainEldeen-Ashraf-Ibrahim-Ibrahim-Samak/SCCT --skill speckit-git-remote

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill finds and parses the repository's Git remote URL so integrations (for example, creating GitHub issues or linking CI/CD) can identify the repository owner and name without manual lookup. It avoids failing pipelines by gracefully reporting empty results when Git is not available or no remote is configured.

Core Features & Use Cases

  • Repository detection: Checks whether the current directory is a Git repository before attempting to read remotes.
  • Remote parsing: Reads remote.origin.url and extracts the repository owner and repository name from both HTTPS and SSH URL formats.
  • GitHub identification: Explicitly determines whether the remote points to github.com and only reports GitHub when the host matches.
  • Use Case: Automating issue creation or linking services that require owner and repo metadata for GitHub integrations.

Quick Start

Use the skill to detect the repository's Git remote and return the owner, repository name, and whether it 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 extract the repository owner and name from a git remote URL?

You extract the repository owner and name from a git remote URL by reading remote.origin.url and parsing both HTTPS and SSH formats. This isolates the GitHub repository metadata required for automating issue creation and service linking.

How do I detect if a local repository is pointing to github.com?

You detect if a local repository points to github.com by parsing the remote origin URL and checking the host. This Skill explicitly identifies whether the extracted remote matches github.com to confirm the target platform for integration tasks.

What happens to my CI/CD pipeline if Git is unavailable or no remote is configured?

If Git is unavailable or no remote is configured, the remote parsing process returns empty results without throwing an error. This graceful reporting prevents pipeline failures during automated GitHub integration tasks.

Can I parse both SSH and HTTPS git remote URLs for GitHub integrations?

Yes, you can parse both SSH and HTTPS git remote URLs for GitHub integrations. The remote parsing logic reads remote.origin.url and successfully extracts the repository owner and name from both URL formats.

How do I automate GitHub issue creation using local repository metadata?

You automate GitHub issue creation by detecting the Git remote URL and extracting the repository owner and name. This provides the necessary metadata for linking services and creating issues without manual lookup in the spec-kit project structure.