gh-attach
/gh-attach
Wysyła lokalne pliki (zrzuty ekranu, obrazy, PDF, archiwa, wideo) do GitHub user-attachments, pobiera załączniki i osadza je w pull requestach, zgłoszeniach i komentarzach przez narzędzie gh-attach.
- Autor
- github ↗
- Repozytorium
- awesome-copilot ↗
- Licencja
- MIT
- Ostatnia zmiana repozytorium
- 26.10.2026
Ocena i bezpieczeństwo
- Pliki w paczce
- 1
- Skrypty
- 0
- Komentarze HTML
- 0
- Adresy URL w SKILL.md
- 0
Brak sygnałów. Repozytorium zmienione 26.10.2026, bez odwołań do wycofanych modeli i API.
MIT, otwarta: można używać i zmieniać, z zachowaniem informacji o autorze.
Co robi i kiedy
Wysyła lokalne pliki (zrzuty ekranu, obrazy, PDF, archiwa, wideo) do GitHub user-attachments, pobiera załączniki i osadza je w pull requestach, zgłoszeniach i komentarzach przez narzędzie gh-attach.
Wyzwalacze z opisu
Oryginalny opis (EN)
Uploads a local file (screenshot, image, PDF, zip, video) to GitHub user-attachments, downloads GitHub user-attachments, and embeds local files in a PR, issue, or comment. Use when asked to "attach a screenshot to the PR", "add an image to the issue", "embed before/after screenshots", "attach this file", or "download this GitHub attachment". Powered by `gh-attach`.
Jak działa
- Prerequisites
- Steps
- Notes
Podgląd SKILL.md
--- name: gh-attach description: 'Uploads a local file (screenshot, image, PDF, zip, video) to GitHub user-attachments, downloads GitHub user-attachments, and embeds local files in a PR, issue, or comment. Use when asked to "attach a screenshot to the PR", "add an image to the issue", "embed before/after screenshots", "attach this file", or "download this GitHub attachment". Powered by `gh-attach`.' --- # gh-attach `gh attach` uploads a file to GitHub's internal user-attachments endpoint (no public API exists) and prints the URL, which GitHub auto-renders (image/video/file) wherever it's pasted. The URL inherits the repo's visibility, so private-repo uploads stay private. ## Prerequisites ```sh gh extension list | grep -q 'gh attach' || gh extension install sudosubin/gh-attach ``` Uploads use a GitHub browser session cookie, not the `gh` token. By default, `gh` must be authenticated so `gh-attach` can select the matching browser account. If the wrong account is selected, add `--browser <name> --profile <name>`. For headless use, set `GH_ATTACH_SESSION_TOKEN` to the bare `user_session` cookie value. Treat it as a full account credential. ## Steps **1. Upload**: Use an absolute quoted path. `-R` is optional inside a repository. For GHES, use `-R host/owner/repo`. The command prints the URL on one line. GitHub auto-renders it (image/video/file), so use it as-is: ```sh URL=$(gh attach "$FILE" -R <owner>/<repo>) ``` **2. Embed** (always `--body-file -`, e.g. `gh pr comment/edit`, `gh issue comment/edit`): ```sh printf '## Screenshots\n\n%s\n' "$URL" | gh pr comment <pr> -R <owner>/<repo> --body-file - ``` **3. Download**: Specify the destination explicitly. Private attachments use the active `gh` token, with browser cookies as an authorization fallback: ```sh gh attach download "$URL" -O "$FILE" ``` ## Notes - Private repo: URL renders only for authorized viewers. An anonymous fetch is expected to return 404 or 403. - Sizing: embed `<img width="800" src="$URL">` instead of the bare URL. - GitHub Cloud and GHES decide which file extensions and content types they accept.
Wersje
| Repozytorium | Wynik | Licencja |
|---|---|---|
| Ta strona · github/awesome-copilot | 100 | MIT |
| FrancoStino/opencode-skills-collection | 100 | MIT |
| sickn33/agentic-awesome-skills | 100 | MIT |
Identyczna treść występuje jeszcze w 1 innych folderach na GitHubie. Tu pokazujemy jedną, najlepiej ocenioną kopię.
Migawka bazy z 13.11.2026 · wersja paczki 46d262730a37 (skrót SHA-256 całej paczki)
Pobrania w ostatnich 30 dniach: 0 · ranking
Zgłoś problem z tym skillem: szkodliwa treść, błędny opis albo prośba autora o usunięcie.
Podobne skille
- 100github-image-upload
Wgrywa lokalne obrazy i pliki (PDF, zip, logi) na GitHub i osadza je w opisie PR, issue lub komentarzu jako linki user-attachments. - 100gh-image
Wysyła lokalne obrazy na GitHub i zwraca kanoniczne adresy user-attachments do osadzania zrzutów ekranu w pull requestach, zgłoszeniach, komentarzach i plikach README. - 100attach-media
Wysyła lokalne zrzuty ekranu i nagrania do GitHuba i osadza je w treści pull requesta, zgłoszenia lub komentarza jako renderowane odnośniki, bez pozostawiania samych placeholderów. - 90github:attach
Dołącza lokalny obraz lub film do treści na GitHubie, aby wyświetlał się w issue, pull requeście, komentarzu lub review jako zrzut ekranu, nagranie albo diagram. - 87github-screenshots
Dodaje zrzuty ekranu, GIF-y i nagrania do pull requestów i issue oraz tworzy trwałe publiczne linki do wizualizacji. - 100github-cli-media
Dołącza lokalne obrazy i wideo do zgłoszeń, pull requestów i komentarzy GitHub przez powtarzalną flagę --attach w GitHub CLI.