← ClaudeAtlas

handoff-script-hygienelisted

The discipline for writing a script someone else will run, and for the moment you are about to ask them to run it again. A ledger of 19 incidents from making one person redo the same work five times, plus the checks that kill each one mechanically. Use when: you are about to borrow someone's hands. Do NOT use when: you can finish it yourself.
RICK-ORPHEN/agent-discipline-skills · ★ 0 · AI & Automation · score 70
Install: claude install-skill RICK-ORPHEN/agent-discipline-skills
# Hygiene for tools you hand to a human — a record of saying "run it again" five times > "You are making too many mistakes. Record all of it and turn it into a skill." — the owner Over one evening and the following morning, **the same single push required five runs of a handed-over script, and the diagnostic script was run three more times** (two more followed). Not one was technically hard. Every one could have been caught before handing it over. The whole thing is in the ledger below, and the prevention is written as procedure. ## 0. The 60-second check before handing anything over ``` [ ] **default to `#!/bin/bash`.** Use zsh only when something actually needs it. Half the rules in this list exist because of zsh's differences, and you can only check a shell you can run — `bash -n` exists nearly everywhere, `zsh -n` does not [ ] chmod +x run **after the last edit** (sed -i and file writes drop the bit) [ ] shebang and syntax agree: #!/bin/bash → `bash -n`; #!/bin/zsh → `zsh -n` [ ] zsh only: (N) on globs; no command lines stored in "$VAR" (use a function or ${=VAR}) [ ] --no-pager on git output commands (log / show / diff / branch) [ ] stdin provided for anything that prompts (rm confirmation, login, read) [ ] stderr of fallible external commands is shown on screen (not >/dev/null 2>&1) [ ] a fallback route for network failure (ssh 22 → ssh.<host>:443) [ ] ALL the checks CI runs were run locally (not one rule in isolation) [ ] one line written afterwards saying