本文へ移動
cccskills
無料GitHub で公開日本語紹介

terminal-replica

実際のターミナルの色・フォント・プロンプトやエージェントの表示を記録し、CLI画面を含む画像や動画を本物の環境に合わせて描画します。

原文原文の説明を見る

Reproduce YOUR real terminal and CLI agents (Claude Code, Codex CLI, Gemini CLI) faithfully in any generated graphic, GIF, or video frame. Use whenever an asset shows a terminal, an agent transcript, a statusline, or a CLI banner. Capture your actual theme, font, prompt and statusline first, and never invent a generic "hacker terminal" look.

huytieu/COG-second-brainスター 1,328(GitHub 1,328 + cccskills 0)
連携ツールGemini

実行スコア 未検証

インストール方法を見る

こんなときに便利

  • 実画面に近いターミナル画像を作りたいとき
  • CLIエージェントの操作動画を作るとき
  • ログをGIFやバナーに再現したいとき
  • 描画した画面を実際の表示と照合したいとき

日本語での紹介

できること

ターミナルやCLIエージェントが登場する画像、GIF、動画フレームを、実際の利用環境に合わせて描画するための手順と見本を示します。まず実機の画面から色を確認し、エミュレーター、フォントとサイズ、テーマ、シェルのプロンプト、ステータスラインを記録します。セッションログも参照して、エージェントの発言やツール実行の表示を再現します。描画後は実画面と並べて確認し、フォントにない記号を図形で補うなど、表示のずれを点検します。

Claude Code、Codex CLI、Gemini CLIそれぞれの画面構成や、GIF・動画でのカーソルやスピナーの動き方も説明します。PILを使った描画レシピと設定例があり、自分の環境の値に置き換えて使えます。

こんなときに便利

操作解説の素材や製品紹介の動画にターミナル画面を載せたいとき、エージェントの実行ログをビジュアルにしたいときに向いています。実際の環境を反映することで、汎用的なターミナル風画面ではなく、使っているツールの表示に近づけられます。

使い方の例

  • 「このターミナル画面をもとに、CLI操作の説明画像を作って」
  • 「Codex CLIの実際の表示に合わせた動画フレームを描画して」
  • 「このエージェントのログをGIF用の画面に再現して」

注意点

実画面のスクリーンショットや設定を確認してから描画します。Codex CLIとGemini CLIは、利用環境で実際に起動・撮影して表示を確かめる手順が示されています。

この紹介文は、公開されている SKILL.md をもとに AI(OpenAI Codex)が作成しました。正確な仕様は下の原文を確認してください。

含まれるファイル(1)

  • SKILL.md6.1 KB

SKILL.md(原文)

インストールする前に、エージェントに与えられる指示の中身を確認できます。

Terminal replica

Terminal-like graphics must match the real tool and the real setup of the person who ships the asset. A generic green-on-black "hacker terminal" reads as fake. This skill is a method for capturing your own setup, plus a render recipe and a worked example.

Method

  1. Capture the ground truth. Take a fresh screenshot of your real terminal running the tool. Sample background, foreground and accent colors from it with an eyedropper or PIL.Image.getpixel. A live screenshot beats any spec in this file.
  2. Record these five facts about your setup:
    • Emulator (Terminal.app, iTerm2, Warp, the VS Code integrated terminal, Ghostty).
    • Font family and size. Check the emulator's settings. VS Code on macOS defaults to Menlo 12.
    • Theme: background, default foreground, and the 16 ANSI colors.
    • Shell prompt shape (for example user@host ~ % for default macOS zsh, or your powerline or starship layout).
    • Statusline format, if your agent has a custom one.
  3. Use your own session logs for transcript shapes. Claude Code stores them at ~/.claude/projects/<project-slug>/*.jsonl. The assistant and tool-use turns show exactly what text appears.
  4. Draw from those facts, then verify by placing the render next to a real screenshot before you publish.

Keep a small config in your own project (a JSON or Python dict) holding the five facts, and read it from your render scripts. Do not hardcode them in shared code.

Claude Code TUI

Layout top to bottom on launch (verify against your installed version):

  1. A pixel-art logo on the left: a blocky creature in Anthropic terracotta (#D97757), roughly 5x4 fat pixels with feet. Do not redraw it as an emoji or a robot.
  2. A header text block to its right: Claude Code in bold white plus the version in gray, a gray model and account line, and a gray working-directory path.
  3. Warnings: a warning glyph plus orange-yellow text (for example "N MCP servers need authentication") and a gray · run /mcp.
  4. Notice blocks: an orange left border │, an orange bold title line, the body in the default foreground, and underlined blue links.
  5. Prompt: ❯ then a dim gray placeholder with a block cursor over its first character.
  6. Statusline at the bottom, one line, if you have configured one. Draw exactly your own format, including filled bars in green and empty bars dimmed.
  7. Mode line below the statusline when a permission mode is active (for example "bypass permissions on (shift+tab to cycle)").

Transcript shapes (session JSONL to TUI rendering):

  • Assistant tool call: ⏺ Bash(git status), with the dot colored (green when ok), the tool name white and the args dim.
  • Result continuation: ⎿ <first line of output> dim, and … +N lines in gray.
  • Working spinner: a single animated glyph cycling ✳ ✶ ✻ ✽, plus a gerund word ("Reticulating…") and a gray token count.
  • User turn: > followed by plain text.
  • Never show affordances that do not exist: no tabs, no menu bar, no fake buttons inside the TUI.

Animation notes for GIF and video: the cursor blinks as a square block at about 530ms, the spinner steps at about 120ms, and output appears in whole-line chunks. Only the user's typing appears character by character.

Codex CLI

  • Invoked as codex in the same terminal, so the same background and font as above.
  • Banner: a minimal >_ OpenAI Codex (vX.Y.Z) style header line with a blue accent, then a bordered input box drawn with rounded box-drawing characters (╭─╮ │ ╰─╯) and a dim placeholder such as "Ask Codex to do anything".
  • A dim gray shortcuts line at the bottom.
  • Verify live before shipping: run codex yourself in a scratch directory and screenshot it. Check ~/.codex/config.toml for a custom theme.

Gemini CLI

  • Do not fake it from memory. If an asset needs it, install it in a scratch environment (npm i -g @google/gemini-cli), run it and screenshot it.
  • Known shape if you cannot verify: a large GEMINI ASCII banner in a blue to purple gradient, a tips list, a bordered input box (> Type your message), and a bottom status line with cwd, sandbox note, model name and context percent. Mark any unverified render as a draft.

Render recipe (PIL)

  • Render at 2x, then downscale 50% with LANCZOS for anti-aliasing.
  • Mono font from your captured setup (/System/Library/Fonts/Menlo.ttc on macOS if that is what you use). Draw TUI glyphs that your font lacks (record dot, elbow, spinner) as vector shapes. Never ship tofu boxes.
  • Line height about 1.35em, left padding about 2 characters, no drop shadows inside the terminal.
  • Window chrome: either a flat panel matching your emulator, or crop the chrome entirely and show only content.

Example values

An example only, taken from a typical VS Code Dark Modern setup. Replace every value with what you captured in the Method section.

  • Emulator: VS Code integrated terminal. Font: Menlo 12.
  • Background #181818, default foreground #CCCCCC.
  • ANSI normal: black #000000, red #CD3131, green #0DBC79, yellow #E5E510, blue #2472C8, magenta #BC3FBC, cyan #11A8CD, white #E5E5E5.
  • ANSI bright: #666666 #F14C4C #23D18B #F5F543 #3B8EEA #D670D6 #29B8DB #FFFFFF.
  • Prompt: user@host ~ %.
  • Statusline (a custom one): 🤖 Model | ctx: 0% | s:▰▰▰▰▰ 87% | $4.06, with filled bars in green #23D18B and empty bars dim.

Definition of done

  • Colors sampled from a real screenshot of your own terminal, or matched to your captured config
  • The mono font matches your emulator, with no emoji-style logo substitutes
  • Transcript lines copied or adapted from a real session log
  • The statusline matches your own format if shown
  • Codex and Gemini banners verified live, or explicitly flagged as unverified

レビュー

まだレビューはありません。使ってみた感想をお寄せください。

コメント

ログインなしで書き込めます。使ってみた感想、質問、動かなかった環境などを気軽にどうぞ。

まだコメントはありません。最初のコメントを書いてみませんか。

送信するとすぐに公開されます。メールアドレスや電話番号などの個人情報は書かないでください。URL は 2 つまでです。

0 / 1000 文字

このフォームは reCAPTCHA で保護されており、Google のプライバシーポリシーと利用規約が適用されます。

同じリポジトリのスキル

auto-research

無料概要あり

複雑な戦略上の問いを複数の調査テーマに分け、市場や競合、技術、顧客、経済性などの情報を集めて、根拠と実行案をまとめるリサーチスキルです。

  • 市場や競争環境を調べて判断したいとき
  • 構築・購入・提携の選択肢を比較したいとき
  • 新しい技術や構想の将来性を調べたいとき
huytieu/COG-second-brain1,3282026年10月23日 更新

blog-publish

無料概要あり

自分の静的ブログ向けに記事を執筆・公開し、要約やASCIIアート、エージェント向けMarkdown版を用意して、デプロイとSNS配信まで進めます。

  • 静的ブログの記事を執筆・公開したいとき
  • 要約とASCIIアートを記事に加えたいとき
  • エージェント向けMarkdown版を用意したいとき
huytieu/COG-second-brain1,3282026年10月23日 更新

blog-publish

無料概要あり

静的ブログの記事を執筆し、図や記事用のASCIIアートを用意して公開したうえで、SNS向けの告知まで進めるスキルです。

  • 静的ブログの記事を執筆・公開したいとき
  • 記事にリンクや図を加えたいとき
  • 公開記事をSNSでも告知したいとき
huytieu/COG-second-brain1,3282026年10月23日 更新

braindump

無料概要あり

まとまりのない思考やアイデアを素早く記録し、テーマや領域、感情、検討事項、行動項目を整理して、戦略的な気づきとして構造化するスキルです。

  • 思いつきをすぐ書き留めて整理したいとき
  • メモからテーマや行動項目を見つけたいとき
  • 仕事・個人・プロジェクト別に分類したいとき
huytieu/COG-second-brain1,3282026年10月23日 更新

closed-loop

無料概要あり

計画、実装、部品・統合の検証、受け入れ確認までを段階的に進め、各要件に対応する証拠を記録してタスクの完了を確かめます。

  • 開発タスクを段階的に検証したいとき
  • 要件ごとの確認証拠を残したいとき
  • 変更後の受け入れ確認を記録したいとき
huytieu/COG-second-brain1,3282026年10月23日 更新

comprehensive-analysis

無料概要あり

GitHubやLinear、Slack、PostHogなどの情報を7日間分集め、チームの進捗や製品の利用状況、課題を分析して、経営・開発・製品向けの週次レポートにまとめます。

  • 週次レビューや振り返りを準備したいとき
  • 取締役会向けに進捗とリスクをまとめたいとき
  • 施策やプロジェクトの進捗を評価したいとき
huytieu/COG-second-brain1,3282026年10月23日 更新

huytieu のスキルをすべて見る

このスキルの問題を報告する