GitHub
The GitHub skill gives Claude access to repositories, issues, pull requests, and code search. It covers both source control and issue tracking, making it the most widely used skill across built-in workflows.
Metadata
Section titled “Metadata”| Field | Value |
|---|---|
| ID | github |
| Category | git |
| Required env vars | GITHUB_TOKEN |
| Tool | Description |
|---|---|
github_search_code | Search for code in a repository using GitHub code search syntax |
github_get_issue | Get details of a GitHub issue by number |
github_search_issues | Search issues and pull requests across a repo or globally |
github_create_issue | Create a new GitHub issue with title, body, and labels |
github_create_pr | Create a pull request from a head branch to a base branch |
github_list_recent_commits | List recent commits on a branch (default: main) |
github_get_file | Get a file’s contents from a repository at a given ref |
The GitHub skill requires a personal access token (PAT) or GitHub App installation token.
Fine-grained PAT (recommended)
Section titled “Fine-grained PAT (recommended)”- Go to GitHub Settings > Developer settings > Personal access tokens > Fine-grained tokens.
- Create a token scoped to the repositories SWEny will access.
- Grant these permissions:
- Contents: Read and write (for code search, file reads, and commits)
- Issues: Read and write (for issue search and creation)
- Pull requests: Read and write (for PR creation)
- Metadata: Read-only (required by default)
- Set the environment variable:
export GITHUB_TOKEN="github_pat_..."GitHub Actions
Section titled “GitHub Actions”In a GitHub Actions workflow, the built-in GITHUB_TOKEN is automatically available:
env: GITHUB_TOKEN: ${{ github.token }}For cross-repository access, use a PAT or GitHub App token instead.
Workflow usage
Section titled “Workflow usage”The GitHub skill appears in nearly every node of the built-in workflows:
Triage workflow:
- gather — Search code and recent commits to understand what changed
- investigate — Read source files to correlate errors with code
- create_issue — File an issue when no existing ticket covers the problem
Implement workflow:
- analyze — Fetch the issue and read relevant source files
- implement — Create a branch and commit the fix
- create_pr — Open a pull request referencing the original issue
- skip — Comment on the issue if the fix is too complex