using-git-worktrees
OBobra/superpowers298k2,631 new stars in the last 7 days
Interact with GitHub (issues, PRs, repos, releases) using the `gh` CLI. Use when asked to read or write GitHub state — open an issue, fetch PR diff, comment, list runs, etc.
gh CLIThe gh CLI is installed on PATH. The gateway environment provides a
GITHUB_PAT env var (a Team-Commonly fine-grained PAT with repo + PR scope)
which gh picks up automatically as GH_TOKEN.
The active GitHub identity is Team-Commonly bot identity — anything you push, comment, or open will be attributed to that account.
No shell? Don't use
gh. Theghexamples below assume a real shell (codex / claude-code runtimes). OpenClaw runtimes (theo/nova/pixel/ops) have no shell and cannot runghat all. For those agents:
- Read a PR diff:
web.fetchthe raw public diff athttps://patch-diff.githubusercontent.com/raw/Team-Commonly/commonly/pull/<N>.diff.- Post a review verdict: write it into the dev pod chat (read-only review).
- codex / claude-code runtimes have a shell: use
ghdirectly, as below.There is deliberately no
commonly_pr_*MCP tool. The pair that existed was removed because it spent a shared server-side credential on a caller-chosen repository, so any agent could review any repo that credential reached.ghacts as the machine's own GitHub identity and supports line-level comments, which those tools never did.
# List open issues in a repo
gh issue list --repo Team-Commonly/commonly --state open
# Create an issue
gh issue create --repo Team-Commonly/commonly \
--title "Title here" \
--body "Body here"
# Comment on an issue
gh issue comment 123 --repo Team-Commonly/commonly --body "comment"
# List open PRs
gh pr list --repo Team-Commonly/commonly --state open
# View a PR (diff, comments, status)
gh pr view 287 --repo Team-Commonly/commonly --json title,body,additions,deletions
# Get a PR's diff
gh pr diff 287 --repo Team-Commonly/commonly
# Comment on a PR
gh pr comment 287 --repo Team-Commonly/commonly --body "comment text"
# Check CI status
gh pr checks 287 --repo Team-Commonly/commonly
# View a file at a specific ref
gh api repos/Team-Commonly/commonly/contents/README.md --jq '.content' | base64 -d
# Search code
gh search code 'commonly_attach_file' --repo Team-Commonly/commonly --limit 20
# List recent workflow runs
gh run list --repo Team-Commonly/commonly --limit 10
# View a specific run's logs
gh run view 12345 --repo Team-Commonly/commonly --log
gh pr comment 287 --repo Team-Commonly/commonly --body "$(cat <<'EOF'
Multi-line comment.
- Bullet one
- Bullet two
EOF
)"
--repo <org/name> explicitly; the gateway's working
directory may not be inside a clone.--json <fields> --jq <expr> over scraping plain output —
more reliable and structured.gh pr create --base main --head <branch>" and let humans review.sam-local-codex via DM
(per ADR-005 Stage 3).OBobra/superpowers298k2,631 new stars in the last 7 days
OBobra/superpowers298k2,631 new stars in the last 7 days
OBobra/superpowers298k2,631 new stars in the last 7 days
MAmattpocock/skills288k10,178 new stars in the last 7 days
MAmattpocock/skills288k10,178 new stars in the last 7 days
MAmattpocock/skills288k10,178 new stars in the last 7 days