<< All versions

Skill v1.0.0

currentAutomated scan100/100
zen-open-source/pastelocal/paste-snippet
──Details
PublishedNovember 6, 2026 at 01:27 AM
Content Hashsha256:dad97eec42bd58f6...
Git SHA2c2240334d95
──Files
Files (1 file, 2.3 KB)
SKILL.md2.3 KBactive
SKILL.md · 49 lines · 2.3 KB

name: paste-snippet description: > Paste a named snippet previously saved from the user's local laptop clipboard into this remote Grok session using PasteLocal (SSH or relay). allowed-tools: Bash(pastelocal-remote:), Read(), Bash(rm:*) metadata: version: "1.0.0" short-description: "Recall a saved named snippet (e.g. api-key, template) from laptop" category: "clipboard"


PasteLocal /paste-snippet — Grok Skill

Fetch and paste a user-saved named snippet (text or image) that was previously captured with pastelocal snippets save <name> on the laptop.

When to use

  • User refers to "my deploy command snippet", "the api-key template", "that standard header I saved as 'license'".
  • Replaces typing or copy-paste from notes; snippets survive clipboard churn.
  • pastelocal-remote --snippet NAME works over SSH (preferred); for relay setups use plain --relay for recent auto-uploaded items (direct --snippet + --relay not supported in dispatch).

Steps (execute in order)

  1. If user did not provide a name: list available snippets first.
  • SSH: pastelocal-remote --list-snippets
  • Suggest common ones the user may have: deploy, header, license, etc.
  1. Run the fetch:
  • SSH path: pastelocal-remote --snippet <name>
  • Relay path (multi-device without SSH): recent auto-uploaded items via plain pastelocal-remote --relay <url> (full --snippet + --relay combo not supported in current remote dispatch; copy snippet locally then send via relay or use SSH for direct daemon access).
  1. On any failure (non-zero exit): Report the exact stderr verbatim and stop.
  1. Read the file using Read tool on the returned path.
  1. Clean up with rm <path> (and sidecar if present).
  1. Confirm:
  • "Pasted snippet '<name>' (text attached)."
  • "Pasted snippet '<name>' (image attached)."

Tips for great UX

  • Snippets are stored locally on the laptop daemon (not in relay inbox unless explicitly sent).
  • For relay-heavy workflows, the user can pastelocal relay send a snippet or enable auto-upload and copy the snippet locally first.
  • Combine with /paste for ad-hoc and /paste-history for time-based recall.
  • User manages snippets with pastelocal snippets save|list|delete <name> on laptop.

This completes the trio of clipboard ingestion skills (/paste + /paste-history + /paste-snippet) for Grok.

All versions