speckit-git-remote

Detect Git remote URLs and extract GitHub owner and repository names.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

It solves the problem of not knowing which GitHub repository a local project is connected to, which blocks GitHub-related automation like issue creation and linking.

Core Features & Use Cases

  • Detects the active Git repository remote: Reads the configured origin remote URL to identify where the project is hosted.
  • Extracts repository owner and name: Parses the remote URL to produce structured GitHub identifiers.
  • Validates GitHub targets safely: Reports GitHub details only when the remote URL actually points to github.com.

Quick Start

Ask the AI to run the skill to detect the GitHub remote owner and repository name for the current working 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 detect the GitHub repository owner and name from a local Git remote URL?

To detect the GitHub repository owner and name, the Skill reads the configured `origin` remote URL and parses both HTTPS and SSH formats to return structured GitHub identifiers.

Can I extract repository details for CI tooling when the remote URL points to GitHub?

Yes, you can extract repository details for CI tooling. The Skill validates that the remote URL actually points to `github.com` before safely reporting the owner and repository name.

What happens when Git is missing or no remote is configured during repository discovery?

When Git is missing or no remote is configured, repository discovery returns empty results. The Skill executes git availability checks and reads `remote.origin.url` to handle missing environments safely.

Does this Skill parse both SSH and HTTPS GitHub URL formats?

Yes, this Skill parses both SSH and HTTPS GitHub URL formats. It extracts the repository owner and name by applying URL parsing logic specifically to the configured `origin` remote.

Why do I need to detect my Git remote origin for developer workflows?

You need to detect your Git remote origin to unblock GitHub-related automation. Identifying the repository owner and name enables developer workflows like issue creation and link generation.

What is the best way to validate if a local project is connected to a GitHub repository?

The best way to validate a local project's GitHub connection is to read the `origin` remote URL and check if it maps to `github.com`, returning structured repository identifiers only upon confirmation.