Create GitHub gists quickly from files, code snippets, or text content. Use when the user wants to share code via GitHub gists or export content to gist format.
Create GitHub gists quickly from files, code snippets, or text content. This skill simplifies the process of sharing code and conversations via GitHub gists.
--host optiongh) must be installed and authenticatedgh auth login if not already authenticatedCreate a private gist from a file:
gist.sh path/to/file.js
Create a public gist from a file:
gist.sh --public path/to/file.js
Create a gist with a custom description:
gist.sh --desc "My awesome code snippet" file.js
Create a gist from multiple files:
gist.sh file1.js file2.md file3.txt
Create a gist with stdin:
echo "console.log('hello')" | gist.sh --filename "hello.js"
Combine options:
gist.sh --public --desc "React component example" component.jsx
Specify custom filename (when using stdin):
cat script.sh | gist.sh --filename "deploy.sh" --desc "Deployment script"
Don't open browser automatically:
gist.sh --no-browser file.js
Use with GitHub Enterprise:
gist.sh --host github.mycompany.com file.js
Or set the GH_HOST environment variable:
GH_HOST=github.mycompany.com gist.sh file.js
--public - Create a public gist (default is private)--desc "description" - Add a description to the gist--filename "name" - Specify filename when using stdin--no-browser - Don't open the gist in browser after creation--host "hostname" - GitHub Enterprise host (or set GH_HOST env var)This skill works with any agent that supports the agentskills.io format:
The skill uses the GitHub CLI (gh gist create) to create gists. It automatically:
gh command--no-browser is specified)Share a code file:
gist.sh src/components/Button.tsx
Quick snippet sharing:
echo "SELECT * FROM users WHERE active = true;" | gist.sh --filename "query.sql" --public
Export multiple related files:
gist.sh --desc "API documentation" api.md examples.js tests.js
Agent Integration: Works in any agent that can execute shell scripts and supports agentskills.io.
--public sparingly - private gists are safer for sensitive codegh gist edit or gh gist deletegh gist list"gh: command not found"
"authentication required"
gh auth login and follow the prompts"failed to create gist"
gh gist list, gh gist edit, gh gist delete