github-image-upload · jssblck — скилл для Claude Code: установка
Прикрепляет скриншоты и записи экрана к PR, issue или комментарию GitHub и проверяет, что файлы попали в нужное место.
npx skills add jssblck/agents --skill github-image-upload -a claude-codeЧто делает github-image-upload
Скилл добавляет изображения и видео к PR, issue или комментарию через gh pr create, gh pr edit, gh pr comment и соответствующие команды gh issue. Он подставляет загруженный URL в Markdown-ссылку, сохраняет окружающий текст и поддерживает alt-текст для вложения.
Перед публикацией агент определяет репозиторий, номер PR или issue и нужное место назначения. Затем проверяет изменённое тело или комментарий, сопоставляя каждый запрошенный файл с загруженным URL. Файлы с доказательствами в репозиторий не коммитятся.
Для работы нужны GitHub CLI (gh) версии 2.99.0 или новее и доступ к сети GitHub. Без авторизации gh публикация не пройдёт; для private repository проверка должна выполняться вошедшим аккаунтом. Ошибка команды не означает, что PR или комментарий не созданы, поэтому повторять create-команду вслепую нельзя.
Какие задачи решает
- прикрепить скриншот к PR
- добавить запись экрана в issue
- обновить комментарий с загруженным URL
- проверить, что файл попал в нужное место
Примеры запросов агенту
- Прикрепи
/abs/path/error.pngк PR и проверь его тело. - Добавь запись экрана к issue-комментарию, сохрани существующий текст и проверь результат.
- Создай PR с указанным изображением, но не коммить файл в репозиторий.
Как установить github-image-upload
1Через Skills CLI (Vercel)
npx skills add jssblck/agents --skill github-image-upload -a claude-code2Вручную: положить файлы
~/.claude/skills/github-image-upload/SKILL.mdПапка скилла целиком; для одного проекта — .claude/skills/github-image-upload/
1Через Skills CLI (Vercel)
npx skills add jssblck/agents --skill github-image-upload -a codex2Вручную: положить файлы
.agents/skills/github-image-upload/SKILL.mdДля всех проектов — ~/.agents/skills/
1Через Skills CLI (Vercel)
npx skills add jssblck/agents --skill github-image-upload -a cursor2Вручную: положить файлы
.cursor/skills/github-image-upload/SKILL.mdCursor читает и .agents/skills/, и .claude/skills/
1GitHub CLI
gh skill install jssblck/agents github-image-upload2Вручную: положить файлы
.github/skills/github-image-upload/SKILL.md1Через Skills CLI (Vercel)
npx skills add jssblck/agents --skill github-image-upload -a gemini-cli2Командой платформы
gemini skills install https://github.com/jssblck/agents --path skills/github-image-uploadВручную: положить файлы
.devin/skills/github-image-upload/SKILL.mdСтарый путь .windsurf/skills/ тоже читается
Через Skills CLI (Vercel)
npx skills add jssblck/agents --skill github-image-upload -a opencodeClaude.ai
Упакуйте папку в zip и загрузите в Settings → Capabilities → Skills
По шагам, с командами для каждой платформы: Как установить скилл в Claude Code: пять способов
Вопросы о github-image-upload
Как установить github-image-upload в Claude Code?
Выполните npx skills add jssblck/agents --skill github-image-upload -a claude-code, затем откройте ~/.claude/skills/github-image-upload/SKILL.md.
Что делает github-image-upload?
Скилл прикрепляет скриншоты и видео к PR, issue или комментарию GitHub через gh, а затем проверяет конкретное тело или комментарий.
Что произойдёт, если команда завершится с ошибкой?
PR или комментарий уже могли создаться, а часть файлов загрузиться. Сначала нужно проверить результат и исправить существующее место назначения только недостающими файлами.
Исходный текст
SKILL.md · MIT
--- name: github-image-upload description: Attach requested screenshots or recordings to a GitHub PR, issue, or comment and verify their destination. license: MIT compatibility: Requires GitHub CLI (`gh`) 2.99.0 or newer, and network access to GitHub. allowed-tools: >- Glob Bash(gh auth status) Bash(gh --version) Bash(gh pr create:*) Bash(gh pr edit:*) Bash(gh pr comment:*) Bash(gh issue create:*) Bash(gh issue edit:*) Bash(gh issue comment:*) Bash(gh pr view:*) Bash(gh issue view:*) --- # Attach proof on GitHub Use `--attach` on `gh pr create`, `edit`, or `comment`, or the corresponding `gh issue` command. Publication must be authorized by the task. Inline text evidence in a language-tagged fence; `--attach` accepts images and videos. Check `gh --version` and authentication if they are not already established. If the installed CLI lacks `--attach`, continue preparing the proof and report the version needed. A request to upload proof does not authorize upgrading the CLI. ## Attach to the intended destination Identify the repository, PR or issue, and whether the destination is its body or a particular comment. Preserve existing content. Do not commit proof files. Write a multiline body to a file and pass `--body-file`. An image reference whose destination matches the attachment path is replaced with the uploaded URL: ```markdown  ``` ```sh gh pr edit <number> -R <owner/repo> --body-file <body-file> --attach '/abs/path/error.png' ``` For an appended attachment, `--attach '/abs/path/error.png#Error state'` supplies alt text. Repeat the flag for multiple files. Videos render as players when their image reference has empty alt text and occupies its own paragraph. ## Verify and recover Read the specific body or comment that the command created or changed. Verify each requested file has its corresponding uploaded URL in that destination, using the command result and the attachment's surrounding text. An attachment elsewhere in the thread does not prove this upload succeeded. A nonzero exit can still leave a created PR or comment and some uploaded files. Inspect that result before retrying. Preserve successful uploads, correct a recoverable error, and edit the existing destination with only the missing files. Never replay a create or comment command blindly. If the result is uncertain or access prevents repair, report what succeeded and what remains. For a private repository, verify with the signed-in account; an anonymous 403 or 404 does not establish failure. Text-only proof needs its intended fenced content, not an attachment URL.
© jssblck · MIT · jssblck/agents
Похожие скиллы
Все скиллы по теме «Git и GitHub» →Сначала — github-image-upload от других авторов.