yank
Use this skill when the user wants to copy a field from command output to the clipboard — pick tokens, numbers, paths, or lines with yank.
- License 许可
- MIT
- 最近更新
- 2026-11-02
- Stars
- ★ 57
- Forks
- 5
01 前言 Front Matter
- name
- yank
- description
- Use this skill when the user wants to copy a field from command output to the clipboard — pick tokens, numbers, paths, or lines with yank.
03 SKILL.md 正文
yank Plugin
yank reads stdin, splits it into fields (default delimiters: space/tab/newline, or -d custom, or -g regex), shows a tiny selection UI on a TTY, and pipes the choice to a clipboard command (xsel by default; -- wl-copy on Wayland). Non-TTY stdout gets the field directly — great for scripts.
Commands
yank clipboard yank— Interactive field selection → clipboard commandyank clipboard first—-1: skip the UI when only one field matchesyank _ _— Passthrough (-ddelimiter,-gpattern,-i,-lwhole line,-- <cmd>)
Usage Examples
- "Copy just the PID out of this ps output"
- "Yank a key=value value from env into the clipboard"
- "Grab the URL from this command's output"
- "Select the whole last line to the clipboard"
Installation
sudo apt install yank
# or: brew install yank
Examples
env | yank -d = # pick a key or value
make 2>&1 | yank -l # pick whole lines
ps ux | yank -g [0-9]+ | xargs kill # field → stdout when piped
echo "token=abc123" | yank -1 -d = -- wl-copy # Wayland clipboard
Key Features
- Tiny, dependency-free C tool (OpenBSD-style)
- Field detection by default delimiters,
-dcustom set, or-gregex - Clipboard backend is fully pluggable:
yank -- wl-copy,yank -- xclip -i -1mode is deterministic and script-safe (no UI needed)
04 同仓库更多 Skills
sc-machin-mcp
暂无简介
supercli.quickstart
SuperCLI capability router — discover and execute CLI commands through namespace.resource.action interface
zzdoc
Use this skill to compile scdoc manpages with a fast Zig-based compiler.
zx
Use this skill when the user wants to a tool for writing better scripts using node.js.
zvm
Use this skill when the user wants to manage multiple Zig compiler versions.
quickstart
暂无简介