helix-interact
БесплатноБез исполняемых скриптовНе проверенTest Helix editor config changes, debug LSP issues, or observe editor behavior by running Helix in a Rex session and driving it with rex send/capture. Use…
Об этом скилле
Interact with the Helix editor through Rex, typically to iterate on configuration changes or fix config problems. Also useful for testing LSP functionality or observing editor behavior.
If the user specifies a file path to use for testing, open that file in helix. For a language name (like "rust", "python", "typescript"), create a temporary file with representative code. Some language servers require a full project structure (e.g., cargo init for Rust) rather than a standalone file.
Driving Helix this way is timing-sensitive: captures race LSP startup and popups, so a failed check is often the harness rather than the config. Verify that the config loads without errors and that the feature works once. If a check keeps failing in ways that look like capture timing rather than a config problem, hand it to the user to try interactively instead of retrying.
Technique
Helix needs a PTY, which the Bash tool doesn't have. Run it in its own Rex session, which no client displays, so it doesn't touch the user's layout:
rex new hx-test -c "$PWD" -- hx helix/init.scm # session label hx-test
rex send -s hx-test ':ah-comment' # literal text
rex send-key -s hx-test enter # keys: escape, alt+enter, ctrl+w, up, ...
rex capture -s hx-test --trim # the screen as text
rex kill hx-test
Key points:
rextalks to the server over a Unix socket the sandbox blocks: run these with the sandbox disabled.- Always pass
-s hx-test. Without it,rexscopes to$REX_SESSION, so-b <block>alone fails withblock target ... not foundeven thoughrex block ls -s hx-testlists the block, andsendwithout a target types into your own pane. - A session with no client is 80×24 and there's no way to resize it. Layout bugs that only show at other sizes need a visible pane (below) or the user.
- Use
rex sendfor text andrex send-keyfor keys, in Rex's key syntax (ctrl+c,alt+enter,shift+left). - To restart Helix after a config or Steel change,
rex kill hx-testand create a new session. Do not rely on:q!thenhx: with two views open the first:q!only closes one, and thehxkeystrokes land in the still-running editor, so the "retest" runs the old code. rex newwithout--keep-opencloses the session's pane whenhxexits, so a crash or startup failure shows up as the session being empty. Add--keep-opento read whathxprinted on the way out.- Add
sleep 0.2-0.5before capturing to allow LSP analysis (slower LSPs may need 1-2 seconds) - Use
:config-reloadand:lsp-restartwhen testing config changes - Check config statically first:
hx --healthorhx --health rust
Letting the user watch: when the user wants to see the editor, split your own pane instead of using a hidden session (see the ah-panes skill): rex split --block "$REX_BLOCK" --split above --ratio 50 --focus=false --cwd "$PWD" --label hx -- hx file. It prints the block id; then drive it with -b <id> (your own session, so no -s) and close it with rex block close <id>.
Docs
- The Helix docs are https://docs.helix-editor.com
- For Steel docs, look at https://raw.githubusercontent.com/mattwparas/helix/refs/heads/steel-event-system/steel-docs.md (it's a big file, so download the text and grep it) and https://raw.githubusercontent.com/mattwparas/helix/refs/heads/steel-event-system/STEEL.md
Steel Command Development
When converting keybinding commands to Steel functions:
Command expansions like %{buffer_name} work in command strings but must be replaced with Steel API calls in functions:
- Current file:
(helix.static.cx->current-file) - Current selection:
(helix.static.current-highlighted-text!) - Look for
cx->functions in steel-docs.md for other context access
Shell commands:
- Call with variadic args:
(helix.run-shell-command "cmd" "arg1" "arg2") - Output goes to popup, not statusline (unlike
:echo %sh{...}) - For multiple args from a list:
(apply helix.run-shell-command args-list)
Testing:
- Shell command output appears in popups (captured by
rex capture), unlike:echo %sh{...}which outputs to the status line - The statusline in a capture (
NOR name [+] 12:1 440) gives the cursor line and buffer length; that is the cheapest way to assert where a command left the cursor.rex capture -s hx-test --trim | tail -2shows the statusline plus any message under it. rex capture --format=htmlkeeps styling, but checking it is fiddly; for coloring questions, ask the user for a screenshot.
Steel plugins (cogs in ~/.config/helix/cogs, from helix/cogs/ in dotfiles):
- Cogs and
init.scmare read at startup only; restart Helix after each edit. - Pure functions (parsing, string handling, running a subprocess) can be checked without Helix:
steel file.scmwith(require-builtin steel/process).wait->stdoutreturns anOkwrapper; unwrap withOk->value.steel/processis undocumented in `steel-
Установить helix-interact в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл helix-interact?
Test Helix editor config changes, debug LSP issues, or observe editor behavior by running Helix in a Rex session and driving it with rex send/capture. Use when iterating on helix config.toml, languages.toml, Steel scripts, or troubleshooting language server problems.
Как установить скилл helix-interact?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл helix-interact запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
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