Publish files or markdown notes as public or secret GitHub Gists for easy sharing.
- GitHub stars
- 413
- Files
- 3
- Last commit
- Nov 10, 2026
- License
- MIT
- Allowed tools
- —
What does the github-gist skill do?
github-gist publishes files or markdown notes as public or secret GitHub Gists for easy sharing.
Summary generated from the skill's SKILL.md.
About the github-gist skill
Publishing files or markdown notes as GitHub Gists allows developers to quickly create shareable snippets or public documentation. An agent should load this skill when a user requests to share code, publish Obsidian notes, or make a gist from existing content. It produces a hosted URL that can be set to secret by default or made public via the --public flag.
The tool relies on the gh CLI for operations, though it can fallback to using a GITHUB_GIST_TOKEN environment variable or the --api flag. Users can customize the process by providing a specific description with -d, overriding the filename with -f, or choosing to open the result directly in a browser using the --open command. It handles both direct file paths and input from stdin to generate the final gist.
What an agent can do with it
- 1Share private code snippetsCreate an unlisted gist to share a specific piece of code without making it visible on a profile.
- 2Publish public markdown notesTurn a markdown file into a public gist that is visible on a GitHub profile.
- 3Generate custom filename snippetsUpload a file while specifying a different name for the resulting gist file.
- 4Quickly share text from terminalPipe text directly into the tool to create a new gist immediately.
Written from the skill's SKILL.md. Every use case is checked against a quote from it.
How to install the github-gist skill
Each command copies the skill folder into the client's skills directory. Restart the client or start a new session to load it.Install the github-gist skill in Claude Code
~/.claude/skills/github-gist/SKILL.md
$ npx degit glebis/claude-skills/github-gist ~/.claude/skills/github-gistInstall the github-gist skill in Claude Code (project)
.claude/skills/github-gist/SKILL.md
$ npx degit glebis/claude-skills/github-gist .claude/skills/github-gistInstall the github-gist skill in Codex
~/.agents/skills/github-gist/SKILL.md
$ npx degit glebis/claude-skills/github-gist ~/.agents/skills/github-gistInstall the github-gist skill in Gemini CLI
~/.gemini/skills/github-gist/SKILL.md
$ npx degit glebis/claude-skills/github-gist ~/.gemini/skills/github-gistInstall the github-gist skill in Claude.ai
npx degit glebis/claude-skills/github-gist github-gist && zip -r github-gist.zip github-gist # claude.ai → Customize → Skills → + → Create skill → Upload a skill → github-gist.zip
Automated checks
Ran Nov 14, 2026Full report →Passed our automated checks. That is not a security audit: read the scripts before you let an agent run them. How checks work
- Source repository linked and reachableglebis/claude-skills/github-gist is public and reachablegithub.com/glebis/claude-skills/tree/HEAD/github-gist ↗Pass
- Open source license (OSI)MITspdx.org/licenses/MIT.html ↗Pass
- Commit or release in the last yearLast commit 2026-11-10github.com/glebis/claude-skills/commits ↗Pass
- No download-and-run or credential theft in scripts1 script read; no download-and-run, remote eval, base64 execution or credential uploadPass
- No hidden instructions in SKILL.mdNo override phrases, safeguard switches, credential requests or hidden charactersgithub.com/glebis/claude-skills/blob/HEAD/github-gist/SKILL. ↗Pass
- Pre-approved tools are scopedNo pre-approved tools; the agent asks before using onegithub.com/glebis/claude-skills/blob/HEAD/github-gist/SKILL. ↗Pass
- SKILL.md follows the Agent Skills formatValid name and description; says when to use it; 71 linesgithub.com/glebis/claude-skills/blob/HEAD/github-gist/SKILL. ↗Pass
SKILL.md
View on GitHubGitHub Gist Publisher
Publish any file as a GitHub Gist for easy sharing.
Prerequisites
Uses gh CLI by default. Ensure you're authenticated:
gh auth status
# If not authenticated: gh auth login
Fallback: Set GITHUB_GIST_TOKEN env var with gist scope.
Usage
# Publish file as secret (unlisted) gist - DEFAULT
python3 scripts/publish_gist.py /path/to/file.md
# Publish as public gist (visible in your profile)
python3 scripts/publish_gist.py /path/to/file.md --public
# Custom description
python3 scripts/publish_gist.py /path/to/file.md -d "My awesome note"
# Override filename in gist
python3 scripts/publish_gist.py /path/to/file.md -f "readme.md"
# From stdin
echo "Hello" | python3 scripts/publish_gist.py - -f "hello.txt"
# Just get URL
python3 scripts/publish_gist.py /path/to/file.md --url-only
# Create and open in browser
python3 scripts/publish_gist.py /path/to/file.md --open
Options
| Flag | Description |
|---|---|
--public |
Create public gist (default is secret/unlisted) |
-d, --description |
Gist description |
-f, --filename |
Override filename |
--url-only |
Output only URL |
--open |
Open in browser |
--api |
Force API instead of gh CLI |
Output
{
"url": "https://gist.github.com/user/abc123",
"id": "abc123",
"public": false,
"filename": "file.md"
}
Example
Session log published with this skill: https://gist.github.com/glebis/3faaae6b907123929220e81add51a567
Files in this skill
3github-gist skill questions
How do I install the github-gist skill in Claude Code?
Run npx degit glebis/claude-skills/github-gist ~/.claude/skills/github-gist. Claude Code loads skills from ~/.claude/skills (all projects) or .claude/skills (one project) and uses a skill when its description matches the task.
Which clients can use the github-gist skill?
Any client that reads the Agent Skills format: Claude Code, Codex, Gemini CLI and claude.ai (upload as a ZIP). Scripts in the skill run only where the client allows code execution.
How do I make a gist public?
You can use the --public flag to create a public gist; otherwise, the default is to create a secret, unlisted gist.
Can I change the filename of the gist?
Yes, you can use the -f or --filename flag to override the filename in the gist.