Skip to content
Development
Skill

/md-copy

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.

From plugin
umputun-cc-thingz
47216 skills1 agent1 command
Install
$ npx -y skills add umputun/cc-thingz --skill md-copy --agent claude-code

How it fires

How this skill gets triggered: by you, by Claude, or both.

  • Fires itselfAuto-invocation. Claude auto-loads it when your prompt matches the work.Auto-invocation is when the right skill fires by itself at the right moment, driven by a FLOW.md router and a hook, instead of you invoking it by name. It is the difference between a skill being installed and a skill actually getting used.Read the full definition →
  • You can call itInvoke it directly when you want it.
  • Slash command/md-copy

Context preview

The summary Claude sees to decide when to auto-load this skill.

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.

SKILL.md

md-copy.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:

tmpfile="/tmp/claude-md-copy-$(date +%s).txt"
cat > "$tmpfile" << 'EOF'
<formatted content>
EOF

4. Copy to clipboard and remove temp file:

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

Read more
Ships withumputun-cc-thingz

Things to make Claude Code even better — hooks, skills, and commands, organized as a marketplace of independent plugins. This is an unapologetically opinionated set.

Get the whole plugin
Stats
472
Stars
52
Forks
Active
Maintenance
Shell
Language
MIT
License
8d ago
Last commit
7mo ago
Created

Repo: umputun/cc-thingz

Other skills on umputun-cc-thingz.