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): every gh subcommand, 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 to references/auth.md before anything else.
  • Prefer gh over raw REST; drop to gh api only for endpoints the porcelain lacks (the cheatsheet lists them).
  • Never report CI green without checking gh pr checks yourself; never claim merged without verifying state,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 gh read, never memory.
Installs
1
GitHub Stars
11
First Seen
14 days ago