github-automation

Automate GitHub operations using gh CLI - manage repositories, issues, pull requests, releases, and workflows. Use when working with GitHub, managing repos, creating issues/PRs, or when users mention GitHub operations, gh CLI, or repository management.

16 stars

Best use case

github-automation is best used when you need a repeatable AI agent workflow instead of a one-off prompt.

Automate GitHub operations using gh CLI - manage repositories, issues, pull requests, releases, and workflows. Use when working with GitHub, managing repos, creating issues/PRs, or when users mention GitHub operations, gh CLI, or repository management.

Teams using github-automation should expect a more consistent output, faster repeated execution, less prompt rewriting.

When to use this skill

  • You want a reusable workflow that can be run more than once with consistent structure.

When not to use this skill

  • You only need a quick one-off answer and do not need a reusable workflow.
  • You cannot install or maintain the underlying files, dependencies, or repository context.

Installation

Claude Code / Cursor / Codex

$curl -o ~/.claude/skills/github-automation-vm0-ai/SKILL.md --create-dirs "https://raw.githubusercontent.com/diegosouzapw/awesome-omni-skill/main/skills/tools/github-automation-vm0-ai/SKILL.md"

Manual Installation

  1. Download SKILL.md from GitHub
  2. Place it in .claude/skills/github-automation-vm0-ai/SKILL.md inside your project
  3. Restart your AI agent — it will auto-discover the skill

How github-automation Compares

Feature / Agentgithub-automationStandard Approach
Platform SupportNot specifiedLimited / Varies
Context Awareness High Baseline
Installation ComplexityUnknownN/A

Frequently Asked Questions

What does this skill do?

Automate GitHub operations using gh CLI - manage repositories, issues, pull requests, releases, and workflows. Use when working with GitHub, managing repos, creating issues/PRs, or when users mention GitHub operations, gh CLI, or repository management.

Where can I find the source code?

You can find the source code on GitHub using the link provided at the top of the page.

SKILL.md Source

# GitHub Automation

This Skill helps you manage GitHub operations using the `gh` CLI, including repositories, issues, pull requests, releases, and GitHub Actions workflows.

## Capabilities

- **Repositories**: Create, clone, fork, view, and manage repos
- **Issues**: Create, list, view, close, comment, and label issues
- **Pull Requests**: Create, review, merge, list, and comment on PRs
- **Releases**: Create releases and manage tags
- **Workflows**: View and manage GitHub Actions
- **Gists**: Create and manage gists
- **Search**: Search repos, issues, PRs, code, and users

## Authentication

The `GITHUB_TOKEN` environment variable is pre-configured. Verify with:
```bash
gh auth status
```

## Instructions

### Phase 1: Understand the Request
1. Clarify what GitHub operation the user needs
2. Identify the target repository (if not specified, ask)
3. Confirm any destructive operations before executing

### Phase 2: Execute the Operation
Use `gh` CLI commands. Common patterns:

**Repository Operations**
```bash
gh repo view <owner>/<repo>
gh repo clone <owner>/<repo>
gh repo create <name> --public/--private
gh repo list <owner>
```

**Issue Operations**
```bash
gh issue list --repo <owner>/<repo>
gh issue create --repo <owner>/<repo> --title "Title" --body "Body"
gh issue view <number> --repo <owner>/<repo>
gh issue close <number> --repo <owner>/<repo>
gh issue comment <number> --repo <owner>/<repo> --body "Comment"
```

**Pull Request Operations**
```bash
gh pr list --repo <owner>/<repo>
gh pr create --repo <owner>/<repo> --title "Title" --body "Body"
gh pr view <number> --repo <owner>/<repo>
gh pr merge <number> --repo <owner>/<repo>
gh pr review <number> --repo <owner>/<repo> --approve/--comment/--request-changes
gh pr checks <number> --repo <owner>/<repo>
```

**Search Operations**
```bash
gh search repos <query>
gh search issues <query>
gh search prs <query>
gh search code <query>
```

**GitHub Actions**
```bash
gh run list --repo <owner>/<repo>
gh run view <run-id> --repo <owner>/<repo>
gh workflow list --repo <owner>/<repo>
```

**Releases**
```bash
gh release list --repo <owner>/<repo>
gh release create <tag> --repo <owner>/<repo> --title "Title" --notes "Notes"
```

## Guidelines

- Always specify `--repo <owner>/<repo>` when not in a cloned repository
- For destructive operations (delete, close, merge), confirm with user first
- Use `--json` flag when you need to parse output programmatically
- Handle errors gracefully and suggest fixes
- When creating issues/PRs, use clear titles and descriptive bodies

### Phase 3: Report Results
- Summarize what was done
- Provide relevant links (PR URLs, issue numbers, etc.)
- Suggest next steps if applicable

## Output Format

When listing items, format clearly:
```
#123 - Issue title (open/closed) - @author
#456 - PR title (open/merged/closed) - @author
```

When creating items, always report:
- The created item's number/ID
- Direct URL to the item
- Any relevant status information

## Examples

**Create an issue:**
```bash
gh issue create --repo <owner>/<repo> --title "Bug: Login fails" --body "Steps to reproduce..."
```

**List open PRs awaiting review:**
```bash
gh pr list --repo <owner>/<repo> --state open --search "review:required"
```

**Get PR details as JSON:**
```bash
gh pr view <number> --repo <owner>/<repo> --json title,state,reviews,checks
```

## Prerequisites

This Skill requires the GitHub CLI (`gh`) to be installed and authenticated:
```bash
gh auth status
```

If not authenticated, run:
```bash
gh auth login
```

Alternatively, set the `GITHUB_TOKEN` environment variable with a personal access token.

**Important:** When using environment variables in commands with pipes, wrap the command in `bash -c '...'` to avoid variable substitution issues:
```bash
bash -c 'gh pr view <number> --repo $OWNER/$REPO --json title,state' | jq '.title'
```

Without environment variables, the pipe is fine:
```bash
gh pr view <number> --repo <owner>/<repo> --json title,state | jq '.title'
```

Related Skills

heyzine-automation

16
from diegosouzapw/awesome-omni-skill

Automate Heyzine tasks via Rube MCP (Composio). Always search tools first for current schemas.

heyreach-automation

16
from diegosouzapw/awesome-omni-skill

Automate Heyreach tasks via Rube MCP (Composio). Always search tools first for current schemas.

here-automation

16
from diegosouzapw/awesome-omni-skill

Automate Here tasks via Rube MCP (Composio). Always search tools first for current schemas.

helpwise-automation

16
from diegosouzapw/awesome-omni-skill

Automate Helpwise tasks via Rube MCP (Composio). Always search tools first for current schemas.

helloleads-automation

16
from diegosouzapw/awesome-omni-skill

Automate Helloleads tasks via Rube MCP (Composio). Always search tools first for current schemas.

Harvest Automation

16
from diegosouzapw/awesome-omni-skill

Automate time tracking, project management, and invoicing workflows in Harvest -- log hours, manage projects, clients, and tasks through natural language commands.

hackernews-automation

16
from diegosouzapw/awesome-omni-skill

Automate Hackernews tasks via Rube MCP (Composio). Always search tools first for current schemas.

habitica-automation

16
from diegosouzapw/awesome-omni-skill

Automate Habitica tasks via Rube MCP (Composio). Always search tools first for current schemas.

grist-automation

16
from diegosouzapw/awesome-omni-skill

Automate Grist tasks via Rube MCP (Composio). Always search tools first for current schemas.

griptape-automation

16
from diegosouzapw/awesome-omni-skill

Automate Griptape tasks via Rube MCP (Composio). Always search tools first for current schemas.

graphhopper-automation

16
from diegosouzapw/awesome-omni-skill

Automate Graphhopper tasks via Rube MCP (Composio). Always search tools first for current schemas.

grafbase-automation

16
from diegosouzapw/awesome-omni-skill

Automate Grafbase tasks via Rube MCP (Composio). Always search tools first for current schemas.