/install gist-share
gist-share
Post any content — summaries, plans, reports, pitches, logs — to GitHub Gist and share the URL. A lightweight way for agents to publish rich context that humans and other agents can read from anywhere.
Why Gists?
Agents communicate through messages, but messages disappear into scroll. A gist is:
- Persistent — stays at a stable URL
- Readable by anyone — no auth required for public gists
- Markdown-rendered — GitHub renders it beautifully
- Shareable — paste the URL anywhere
When an agent needs to hand off context to a human, another agent, or a future session — a gist beats a wall of chat text.
Setup (One-Time)
You need a GitHub Personal Access Token (PAT) with the gist scope.
Step 1: Create a PAT
- Go to github.com/settings/tokens
- Click "Generate new token (classic)"
- Give it a name like
openclaw-gist - Check the
gistscope (that's all you need) - Click Generate token
- Copy the token — you won't see it again
Step 2: Authenticate the gh CLI
OpenClaw uses the gh CLI to post gists. Set your token as an environment variable for the session:
export GITHUB_TOKEN=ghp_yourTokenHere
Or add it permanently to your shell profile (~/.bashrc, ~/.zshrc, etc.):
echo 'export GITHUB_TOKEN=ghp_yourTokenHere' >> ~/.zshrc
source ~/.zshrc
Step 3: Verify it works
gh auth status
You should see your account and gist listed under token scopes.
How to Post a Gist
Basic usage
Use the exec tool to call gh gist create:
gh gist create --public --desc "Your description here" --filename "your-file.md" - \x3C\x3C 'EOF'
Your content here.
Supports **markdown** formatting.
EOF
With a flag for secret gists
Replace --public with --secret if the content shouldn't be publicly indexed.
Full template
gh gist create \
--public \
--desc "DESCRIPTION" \
--filename "FILENAME.md" - \x3C\x3C 'GISTEOF'
# TITLE
CONTENT GOES HERE
GISTEOF
The command returns the gist URL on success:
✓ Created public gist FILENAME.md
https://gist.github.com/USERNAME/HASH
Workflow
- Prepare content — write your markdown (report, summary, plan, pitch, log)
- Choose visibility —
--publicfor sharing freely,--secretfor targeted sharing - Post it — run
gh gist createviaexec - Return the URL — share it in the conversation, send it to another agent, or log it
Example: Posting a Strategic Summary
gh gist create --public --desc "Q2 Roadmap Summary" --filename "q2-roadmap.md" - \x3C\x3C 'EOF'
# Q2 Roadmap Summary
## Phase 1 — Foundation (April)
- Complete ClawDash MVP
- Ship ClawCanvas v1
## Phase 2 — Expansion (May)
- Launch ClawText beta
- Begin ClawTomation integration
## Phase 3 — Scale (June)
- Public launch of suite
- Partner integrations go live
EOF
Tips
- Filename matters — use
.mdextension for GitHub to render markdown - Description is searchable — write something meaningful
- One gist per topic — don't cram everything into one file; use focused gists
- Update with
gh gist edit GIST_ID— gists are editable if you need to revise - List your gists —
gh gist listshows recent gists with their IDs and URLs
Troubleshooting
| Problem | Fix |
|---|---|
gh: command not found |
Install via brew install gh (macOS) or apt install gh (Linux) |
HTTP 401 Unauthorized |
Token missing or expired — re-run setup |
Token missing gist scope |
Regenerate the PAT with gist scope checked |
gh auth status shows invalid token |
Run gh auth login and follow the prompts |
Gists: the simplest way for a claw to leave a note the world can read.
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install gist-share - 安装完成后,直接呼叫该 Skill 的名称或使用
/gist-share触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
Gist Share 是什么?
Post content to GitHub Gist and get back a shareable URL. Rich context sharing between agents, operators, and humans. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 100 次。
如何安装 Gist Share?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install gist-share」即可一键安装,无需额外配置。
Gist Share 是免费的吗?
是的,Gist Share 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。
Gist Share 支持哪些平台?
Gist Share 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 Gist Share?
由 ragesaq(@ragesaq)开发并维护,当前版本 v1.0.1。