jpskill.com
🛠️ 開発・MCP コミュニティ

spawn-terminal

Spawn a new terminal window to run CLI commands (ffmpeg, curl, python, etc.). Use for non-AI command execution.

⚡ おすすめ: コマンド1行でインストール(60秒)

下記のコマンドをコピーしてターミナル(Mac/Linux)または PowerShell(Windows)に貼り付けてください。 ダウンロード → 解凍 → 配置まで全自動。

🍎 Mac / 🐧 Linux
mkdir -p ~/.claude/skills && cd ~/.claude/skills && curl -L -o spawn-terminal.zip https://jpskill.com/download/18047.zip && unzip -o spawn-terminal.zip && rm spawn-terminal.zip
🪟 Windows (PowerShell)
$d = "$env:USERPROFILE\.claude\skills"; ni -Force -ItemType Directory $d | Out-Null; iwr https://jpskill.com/download/18047.zip -OutFile "$d\spawn-terminal.zip"; Expand-Archive "$d\spawn-terminal.zip" -DestinationPath $d -Force; ri "$d\spawn-terminal.zip"

完了後、Claude Code を再起動 → 普通に「動画プロンプト作って」のように話しかけるだけで自動発動します。

💾 手動でダウンロードしたい(コマンドが難しい人向け)
  1. 1. 下の青いボタンを押して spawn-terminal.zip をダウンロード
  2. 2. ZIPファイルをダブルクリックで解凍 → spawn-terminal フォルダができる
  3. 3. そのフォルダを C:\Users\あなたの名前\.claude\skills\(Win)または ~/.claude/skills/(Mac)へ移動
  4. 4. Claude Code を再起動

⚠️ ダウンロード・利用は自己責任でお願いします。当サイトは内容・動作・安全性について責任を負いません。

🎯 このSkillでできること

下記の説明文を読むと、このSkillがあなたに何をしてくれるかが分かります。Claudeにこの分野の依頼をすると、自動で発動します。

📦 インストール方法 (3ステップ)

  1. 1. 上の「ダウンロード」ボタンを押して .skill ファイルを取得
  2. 2. ファイル名の拡張子を .skill から .zip に変えて展開(macは自動展開可)
  3. 3. 展開してできたフォルダを、ホームフォルダの .claude/skills/ に置く
    • · macOS / Linux: ~/.claude/skills/
    • · Windows: %USERPROFILE%\.claude\skills\

Claude Code を再起動すれば完了。「このSkillを使って…」と話しかけなくても、関連する依頼で自動的に呼び出されます。

詳しい使い方ガイドを見る →
最終更新
2026-05-18
取得日時
2026-05-18
同梱ファイル
1

📖 Skill本文(日本語訳)

※ 原文(英語/中国語)を Gemini で日本語化したものです。Claude 自身は原文を読みます。誤訳がある場合は原文をご確認ください。

目的

CLIコマンドを実行するために、新しいターミナルウィンドウを生成します。このスキルは汎用的なコマンド実行を目的としており、AIエージェントを生成するためのものではありません。AIエージェントの場合は、代わりに spawn:agent スキルを使用してください。

変数

変数 デフォルト 説明
LOG_TO_FILE false デバッグファイルにターミナルの全出力を書き込みます
CAPTURE false ブロックして出力を直接返します

指示

必須 - 以下のワークフローステップを必ず順番に実行してください。ステップを省略しないでください。

  1. ユーザーが実行したいCLIコマンドを特定します
  2. 最初に <command> --help を実行して、構文とオプションを確認します
  3. fork_terminal() を使用して、新しいターミナルでコマンドを実行します

危険信号 - STOPしてクックブックに従ってください

以下のような状況になりそうな場合は:

  • --help を最初に確認せずにコマンドを実行しようとしている
  • コマンドの構文を知っていると思い込んでいる
  • 「簡単だから」という理由で --help ステップを省略する
  • AIエージェントを生成しようとしている(代わりに spawn:agent を使用してください)

STOP -> 最初に <command> --help を実行 -> 出力を確認 -> その後、続行

ワークフロー

必須チェックポイント - 続行する前にそれぞれを確認してください:

  1. [ ] ユーザーの要求を理解しました
  2. [ ] 確認: これはCLIコマンドであり、AIエージェントの要求ではありません
  3. [ ] '../agent/fork_terminal.py' を読んで、ツールを理解します
  4. [ ] クックブックに従ってください: './cookbook/cli-command.md' を読んでください
  5. [ ] チェックポイント: <command> --help を実行し、オプションを確認しました
  6. [ ] fork_terminal(command, log_to_file=False, log_agent_output=False) を実行します

クックブック

CLIコマンド

  • IF: ユーザーがAI以外のCLIコマンド(ffmpeg、curl、python、npmなど)を要求した場合
  • THEN: './cookbook/cli-command.md' を読んで実行してください
  • 例:
    • 「ffmpegを実行するために新しいターミナルを作成する」
    • 「curlでターミナルを生成する」
    • 「python script.pyを実行するためにターミナルをフォークする」
    • 「新しいターミナル: npm run build」

使い方

fork_terminal() 関数は ../agent/fork_terminal.py にあります:

from spawn.agent.fork_terminal import fork_terminal

# 簡単なコマンド実行(出力キャプチャなし)
fork_terminal("npm run build")

# デバッグ出力キャプチャあり
file_path = fork_terminal("ffmpeg -i video.mp4 output.gif", log_to_file=True)

# ブロッキングキャプチャ(完了を待機)
output = fork_terminal("python script.py", capture=True, log_to_file=True)

spawn:agent を代わりに使うべき時

ユーザーが以下のいずれかに言及した場合は、spawn:agent を使用してください:

  • Claude, Claude Code
  • Codex, OpenAI
  • Gemini, Google
  • Cursor
  • OpenCode
  • Copilot, GitHub Copilot
  • 「AIエージェント」、「コーディングエージェント」、「spawnエージェント」
📜 原文 SKILL.md(Claudeが読む英語/中国語)を展開

Purpose

Spawn a new terminal window to execute CLI commands. This skill is for generic command execution, NOT for spawning AI agents. For AI agents, use the spawn:agent skill instead.

Variables

Variable Default Description
LOG_TO_FILE false Write full terminal output to debug file
CAPTURE false Block and return output directly

Instructions

MANDATORY - You MUST follow the Workflow steps below in order. Do not skip steps.

  1. Identify the CLI command the user wants to run
  2. Run <command> --help first to verify syntax and options
  3. Execute the command in a new terminal using fork_terminal()

Red Flags - STOP and follow Cookbook

If you're about to:

  • Execute a command without checking its --help first
  • Assume you know the command syntax
  • Skip the --help step "because it's simple"
  • Spawn an AI agent (use spawn:agent instead)

STOP -> Run <command> --help first -> Review output -> Then proceed

Workflow

MANDATORY CHECKPOINTS - Verify each before proceeding:

  1. [ ] Understand the user's request
  2. [ ] VERIFY: This is a CLI command, NOT an AI agent request
  3. [ ] READ: '../agent/fork_terminal.py' to understand the tooling
  4. [ ] Follow the Cookbook: Read './cookbook/cli-command.md'
  5. [ ] CHECKPOINT: Ran <command> --help and reviewed options
  6. [ ] Execute fork_terminal(command, log_to_file=False, log_agent_output=False)

Cookbook

CLI Commands

  • IF: User requests any non-AI CLI command (ffmpeg, curl, python, npm, etc.)
  • THEN: Read and execute './cookbook/cli-command.md'
  • Examples:
    • "Create a new terminal to run ffmpeg"
    • "Spawn terminal with curl"
    • "Fork a terminal to run python script.py"
    • "New terminal: npm run build"

Usage

The fork_terminal() function is located at ../agent/fork_terminal.py:

from spawn.agent.fork_terminal import fork_terminal

# Simple command execution (no output capture)
fork_terminal("npm run build")

# With debug output capture
file_path = fork_terminal("ffmpeg -i video.mp4 output.gif", log_to_file=True)

# Blocking capture (waits for completion)
output = fork_terminal("python script.py", capture=True, log_to_file=True)

When to Use spawn:agent Instead

If the user mentions any of these, use spawn:agent:

  • Claude, Claude Code
  • Codex, OpenAI
  • Gemini, Google
  • Cursor
  • OpenCode
  • Copilot, GitHub Copilot
  • "AI agent", "coding agent", "spawn agent"