Skip to content

sno-ai/sno-station-skills / skills/M-build-and-rollout/medic/skill

Check that this machine's agent team can work and say what is wrong in plain lines: tools installed, core skills installed, skill commands runnable, hooks configured, Reach seat live, a heartbeat running, both vendors' quota readable, temp space free. Checks only, never repairs. Use on a new machine, when agents stop reaching each other or a long run fails to start, or when the owner asks whether everything is healthy.

FileKindSize
SKILL.mdskill md3.7 KB
scripts/medicexecutablescript9.2 KB
scripts/medic.texecutablescript10.7 KB
scripts/selftest/run-selftest.shexecutablescript1.3 KB

scripts/selftest/run-selftest.sh

View on GitHub
#!/usr/bin/env bash
# Text contract for the medic skill plus the behaviour test of its command.
set -Eeuo pipefail

selftest_dir="$(cd -- "$(dirname -- "${BASH_SOURCE[0]}")" && pwd)"
skill_dir="$(cd -- "$selftest_dir/../.." && pwd)"

python3 - "$skill_dir" <<'PY'
import pathlib
import sys

root = pathlib.Path(sys.argv[1])
text = " ".join((root / "SKILL.md").read_text(encoding="utf-8").split())
rules = {
    "output shape": "WARN <check>: <what is wrong> -> <the command that fixes it>",
    "summary line": "MEDIC ok=N warn=N fail=N",
    "checks only": "it never installs, repairs, starts, stops or spends anything",
    "fix only on request": "Run a fix only when the owner asks for it",
    "re-run after a fix": "run `sno medic run` again",
    "skipped checks are shown": "not checked, <program> is missing",
    "points to the live receiver test": "`rotate-agent-preflight`",
}
missing = [name for name, phrase in rules.items() if phrase not in text]
if missing:
    raise SystemExit(f"missing medic rules: {', '.join(missing)}")
for check in ("tools", "agent-cli", "skills", "commands", "hooks", "reach", "skill-files", "seat", "heartbeat", "quota", "temp-space"):
    if f"| `{check}` |" not in text:
        raise SystemExit(f"the checks table lacks: {check}")
PY

bash "$skill_dir/scripts/medic.t"
printf 'medic text contract and behaviour test passed\n'
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: 472kUpdated Claude CodeCodexVerifiedInstall
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: 323kUpdated Claude CodeCodexVerifiedInstall
dispatching-parallel-agentsobra/superpowersUse when facing 2+ independent tasks that can be worked on without shared state or sequential dependenciesStars: 323kUpdated Claude CodeCodexVerifiedInstall
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 availableStars: 323kUpdated Claude CodeCodexVerifiedInstall