github-gist

Publish files or stdin input as public or secret GitHub Gists.

3|Updated Feb 6, 2026
One-click install
npx skills add https://github.com/pinion05/skills --skill github-gist
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: github-gist
Source: https://github.com/pinion05/skills/tree/main/github-gist
Command: npx skills add https://github.com/pinion05/skills --skill github-gist

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires requests, and includes scripts (resource) components.

What problem does it solve?

This Skill simplifies sharing code, notes, or any file by publishing them as GitHub Gists, eliminating manual snippet hosting.

Core Features & Use Cases

  • Publish files as GitHub Gists (secret or public) for quick sharing.
  • Customize description and filename for clear context.
  • Output the gist URL, or open the gist in a browser; supports input from a file or stdin.

Quick Start

Use this skill to publish a file or snippet to GitHub Gists:

  • Publish a file: python3 scripts/publish_gist.py /path/to/file.md
  • Publish from stdin: echo "Hello" | python3 scripts/publish_gist.py - --filename "snippet.txt"
  • Publish publicly with a custom description: python3 scripts/publish_gist.py /path/to/file.md -d "My snippet" --public

Frequently Asked Questions about github-gist

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

FAQPage Schema
How do I publish a file as a GitHub Gist from the command line?

To publish a file as a GitHub Gist, run the script with the file path or pipe content via stdin. The script processes the input and returns the gist URL for immediate sharing.

Can I create a public GitHub Gist with a custom description?

Yes, you can create a public GitHub Gist with a custom description by passing the file path, the description text, and the public flag to the script during execution.

Do I need the gh CLI to share snippets as GitHub Gists?

You do not need the gh CLI to share snippets as GitHub Gists. The script relies on the gh CLI when available, but falls back to the GitHub API using a token from the environment.

What dependencies are required to publish gists using the GitHub API fallback?

Publishing gists via the GitHub API fallback requires Python and the optional requests library. The script uses these dependencies to authenticate with a token and post the file content.

How do I share code snippets directly from stdin without saving a file?

To share code snippets directly from stdin, pipe the text into the script using a dash as the filename argument, and specify the desired filename for the snippet to generate the gist.