Clipboard Stash Demo
/install clipboard-stash-demo
clipboard-stash
A tiny, dependency-free "scratch clipboard" backed by ~/.cache/clipboard-stash/stash.tsv.
Each entry has a slug, timestamp, and one-line content. Multi-line text is preserved
via \ escaping inside the TSV.
When to use
- The user says "stash this", "记一下这段", "先放着待会用", or asks to recall a previous snippet.
- You need a session-spanning scratch buffer that survives shell restarts but does
not deserve a real note in
MEMORY.md.
When NOT to use
- For long-term knowledge that belongs in
MEMORY.mdormemory/YYYY-MM-DD.md. - For binary content, files, or anything > ~4 KB per entry.
- For secrets — the stash file is plaintext.
Commands
All commands are pure bash one-liners — no install needed.
Save a snippet
mkdir -p ~/.cache/clipboard-stash
slug="$1"; shift; content="$*"
printf '%s %s %s\
' "$slug" "$(date -Is)" "${content//$'\
'/\\
}" \
>> ~/.cache/clipboard-stash/stash.tsv
List recent snippets
tail -n 20 ~/.cache/clipboard-stash/stash.tsv | column -t -s $' '
Recall by slug (latest match)
slug="$1"
awk -F' ' -v s="$slug" '$1==s {last=$0} END {print last}' \
~/.cache/clipboard-stash/stash.tsv \
| awk -F' ' '{gsub(/\\
/, "\
", $3); print $3}'
Clear all
: > ~/.cache/clipboard-stash/stash.tsv
Notes
- TSV columns:
slug iso8601 content(newlines escaped as\). - Slugs are not unique — recall returns the latest matching entry.
- Safe to
catthe file directly to inspect history.
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install clipboard-stash-demo - 安装完成后,直接呼叫该 Skill 的名称或使用
/clipboard-stash-demo触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
Clipboard Stash Demo 是什么?
Stash and recall short text snippets in a local file-backed clipboard. Use when the user wants to save a quick note or quote ("记一下"/"先放着"/"待会儿用") and retriev... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 74 次。
如何安装 Clipboard Stash Demo?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install clipboard-stash-demo」即可一键安装,无需额外配置。
Clipboard Stash Demo 是免费的吗?
是的,Clipboard Stash Demo 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。
Clipboard Stash Demo 支持哪些平台?
Clipboard Stash Demo 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 Clipboard Stash Demo?
由 terrycarter1985(@terrycarter1985)开发并维护,当前版本 v0.1.0。