edit
/edit
Opens an editor on the current worktree: nvim in a split beside this agent's tmux, Herdr app or Herdr TUI pane, or a named editor such as zed, code or cursor as its own process. Use when asked to open the worktree in an editor. Not for watching the diff (critique).
- Author
- langri-sha ↗
- Repository
- skills ↗
- Licence
- MIT
- Last repository change
- 13.11.2026
Assessment and security
- Files in this package
- 2
- Scripts
- 1
- HTML comments
- 0
- URLs in SKILL.md
- 0
No signals detected. Repository changed on 13.11.2026, without references to retired models or APIs.
MIT, open: use and modify while retaining author attribution.
- 1 scripts in this package. Review them before installing, as Claude may execute them.
Scripts: scripts/edit.sh
What it does and when to use it
Opens an editor on the current worktree: nvim in a split beside this agent's tmux, Herdr app or Herdr TUI pane, or a named editor such as zed, code or cursor as its own process. Use when asked to open the worktree in an editor. Not for watching the diff (critique).
Original author description
Opens an editor on the current worktree: nvim in a split beside this agent's tmux, Herdr app or Herdr TUI pane, or a named editor such as zed, code or cursor as its own process. Use when asked to open the worktree in an editor. Not for watching the diff (critique).
How it works
- Workflow
SKILL.md preview
---
name: edit
description: >-
Opens an editor on the current worktree: nvim in a split beside this agent's
tmux, Herdr app or Herdr TUI pane, or a named editor such as zed, code or
cursor as its own process. Use when asked to open the worktree in an editor.
Not for watching the diff (critique).
metadata:
author: langri-
version: '1.2.1'
---
# edit
Open an editor in the current worktree.
- **`/edit`** (no args) — open `nvim` in a right-hand tmux, Herdr app or Herdr
TUI split pane.
- **`/edit <command>`** — launch `<command> .` as a standalone process (e.g.
`/edit zed`, `/edit code`, `/edit cursor`).
## Workflow
`<skill-dir>` is this skill's directory. Run the script from the current
worktree: it opens the editor in its working directory.
### nvim in a split
With no argument:
```bash
bash <skill-dir>/scripts/edit.sh
```
It splits this agent's own pane to the right, in whichever of tmux, the Herdr
app or the Herdr TUI owns this agent's terminal, and starts nvim there. When
none does, it says so and exits 1; a named editor still works. A sandbox that
hides parent processes or a multiplexer's socket ends the same way, so rerun it
outside the sandbox. In the Herdr app the split does not move the user's focus
and needs the app window to be open; a failed split prints the app's
`{"error": …}` reply and exits 1. The tmux and Herdr app panes close when nvim
exits; the Herdr TUI pane keeps its shell.
Report the directory and, in the Herdr app, the new terminal's address, or in
the Herdr TUI, the new pane's ID.
### A named editor
The script runs without your shell's aliases, so expand an alias first, then
pass the command:
```bash
EDITOR_CMD=<arg>
[ "$(type -t "$EDITOR_CMD")" = alias ] && EDITOR_CMD=${BASH_ALIASES[$EDITOR_CMD]}
bash <skill-dir>/scripts/edit.sh $EDITOR_CMD
```
`$EDITOR_CMD` stays unquoted so an alias's flags split into arguments. The
script launches `<command> .` in the background, without needing a multiplexer,
and reports a launch that fails at once with its stderr.
Report the directory and the command launched.
Files in this package (2)
- SKILL.md 2 KB
- scripts/edit.sh 3 KB
Versions
| Repository | Score | Licence |
|---|---|---|
| This page · langri-sha/skills | 95 | MIT |
| bankielewicz/mod-builder | 100 | MIT |
| JunLin615/os-optics-kit | 100 | MIT |
| jakeschincariol/master-skills | 100 | MIT |
| yyu0310/ai-slide-maker | 96 | MIT |
| gagoar/iceberg | 87 | MIT |
Database snapshot: 13.11.2026 · package version 02bc23ab2064 (SHA-256 digest of the entire package)
Downloads in the last 30 days: 2 · ranking
Report a problem with this skill: harmful content, incorrect descriptions or an author’s removal request.
Similar skills
- 95critique
Opens a critique watcher that reviews local changes, in a split beside this agent's tmux, Herdr app or Herdr TUI pane. Use when asked to start critique or to watch the working changes. Not for a new worktree session with its own watcher (create-session). - 95elate
Starts a parallel agent, codex or Claude Code, in a split beside this agent's tmux, Herdr app or Herdr TUI pane, seeded to read that pane as its brief, with any extra context appended. Use when asked to elate, or to hand the conversation to a parallel agent. Not for a new… - 100show-diff
Open a tmux split running diffview.nvim so the user can review the agent's recent changes. Use proactively after non-trivial edits, or when the user asks to "show the diff", "open a diff viewer", or similar. - 100zed
Zed is a fast, GPU-accelerated code editor written in Rust, with built-in AI agent and edit predictions, real-time collaboration, Vim mode and WebAssembly extensions. Use when the user wants to install or configure Zed, edit settings.json or keymap.json, set formatters per… - 95cursor
Control Cursor AI code editor via CLI. Use when opening files, comparing diffs, managing extensions, or configuring Cursor as git editor. - 100vibing-worktree-create
Create a new git-worktree-backed isolated work area for the current vibing.nvim chat via natural language — no separate UI. Use when the user wants to isolate work in its own worktree ("split this into its own worktree", "start this in isolation", "give this its own branch").