slash-chain

Reviewed at commit 0e4c0dd New version, not yet reviewed

Runs slash commands joined with && one after another, waits for each command's turn, pane or dialog to end, and stops the chain at a command that failed or a…

Made by
Kerem Gok
What we checked

Lets you type several slash commands joined with && (for example /a && /b) and runs them one after another, waiting for each to finish and stopping at a failure. It adds a short note and a small fail tool for Claude on chained steps. It reads no files, runs no programs and makes no network calls; it only stores whether it is on.

Review details

Static review of the source at the pinned commit; not run. Hooks: session.start (registers /slash-chain and a tool named fail that the model can call to stop the chain), tool.describe and tool.call for mcp__slash-chain__fail, command.run for /slash-chain (status, stop, on, off) and for any command whose arguments contain '&& /name', skill.prompt (appends a bracketed note about the chain to a chained step's prompt text), ui.open and ui.close (waits for a focused pane), turn.complete (advances or stops the chain), and prompt.submit (cancels the chain when you type something else). Runtime calls: $.command.run to run the later steps from a $.clock.after timer, $.tool.register, $.store get and set for the enabled flag, $.ui.log. The chain only runs commands you typed in the && line, one per step; it does not invent commands. It does not read prompts beyond checking the origin and whether a prompt starts with the running command. No fs, process, env or network use. The pre-scan tool-change hit is the fail tool handler, which only stops the chain.

What it uses
  • Reads your prompts: yes
  • Sees tool calls: yes
  • Blocks or changes tool calls: no
  • Reads or writes files: no
  • Runs programs on your machine: no
  • Calls the model (uses tokens): no
  • Sends data over the network: no
  • Stores data: yes
  • Shows something on screen: yes
Hooked events

Runs slash commands joined with && one after another, waits for each command's turn, pane or dialog to end, and stops the chain at a command that failed or a turn that ended without an answer.

Made this mod? Add a badge to your README

modsforClaude badge for slash-chain

Paste this into your README. The badge says reviewed once the current version has been reviewed, and links readers to this page.

[![Listed on modsforClaude](https://modsforclaude.com/badge/slash-chain.svg)](https://modsforclaude.com/mods/slash-chain/)

← All mods