← 返回 Skills 市场
terrycarter1985

Clipboard Stash Demo

作者 terrycarter1985 · GitHub ↗ · v0.1.0 · MIT-0
cross-platform ✓ 安全检测通过
74
总下载
0
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install 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...
使用说明 (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.
安全使用建议
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.
能力评估
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.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install clipboard-stash-demo
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /clipboard-stash-demo 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v0.1.0
Initial demo publish: file-backed scratch clipboard.
元数据
Slug clipboard-stash-demo
版本 0.1.0
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 1
常见问题

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。

💬 留言讨论