← Back to Skills Marketplace
terrycarter1985

Clipboard Stash Demo

by terrycarter1985 · GitHub ↗ · v0.1.0 · MIT-0
cross-platform ✓ Security Clean
74
Downloads
0
Stars
0
Active Installs
1
Versions
Install in OpenClaw
/install clipboard-stash-demo
Description
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...
README (SKILL.md)

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.md or memory/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 cat the file directly to inspect history.
Usage Guidance
Install only if you are comfortable with snippets being saved in plaintext at ~/.cache/clipboard-stash/stash.tsv until deleted. Do not store passwords, tokens, private keys, or sensitive personal data, and use the clear-all command carefully because it erases the entire stash.
Capability Assessment
Purpose & Capability
The stated purpose is to stash and recall short text snippets, and the artifacts only document append, list, recall, and clear operations for ~/.cache/clipboard-stash/stash.tsv.
Instruction Scope
The skill clearly says not to use it for secrets because the stash file is plaintext, but the clear-all command is terse and has no confirmation step.
Install Mechanism
There is no installer, executable package, dependency fetch, or network setup; the only declared requirement is bash, and the artifact files are markdown.
Credentials
Using bash, awk, tail, and a single local cache file is proportionate for a scratch clipboard and does not request broad filesystem, credential, or network access.
Persistence & Privilege
The skill intentionally persists snippets across sessions and includes a command that truncates the whole stash file, but this behavior is disclosed and limited to the skill's own stash file.
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install clipboard-stash-demo
  3. After installation, invoke the skill by name or use /clipboard-stash-demo
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
v0.1.0
Initial demo publish: file-backed scratch clipboard.
Metadata
Slug clipboard-stash-demo
Version 0.1.0
License MIT-0
All-time Installs 0
Active Installs 0
Total Versions 1
Frequently Asked Questions

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.

💬 Comments