remote-ops
Skill0 starsChanged 35 days agoApache-2.0View on GitHub
Use when constructing ssh/kubectl commands to dMon or robo-dog, or when waiting on long/background jobs — quoting patterns that survive the remote shell, the zsh traps, remote python-heredoc, background-wait discipline, and token sanitizing.
1 other project uses a version of this.
Adopted by
Most recently taken up by
- DamonRabie/agents_librarytheir own version, first seen Aug 22, 2026
Other versions1 project uses a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 1
- DamonRabie/agents_library★ 1same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository21 other files it gives its agents.
- browserbaseSkill
- cairnSkill
- developmentSkill
- dispatchSkill
- house-styleSkill
- kimi-subagentSkill
- lean-design-standardSkill
- mergeSkill
- nexus-authSkill
- nexus-jiraSkill
- orchestrateSkill
- orchestratorSkill
- planningSkill
- releaseSkill
- reviewSkill
- securitySkill
- specSkill
- ticket-pipelineSkill
- vision-reviewSkill
- workflow-basicsSkill
- writing-skillsSkill
The file
Files
Remote ops — commands that survive the wire
Transcript audit (2026-07-08) found ~25 shell failures and ~12 wait-frictions with recurring signatures. Every rule below is one of those signatures, inverted.
Quoting (the failure class)
- One quote layer only. Wrap the whole remote script in single quotes; never nest single quotes inside (
unmatched '/unexpected EOFwere repeat offenders). Need quotes inside? Use double quotes inside the single-quoted wrapper, or go to rule 2. - Anything non-trivial → heredoc, not quote-juggling. Two blessed forms:
- Remote python:
ssh host 'python3 - <<'"'"'EOF'"'"' … EOF'— or simpler, pipe it:cat script.py | ssh host python3 -. - Remote multi-command: write the script locally,
scpor pipe it:ssh host 'bash -s' < script.sh. Past ~5 lines of remote logic, a piped script beats inline quoting every time.
- Remote python:
- Section separators: never
echo ===. zsh (old Mac sessions) and even bash-with-eval choke on bare==(== not found). Useecho "== label"(quoted, single pair) — the convention that works everywhere. - Don't use zsh-reserved variable names in anything that might run under zsh:
statusis read-only there (3 failures). Preferst,rc. - Sanitize token-bearing output: pipe through
sed -E "s/gh[a-z]_[A-Za-z0-9_]+//g"on any push/auth/log output (cairn skill rule, generalized). - Message/args with parens or shell-specials over ssh break the remote parse — keep commit messages and quoted args to plain prose (cairn gotcha, applies to all remote commands).
Waits and background jobs (the friction class)
- Never
sleep N; check— the harness blocks sleep-chains (4 hits). To wait on a condition:Bash(run_in_background: true)withuntil <check>; do sleep 5; done— one completion notification. For recurring events: Monitor. - Polling loops get a bounded lifetime:
for i in $(seq 1 N)+ break-on-done, neverwhile truein a foreground call — 8 timeout kills in the logs were unbounded or over-long polls. Size the timeout to the real operation (timeout:param up to 600000). - Long remote jobs:
nohup … > log 2>&1 &on the remote, return immediately, then wait with rule 7 against the log/pidfile. Don't hold the ssh session open for the job's duration.
Path + existence discipline
- Don't guess paths on remote or local — verify first (
ls/test -d) beforecd/Read: 18 file-does-not-exist failures were guessed paths (~/shadow/src/cairnvs~/src/cairn). Onelsis cheaper than one failed round-trip. - kubectl on dMon needs sudo from croft's non-interactive ssh:
sudo k3s kubectl …(jacinta's interactive shell has sans-sudo config; ssh sessions don't).
Completion criterion
A remote command block is ready to run when: single quote-layer (or piped script), no bare ==, no zsh-reserved names, token-sanitized if auth-adjacent, bounded wait, and any assumed path verified in the same block or a prior one.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

