---
description: Use this skill for GitHub CLI operations, pm2 process management, Python/Node code execution, Google Drive file sharing, and presentation generation. Covers SSH config, common gh commands, and development environment setup on macOS.
---

# GitHub & Development Operations

## GitHub CLI Setup

- Binary: `gh` (install via `brew install gh`, then `gh auth login`)
- Authenticate with `gh auth login` using the agent's GitHub account
- SSH key: `~/.ssh/id_ed25519`

```bash
# SSH config for GitHub (use port 443 to avoid firewall issues)
# ~/.ssh/config:
Host github.com
  Hostname ssh.github.com
  Port 443
  User git
  IdentityFile ~/.ssh/id_ed25519
```

## Common GitHub Operations

```bash
# View PR
gh pr view [PR_NUMBER] --repo [org/repo]

# Create PR
gh pr create --title "feat: add feature" --body "$(cat <<'EOF'
## Summary
- Added new feature
EOF
)"

# List PRs
gh pr list --repo [org/repo]

# Check PR status / CI checks
gh pr checks [PR_NUMBER]

# View issues
gh issue list --repo [org/repo]

# Clone a repo
git clone git@github.com:[org/repo].git
```

## Code Execution Environment

- Python: `python3` (system or Homebrew)
- Python packages (user): `~/.Library/Python/[VERSION]/lib/python/site-packages/`
- Node.js: Available via `node`
- npm/npx: Available
- Useful packages: `moomoo-api`, `web3`, `eth_account`, `yt-dlp`

## Process Management (pm2)

```bash
# Check running processes
pm2 list

# View logs
pm2 logs [process-name]

# Start a script
pm2 start /path/to/script.py --name my-process --interpreter python3

# Stop
pm2 stop my-process
```

## Google Drive File Sharing

```python
# Upload file to Google Drive
manage_drive(action="upload_file", local_path="/path/to/file", name="filename.ext")

# Share a file
manage_drive(action="share_file", file_id="...", email="user@example.com", role="reader")

# Download file
manage_drive(action="download_file", file_id="...", local_path="/tmp/file")

# Shareable link format: https://drive.google.com/file/d/{file_id}/view
```

## Presentations (python-pptx)

```bash
pip3 install python-pptx
python3 /tmp/create_presentation.py  # generates .pptx
```
