GitHub - Scripts and Automation

VerifiedSafe

Wrapper scripts for GitHub operations using gh CLI or curl with GITHUB_TOKEN. Supports issues, pull requests, and authentication checks across repositories. Helpful when direct gh commands are blocked or cross-repo operations are needed.

Sby Skills Guide Bot
DevelopmentBeginner
606/2/2026
Claude Code
#github#issues#pull-requests#authentication#gh-cli

Recommended for

Our review

Provides wrapper scripts for GitHub operations (issues, PRs, auth) using curl with GITHUB_TOKEN or gh CLI as fallback.

Strengths

  • Seamless fallback between token and gh CLI
  • Supports cross-repository operations with -R flag
  • Covers common GitHub interactions (list, view, create, comment, close issues/PRs)
  • Preconfigured for remote environments via session-start hook

Limitations

  • Limited to basic operations; lacks advanced features (e.g., GraphQL API, actions, releases)
  • Requires proper token setup or gh authentication
  • Scripts rely on bash and specific paths; not portable beyond Claude Code
When to use it

When you need to quickly interact with GitHub issues or pull requests in the current or another repository without switching contexts.

When not to use it

For complex GitHub workflows or when you need full API flexibility; use the GitHub API directly or gh with custom arguments.

Security analysis

Safe
Quality score90/100

The skill provides wrapper scripts for GitHub CLI operations (issues, PRs, auth). It uses standard tools (Bash, Read) and only runs legitimate GitHub commands via curl or gh CLI. There are no destructive, exfiltrating, or obfuscated actions. The scripts are not provided, but the description indicates normal GitHub interactions.

No concerns found

Examples

List open issues
Show me all open issues in this repository.
Create a new issue
Create a new GitHub issue titled 'Fix login bug' with description 'The login button does not work on mobile devices.'
View pull request details
Show me the details of pull request number 42.

name: GitHub description: Wrapper scripts for GitHub CLI (gh) commands to access issues, PRs, and authentication status. Supports cross-repository operations. Use when direct gh commands are blocked. allowed-tools:

  • Bash
  • Read

GitHub

This skill provides wrapper scripts for GitHub operations. Scripts automatically use curl with GITHUB_TOKEN when available, falling back to gh CLI otherwise. All issue commands support -R owner/repo for cross-repository operations.

Available Scripts

Authentication

bash .claude/skills/github/scripts/gh-auth.sh" status

Issues

# List issues
bash .claude/skills/github/scripts/gh-issue.sh" list
bash .claude/skills/github/scripts/gh-issue.sh" list --state all -L 10

# View issue
bash .claude/skills/github/scripts/gh-issue.sh" view 123

# Create issue
bash .claude/skills/github/scripts/gh-issue.sh" create --title "Bug report" --body "Description"

# Add comment
bash .claude/skills/github/scripts/gh-issue.sh" comment 123 --body "My comment"

# Close issue
bash .claude/skills/github/scripts/gh-issue.sh" close 123

# Assign to yourself
bash .claude/skills/github/scripts/gh-issue.sh" assign 123

Cross-Repository Issue Operations

Use -R or --repo to target a different repository:

# List issues in another repo
bash .claude/skills/github/scripts/gh-issue.sh" -R owner/repo list

# View issue in another repo
bash .claude/skills/github/scripts/gh-issue.sh" -R owner/repo view 123

# Create issue in another repo
bash .claude/skills/github/scripts/gh-issue.sh" -R owner/repo create --title "Bug report" --body "Description"

# Add comment to issue in another repo
bash .claude/skills/github/scripts/gh-issue.sh" -R owner/repo comment 123 --body "My comment"

# Close issue in another repo
bash .claude/skills/github/scripts/gh-issue.sh" -R owner/repo close 123

Pull Requests

# List PRs
bash .claude/skills/github/scripts/gh-pr.sh" list
bash .claude/skills/github/scripts/gh-pr.sh" list --state all -L 10

# View PR
bash .claude/skills/github/scripts/gh-pr.sh" view 123

# Create PR
bash .claude/skills/github/scripts/gh-pr.sh" create --title "My PR" --body "Description" --base main

Authentication Methods

  1. GITHUB_TOKEN (preferred for remote): Set in .env file, scripts use curl with GitHub API
  2. gh CLI (fallback): Uses gh's own authentication when token not available

The session-start hook automatically configures GITHUB_TOKEN in .env for remote environments.

Related skills