Skip to content
Back to skills

Clip

ASecurity

Copy content to clipboard in a format suited to the target (Slack, Markdown, plain text). Use when the user says "clip", "copy that", "clipboard", or "/clip".

  • 14 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added November 26, 2026
developmentgoshellbashgit

Works with

  • cli

Security analysis

A100/100

Scanned November 26, 2026

npx -y skills add poma-ai/megavibe --skill clip --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Clip?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Clip
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/poma-ai-clip/badge)](https://www.skillsdirectory.com/skills/poma-ai-clip)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: clip
description: Copy content to clipboard in a format suited to the target (Slack, Markdown, plain text). Use when the user says "clip", "copy that", "clipboard", or "/clip".
allowed-tools: Bash(pbcopy *), Bash(xclip -selection clipboard *), Bash(xsel --clipboard *), Bash(clip.exe *), AskUserQuestion
user-invocable: true
---

# Clip to Clipboard

Copies the most recent output (or specified content) to the clipboard in the right format for the user's target.

## Steps

1. **Ask the user** (unless they already specified): "Where is this going? (slack / md / plain)"

2. **Format based on target:**

   **`slack`** — Slack uses `mrkdwn`, NOT Markdown. Convert:
   - `*bold*` (not `**bold**`)
   - `_italic_` (not `*italic*`)
   - `~strikethrough~` (not `~~strikethrough~~`)
   - `*HEADING*` on its own line (no `#` headings)
   - No markdown tables — use code-block ASCII tables (triple backtick) or bullet lists
   - `<url|text>` links (not `[text](url)`)
   - Code: single backtick for inline, triple backtick for blocks (same as markdown)

   **`md`** — Clean GitHub-Flavored Markdown:
   - Tables, headings, links all standard GFM
   - No hard wraps, no gutter artifacts, no line-number prefixes

   **`plain`** — No formatting at all:
   - Strip all markup
   - Use indentation and whitespace for structure

3. **Copy to clipboard** using the platform tool. Pass the formatted text on stdin with a here-document whose delimiter is a long random-looking word, checked against the entire text and regenerated until it does not occur anywhere in it. Quote that delimiter in the opening here-document operator to prevent shell expansion of the contents:
   - macOS: `pbcopy`
   - Linux: `xclip -selection clipboard` or `xsel --clipboard`
   - Windows/WSL: `clip.exe`

4. **Confirm** with a one-line message: "Copied (slack/md/plain) — N lines"

## Notes

- If the user says just "copy that" or "clip" without a target, always ask.
- If they say "copy for slack" or "slack copy", skip the question — target is `slack`.
- If they say "copy" with no prior output to copy, ask what they want copied.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in development →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.