# Gh

> GitHub CLI usage and workflow patterns. Use when working with GitHub repositories, pull requests, issues, or API interactions. Use when this capability is needed.

- Skill: `tomevault-io/gh-4` (Agent Skill, multi-file: 2 files)
- Install (CLI): `npx skillmds@latest add tomevault-io/gh-4`
- Raw SKILL.md: https://api.skillmd.com/api/skills/tomevault-io/gh-4/raw
- Safety review: pending (external: skill-scanner PASS, skillspector PASS)
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Integrations & APIs
- Author: tomevault-io (https://skillmd.com/u/tomevault-io)
- Updated: 2026-09-17
- Page: https://skillmd.com/skills/tomevault-io/gh-4

---

# gh CLI

Use `gh` for all GitHub interactions. It handles authentication automatically and works with private repositories.

## Common Commands

- `gh repo view` — view repository README and metadata
- `gh issue view <number>` — view issue details
- `gh pr view <number>` — view pull request details
- `gh run view <run_id>` — view workflow run status
- `gh run view --job <job_id> --log` — view job logs

## API Access

Use `gh api` for operations not covered by built-in commands:

```bash
gh api repos/{owner}/{repo}/contents/{path}  # fetch file contents
gh api repos/{owner}/{repo}/pulls/{number}/comments  # PR review comments
```

## Reference Files

- **reviews.md**: Pull request review patterns

## Workflows

### Pull Request

- You must `git push` a branch before creating a pull request with `gh pr create`.

---
> Converted and distributed by [TomeVault](https://tomevault.io/claim/bendrucker) — claim your Tome and manage your conversions.
<!-- tomevault:4.0:skill_md:2026-04-11 -->

