用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/debuglebowski/slayzone --skill slay-pty命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
基于 SOC 职业分类
正在显示 SKILL.md
| name | slay-pty |
| description | Interact with PTY terminal sessions via the slay CLI |
| trigger | auto |
PTY commands interact with terminal sessions managed by the SlayZone app — the actual terminal tabs you see in each task. Use these to read output, send input, and orchestrate AI coding agents programmatically.
All commands support ID prefix matching.
slay pty list [--json] — list active PTY sessions.
slay pty buffer <id> — dump the full terminal buffer content to stdout.
slay pty follow <id> [--full] — stream PTY output in real time.
--full replays the existing buffer first before streaming new outputslay pty submit <id> [text] [--wait] [--no-wait] [--timeout <ms>] — default for sending input. High-level text submission with AI-mode awareness.
claude-code, internal newlines are encoded as Kitty shift-enter sequences (\x1b[13;2u) so multi-line text is submitted as a single inputidle state (= AI CLI ready for input) before sending. Automatic for AI modes. Use --no-wait to send immediately (default for plain terminal modes)slay pty type <id> <data> (alias: write) — send raw bytes to PTY stdin. Use only when submit is wrong — e.g. appending text mid-prompt without submitting, or sending exact byte sequences. No newline added, no encoding.
Key helper subcommands (slay pty <key> <id>) — send a single control sequence:
arrow-up, arrow-down, arrow-left, arrow-right — cursor / history navtab, shift-tab — autocomplete; shift-tab cycles claude-code modes (plan/auto-accept/normal)backspace — delete charescape — ESC key (double-invoke to cancel a claude-code generation)cancel — Ctrl+C interruptslay pty wait <id> [--state <state>] [--timeout <ms>] [--json] — block until a session reaches a specific state.
idle (AI ready for input)slay pty respawn <task-id> — kill + remount a task's main PTY. Task must be open in the app. Task-id prefix supported.
slay pty create <task-id> [--mode <m>] [--label <l>] [--no-wait] [--timeout <ms>] — create a new terminal tab (new group) for a task.
--mode defaults to terminal (plain shell). Use claude-code, codex, etc. for agent tabs/api/pty by default (5s timeout). --no-wait returns immediatelyslay pty split <id> [--no-wait] [--timeout <ms>] — add a new pane to the same group as an existing tab/session.
<id> accepts a full session id (taskId:tabId) or just the tab id; prefix matching supportedterminal modecreateslay pty kill <id> — terminate a PTY session.
Submit a prompt to a Claude Code session and wait for completion:
slay pty submit <id> "Fix the failing tests in src/auth.ts"
slay pty wait <id> --state idle --timeout 300000
slay pty buffer <id> # read the result
Pipe multi-line input:
cat prompt.md | slay pty submit <id>