← ClaudeAtlas

invoking-githublisted

Enables GitHub repository operations (read/write/commit/PR) for Claude.ai chat environments. Use when users request GitHub commits, repository updates, DEVLOG persistence, or cross-session state management via GitHub branches. Not needed in Claude Code (has native git access).
oaustegard/claude-skills · ★ 124 · Code & Development · score 84
Install: claude install-skill oaustegard/claude-skills
# Invoking GitHub Programmatically interact with GitHub repositories from Claude.ai chat: read files, commit changes, create PRs, and persist state across sessions. ## When to Use This Skill **Primary use cases:** - Commit code/documentation from Claude.ai chat (mobile/web) - Auto-persist DEVLOG.md for iterating skill - Manage state across sessions via GitHub branches - Read and update repository files programmatically - Create pull requests from chat interface **Trigger patterns:** - "Commit this to the repository" - "Update the README on GitHub" - "Save this to a feature branch" - "Create a PR with these changes" - "Persist DEVLOG to GitHub" - "Read the config file from my repo" **Not needed for:** - Claude Code environments (use native git commands) - Read-only repository access (use GitHub UI or API directly) ## Quick Start ### Prerequisites Create a GitHub Personal Access Token and add to Project Knowledge: 1. Go to https://github.com/settings/tokens 2. Create new token (classic or fine-grained) 3. Required scopes: `repo` (or `public_repo` for public repos only) 4. In Claude.ai, add to Project Knowledge: - Title: `GITHUB_API_KEY` - Content: Your token (e.g., `ghp_abc123...`) ### Single File Commit ```python from invoking_github import commit_file result = commit_file( repo="username/repo-name", path="README.md", content="# Updated README\n\nNew content here...", branch="main", message="Update README with new instructions" ) print(f"