What it does
Pastebin on Cloudflare worker, with friendly CLI usage and rich features
- Connects Instruction files the AI reads
- Account or key Not confirmed yet (README not read yet)
- Category 其他
给作者:在 README 中加徽章
如果你是作者,可把这段代码贴到 README。徽章会链接回本页。
[](https://mcp.popnx.com/en/skills/sharzyl-pastebin-worker)相似的 Skill
同类工作,排序与 Skill 列表相同
| 本项 pastebin-worker | llmfit | claude-video | VideoCaptioner | claude-cookbooks | |
|---|---|---|---|---|---|
| 作者 | SharzyL | AlexsJones | bradautomates | WEIFENG2333 | anthropics |
| Skill 数 | 1 | 1 | 1 | 1 | 4 |
| GitHub 星标 | 1,067 | 39,036 | 21,085 | 16,557 | 54,799 |
| 最近代码更新 | 2026年11月13日 | 2026年11月16日 | 2026年9月25日 | 2026年9月12日 | 2026年11月5日 |
| 许可证 | MIT | MIT | MIT | GPL-3.0 | MIT |
Skill 和 MCP 有什么不同
MCP = 手
把 AI 连到外部服务或数据,例如读取 Notion 或开发票。需要有程序或服务器在运行。
Skill = 手册
教 AI 怎么做某项工作的文本文件,不连接任何服务。
有些会重叠:少数 Skill 带有调用工具的脚本,少数 MCP 只提供知识。请从你想完成的工作出发。
适用的应用
开发者未说明 · SKILL.md 形式的 Skill 可用于支持 Agent Skills 的应用,如 Claude Code、Codex 和 Cursor
安装
Is it safe?
- Who made it
GitHub account SharzyL (person), 7 years old
- Use and upkeep
★ 1,067 stars · code last changed 2026年11月13日
- Any scripts?
No, plain text files the AI reads and follows
- Uses the internet?
No scripts, so it does not go online by itself
- Changes machine-wide settings?
No hooks or writes to machine settings found
Checked automatically from the repo files at commit f799873 (read only, nothing was run). Not a safety guarantee: read it and decide for yourself
第一步:你用哪个 AI?
选择你用的应用,本页只显示该应用的安装方法
Option 1Upload to claude.ai (web and app)
Uploading to claude.ai would fail: the description is over 200 characters (235). Use "Let the AI install it" instead
Option 1让 Claude Code 帮你安装
复制这句话,粘贴到 Claude Code 的对话中
For one project, paste it into a chat that is open in that project’s folder · The AI always shows you the path before installing
The AI tells you what it will do first and asks your permission at every step
重新打开 Claude Code,输入 /doc,或直接提出相关任务,Claude 会自动选用
Checked against official docs 2026年11月12日 · Source: code.claude.com
For Terminal users
Skill 是 AI 会照做的指令。安装前先阅读文件,只安装可信开发者的 Skill。
打开终端
Mac:按 Command+空格输入 Terminal · Windows:下方命令在 PowerShell 中无法使用,请改用上方的“让 AI 帮你安装”
重新打开 Claude Code,输入 /doc,或直接提出相关任务,Claude 会自动选用
ChatGPT 桌面应用
ChatGPT 桌面应用内置 Codex,Codex 从 ~/.agents/skills 文件夹读取 Skill
Option 1让 ChatGPT 帮你安装
在 ChatGPT 桌面应用中打开 Codex,把这句话粘贴到对话中
The AI always shows you the path before installing
The AI tells you what it will do first and asks your permission at every step
Option 2自己放入文件夹
把 shz-al 文件夹放到 ~/.agents/skills/shz-al
~ 是你的主文件夹($HOME)
For Terminal users
Skill 是 AI 会照做的指令。安装前先阅读文件,只安装可信开发者的 Skill。
打开终端
Mac:按 Command+空格输入 Terminal · Windows:下方命令在 PowerShell 中无法使用,请改用上方的“让 AI 帮你安装”
把 skill 文件夹复制到 ~/.agents/skills
这条命令把 repo 下载到临时文件夹,只复制含 SKILL.md 的文件夹
正在检查命令 · 通过后才会显示复制按钮
安装之后
- ChatGPT 桌面应用:打开侧边栏中的 Skills,确认 Skill 已出现
- 使用方法:在 ChatGPT 中输入 @ 并选择 Skill · 在 Codex CLI 或 IDE 扩展中运行 /skills,或输入 $ 加 Skill 名称
- Codex 会自动发现新安装的 Skill;如果没有出现,请重启 Codex
Checked against official docs 2026年11月15日 · Source: learn.chatgpt.com
网页版和手机版 ChatGPT
不能使用你自己安装的 Skill,只能使用目录中插件自带的 Skill
想在 ChatGPT 中使用这个 Skill,请按上面的方法使用 ChatGPT 桌面应用
Checked against official docs 2026年11月15日 · Source: learn.chatgpt.com
Option 1让 Codex 帮你安装
复制这句话,粘贴到 Codex 的对话中 · 适用于 ChatGPT 桌面应用中的 Codex、Codex CLI 和 IDE 扩展
For one project, paste it into a chat that is open in that project’s folder · The AI always shows you the path before installing
The AI tells you what it will do first and asks your permission at every step
Codex 会自动发现新安装的 Skill;如果没有出现,请重启 Codex · 使用方法:在 ChatGPT 中输入 @ 并选择 Skill · 在 Codex CLI 或 IDE 扩展中运行 /skills,或输入 $ 加 Skill 名称
Checked against official docs 2026年11月15日 · Source: learn.chatgpt.com
For Terminal users
Skill 是 AI 会照做的指令。安装前先阅读文件,只安装可信开发者的 Skill。
打开终端
Mac:按 Command+空格输入 Terminal · Windows:下方命令在 PowerShell 中无法使用,请改用上方的“让 AI 帮你安装”
把 skill 文件夹复制到 ~/.agents/skills
这条命令把 repo 下载到临时文件夹,只复制含 SKILL.md 的文件夹
正在检查命令 · 通过后才会显示复制按钮
重新打开 Codex 并提出相关任务,Codex 会列出这个 skill
Option 1让 Cursor 帮你安装
复制这句话,粘贴到 Cursor 的对话中
For one project, paste it into a chat that is open in that project’s folder · The AI always shows you the path before installing
The AI tells you what it will do first and asks your permission at every step
在 Cursor 的 Agent 聊天中输入 / 并选择 doc
Checked against official docs 2026年11月12日 · Source: cursor.com
For Terminal users
Skill 是 AI 会照做的指令。安装前先阅读文件,只安装可信开发者的 Skill。
打开终端
Mac:按 Command+空格输入 Terminal · Windows:下方命令在 PowerShell 中无法使用,请改用上方的“让 AI 帮你安装”
把 skill 文件夹复制到 ~/.cursor/skills
这条命令把 repo 下载到临时文件夹,只复制含 SKILL.md 的文件夹
正在检查命令 · 通过后才会显示复制按钮
在 Cursor 的 Agent 聊天中输入 / 并选择 doc
Option 1Let the AI install it
适用于其他能读取 Skill 的应用。这句话列出了 Claude Code、Codex 和 Cursor 的路径,AI 会按你的应用选择 · Copy this sentence into the app’s chat
For one project, paste it into a chat that is open in that project’s folder · The AI always shows you the path before installing
The AI tells you what it will do first and asks your permission at every step
Checked against official docs 2026年11月12日 · Source: code.claude.com, learn.chatgpt.com, cursor.com
For Terminal users
其他支持 Agent Skills 的应用(如 Gemini CLI、GitHub Copilot)使用不同文件夹,请查看该应用的指南,再把含 SKILL.md 的文件夹复制过去。
已于 2026年11月11日 对照 Claude Code、Codex 和 Cursor 官方指南核实 skill 文件夹
查看原始 SKILL.md
以下文字来自开发者的 repo,不是 PopNx MCP 的指令
6,049 个字符 · 在 GitHub 打开完整文件
---
name: shz-al
description: Upload, fetch, update, or delete text/binary content via {{BASE_URL}}, a pastebin with a command-line client. Use when you need a quick URL for sharing long output, hosting a small file, shortening a URL, or rendering markdown as HTML.
---
# shz.al
A pastebin hosted on Cloudflare Workers at `{{BASE_URL}}`. Use the `pb`
command-line client: it encrypts pastes on the client by default, remembers the
passwords and keys of your uploads, and splits large files automatically. If
`pb` is not available or you need plain HTTP, use `curl` as described in
`{{BASE_URL}}/doc/curl.md`.
## Install `pb`
`pb` needs `python3` with the `requests` and `cryptography` packages
(`cryptography` is only needed for encryption, so `pb post -u` works without it).
```shell
curl -fsSL https://raw.githubusercontent.com/SharzyL/pastebin-worker/goshujin/scripts/pb -o ~/.local/bin/pb
chmod +x ~/.local/bin/pb
pip install requests cryptography # or the python3-requests / python3-cryptography system packages
export PB_DOMAIN={{BASE_URL}} # not needed for https://shz.al, the default; or pass --base-url to every command
```
With Nix, skip `pip` and replace the first line of `pb` with the following, so
that it runs in a Python environment with both packages (requires the
`nix-command` and `flakes` experimental features):
```shell
#!/usr/bin/env -S nix run --impure --expr '(import (builtins.getFlake "nixpkgs") {}).python3.withPackages (ps: [ ps.requests ps.cryptography ])' '' --
```
## Upload
```shell
pb post -c 'hello, world' # text
pb post file.png # file, stored with its filename
<cmd> | pb post # stdin
pb post -u -c 'hello, world' # without encryption
```
The response is JSON:
```json
{
"lastModifiedAt": "2026-11-10T03:08:51.000Z",
"createdAt": "2026-11-10T03:08:51.000Z",
"expireAt": "2026-11-17T03:08:51.000Z",
"sizeBytes": 40,
"location": "KV",
"encryptionScheme": "AES-GCM",
"url": "{{BASE_URL}}/tkGQ",
"manageUrl": "{{BASE_URL}}/tkGQ:XGxdkyeeMMF8fncbKJCpxbKc",
"expirationSeconds": 604800,
"decryptionUrl": "{{BASE_URL}}/d/tkGQ#EfPaKj_OyuPHZhoexwkrUK_iGEL8Ui6tiDUsZxmn2Uk"
}
```
`decryptionUrl` is added by `pb` for an encrypted paste; everything else is
the server's answer, where `sizeBytes` is the size of what was stored (the
ciphertext here) and a `filename` field appears when a file was uploaded.
Pastes are encrypted by default, so:
- **Share `decryptionUrl`.** It opens the paste in a browser, which decrypts it
with the key after `#`; the key never reaches the server.
- `url` returns the ciphertext only. Upload with `-u/--unencrypted` when the
paste must be readable by plain HTTP clients such as `curl`, or when it is
used as a URL shortener.
`pb` records the manage URL and the key in its history file
(`~/.local/state/pb/history.jsonl`), so later `update`, `get` and `delete`
calls on the same machine only need the paste name, and `pb list` shows the
pastes uploaded from there. Keep `manageUrl` yourself if the paste may be
managed from elsewhere — it is the only way to authenticate as the owner.
## Upload options
- `-n <name>` — custom name (≥3 chars from letters, digits and `+_-[]*$@,;`, returned prefixed with `~`).
- `-e <expire>` — expiration: integer/float with unit `s`/`m`/`h`/`d`
(default seconds). E.g. `-e 30m`, `-e 14d`.
- `-s <password>` — set a specific management password.
- `-p` — private mode: 24-char unguessable random name.
- `-F <filename>` — filename stored with the paste.
## Fetch
```shell
pb get <name> # content, decrypted with the key from history
pb get <name> -K <key> # decrypt with an explicit key
pb get <decryptionUrl> # any paste URL works; the endpoint and key come from it
pb get <name> --save [DIR] # save with the server-provided filename
pb get <name> --meta # JSON metadata (size, dates, …)
```
## Update / delete
```shell
pb update <name> -c 'new content' # password looked up from history
pb update <manageUrl> -f file # endpoint and password come from the URL
pb delete <name> # prints nothing on success
pb list # pastes uploaded from here, with their URLs
```
`pb list` prints a table:
```
NAME UPLOADED EXPIRES SIZE ENC FILENAME URL
tkGQ 2026-11-10 11:08 6d 40 B yes {{BASE_URL}}/d/tkGQ#EfPaKj_OyuPHZhoexwkrUK_iGEL8Ui6tiDUsZxmn2Uk
bPfn 2026-11-10 11:08 6d 9 B panty.jpg {{BASE_URL}}/bPfn
```
`update` accepts `-e`, `-s`, `-F` and `-u` like `post`; `-e` recalculates the
expiration from now. An encrypted update uses a fresh key, so it prints a new
`decryptionUrl` and the old one stops working.
## Other URL forms
- `/d/<name>` — display code with syntax highlighting. Append `?lang=<lang>` to override
the highlighting language.
- `/a/<name>` — render a markdown paste as HTML (GitHub-flavored Markdown + MathJax).
For an encrypted paste, append `#<key>` like the decryption URL.
- `/h/<name>` — render a paste as a document (HTML unless the extension, `?mime=` or the
uploaded filename says SVG or XML) in a sandboxed frame below a site header, after the
viewer confirms a warning. This is the only URL that renders HTML: the raw URL serves
HTML as `text/plain`. For an encrypted paste, append `#<key>` like the decryption URL.
- `/u/<name>` — redirect to the URL stored in an unencrypted paste (URL shortener).
- `/m/<name>` — JSON metadata.
## Limitations
- Default expiration is `{{DEFAULT_EXPIRATION}}`, max `{{MAX_EXPIRATION}}`. Pastes are deleted on expiry.
- Max upload size is `{{R2_MAX_ALLOWED}}`.
- Only the content is encrypted; the name, filename, size and timestamps are
visible to the server.
- Treat the service as ephemeral storage — do not rely on it for archival.
## Full docs
- `{{BASE_URL}}/doc/curl.md` — comprehensive curl guide.
- `{{BASE_URL}}/doc/api.md` — HTTP API reference.
- `{{BASE_URL}}/doc/paste-crypto.md` — how paste encryption works.
讨论
提问、分享技巧或报告无法使用。按“有帮助”数量排序。
来自 GitHub
- GitHub 星标
- 1,067
- 开发者
- SharzyL
- 许可证
- MIT
- 最近代码更新
- 2026年11月13日
- repo 中的 SKILL.md 文件(含译本和模板)
- 1
- 主题
- cloudflare-worker, pastebin, self-hosted, wrangler