Skip to content
Back to skills

Github Gist

ASecurity

Publish files or Obsidian notes as GitHub Gists. Use when user wants to share code/notes publicly, create quick shareable snippets, or publish markdown to GitHub. Triggers include "publish as gist", "create gist", "share on github", "make a gist from this".

  • 3 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added September 7, 2026
developmentpythonbashgitapi

Works with

  • cli
  • api

Security analysis

A100/100

Pro scans all 2 files and shows the line behind each finding

Scanned September 7, 2026

npx -y skills add levalencia/agent-god-mode --skill github-gist --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Github Gist?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Github Gist
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/levalencia-github-gist/badge)](https://www.skillsdirectory.com/skills/levalencia-github-gist)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: github-gist
description: Publish files or Obsidian notes as GitHub Gists. Use when user wants to share code/notes publicly, create quick shareable snippets, or publish markdown to GitHub. Triggers include "publish as gist", "create gist", "share on github", "make a gist from this".
---

# GitHub Gist Publisher

Publish any file as a GitHub Gist for easy sharing.

## Prerequisites

Uses `gh` CLI by default. Ensure you're authenticated:

```bash
gh auth status
# If not authenticated: gh auth login
```

Fallback: Set `GITHUB_GIST_TOKEN` env var with gist scope.

## Usage

```bash
# 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

```json
{
  "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

  • SKILL.md1.8 KB
  • scripts/publish_gist.py5.5 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…