copy
Copy to Clipboard Skill
Copy text content to the user's system clipboard.
Platform Detection
Detect the platform and use the appropriate command:
- macOS:
pbcopy - Linux:
xclip -selection clipboard(orxsel --clipboard)
Usage
For multi-line content, use a heredoc with the appropriate clipboard command:
macOS:
cat <<'EOF' | pbcopy
Your content here
Multiple lines supported
EOF
Linux:
cat <<'EOF' | xclip -selection clipboard
Your content here
Multiple lines supported
EOF
Cross-Platform Detection
Check the OS before copying:
if [[ "$OSTYPE" == "darwin"* ]]; then
# macOS
cat <<'EOF' | pbcopy
content
EOF
elif command -v xclip &> /dev/null; then
# Linux with xclip
cat <<'EOF' | xclip -selection clipboard
content
EOF
else
echo "No clipboard utility found"
fi
Important Notes
- Always confirm to the user that content was copied
- For large content, consider showing a preview before copying
- On Linux,
xclipmay need to be installed (apt install xclip)
More from waniwani-ai/sdk
waniwani-sdk
Integrate the @waniwani/sdk package into MCP servers for event tracking, multi-step conversational flows, widget creation, knowledge base search, and chat components. Use when building or integrating WaniWani analytics, creating MCP tools with UI widgets, building multi-turn flows, or adding chat to a website.
9oai-submission
Generate OpenAI/ChatGPT App submission documents (Tool Justification + Test Cases) in Notion by analyzing the MCP server's tools, flows, and widgets
2translations
Add or update translations for pages and components in the WaniWani app. Use when the user wants to add translations, create translation files, internationalize a page, make text translatable, or update existing translations. Also use proactively when creating new pages or components with user-facing text.
1knowledge-base
Set up a knowledge base with search for an MCP project. Creates FAQ tool and ingestion script using the WaniWani KB API via @waniwani/sdk.
1frontend-design
Create distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
1visualize-flow
Generate a Mermaid diagram from a WaniWani flow definition. Use when the user wants to visualize, diagram, or document a flow's structure and branching logic.
1