一键导入
kitty-terminal
Use when you need detailed kitty terminal API reference, remote control commands, window management, or advanced kitty integration patterns.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Use when you need detailed kitty terminal API reference, remote control commands, window management, or advanced kitty integration patterns.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Use when creating or modifying bash shell scripts, needing script templates, error handling patterns, or shell scripting best practices.
Use when creating Justfiles, needing modern command runners, or implementing just command runner patterns for task automation.
Use when creating Makefiles, needing build automation, defining make targets, or implementing standard makefile patterns and recipes.
Comprehensive guide for Python type annotations, type checking, and modern typing patterns. Use when: (1) Adding type hints to Python code, (2) Configuring mypy/pyright/ty type checkers, (3) Understanding generics, protocols, and advanced type patterns, (4) Migrating to modern Python typing, (5) Setting up strict type checking in CI/CD, (6) Building type-safe APIs and libraries. Covers Python 3.10+ modern syntax, type narrowing, structural typing, and best practices.
Use when you need to explore, search, or understand codebases using structural AST patterns. Ideal for finding specific code patterns, understanding code architecture, discovering API usage, or locating code smells across multiple files.
Use when you need to perform code refactoring, semantic transformations, or structural rewrites across multiple files. Ideal for API migrations, code modernization, breaking change adoption, or systematic code transformations.
| name | kitty-terminal |
| description | Use when you need detailed kitty terminal API reference, remote control commands, window management, or advanced kitty integration patterns. |
Complete reference for kitty terminal emulator remote control capabilities.
Kitty is a GPU-based terminal emulator with extensive remote control features. This skill provides the complete API reference for creating windows, tabs, and managing terminal sessions programmatically.
kitty @ --to unix:/tmp/kitty_{pid} launch --type=tab --title="Command Name" bash -c "your_command"
New Tab:
kitty @ --to unix:/tmp/kitty_{pid} launch --type=tab --title="Name" --cwd=current bash -c "command"
New Window:
kitty @ --to unix:/tmp/kitty_{pid} launch --type=window --title="Name" --cwd=current bash -c "command"
Overlay Window:
kitty @ --to unix:/tmp/kitty_{pid} launch --type=overlay --title="Name" bash -c "command"
Split Window:
kitty @ --to unix:/tmp/kitty_{pid} launch --type=window --location=vsplit --title="Name" bash -c "command"
# Close by ID
kitty @ --to unix:/tmp/kitty_{pid} close-window --match=id:{window_id}
# Close by title
kitty @ --to unix:/tmp/kitty_{pid} close-window --match=title:"Window Title"
kitty @ --to unix:/tmp/kitty_{pid} focus-window --match=id:{window_id}
kitty @ --to unix:/tmp/kitty_{pid} focus-window --match=title:"Window Title"
kitty @ --to unix:/tmp/kitty_{pid} send-text --match=id:{window_id} "text to send"
kitty @ --to unix:/tmp/kitty_{pid} resize-window --match=id:{id} --increment 10
if [ -S "/tmp/kitty_$KITTY_PID" ] && command -v kitty >/dev/null 2>&1; then
echo "Kitty remote control available"
KITTY_AVAILABLE=1
fi
# List all windows with IDs
kitty @ --to unix:/tmp/kitty_{pid} ls
| Option | Description |
|---|---|
--hold | Keep window open after command exits |
--cwd=current | Use current working directory |
--copy-env | Copy environment variables |
--env VAR=value | Set specific environment variable |
--location=vsplit/hsplit | Split direction for new windows |
kitty @ --to unix:/tmp/kitty_$KITTY_PID launch --type=tab --title="htop" --hold htop
kitty @ --to unix:/tmp/kitty_$KITTY_PID launch --type=tab --title="Server" --cwd=current bash -c "npm run dev"
# Editor on left, terminal on right
kitty @ launch --type=window --location=vsplit --title="Editor" vim
cd project
kitty @ launch --type=window --location=hsplit --title="Terminal" bash
--title for easy window identification--cwd=current to maintain context--hold for commands that exit immediately (to see output)" around the bash -c argument