# Github Ops

> GitHub operations wrapper. Helps manage PRs, Issues, and Reviews efficiently via CLI.

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

---


# GitHub Ops Skill

## 🛠️ CLI Tools

We use `gh` (GitHub CLI) for all operations.

## 📋 Pull Requests

### Create PR

```bash
git push -u origin feature-branch
gh pr create --title "feat: description" --body "Summary of changes..."
```

### Checkout PR

```bash
gh pr checkout <number>
```

### Review PR

```bash
gh pr diff
gh pr review --approve
```

## 🐛 Issues

### List Issues

```bash
gh issue list --limit 5
```

### Create Issue

```bash
gh issue create --title "Bug: ..." --body "Reproduction steps..."
```

## 🤖 Context Optimization

Instead of dumping the entire JSON of an issue, use:

```bash
gh issue view <number> --json title,body,comments
```

This restricts the output to relevant fields only.

## Memory Protocol (MANDATORY)

**Before starting:**
Read `.claude/context/memory/learnings.md`

**After completing:**

- New pattern -> `.claude/context/memory/learnings.md`
- Issue found -> `.claude/context/memory/issues.md`
- Decision made -> `.claude/context/memory/decisions.md`

> ASSUME INTERRUPTION: If it's not in memory, it didn't happen.

