Skip to content

Commit dad534f

Browse files
committed
docs(github): clarify restart after gh setup
1 parent 3ce9224 commit dad534f

1 file changed

Lines changed: 35 additions & 2 deletions

File tree

‎skills/github/SKILL.md‎

Lines changed: 35 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,29 @@ gh auth login
6363
gh auth status
6464
```
6565

66+
### After installing `gh` or changing `PATH`
67+
68+
OpenClaw checks skill binary requirements from the running gateway process. If
69+
you install the GitHub CLI or change `PATH` while OpenClaw is already running,
70+
restart the gateway so it re-checks available skill binaries before assuming the
71+
skill is broken.
72+
73+
```bash
74+
# Restart the gateway/service so OpenClaw re-checks available skill binaries
75+
openclaw gateway restart
76+
77+
# Confirm the gateway came back cleanly
78+
openclaw gateway status
79+
80+
# Confirm GitHub CLI auth is still visible to the service user
81+
gh auth status
82+
```
83+
84+
On Linux/systemd installs, `openclaw gateway status` also shows the service
85+
command and environment. If `gh` works in your shell but the skill still appears
86+
unavailable, make sure the gateway service user can find the same `gh` binary on
87+
`PATH`.
88+
6689
### When the gateway HOME differs from the operator HOME
6790

6891
OpenClaw agent shells often run with a different `HOME` than the user that ran
@@ -150,14 +173,18 @@ gh api repos/owner/repo --jq '{stars: .stargazers_count, forks: .forks_count}'
150173
Most commands support `--json` for structured output with `--jq` filtering:
151174

152175
```bash
153-
gh issue list --repo owner/repo --json number,title --jq '.[] | "\(.number): \(.title)"'
154-
gh pr list --json number,title,state,mergeable --jq '.[] | select(.mergeable == "MERGEABLE")'
176+
gh issue list --repo owner/repo --json number,title \
177+
--jq '.[] | "\(.number): \(.title)"'
178+
gh pr list --json number,title,state,mergeable \
179+
--jq '.[] | select(.mergeable == "MERGEABLE")'
155180
```
156181

157182
## Templates
158183

159184
### PR Review Summary
160185

186+
<!-- markdownlint-disable MD013 -->
187+
161188
```bash
162189
# Get PR overview for review
163190
PR=55 REPO=owner/repo
@@ -167,14 +194,20 @@ gh pr view $PR --repo $REPO --json title,body,author,additions,deletions,changed
167194
gh pr checks $PR --repo $REPO
168195
```
169196

197+
<!-- markdownlint-enable MD013 -->
198+
170199
### Issue Triage
171200

201+
<!-- markdownlint-disable MD013 -->
202+
172203
```bash
173204
# Quick issue triage view
174205
gh issue list --repo owner/repo --state open --json number,title,labels,createdAt \
175206
--jq '.[] | "[\(.number)] \(.title) - \([.labels[].name] | join(", ")) (\(.createdAt[:10]))"'
176207
```
177208

209+
<!-- markdownlint-enable MD013 -->
210+
178211
## Notes
179212

180213
- Always specify `--repo owner/repo` when not in a git directory

0 commit comments

Comments
 (0)