clipboard

Copies text from Bash commands to the system clipboard across macOS, Linux, and WSL.

2|1|Updated Nov 13, 2025
One-click install
npx skills add https://github.com/MolcajeteAI/plugin --skill clipboard-molcajeteai
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: clipboard
Source: https://github.com/MolcajeteAI/plugin/tree/main/molcajete/skills/clipboard
Command: npx skills add https://github.com/MolcajeteAI/plugin --skill clipboard-molcajeteai

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill provides a reliable way to copy text to the system clipboard across different operating systems and display server environments.

Core Features & Use Cases

  • Cross-Platform Compatibility: Works on macOS, Linux (X11 and Wayland), and Windows (WSL).
  • Bash Integration: Designed to be used directly within Bash scripts.
  • Use Case: You have a long command output in your terminal that you need to paste into an email. Use this Skill to copy that output directly to your clipboard.

Quick Start

Use the clipboard skill to copy the text 'This is important information.' to your clipboard.

Frequently Asked Questions about clipboard

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I copy terminal output to the system clipboard in a bash script?

You can copy terminal output to the system clipboard by using a bash utility that detects your operating system and invokes the appropriate clipboard command for reliable data transfer.

Does clipboard work with both Wayland and X11 on Linux?

Yes, the clipboard utility works with both Wayland and X11 display servers on Linux, as well as macOS and WSL on Windows, by detecting the platform to invoke the correct command.

Can I use this to copy text from a bash script on Windows WSL?

Yes, you can copy text from a bash script on Windows WSL. The utility detects the WSL environment and invokes the appropriate Windows clipboard command to transfer the text.

What is the best way to copy command line output for pasting into other applications?

The best way to copy command line output for pasting into other applications is using a cross-platform bash utility that routes the text directly to the system clipboard.

Do I need to install any dependencies to copy text to the clipboard from the terminal?

No dependencies are required to use this Skill for copying text to the clipboard. It operates as a standalone bash utility that directly invokes the appropriate system clipboard command.

Why does copying text to the clipboard fail when switching display servers on Linux?

Copying text to the clipboard can fail if the utility does not detect the active display server. This Skill prevents failures by detecting whether Linux is running X11 or Wayland before invoking the correct command.