githubbing
Scannednpx machina-cli add skill oaustegard/claude-skills/githubbing --openclawFiles (1)
SKILL.md
747 B
Githubbing
Install and use GitHub CLI (gh) for authenticated GitHub operations.
1. Install
bash /path/to/githubbing/scripts/install-gh.sh
2. Configure Authentication
gh reads tokens from GH_TOKEN or GITHUB_TOKEN environment variables.
from configuring import get_env
import os
token = get_env("GH_TOKEN") or get_env("GITHUB_TOKEN")
if token:
os.environ["GH_TOKEN"] = token
3. Verify
gh auth status
Source
git clone https://github.com/oaustegard/claude-skills/blob/main/githubbing/SKILL.mdView on GitHub Overview
Githubbing installs and uses the GitHub CLI (gh) inside Claude.ai containers to perform authenticated GitHub tasks. It enables creating issues and PRs, viewing repos, and other operations beyond raw API calls.
How This Skill Works
Githubbing installs gh via a script and configures authentication by reading GH_TOKEN or GITHUB_TOKEN from the environment. Once configured, gh commands can be executed inside the Claude.ai container, and authentication can be verified with gh auth status.
When to Use It
- You need to create issues or pull requests directly from a Claude.ai workflow.
- You want to view repository details, list issues/PRs, or run gh searches within a session.
- You require GitHub operations beyond raw API calls (e.g., managing issues, PRs, or labels) via gh.
- You must ensure authenticated access inside Claude.ai containers before performing actions.
- You want to validate authentication status before running automation tasks.
Quick Start
- Step 1: Install gh with the script bash /path/to/githubbing/scripts/install-gh.sh.
- Step 2: Configure authentication by retrieving GH_TOKEN or GITHUB_TOKEN and exporting GH_TOKEN.
- Step 3: Verify your setup with gh auth status.
Best Practices
- Use the provided install script path (bash /path/to/githubbing/scripts/install-gh.sh) to install gh.
- Store tokens securely in the environment as GH_TOKEN or GITHUB_TOKEN; avoid hardcoding tokens.
- Verify authentication with gh auth status before making changes.
- Prefer gh for interactive or stateful GitHub tasks rather than raw API calls.
- Test commands in a controlled Claude.ai session before automating workflows.
Example Use Cases
- Create a new issue in a repository from a Claude.ai assistant.
- Open a pull request with a summary generated by the agent.
- List open issues or PRs in a repository while debugging.
- Fetch repository details such as default branch or star count.
- Update issue labels or assign reviewers using gh.
Frequently Asked Questions
Add this skill to your agents