gh-comment-attach-files

Attach local files to GitHub comments and return hosted URLs without posting.

142|5|Updated Dec 26, 2015
One-click install
npx skills add https://github.com/shunk031/dotfiles --skill gh-comment-attach-files
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: gh-comment-attach-files
Source: https://github.com/shunk031/dotfiles/tree/main/home/dot_config/exact_agents/skills/gh-comment-attach-files
Command: npx skills add https://github.com/shunk031/dotfiles --skill gh-comment-attach-files

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

Attach local files to a GitHub issue or pull request comment via Playwright CLI and return the hosted attachment URLs without submitting the comment. Use when you need GitHub-hosted image or document URLs on github.com or GitHub Enterprise Server.

Core Features & Use Cases

  • Stage local files and attach them to a draft GitHub comment, then retrieve their hosted URLs without posting.
  • Supports PRs and issues on both github.com and GitHub Enterprise Server, across desktop and web.
  • Handles multiple files and ensures stable, unique attachment URLs for reuse.

Quick Start

Provide one or more local files to attach; the system will return the hosted attachment URLs without posting the comment.

Frequently Asked Questions about gh-comment-attach-files

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I attach local files to GitHub comments and get the hosted URLs without posting?

You can attach local files to GitHub comments and retrieve hosted attachment URLs without submitting the comment by using this Skill with the Playwright CLI to stage draft uploads on github.com or GitHub Enterprise Server.

Does this work with GitHub Enterprise Server for issues and pull requests?

Yes, this Skill supports attaching files to both issues and pull requests across repositories and organizations on both GitHub.com and GitHub Enterprise Server.

What dependencies do I need to upload files to GitHub comments and retrieve URLs?

You need the Playwright CLI to automate the browser interaction for uploading files, and the optional gh tool for URL resolution when attaching files to GitHub comments.

Can I upload multiple files to a draft GitHub PR comment at once?

Yes, this Skill handles multiple files simultaneously, attaching them to a draft GitHub pull request comment and ensuring stable, unique attachment URLs for each file without posting.

What is the best way to get GitHub-hosted image URLs for reuse in markdown?

The best way to get GitHub-hosted image URLs for markdown reuse is to attach the local images to a draft GitHub comment via Playwright CLI, which returns stable attachment URLs without submitting the comment.

Are there limitations when using Playwright to attach files to GitHub comments?

This Skill operates entirely on user-initiated uploads and only returns attachment URLs without submitting the comment, meaning you cannot automate the final posting of the comment itself through this process.