PythonClaw github
install
source · Clone the upstream repo
git clone https://github.com/ericwang915/PythonClaw
Claude Code · Install into ~/.claude/skills/
T=$(mktemp -d) && git clone --depth=1 https://github.com/ericwang915/PythonClaw "$T" && mkdir -p ~/.claude/skills && cp -r "$T/pythonclaw/templates/skills/dev/github" ~/.claude/skills/ericwang915-pythonclaw-github && rm -rf "$T"
manifest:
pythonclaw/templates/skills/dev/github/SKILL.mdsource content
GitHub
When to Use
- List repositories, issues, or pull requests
- Create or view issues and PRs
- Check CI/workflow run status
- Create or manage releases
- Query GitHub REST or GraphQL API
- Review PR checks, comments, or status
When NOT to Use
- General git commands (commit, push, branch) — use
directlygit - Cloning public repos — use
without this skillgit clone - Tasks that don't involve GitHub (e.g., local file operations)
Setup
- For gh CLI: Install with
(macOS) or see cli.github.combrew install gh - Auth: Run
or setgh auth login
/GH_TOKENGITHUB_TOKEN - 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 | |
| View PR | |
| Create PR | |
| PR checks | |
| List issues | |
| Create issue | |
| Workflow runs | |
| View run | |
| REST API | |
| GraphQL | |
Python Fallback
When
gh is not installed or for custom logic:
python {skill_path}/gh.py <command> [options]
— list user's public repositoriesrepos <user>
— get repository detailsrepo <owner/repo>
— list open issuesissues <owner/repo>
— create an issuecreate-issue <owner/repo> --title "..." --body "..."
— list open pull requestsprs <owner/repo>
— get PR detailspr <owner/repo> <number>
Notes
- Prefer
CLI for standard operations; it handles auth, pagination, and output formattinggh - Use
when you need Python-specific behavior or gh is unavailable{skill_path}/gh.py - For CI runs,
andgh run list
show Actions workflow statusgh run view