Skip to content

Commit 8109635

Browse files
committed
ai(rules[AGENTS]): Expand shell command splitting rule with example
why: The rule was a bare one-liner with no example. Sibling projects (libtmux, tmuxp, vcspull) include the full convention with good/bad examples showing indented continuation lines. what: - Add detail: "Each flag or flag+value pair gets its own continuation line, indented. Positional parameters go on the final line." - Add good/bad example using claude mcp add with flags
1 parent 1c0cb28 commit 8109635

1 file changed

Lines changed: 17 additions & 1 deletion

File tree

AGENTS.md

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -363,7 +363,23 @@ Bad:
363363
uv run pytest
364364
```
365365

366-
**Split long commands with `\` for readability.**
366+
**Split long commands with `\` for readability.** Each flag or flag+value pair gets its own continuation line, indented. Positional parameters go on the final line.
367+
368+
Good:
369+
370+
```console
371+
$ claude mcp add \
372+
--scope user \
373+
libtmux -- \
374+
uv --directory ~/work/python/libtmux-mcp \
375+
run libtmux-mcp
376+
```
377+
378+
Bad:
379+
380+
```console
381+
$ claude mcp add --scope user libtmux -- uv --directory ~/work/python/libtmux-mcp run libtmux-mcp
382+
```
367383

368384
## Debugging Tips
369385

0 commit comments

Comments
 (0)