Github

From ericwang915/PythonClaw · View interactive version

Github is an AI agent skill from the GitHub repository ericwang915/PythonClaw. GitHub operations via gh CLI or Python API. Use when: listing repos, creating/viewing issues and PRs, checking CI runs, managing releases, or querying the GitHub API. NOT for: general git commands (use git directly), cloning private repos without auth.

How to use this skill

Skill file

GitHub

When to Use

When NOT to Use

Setup

  1. For gh CLI: Install with brew install gh (macOS) or see cli.github.com
  2. Auth: Run gh auth login or set GH_TOKEN / GITHUB_TOKEN
  3. For Python fallback: Create a PAT at https://github.com/settings/tokens and add to pythonclaw.json:
"skills": {
  "github": {
    "token": "ghp_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
  }
}

Usage/Commands

gh CLI (Preferred)

| Action | Command |

|--------|---------|

| List PRs | gh pr list --repo owner/repo |

| View PR | gh pr view <number> --repo owner/repo |

| Create PR | gh pr create --repo owner/repo --title "..." --body "..." |

| PR checks | gh pr checks <number> --repo owner/repo |

| List issues | gh issue list --repo owner/repo |

| Create issue | gh issue create --repo owner/repo --title "..." --body "..." |

| Workflow runs | gh run list --repo owner/repo |

| View run | gh run view <run_id> --repo owner/repo |

| REST API | gh api /repos/owner/repo |

| GraphQL | gh api graphql -f query='{ viewer { login } }' |

Python Fallback

When gh is not installed or for custom logic:

python {skill_path}/gh.py <command> [options]

Notes

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.