本文へ移動
cccskills
無料GitHub で公開

speckit-git-remote

Detect Git remote URL for GitHub integration

インストール方法を見る

含まれるファイル(1)

  • SKILL.md1.8 KB

SKILL.md(原文)

インストールする前に、エージェントに与えられる指示の中身を確認できます。

Detect Git Remote URL

Detect the Git remote URL for integration with GitHub services (e.g., issue creation).

Prerequisites

  • Check if Git is available by running git rev-parse --is-inside-work-tree 2>/dev/null
  • If Git is not available, output a warning and return empty:
    [specify] Warning: Git repository not detected; cannot determine remote URL
    

Execution

Run the following command to list configured remote URLs:

git remote -v

Select a URL from the actual configured remotes. Prefer a GitHub push URL when one is available; otherwise use a GitHub fetch URL. Do not assume the remote is named origin.

Output

Parse the remote URL and determine:

  1. Repository owner: Extract from the URL (e.g., github from https://github.com/github/spec-kit.git)
  2. Repository name: Extract from the URL (e.g., spec-kit from https://github.com/github/spec-kit.git)
  3. Is GitHub: Whether the remote points to a GitHub repository

Supported URL formats:

  • HTTPS: https://github.com/<owner>/<repo>.git
  • SSH: git@github.com:<owner>/<repo>.git

[!CAUTION] ONLY report a GitHub repository if the remote URL actually points to github.com. Do NOT assume the remote is GitHub if the URL format doesn't match.

Graceful Degradation

If Git is not installed, the directory is not a Git repository, or no remote is configured:

  • Return an empty result
  • Do NOT error — other workflows should continue without Git remote information

レビュー

まだレビューはありません。使ってみた感想をお寄せください。

同じリポジトリのスキル

概要と使いどころ

adapters

無料

Skill for the Adapters area of paddock. 108 symbols across 22 files.

日本語の概要は準備中です。原文の説明を表示しています。

racecraft-lab/Paddock122026年6月26日 更新

chat

無料

Skill for the Chat area of paddock. 62 symbols across 10 files.

日本語の概要は準備中です。原文の説明を表示しています。

racecraft-lab/Paddock122026年6月26日 更新

dashboard

無料

Skill for the Dashboard area of paddock. 80 symbols across 16 files.

日本語の概要は準備中です。原文の説明を表示しています。

racecraft-lab/Paddock122026年6月26日 更新

github

無料

Skill for the Github area of paddock. 23 symbols across 5 files.

日本語の概要は準備中です。原文の説明を表示しています。

racecraft-lab/Paddock122026年6月26日 更新

Use when the user needs to run GitNexus CLI commands like analyze/index a repo, check status, clean the index, generate a wiki, or list indexed repos. Examples: "Index this repo", "Reanalyze the codebase", "Generate a wiki"

日本語の概要は準備中です。原文の説明を表示しています。

racecraft-lab/Paddock122026年6月26日 更新

Use when the user is debugging a bug, tracing an error, or asking why something fails. Examples: "Why is X failing?", "Where does this error come from?", "Trace this bug"

日本語の概要は準備中です。原文の説明を表示しています。

racecraft-lab/Paddock122026年6月26日 更新

racecraft-lab のスキルをすべて見る

このスキルの問題を報告する