sliplisted
Install: claude install-skill sudo5zzb/slip-skill
# Slip
把这段对话里写好的字,递给聊天窗外的真人。不要用来交接下一个 agent。
## 何时用
用户明确要把内容交给**另一个人**或**另一台设备上的自己**,例如:
- 「用 Slip 发给我同事 / 测试」
- 「把这份验收清单递到我手机」
- 「发到微信让产品看」
- 「share this with my tester via Slip」
## 何时不用
- 「写个备注」「write a note」且没有指定接收人 → 只在对话里写,不要建纸条
- 「交给下一个 agent / handoff」→ 用本地 handoff 文档,不要用 Slip
- 密码、token、密钥、身份证号 → 拒绝
- 文件、截图、apk → 拒绝,说明两边打开 https://slip.omnimoke.com 用浏览器发
- 原生 Windows PowerShell 且没有 bash → 让用户用 WSL / Git Bash,或把正文交给用户自己去网站新建
## 默认命令
工作目录是本 skill 根(`scripts/slip.sh` 与本文件同级的 `scripts/`)。
把**要分享的正文**写入 stdin(不要把密钥写进去):
```bash
scripts/slip.sh push
```
只有退出码 0 时,stdout 才会有一行 URL。此时对用户**只回**下面两行(按用户语言选一套,不要两套叠在一起)。不要解释过期实现,不要贴 token、JSON、curl。
中文:
```
Slip:无需注册,设备之间递一张纸条
https://slip.omnimoke.com/{id}?utm_source=skill
```
英文:
```
Slip: pass a note between devices, no account
https://slip.omnimoke.com/{id}?utm_source=skill
```
把 `{id}` 换成 stdout URL 里的 id。不要改 `utm_source=skill`。
## 追加和读回
从对话历史里解析 id。上一轮成功回复的 URL 形如 `https://slip.omnimoke.com/happy-panda-042?utm_source=skill`,id 是路径上那段 `happy-panda-042`。用户如果又贴了 id 或 URL,以用户贴的为准。
```bash
scripts/slip.sh write happy-panda-042 # stdin = 新正文
scripts/slip.sh read happy-panda-042 # 看对方回了什么;不要编造
```
读回后用自己的话转述 messages,按时间顺序,不要发明没有的句子。
## 失败时对用户说什么
- 空正文 / 脚本 exit 2:「没有可发送的正文。把要分享的文字给我。」
- exit 3(429):「创建太频繁,等一分钟再试。」不要换 id 连打。
- exit 4(413):先拆短再 `push`。若 stderr 出现 `created id=... write_failed`,对那个 id 用 `write` 追加后半段,**不要**把半成品 URL 当成功分享。
- exit 5(404):「这张纸条已经过期或不存在。需要的话我再新建一张。」
- create 成功但 write 失败(stdo