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.
- Make sure OpenClaw is installed (local or Docker)
- Run the install command in chat:
/install clipboard-stash-demo - After installation, invoke the skill by name or use
/clipboard-stash-demo - Provide required inputs per the skill's parameter spec and get structured output
What is 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... It is an AI Agent Skill for Claude Code / OpenClaw, with 74 downloads so far.
How do I install Clipboard Stash Demo?
Run "/install clipboard-stash-demo" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.
Is Clipboard Stash Demo free?
Yes, Clipboard Stash Demo is completely free, licensed under MIT-0. You can download, install and use it at no cost.
Which platforms does Clipboard Stash Demo support?
Clipboard Stash Demo is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).
Who created Clipboard Stash Demo?
It is built and maintained by terrycarter1985 (@terrycarter1985); the current version is v0.1.0.