Skip to content
Back to skills

Md Copy

ASecurity

Format final answer as markdown and copy to clipboard. Use when user says "copy as markdown", "md copy", "copy formatted", "clipboard", or wants the session's final answer formatted and copied.

  • 483 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added May 26, 2026
developmentbash

Works with

  • cli

Security analysis

A100/100

Scanned May 27, 2026

npx -y skills add umputun/cc-thingz --skill md-copy --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Md Copy?

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

Security grade badge for Md Copy
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/umputun-md-copy/badge)](https://www.skillsdirectory.com/skills/umputun-md-copy)

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: md-copy
description: Format final answer as markdown and copy to clipboard. Use when user says "copy as markdown", "md copy", "copy formatted", "clipboard", or wants the session's final answer formatted and copied.
allowed-tools: Bash
---

# Markdown Copy

Extract the final answer from this session, convert it to proper markdown format, and copy to clipboard.

## Formatting Rules

1. **No heading elements** (`#`, `##`, etc.) — use **bold** for section titles instead
2. Convert any ASCII tables to proper markdown tables
3. Use *italic* for emphasis and minor notes
4. Preserve code blocks with proper language tags
5. Keep bullet lists and numbered lists
6. Remove any leading spaces or bullet headers (bullet-style)
7. Give the content a nice descriptive title (as bold text, not heading)

## Workflow

1. Identify the final answer/response in this session
2. Format it according to the rules above
3. Write formatted text to a timestamped temp file:
```bash
tmpfile="/tmp/claude-md-copy-$(date +%s).txt"
cat > "$tmpfile" << 'EOF'
<formatted content>
EOF
```
4. Copy to clipboard and remove temp file:
```bash
if [[ "$OSTYPE" == "darwin"* ]]; then
    pbcopy < "$tmpfile"
elif command -v xclip &> /dev/null; then
    xclip -selection clipboard < "$tmpfile"
elif command -v xsel &> /dev/null; then
    xsel --clipboard --input < "$tmpfile"
else
    echo "No clipboard tool found" >&2
fi
rm -f "$tmpfile"
```
5. Report success with character count

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.

Comments

Loading comments…

Newsletter

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