openclaw/skills
tmimmanuel 72b5cddbe1 fix(doctor): surface GH_CONFIG_DIR hint when gh auth lives at a different HOME
When OpenClaw spawns an agent shell with a different HOME than the user
that ran `gh auth login` (per-agent codex homes, systemd User= services,
sudo'd shells), `gh` looks at $XDG_CONFIG_HOME/gh or $HOME/.config/gh and
reports "not logged into any GitHub hosts" even though the operator HOME
has a valid hosts.yml.

Add `detectGhConfigDirMismatch` in src/agents/skills/gh-config-discovery.ts:
a pure helper that takes process env plus a fileExists probe and returns
either "auth-discoverable", "no-known-auth", "explicit-gh-config-dir-set",
or a "mismatch" with the alternate config dir, the host file path, and a
suggested GH_CONFIG_DIR value to set on the gateway service environment.
The helper checks `/root`, `$SUDO_USER`'s home, and `$USER`'s home as
candidate operator homes on Linux/macOS, and uses platform-specific path
joins so the same logic works on Windows test runners.

Wire the helper into the doctor skills health flow: when the github skill
is reported and the gh binary is present, call the discovery helper and,
on a mismatch, print a "GitHub CLI" note with the operator-actionable
fix instructions before any unavailable-skill repair prompt.

Update skills/github/SKILL.md with a troubleshooting subsection that
documents GH_CONFIG_DIR for service/agent environments where HOME differs
from the user that ran `gh auth login`.

Fixes #78063.
2026-05-11 14:57:42 +01:00
..
1password docs: balance skill descriptions 2026-04-23 22:18:56 +01:00
apple-notes docs: balance skill descriptions 2026-04-23 22:18:56 +01:00
apple-reminders docs: balance skill descriptions 2026-04-23 22:18:56 +01:00
bear-notes
blogwatcher
blucli
camsnap
canvas Skills: prefer active OpenClaw paths 2026-03-30 16:10:13 +01:00
clawhub docs: balance skill descriptions 2026-04-23 22:18:56 +01:00
coding-agent build: refresh deps and route testbox through crabbox 2026-05-11 03:41:00 +01:00
discord
eightctl fix(terminal): stabilize skills table width across Terminal.app and iTerm (#42849) 2026-03-11 09:13:10 -04:00
gemini fix(terminal): stabilize skills table width across Terminal.app and iTerm (#42849) 2026-03-11 09:13:10 -04:00
gh-issues docs: balance skill descriptions 2026-04-23 22:18:56 +01:00
gifgrep docs: add gif asset hygiene guidance 2026-04-26 10:48:06 +01:00
github fix(doctor): surface GH_CONFIG_DIR hint when gh auth lives at a different HOME 2026-05-11 14:57:42 +01:00
gog
goplaces docs: balance skill descriptions 2026-04-23 22:18:56 +01:00
healthcheck docs: balance skill descriptions 2026-04-23 22:18:56 +01:00
himalaya docs: balance skill descriptions 2026-04-23 22:18:56 +01:00
imsg docs: replace outdated Clawdbot references with OpenClaw in skill docs (#41563) 2026-03-15 08:29:19 +01:00
mcporter docs: balance skill descriptions 2026-04-23 22:18:56 +01:00
model-usage docs: balance skill descriptions 2026-04-23 22:18:56 +01:00
nano-pdf
node-connect docs: balance skill descriptions 2026-04-23 22:18:56 +01:00
notion Agents: add skill API rate-limit guardrail (#38452) 2026-03-06 20:20:00 -05:00
obsidian
openai-whisper fix(terminal): stabilize skills table width across Terminal.app and iTerm (#42849) 2026-03-11 09:13:10 -04:00
openai-whisper-api Skills: prefer active OpenClaw paths 2026-03-30 16:10:13 +01:00
openhue
oracle docs: balance skill descriptions 2026-04-23 22:18:56 +01:00
ordercli
peekaboo
sag Remove personal references from docs (#25260) 2026-03-22 20:29:09 -07:00
session-logs Skills: prefer active OpenClaw paths 2026-03-30 16:10:13 +01:00
sherpa-onnx-tts Skills: tighten env path guidance 2026-03-30 16:10:13 +01:00
skill-creator fix(security): avoid duplicate skill package import 2026-04-28 01:37:01 -07:00
slack docs: balance skill descriptions 2026-04-23 22:18:56 +01:00
songsee
sonoscli
spotify-player
summarize docs: balance skill descriptions 2026-04-23 22:18:56 +01:00
taskflow docs: balance skill descriptions 2026-04-23 22:18:56 +01:00
taskflow-inbox-triage docs: balance skill descriptions 2026-04-23 22:18:56 +01:00
things-mac docs: balance skill descriptions 2026-04-23 22:18:56 +01:00
tmux feat(ui): Control UI polish — skills revamp, markdown preview, agent workspace, macOS config tree (#53411) thanks @BunsDev 2026-03-24 01:21:13 -05:00
trello feat(ui): Control UI polish — skills revamp, markdown preview, agent workspace, macOS config tree (#53411) thanks @BunsDev 2026-03-24 01:21:13 -05:00
video-frames fix(terminal): stabilize skills table width across Terminal.app and iTerm (#42849) 2026-03-11 09:13:10 -04:00
voice-call
wacli docs: balance skill descriptions 2026-04-23 22:18:56 +01:00
weather docs: balance skill descriptions 2026-04-23 22:18:56 +01:00
xurl docs: balance skill descriptions 2026-04-23 22:18:56 +01:00
pyproject.toml chore: reduce root cleanup files 2026-05-03 14:38:13 +01:00