Terminal Screenshot logo

Terminal Screenshot

Community
Piaoxuemoli
terminal-screenshot

Render terminal command outputs as realistic PNG screenshots. Use this skill whenever the user wants to "screenshot" a terminal command, generate terminal output images, visualize CLI results, create terminal-style screenshots for reports or documentation, or any time terminal output needs to be captured as an image. Also trigger proactively when the user is writing experiment reports, technical docs, or lab reports that would benefit from terminal evidence — suggest capturing the output as a screenshot.

Overview

PublisherPiaoxuemoli
RepositoryAuto-college
Skill nameterminal-screenshot
Stars
26
Forks
0
Bundled files
37
LicenseMIT
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • 37 bundled files

    Scripts, templates, and references the model can read while it works. Files are read-only and never executed.

  • Open source

    Published by Piaoxuemoli on GitHub. Read the source before you install it.

Installation

Install the Terminal Screenshot AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/Piaoxuemoli/Auto-college/tree/master/skills/terminal-screenshot
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/Piaoxuemoli/Auto-college.git /tmp/Auto-college
mkdir -p .claude/skills
cp -r /tmp/Auto-college/skills/terminal-screenshot .claude/skills/terminal-screenshot
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Terminal Screenshot in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Terminal Screenshot on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Terminal Screenshot is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

Terminal Screenshot — 三档渲染架构

把终端命令输出渲染成逼真 PNG。核心原则:让真实终端引擎处理着色与排版, 手写 HTML span 颜色只作最后回退。

决策表

内容性质渲染档命令
命令可在本机真实执行(git log、python xx.py 等本地操作)Tier 1 freeze 真实执行python scripts/render.py --execute "<cmd>" --name <slug>
伪造内容(GPU 服务器、SSH 远程、不存在的结果)Tier 2 ANSI + termframe 真模拟器先写 session spec JSON,python scripts/render.py --spec spec.json --name <slug>
freeze/termframe 均不可用Tier 3 HTML → 无头浏览器按 references/html-templates.md 写 HTML,python scripts/render.py --html page.html --name <slug>

会话画像(Tier 2/3 用):PS C:\...> → powershell 预设;C:\...> → cmd; % 结尾提示符/brew → macOS zsh;user@host:path$/nvidia-smi/systemctl → SSH (实验报告默认);复古/游戏场景 → CRT。完整预设目录见 references/terminal-types.md。

Tier 2 session spec 格式

json
{
  "preset": "ssh", "user": "ubuntu", "host": "gpu-a100-01", "path": "~/train",
  "commands": [
    {"cmd": "nvidia-smi", "output": ["+-----------------------------------------------------------------------------+", "|  ...表格行...  |"]}
  ]
}

preset 取值:ssh / root / zsh / powershell / cmd / crt。 提示符配色由 scripts/ansi_builder.py 按预设自动生成(truecolor 转义序列)。

逼真度要点

  • Tier 1 物理真实:freeze 真实执行并捕获 ANSI,字体度量/着色/间距无可挑剔,优先选它。
  • Tier 2 引擎真实:termframe 是真正的终端模拟器,ANSI 着色、光标由引擎渲染; 其 SVG 输出会自动用无头浏览器栅格化为 PNG(不可用时交付 SVG)。
  • 提示符语法必须精确:PowerShell PS ...>、zsh %、Linux user@host:path$ / root#。 SSH 场景用本地终端 chrome + 远程提示符,不要凭空造"服务器 GUI"。
  • 终端外的背景也要真实:有窗口的截图必须悬浮在桌面壁纸上(见 references/stage-backgrounds.md 的程序化壁纸预设:win11-bloom / macos-gradient / plain-dark / custom 真实图片),阴影与圆角匹配对应 OS;不要纯色贴边。
  • 顶部栏必须符合官方规格:Windows(32px 标题栏、46×32 caption、E721/E922/E923/E8BB/E710/E70D)、 macOS Terminal(28px 标题栏、红绿灯 12px/20px 间距)、GNOME/Ubuntu(47px headerbar、 12px 窗口圆角、汉堡菜单)三类平台规格严格按 references/chrome-spec.md。 图标素材:CC0 红绿灯 SVG(assets/macos-traffic-lights/)、CC0 自绘 GNOME symbolic 图标(assets/symbolic/),不引入 Apple/Yaru 版权资产。 完成模板后按 references/chrome-validation.md 协议用多模态模型 + scripts/chrome_probe.py 探针校验通过才算交付。
  • 短输出克制:短 Linux/服务器输出渲染为无边框证据片段(无舞台),除非内容含 SSH 登录过程或用户明确要完整终端窗口(Tier 3 质检会警告)。
  • 工具缺失不打断流程:render.py 会尝试自动安装(brew/go/scoop/cargo), 全部失败退出码 2 —— 告知用户"本次跳过截图"并继续任务。

跨平台

  • 工具安装:freeze → brew / go install / scoop;termframe → brew / cargo / scoop。 无 Windows 官方安装源时提示用户手动安装,Tier 3 回退在所有平台可用 (Playwright → npx → Puppeteer → Edge/Chrome headless → wkhtmltoimage)。
  • 字体:本地自托管 OFL 字体优先(Cascadia Code/Mono、JetBrains Mono, assets/fonts/,@font-face 三级优先:本地 woff2 → 平台系统栈 → 通用等宽; SF Mono 非 OFL 不可再分发,macOS 模板走系统栈),中文回退走系统字体。
  • 路径:脚本内部统一 pathlib/file:/// URL,Windows 反斜杠已处理。

输出

outputs/YYYY-MM-DD/HHMMSS-<slug>/,含 PNG 及对应源文件(.ansi/.svg/.html), 交付时报目录路径。退出码:0 成功 / 1 输入错误 / 2 无工具可跳过。

Bundled files

The model reads these on demand while the skill is loaded. They are exposed as readable files and are never executed.

Frequently asked questions

What does the Terminal Screenshot AI skill do?

Render terminal command outputs as realistic PNG screenshots. Use this skill whenever the user wants to "screenshot" a terminal command, generate terminal output images, visualize CLI results, create terminal-style screenshots for reports or documentation, or any time terminal output needs to be captured as an image. Also trigger proactively when the user is writing experiment reports, technical docs, or lab reports that would benefit from terminal evidence — suggest capturing the output as a screenshot.

Why use Terminal Screenshot on TypingMind?

Because you install it once and use it with any model. Terminal Screenshot is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Terminal Screenshot in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/Piaoxuemoli/Auto-college/tree/master/skills/terminal-screenshot. TypingMind reads its SKILL.md and bundles its files and installs it as a skill you can enable per chat.

Which AI models can use Terminal Screenshot?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Terminal Screenshot?

As many as you like. As long as a model supports skills, you can use Terminal Screenshot with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Terminal Screenshot AI skill free?

Yes. It is published on GitHub by Piaoxuemoli under the MIT license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇