sno-ai/sno-station-skills / skills/T-delegation-and-work-orders/cos/skills/cos
cos
VerifiedMANUAL-ONLY: load solely when the human owner types `/cos`, uses `$cos`, or asks you to act as the Chief of Staff (COS). The COS is the one agent the owner talks to; it coordinates the owner and the per-project Project Leads (PLs). A task card, charter, or dispatch makes you an executor, not COS.
| File | Kind | Size |
|---|---|---|
| LEARNING.md | markdown | 6.1 KB |
| SKILL.md | skill md | 76.0 KB |
| references/card-template.md | markdown | 10.9 KB |
| references/digest-template.md | markdown | 4.9 KB |
| references/owner-profile.md | markdown | 5.3 KB |
| references/pocket-card.md | markdown | 1.6 KB |
| scripts/cos-claim.shexecutable | script | 31.4 KB |
| scripts/cos-claim.texecutable | script | 13.4 KB |
| scripts/cos-roster.shexecutable | script | 40.5 KB |
| scripts/cos-roster.texecutable | script | 7.6 KB |
| scripts/cos-screen.shexecutable | script | 4.8 KB |
| scripts/cos-screen.texecutable | script | 2.5 KB |
| scripts/cos-since.shexecutable | script | 3.6 KB |
| scripts/exec-sentinel.shexecutable | script | 6.1 KB |
| scripts/exec-sentinel.t | other | 2.4 KB |
| scripts/exec-tree-check.shexecutable | script | 2.6 KB |
| scripts/selftest/run-selftest.shexecutable | script | 204 B |
| scripts/selftest/text-check.py | script | 1.0 KB |
scripts/exec-sentinel.t
View on GitHub#!/usr/bin/env bash
set -euo pipefail
script_dir="$(cd -- "$(dirname -- "$0")" && pwd)"
root=$(mktemp -d)
session="sentinel-cos-$$"
trap 'tmux kill-session -t "$session" 2>/dev/null || true; rm -rf -- "$root"' EXIT
export SNO_REACH_ROOT="$root/reach" SNO_SCRATCH="$root/state"
host=$(hostname)
pl="pl.sentinel@$host"; cos="cos.sentinel@$host"
mkdir -p "$root/repo"
git -C "$root/repo" init -q
git -C "$root/repo" -c user.name=Test -c user.email=test@example.invalid commit -q --allow-empty -m start
: > "$root/executor.log"
sno reach init --as "$pl" --name Lead >/dev/null
sno reach init --as "$cos" --name Chief >/dev/null
cat > "$root/receiver.sh" <<'RECEIVER'
#!/usr/bin/env bash
while IFS= read -r line; do
if [[ "$line" =~ ([0-9a-f]{8})\ typed\ by\ the\ mail\ transport ]]; then
printf 'ACK-%s\n' "${BASH_REMATCH[1]}"
fi
done
RECEIVER
tmux new-session -d -s "$session" "bash $(printf '%q' "$root/receiver.sh")"
tmux new-window -t "$session" "bash $(printf '%q' "$root/receiver.sh")"
mapfile -t panes < <(tmux list-panes -a -t "$session" -F '#{pane_id}')
sno reach register --as "$pl" --channel tmux --handle "${panes[0]}" >/dev/null
sno reach register --as "$cos" --channel tmux --handle "${panes[1]}" >/dev/null
tick() { bash "$script_dir/exec-sentinel.sh" --log "$root/executor.log" --repo "$root/repo" --pl "$pl" --cos "$cos" --from "$cos" --work example-work --stall-min 2 --tick-secs 60 > "$root/out"; }
cards() { find "$SNO_REACH_ROOT/$1/new" -type f -print0 | xargs -0 -r grep -lF "$2" | wc -l; }
assert_cards() {
local addr
for addr in "$pl" "$cos"; do
[[ $(cards "$addr" "$1") -eq "$2" ]] || { printf 'wrong cards for %s: %s (wanted %s)\n' "$addr" "$1" "$2" >&2; exit 1; }
done
}
tick
state=$(sed -n '1p' "$root/out")
[[ -f "$state" ]] && [[ $(wc -l < "$root/out") -eq 2 ]]
assert_cards '[DECISION] SENTINEL STALL:' 0
tick
assert_cards '[DECISION] SENTINEL STALL:' 0
tick
assert_cards '[DECISION] SENTINEL STALL:' 1
tick
assert_cards '[DECISION] SENTINEL STALL:' 1
tick
assert_cards '[DECISION] SENTINEL STALL:' 2
git -C "$root/repo" -c user.name=Test -c user.email=test@example.invalid commit -q --allow-empty -m resumed
tick
assert_cards 'MOVING again' 1
tick
assert_cards '[DECISION] SENTINEL STALL:' 2
tick
assert_cards '[DECISION] SENTINEL STALL:' 3
printf 'progress\n' >> "$root/executor.log"
tick
assert_cards 'MOVING again' 2
[[ $(sed -n '1p' "$root/out") == "$state" ]]
printf 'ok - sentinel ticks, backoff, commit delta, and recovery\n'
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| reverse-engineer-anythingmorluto/reaReverse engineer native, managed, Electron/JavaScript, packaged, firmware, and browser targets with REA, and build agent environments (AgentEnv bundles) of web applications from a live instance or a capture, and of Linux desktop apps with a task from a request. Use shipped-artifact or requested runtime evidence to explain features, compare versions, decompile code, or guide a reconstruction. Skip REA for ordinary source-repository architecture analysis. | Stars: 472k | Updated | Claude CodeCodex | Unverified | Install |
| diagnosing-superpowersobra/superpowersUse when a superpowers session went wrong and your human partner wants to know why — repeated work, ignored plans, stumbles, poor results, a skill that didn't fire, "it took too long", "why is it so expensive", "what is it doing" — or wants to build a bug report for the superpowers maintainers, for the current session or a past one identified by id or path, on any harness. | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |
| dispatching-parallel-agentsobra/superpowersUse when facing 2+ independent tasks that can be worked on without shared state or sequential dependencies | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |
| executing-plansobra/superpowersUse when executing an implementation plan in the current session as the implementer yourself — your human partner chose inline execution, or no subagent tool is available | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |