gist

Create, list, view, edit, and delete GitHub gists using the gh CLI.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Sharing code snippets and managing GitHub gists normally requires switching to the browser and clicking through the GitHub UI. This Skill lets you handle the entire gist lifecycle directly from your conversation using the gh CLI, with sensible privacy defaults. ## Core Features & Use Cases - Full Gist Lifecycle: Create, list, view, edit, and delete gists, including multi-file gists and forking gists owned by others. - Private by Default: Gists are created as secret unless you explicitly ask for a public one, protecting snippets from search engine indexing. - Flexible Content Sources: Create gists from local files, code pasted in the conversation, or piped stdin content, with correct filenames for syntax highlighting. - Use Case: You just debugged a tricky function in chat and want to share it with a teammate. Ask to gist it, and the Skill writes the code to a properly named temp file, creates a private gist, and returns the shareable URL. ## Quick Start Ask the assistant to create a private gist from the code snippet you just discussed and share the resulting URL.

Frequently Asked Questions about gist

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

FAQPage Schema
How do I create a GitHub gist from the command line?▼

Run gh gist create with one or more file paths and an optional --desc flag for a description. You can also pipe content via stdin using echo "content" | gh gist create --filename name.ext to control the displayed filename.

How do I make a gist public with the gh CLI?▼

Pass the --public flag to gh gist create. By default gh creates secret gists, which are only accessible via their URL and are not indexed by search engines, so only add the flag when you explicitly want a public gist.

Can I edit or add files to an existing GitHub gist?▼

Yes. Use gh gist edit <id-or-url> --filename <target-file> <source-file> to update a file's content, or gh gist edit <id-or-url> --add <new-file> to add a file to a multi-file gist. Verify the change afterward with gh gist view.

Why does my gh gist command fail with an auth error?▼

The gh CLI is not authenticated with your GitHub account. Run gh auth login, complete the browser or token flow, then retry the gist command. The gh CLI must be installed and authenticated before any gist operation works.

How do I find a gist I created earlier?▼

Run gh gist list to show your most recent gists with IDs, descriptions, visibility, and file counts. Use --limit 30 for more results, or --public and --secret to filter by visibility, then identify the gist by its description or date.