skills/github-gist/SKILL.md
Create, manage, and organize GitHub Gists using the gh CLI. Use this skill whenever a user wants to create a gist, share code snippets, manage existing gists, add files to a gist, list or search gists, edit gist content or descriptions, clone a gist, or delete a gist. Every gist created or modified must include a README.md documenting its purpose and contents.
npx skillsauth add abuxton/skills github-gistInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Expert management of GitHub Gists via the gh CLI. All gists created through this skill include a README.md that documents the gist's purpose, content, and optional usage instructions.
Every gist must contain a README.md file. When creating a new gist, always generate a README.md alongside any other files. When editing a gist that lacks a README.md, add one.
The README.md must include:
See references/readme-template.md for the standard template.
| Reference | When to Load |
|-----------|--------------|
| references/readme-template.md | Before creating any gist — get the README.md template |
| references/workflows.md | For multi-step operations: create with multiple files, bulk edit, clone & modify |
| references/search-and-manage.md | For listing, filtering, viewing, or deleting gists |
# Always create README.md first, then create gist with both files
cat > /tmp/README.md << 'EOF'
# <gist title>
<description>
## Files
- `<filename>` — <what it does>
## Usage
<usage instructions if applicable>
EOF
gh gist create --public --desc "<description>" /tmp/README.md <your-file>
gh gist create --public --desc "<description>" README.md file1.sh file2.py
gh gist list # 10 most recent
gh gist list -L 50 # 50 most recent
gh gist list --public # only public
gh gist list --secret # only secret
gh gist list --filter "pattern" # filter by description/filename
gh gist list --filter "pattern" --include-content # search file contents
gh gist view <id> # rendered view
gh gist view <id> --raw # raw content
gh gist view <id> --files # list filenames
gh gist view <id> --filename README.md
gh gist view <id> --web # open in browser
gh gist edit <id> # interactive (opens editor)
gh gist edit <id> --filename <file> # edit specific file
gh gist edit <id> --desc "new description"
gh gist edit <id> --add newfile.py # add a file
gh gist edit <id> --remove oldfile.py # remove a file
gh gist clone <id> [<directory>]
gh gist delete <id>
When a user asks to create a gist, follow these steps:
README.md using the template in references/readme-template.mdgh gist create with all files, including README.mdAlways load references/readme-template.md before writing the README.md.
When adding files to a gist:
README.md exists: gh gist view <id> --filesgh gist edit <id> --add README.mdgh gist edit <id> --add <filename>README.md to document the new file--public): listed publicly. Use when the intent is sharing with the community.Ask the user if unclear. Default to secret.
.sh, .py, .rb, .js, etc.).zshrc, nginx.conf)README.md (never readme.txt or README.txt).md format for readability| Error | Resolution |
|-------|-----------|
| gh: not authenticated | Run gh auth login |
| File not found | Verify path; use absolute paths in /tmp/ for temp files |
| Gist ID not found | Run gh gist list to find the correct ID |
| Rate limited | Wait and retry; use --limit to reduce API calls |
Tip: Use
gh gist view <id> --webto open any gist in the browser for easy sharing.
development
Fetch a matching XKCD comic and generate validated Markdown or HTML embed output for docs or terminal use.
testing
Author high-quality agent skills following the agentskills.io specification, with correct frontmatter, workflow structure, and reference assets.
tools
Analyse a repository to identify its focus, technology stack, and labels, then search for and apply appropriate shields.io badges to markdown files.
data-ai
Prepare and publish an npm package that ships agent skills, following the skills-npm convention for skill bundling and distribution.