speckit-git-remote — скилл для Claude Code
Скилл speckit-git-remote определяет адрес удалённого Git-репозитория и проверяет связь с GitHub для сценариев вроде создания задач в spec-kit. Пригодится проектам со структурой .specify/.
MIT ★ 110 обновлён 2026-10-19
npx skills add alfredoperez/speckit-companion --skill speckit-git-remote -a claude-codeЧто делает speckit-git-remote
Скилл проверяет рабочее дерево с помощью git rev-parse --is-inside-work-tree и читает адрес origin через git config --get remote.origin.url. Из полученной строки извлекаются владелец и имя проекта. Поддерживаются адреса по протоколам HTTPS и SSH.
Решение отмечает репозиторий как принадлежащий GitHub только при точном совпадении с доменом github.com. Если репозиторий не инициализирован, Git отсутствует или адрес не настроен, скилл выводит предупреждение и возвращает пустой результат без прерывания других процессов.
Для корректной работы требуется структура проекта spec-kit с каталогом .specify/.
Какие задачи решает
- Извлечь имя владельца и название репозитория из параметров удалённого Git-источника
- Проверить принадлежность удалённого адреса origin платформе GitHub перед вызовом API
- Определить параметры HTTPS или SSH подключения к удалённому репозиторию для интеграций spec-kit
- Передать данные репозитория в автоматизированные сценарии создания задач на GitHub
Примеры запросов агенту
- Определи адрес удалённого репозитория и проверь, размещён ли проект на GitHub.
- Прочитай параметры origin из Git и извлеки имя владельца и название текущего репозитория.
- Проверь конфигурацию Git в текущей папке и выясни URL для интеграции с задачами GitHub.
Как установить speckit-git-remote
1Через Skills CLI (Vercel)
npx skills add alfredoperez/speckit-companion --skill speckit-git-remote -a claude-code2Вручную: положить файлы
~/.claude/skills/speckit-git-remote/SKILL.mdПапка скилла целиком; для одного проекта — .claude/skills/speckit-git-remote/
1Через Skills CLI (Vercel)
npx skills add alfredoperez/speckit-companion --skill speckit-git-remote -a codex2Вручную: положить файлы
.agents/skills/speckit-git-remote/SKILL.mdДля всех проектов — ~/.agents/skills/
1Через Skills CLI (Vercel)
npx skills add alfredoperez/speckit-companion --skill speckit-git-remote -a cursor2Вручную: положить файлы
.cursor/skills/speckit-git-remote/SKILL.mdCursor читает и .agents/skills/, и .claude/skills/
1GitHub CLI
gh skill install alfredoperez/speckit-companion .claude/skills/speckit-git-remote2Вручную: положить файлы
.github/skills/speckit-git-remote/SKILL.md1Через Skills CLI (Vercel)
npx skills add alfredoperez/speckit-companion --skill speckit-git-remote -a gemini-cli2Командой платформы
gemini skills install https://github.com/alfredoperez/speckit-companion --path .claude/skills/speckit-git-remoteВручную: положить файлы
.devin/skills/speckit-git-remote/SKILL.mdСтарый путь .windsurf/skills/ тоже читается
Claude.ai
Упакуйте папку в zip и загрузите в Settings → Capabilities → Skills
По шагам, с командами для каждой платформы: Как установить скилл в Claude Code: пять способов
Вопросы о speckit-git-remote
Как установить speckit-git-remote в Claude Code?
Выполните команду npx skills add alfredoperez/speckit-companion --skill speckit-git-remote -a claude-code.
Что делает speckit-git-remote?
Скилл считывает URL удалённого репозитория через git config, разбирает владельца и название проекта, а также подтверждает, что источник ведёт именно на github.com.
Что произойдёт, если запустить скилл вне репозитория Git?
Инструмент выведет предупреждение в консоль и вернёт пустой результат, не прерывая выполнение остального пайплайна spec-kit.
Исходный текст
SKILL.md · MIT
--- name: speckit-git-remote description: Detect Git remote URL for GitHub integration compatibility: Requires spec-kit project structure with .specify/ directory metadata: author: spec-kit-core source: extension:git user-invocable: true disable-model-invocation: false --- # Git Remote Skill # 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 get the remote URL: ```bash git config --get remote.origin.url ``` ## 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: `[email protected]:<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
© spec-kit-core · MIT · alfredoperez/speckit-companion