AgentSkillsCN

capture-terminal-output

当用户请求时,以简洁的方框、极简的区块,或代码块的形式,对终端输出进行格式化,方便复制粘贴。当用户希望复制、粘贴、捕获或格式化终端输出时,可使用此工具。

SKILL.md
--- frontmatter
name: capture-terminal-output
description: Format terminal output for easy copy-paste with clean boxes, minimal blocks, or code fences when requested. Use when the user asks to copy, paste, capture, or format terminal output.

Capture Terminal Output

Trigger when

  • User says "copy this output" or "paste this"
  • User says "capture terminal" or "format for copy"
  • User shares terminal output and asks for a clean, copyable format

Format options

  • Default: clean box with borders
  • Terminal block: double-line border
  • Minimal: plain lines for quick copy
  • Code fence: only if the user asks for code or syntax highlighting

Helper script:

scripts/format_output.py --style box|block|minimal|code [--line-numbers]

Examples

Clean box (default):

code
┌─────────────────────────────────────────┐
│  $ python script.py                     │
│  Hello World                            │
│  Result: 42                             │
└─────────────────────────────────────────┘

Terminal block:

code
═══════════════════════════════════════════
  $ git status
  On branch main
  nothing to commit, working tree clean
═══════════════════════════════════════════

Minimal:

code
$ echo "Quick output"
Quick output

Rules

  • Keep output copy-paste friendly.
  • Avoid markdown unless requested.
  • Add line numbers only if requested.