Skip to main content

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.

설치로 이동

소스 정보

저장소
umputun/cc-thingz
최근 소스 활동
2026년 2월 18일 03:12
감지된 SKILL.md 언어
영어
스타
473
포크
52

설치 방법

기본적으로 소스를 먼저 확인하는 Prompt가 선택됩니다. 직접 명령으로 전환하거나 로컬 사본을 다운로드할 수도 있습니다.

소스 파일 검토

설치 여부를 결정하기 전에 SKILL.md와 SkillsMP에 표시된 보조 파일을 읽어 보세요.

SKILL.md 표시 중

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
GitHub에서 보기