/self-hosted-runners:repo-and-infra-locationsfrom self-hosted-runners
Looks up machine-local repository checkouts, AO CLI build paths, YAML config rules, port assignments, and Hermes edit rules from environment variables and git metadata.
Ships in self-hosted-runners. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
This skill does not ship anyone's inventory. Each operator records their own
locations in machine-local configuration, and the agent reads them at run time.
When a value is missing, report <VAR> not configured and stop; never guess a
path, host, or repository.
Environment variables from the shell profile, or from the optional user-owned
file ${XDG_CONFIG_HOME:-$HOME/.config}/jleechan-skills/env (source it if present;
never write it):
[ -f "${XDG_CONFIG_HOME:-$HOME/.config}/jleechan-skills/env" ] &&
. "${XDG_CONFIG_HOME:-$HOME/.config}/jleechan-skills/env"
Values derived from the current repository (git rev-parse --show-toplevel,
gh repo view --json nameWithOwner -q .nameWithOwner).
| Variable | Meaning | If unset |
|---|---|---|
AO_REPO_ROOT | Local Agent Orchestrator checkout used to build ao | stop: AO_REPO_ROOT not configured |
AO_GITHUB_REPO | GitHub owner/repo that AO_REPO_ROOT's origin must match | stop |
AO_CONFIG_PATH | Agent Orchestrator YAML | ${HERMES_HOME:-$HOME/.hermes}/agent-orchestrator.yaml when it exists |
HERMES_HOME | Hermes agent home (a live git checkout) | $HOME/.hermes; skip Hermes steps when absent |
CLAUDE_HOME / CODEX_HOME | Agent homes | $HOME/.claude / $HOME/.codex |
Verify a checkout before using it, rather than trusting a remembered path:
: "${AO_REPO_ROOT:?AO_REPO_ROOT not configured: path to your Agent Orchestrator checkout}"
: "${AO_GITHUB_REPO:?AO_GITHUB_REPO not configured: owner/repo of that checkout}"
git -C "$AO_REPO_ROOT" remote get-url origin # must point at $AO_GITHUB_REPO
$AO_REPO_ROOT and reset them to
origin/main before use.origin points at a different owner than
AO_GITHUB_REPO (for example a direct upstream clone) for agent work.command -v ao; it should point at
$AO_REPO_ROOT/packages/cli/dist/index.js when you build from source.cd "$AO_REPO_ROOT" && npm run build.ERR_MODULE_NOT_FOUND for an ao-core package: stale dist/;
rebuild with npm run build.AO_NPM_PACKAGE);
otherwise build from $AO_REPO_ROOT.AO's YAML loader does not expand ${VAR:-default} shell syntax. Config files
must contain literal values. Before editing the AO config, check for ${ patterns
and replace them with actual values:
AO_CONFIG="${AO_CONFIG_PATH:-${HERMES_HOME:-$HOME/.hermes}/agent-orchestrator.yaml}"
[ -f "$AO_CONFIG" ] || { echo "AO_CONFIG_PATH not configured: AO YAML not found at $AO_CONFIG" >&2; exit 2; }
grep -n '\${' "$AO_CONFIG" # any hit = broken config
Keep your port map in one machine-local place (for example a commented
# PORT DOCUMENTATION block in your shell profile, or a file under
${XDG_CONFIG_HOME:-$HOME/.config}/). Before choosing a port:
<SERVICE>_PORT environment variable when one is set.If no port map exists on this machine, say so and ask the operator before binding a port.
$HERMES_HOME is a live repository — no direct editsWhen $HERMES_HOME is a git checkout, do not edit its tracked files in place.
Edit in a worktree, commit, open a PR, merge, then git -C "$HERMES_HOME" pull.
Exceptions: settings changed through hermes config set, live scheduler state,
and emergency hot-fixes the operator explicitly approves.
${CLAUDE_HOME:-$HOME/.claude}/CLAUDE.md${CODEX_HOME:-$HOME/.codex}/AGENTS.mdhermes-models skill, if installedWhat SKILL.md sets; muted values are Claude Code's defaults
4 skills in this plugin
/ezgha-watchdogRead-only fleet-size consumer for the 6 mac + 16 linux ezgha runner invariant. Restart-only remediation is UNAVAILABLE (fail-closed) pending the ezgha upstream repository (`$EZGHA_UPSTREAM_REPO`) PR 67 (dual-Lima convergence) and PR 70/issue 60 (recovery controller) merging AND being proven live-deployed — a 2026-07-09..11 audit found restarts can kill active jobs, create offline-busy 422 registrations, and cannot repair a dead/wrong-namespace backend. Use when the user says "make sure we have N mac and M linux runners", "ezgha fleet short", "supervisor stuck", or after any /runner-health AMBER/RED verdict — but diagnose with ez-gh-actions' doctor-runner first, never treat a shortfall as expected churn./runner-healthOperational health snapshot for the self-hosted runner fleet of org $GH_ORG. Use when user says "check runners", "are runners up", "is the runner host down", "diagnose runner health", or before/after runner operations. Produces a structured Markdown report at /tmp/runner-health-<ts>.md with multi-method checks (GitHub API + local Docker + Lima VM + Linux runner host ssh + optional Slack cross-check). Works when the Linux runner host is unreachable (key insight: busy=true on runners is itself proof of liveness even when ssh fails).
Other plugins' skills for the same job
npx claudepluginhub jleechanorg/jleechan-skills --plugin self-hosted-runners