tandem
/tandem
Work alongside the user in their live Neovim, Vim, or MacVim session. Read unsaved buffers, open files and splits, run any editor command, highlight code with notes, and show Git comparisons. Use when launched by :Claude, :Codex, :ClaudeTour, or :CodexTour, or when asked to drive the connected editor.
- Author
- stevekrenzel ↗
- Repository
- tandem ↗
- Licence
- MIT
- Last repository change
- 10.11.2026
Assessment and security
- Files in this package
- 2
- Scripts
- 0
- HTML comments
- 0
- URLs in SKILL.md
- 0
No signals detected. Repository changed on 10.11.2026, without references to retired models or APIs.
MIT, open: use and modify while retaining author attribution.
What it does and when to use it
Work alongside the user in their live Neovim, Vim, or MacVim session. Read unsaved buffers, open files and splits, run any editor command, highlight code with notes, and show Git comparisons. Use when launched by :Claude, :Codex, :ClaudeTour, or :CodexTour, or when asked to drive the connected editor.
Original author description
Work alongside the user in their live Neovim, Vim, or MacVim session. Read unsaved buffers, open files and splits, run any editor command, highlight code with notes, and show Git comparisons. Use when launched by :Claude, :Codex, :ClaudeTour, or :CodexTour, or when asked to drive the connected editor.
How it works
- Modes
- The tandem command
- Working with the user
- Guided tours
SKILL.md preview
--- name: tandem description: Work alongside the user in their live Neovim, Vim, or MacVim session. Read unsaved buffers, open files and splits, run any editor command, highlight code with notes, and show Git comparisons. Use when launched by :Claude, :Codex, :ClaudeTour, or :CodexTour, or when asked to drive the connected editor. --- You are working beside the user's editor as an equal partner: anything they can do in it, you can do too. The `tandem` command reads and drives the editor from your window, which starts as the code window they launched you from. Use it rather than building another editor connection. ## Modes - **partner**: help with the user's coding task. Navigate, explain, implement, debug, and test at the task's natural pace. - **tour**: give a guided walkthrough; see "Guided tours" below. The launcher names the starting mode. The user can switch modes at any time. ## The tandem command ```sh tandem state # code window, cursor, open buffers, unsaved changes tandem read [FILE] [--start N] [--end N] # live text, including unsaved edits tandem show FILE [--start N] [--end N] [--note TEXT] tandem highlight --start N [--end N] [--note TEXT] tandem diff [FILE] [--base REV] # compare with a Git revision tandem clear # remove highlights and the comparison tandem ex COMMAND # run any Ex command in your window ``` - Output is JSON with `ok` and either `result` or `error`; failures exit nonzero. - Paths resolve from your working directory. Lines and columns are one-based and inclusive. `read` returns 80 lines unless you pass `--end`. - `show` opens a file in the code window; with a range or note it also highlights. `highlight` marks lines of the file already shown. A note appears above the range without changing the file; keep notes short and explain in chat. - `diff` compares the live buffer with `HEAD`, or with `--base`, in a temporary read-only pane. `show`, `diff`, and `clear` replace the previous highlight and comparison. - `ex` runs a command in your window as if the user typed it after `:`, and returns its output. Use it for everything else: splits (`vsplit FILE`, `split`), tabs, `wincmd`, jumps and edits with `normal!`, folds, searches, quickfix, help. Each line of a multi-line argument is a separate command. Paths resolve from the editor's working directory, which `state` reports. - Your window moves with your commands, as the user's cursor does: after `tandem ex 'vsplit FILE'`, you are in the new split, and `show`, `highlight`, `read`, and `diff` act there. The user stays in their own window and mode. To move to another window, use `tandem ex 'call win_gotoid(ID)'` with an ID from `state`, whose `layout` gives the user's tab as nested `row` (side by side) and `col` (stacked) splits. - Run shell commands with your own tools, not `:!`, so your usual permissions apply. Avoid commands that wait for input, such as `:s///c` or `input()`; the editor stops answering until the user responds. - If `tandem` is not on your PATH, run `"$TANDEM_CLI"` instead. - If `tandem` cannot reach the editor and your shell is sandboxed, rerun the same `tandem` command with permission to run outside the sandbox; the user can approve the `tandem` prefix once. Otherwise ask the user to restart `:Claude` or `:Codex`. Never start another editor or connect to a different one. ## Working with the user - Start with `tandem state`. Live buffers show what the user sees; trust them over the files on disk. - When `state` shows `"focus": "code"`, the user is working in your window. Ask before moving it. Tandem refuses to act there while they are typing. - Before editing a file, check whether its buffer is `modified`. Never overwrite, save, reload, or discard the user's unsaved changes, with your tools or with commands such as `:w`, `:e!`, `:bd!`, or `:q!`, unless they ask. If a buffer and its file differ, settle that with the user before editing the file. Don't quit the editor. - Keep the user's layout tidy: close splits and tabs you opened once they stop helping, unless the user wants them. The user sees only their current tab, so tell them when you open another. - Edit files with your usual tools. Tandem reloads buffers without unsaved changes from disk before each command, so `show` displays your edits. - Clear highlights and comparisons once they stop helping. The user can run `:TandemClear` at any time. ## Guided tours - If no topic was given, ask what the user wants to explore. - Read the relevant code and Git history before choosing a route. Show one coherent stop at a time, explain its role with file and line references, and wait for the user's "next" or question. Keep going without pauses only when they ask you to. - For a branch or pull request, find its intended base and compare against the merge base (`git merge-base BASE HEAD`). Confirm the checkout matches the pull request before presenting it as the implementation. Use `HEAD` to show uncommitted changes. - A tour does not authorize edits, saves, or branch changes. If the user asks for changes, switch to partner mode and keep their unsaved work intact. - Clear the highlights and comparison when the tour ends.
Files in this package (2)
- SKILL.md 5 KB
- scripts/tandem 4 KB
Versions
| Repository | Score | Licence |
|---|---|---|
| This page · stevekrenzel/tandem | 100 | MIT |
| bloknayrb/tandem | 100 | MIT |
| anq-no-one/skills | 100 | MIT |
| ivanmeda993/tandem | 100 | MIT |
| bgmacris/quimera-ai | 90 | MIT |
Database snapshot: 13.11.2026 · package version 80352f5c9e06 (SHA-256 digest of the entire package)
Downloads in the last 30 days: 1 · ranking
Report a problem with this skill: harmful content, incorrect descriptions or an author’s removal request.
Similar skills
- 100neovim
Neovim is a terminal text editor configured in Lua, with a built-in LSP client, Treesitter parsing and, since 0.12, a built-in plugin manager (vim.pack). Use this skill to install Neovim, write or repair an init.lua, add plugins, wire up language servers with vim.lsp.config and… - 95vim-cheatsheet
Use when the user needs Vim commands: modes, movement, editing operators, search and replace, visual mode, macros, registers, marks, buffers, windows and tabs, and saving or quitting without losing work. - 100nvim-config
Native Neovim config idioms and conventions — use whenever writing, reviewing, or modifying any Neovim configuration that uses Neovim's built-in conventions WITHOUT a plugin manager framework (no lazy.nvim, packer, etc.). Covers directory structure, vim.pack plugin management,… - 100neovim
Interact with the user's running Neovim instance via RPC. Use this skill when you need to execute Lua or Vimscript inside Neovim, query buffer state, send commands, or interact with the Neovim runtime in any way. Triggers when the user asks about their current Neovim session,… - 100neovim
Maintain the Stow-managed Neovim config in ~/.dotfiles/home/.config/nvim for Neovim 0.12+, lazy.nvim, vim.lsp.config, and nvim-treesitter main. Use to validate or repair Neovim, change plugins, diagnose measured startup regressions, or fix keymaps and LSP. Route whole-dotfiles… - 100vim
Expert Vim assistance covering modal editing, .vimrc configuration, registers, macros, search/replace, and plugin management via vim-plug. Use when editing text efficiently in terminal environments, writing Vimscript, recording macros, or configuring core Vim settings.