Receber por email
← Voltar para o catálogo

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.

406estrelas
Atualizado há 4 meses

Ver no GitHub ↗ Licença: MIT

Como adicionar

/plugin marketplace add umputun/cc-thingz

O comando exato pode variar conforme o repositório. Confira o README no GitHub.

Para o autor da skill

Cole no README do seu repo

Mostra que sua skill está catalogada na Skillteca, gera backlink e tráfego rastreável.

[![Skillteca](https://www.skillteca.com.br/api/badge/md-copy/svg)](https://www.skillteca.com.br/skills/md-copy)

Alerta por categoria

Receba novas skills de Escrita e Conteúdo toda segunda

1 email curto, só com as skills novas de Escrita e Conteúdo. 4 minutos de leitura, sem spam, cancela com 1 clique.

Você confirma o email no primeiro envio. Sem spam. Cancela com 1 clique.

Ler descrição completa

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
  1. 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"
  1. Report success with character count
Compartilhar X LinkedIn