github-workflow
Installation
SKILL.md
GitHub Workflow (Agent)
The one GitHub skill on this machine. It absorbed the standalone gh-cli reference skill and replaces the bundled software-development/github skill (disabled in config.yaml skills.disabled on 2026-09-27; this copy is a diverged superset of it). The gh CLI is preferred; git + curl fallbacks are provided for any host where gh isn't installed (immutable distros, locked-down machines, no-sudo servers).
Two layers:
- Agent-pattern layer (this file + the sub-domain references): how the agent actually does GitHub work — auth detection, workflow recipes, review checklists, fallback patterns.
- CLI reference layer (references/gh-cli.md +
gh-cli-extended-reference.md+gh-cli-contents-api.md): everyghsubcommand, flag, and example.
On this machine: gh is authed via the keyring (account jcrabapple). Use bare gh; /tmp/gh-token no longer exists and GITHUB_TOKEN=$(cat /tmp/gh-token) silently yields empty results.
Core discipline (applies to every workflow)
- Preflight once per session:
gh auth status. If it fails, go toreferences/auth.mdbefore anything else. - Prefer
ghover raw REST; drop togh apionly for endpoints the porcelain lacks (the cheatsheet lists them). - Never report CI green without checking
gh pr checksyourself; never claim merged without verifyingstate,mergedAt. - Read full context before writing:
gh issue view --comments/gh pr view --comments. Decisions live in threads, not titles. - Sweep for duplicates before creating anything:
gh pr list --search/gh issue list --search. - Every claim about remote state (CI, merge, release, issue state) is backed by a fresh
ghread, never memory.