windows-terminal
БесплатноЗапускает вложенные скриптыНе проверенSpawn and manage Windows Terminal (wt.exe) windows and tabs from Node.js scripts and Claude Code hooks, with App Execution Alias resolution, correct CLI…
от oimiragieo★ 48 звёзд на GitHubОб этом скилле
Windows Terminal Skill
The App Execution Alias Problem
wt.exe is a Windows App Execution Alias registered at
%LOCALAPPDATA%\Microsoft\WindowsApps. App Execution Aliases:
- Work in interactive shells (cmd.exe, PowerShell terminal sessions)
- Are NOT resolvable from
child_process.spawn()in Node.js - Require the Windows shell infrastructure unavailable to child processes
User confirmed failure (2026-03-10):
PS C:\Users\oimir> wt.exe
# wt.exe : The term 'wt.exe' is not recognized...
# Even though WT_SESSION is set and wt works interactively
Reliable Approaches from Node.js
Approach A — cmd.exe /c start wt (PRIMARY — verified 2026-03-10):
cmd /c start is the Windows built-in for launching GUI windows from non-interactive
subprocess contexts (e.g. Claude Code hooks, piped processes). Plain cmd /c wt silently
fails to produce a visible window from such contexts. The empty string '' is a required
title placeholder for start when passing arguments to the target program.
Two additional requirements when spawning claude:
- Unset
CLAUDECODE: Claude Code sets this env var; childclaudeprocesses detect it and refuse to start ("cannot be launched inside another Claude Code session"). Clear it in the cmd command withset CLAUDECODE=before invokingclaude. cmd /kkeeps the window open after the command finishes (useful for interactive use or-pprint-mode demos). Usecmd /cif you want the window to close on exit.
// VERIFIED working from non-interactive subprocess (Claude Code hook, Bash tool, etc.)
spawn(
'cmd.exe',
[
'/c',
'start',
'', // 'start' = Windows GUI window launcher; '' = required title placeholder
'wt',
'-w',
'new',
'new-tab',
'--title',
'My Title',
'cmd',
'/k',
'set CLAUDECODE= && claude', // unset CLAUDECODE before launching claude
],
{ shell: false }
);
// Note: no detached/stdio/unref needed — 'start' fully detaches by design
Approach B — PowerShell Start-Process (alternative):
Start-Process uses the Windows shell infrastructure to resolve aliases.
spawn(
'powershell.exe',
[
'-NoProfile',
'-Command',
"Start-Process wt -ArgumentList \"-w new new-tab --title 'My Title' cmd /k 'set CLAUDECODE= && claude'\"",
],
{ detached: true, shell: false, stdio: 'ignore' }
);
Approach C — PowerShell Start-Process cmd (no WT required): Fallback when Windows Terminal is not installed or WT_SESSION is not set.
spawn(
'powershell.exe',
['-NoProfile', '-Command', 'Start-Process cmd.exe -ArgumentList "/k claude" -WindowStyle Normal'],
{ detached: true, shell: false, stdio: 'ignore' }
);
WT CLI Syntax (from learn.microsoft.com, verified 2026-03-10)
wt [options] [command ; ]
If no command is specified, new-tab is used by default.
Global Options
| Option | Short | Description |
|---|---|---|
--window <id> |
-w |
Target window. new/-1 = always new window; 0/last = most recent; name = named window |
--maximized |
-M |
Launch maximized |
--fullscreen |
-F |
Launch fullscreen |
--focus |
-f |
Launch in focus mode |
--pos x,y |
Launch at position | |
--size c,r |
Launch with columns/rows |
Subcommands
new-tab (nt)
wt new-tab [options] [commandline]
-p <profile> Profile name
-d <dir> Starting directory
--title <text> Tab title
--tabColor <hex> Tab color (#RGB or #RRGGBB)
--colorScheme <name> Color scheme override
--suppressApplicationTitle
--use
Установить windows-terminal в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
ReadWriteBashВложенные файлы
FAQ
Что делает скилл windows-terminal?
Spawn and manage Windows Terminal (wt.exe) windows and tabs from Node.js scripts and Claude Code hooks, with App Execution Alias resolution, correct CLI flags, and anti-patterns to avoid
Как установить скилл windows-terminal?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл windows-terminal запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
mcp-builder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
от Anthropicclaude-api
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
от Anthropicalgorithmic-art
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
от Anthropicmcp-integration
This skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…
от Anthropic