Xpersona
G

Github Cli

CLAWHUB · Unverified

Comprehensive GitHub CLI (gh) reference. Covers repos, issues, PRs, Actions, releases, gists, search, projects v2, API, secrets/variables, labels, codespaces... Skill: Github Cli Owner: tag-assistant Summary: Comprehensive GitHub CLI (gh) reference. Covers repos, issues, PRs, Actions, releases, gists, search, projects v2, API, secrets/variables, labels, codespaces... Tags: latest:1.0.0 Version history: v1.0.0 | 2026-02-15T17:00:55.479Z | auto Initial release: comprehensive reference for the GitHub CLI (gh). - Covers commands for repos, issues, PRs, Actions, releases, gists,

62
Rank
84
Safety
12k
Downloads

About

What it does, and when to use it.

Capability contract not published. No trust telemetry is available yet. 12.1K downloads reported by the source. Last updated 11/16/2026.

Avoid when

  • Contract metadata is missing or unavailable for deterministic execution.

Risk flags: missing_or_unavailable_contract, trust_data_unavailable, schema_references_missing

Install and run

Setup complexity: low.

clawhub skill install s17bnqhgmzxahjkwfj9rs88zgd8847d4:github-cli
  1. Setup complexity is LOW. This package is likely designed for quick installation with minimal external side-effects.
  2. Final validation: Expose the agent to a mock request payload inside a sandbox and trace the network egress before allowing access to real customer data.

Contract: missing

curl -s "https://www.xpersona.co/api/v1/agents/clawhub-tag-assistant-github-cli-thub-cli-2/snapshot"

Run-check

$0.02 USD

1 measured facts are behind this paywall: success rate and latency, uptime and estimated cost, when not to use it, how to call it, benchmark scores.

Agents pay $0.02 in USDC. A card payment is $0.50, the smallest a card allows.

Documentation

CLAWHUB

48,313 characters of source documentation, loaded on request.

Extracted files

3 files captured from the source.

SKILL.md

---
name: github-cli
description: "Comprehensive GitHub CLI (gh) reference. Covers repos, issues, PRs, Actions, releases, gists, search, projects v2, API, secrets/variables, labels, codespaces, extensions, auth, and advanced GraphQL patterns."
metadata:
  {
    "openclaw":
      {
        "emoji": "🐙",
        "requires": { "bins": ["gh"] },
        "install":
          [
            {
              "id": "brew",
              "kind": "brew",
              "formula": "gh",
              "bins": ["gh"],
              "label": "Install GitHub CLI (brew)",
            },
            {
              "id": "apt",
              "kind": "apt",
              "package": "gh",
              "bins": ["gh"],
              "label": "Install GitHub CLI (apt)",
            },
          ],
      },
  }
---

# GitHub CLI (`gh`) — Comprehensive Skill

Version: gh 2.66.1+  
Auth: `gh auth login` or set `GH_TOKEN` env var  
Always use `--repo OWNER/REPO` (or `-R`) when not inside a git repo directory.

---

## Table of Contents

1. [Authentication & Config](#1-authentication--config)
2. [Repositories](#2-repositories)
3. [Issues](#3-issues)
4. [Pull Requests](#4-pull-requests)
5. [GitHub Actions (Runs & Workflows)](#5-github-actions-runs--workflows)
6. [Releases](#6-releases)
7. [Gists](#7-gists)
8. [Search](#8-search)
9. [Labels](#9-labels)
10. [Secrets & Variables](#10-secrets--variables)
11. [Caches](#11-caches)
12. [Projects V2](#12-projects-v2)
13. [API (REST & GraphQL)](#13-api-rest--graphql)
14. [Extensions](#14-extensions)
15. [Codespaces](#15-codespaces)
16. [Copilot](#16-copilot)
17. [Other Commands](#17-other-commands)
18. [JSON Output & Formatting](#18-json-output--formatting)
19. [Environment Variables](#19-environment-variables)
20. [Advanced Patterns](#20-advanced-patterns)
21. [Tips & Gotchas](#21-tips--gotchas)

---

## 1. Authentication & Config

### Auth

```bash
# Interactive login (browser-based OAuth)
gh auth login

# Login with a PAT from stdin
echo "$MY_TOKEN" | gh auth login --with-token

# Login to GitHub Enterprise
gh auth login --hostname enterprise.example.com

# Add extra scopes (e.g., project scope for Projects V2)
gh auth refresh -s project

# Add delete_repo scope
gh auth refresh -s delete_repo

# Check auth status (shows active account, scopes, token validity)
gh auth status
gh auth status --show-token

# Switch active account (when multiple accounts configured)
gh auth switch

# Print the active token (useful for piping to other tools)
gh auth token

# Logout
gh auth logout
```

**Required scopes by feature:**
| Feature | Scope needed |
|---------|-------------|
| Basic repo/PR/issue ops | `repo` |
| Gists | `gist` |
| Read org membership | `read:org` |
| Projects V2 | `project` |
| Delete repos | `delete_repo` |
| Actions workflows | `workflow` |
| Read user profile | `user` |

### Config

```bash
# List all config
gh config list

# Get/set individual values
gh config get git_protocol        # https or ssh
gh config set git_proto

_meta.json

{
  "ownerId": "kn79bv7tvj1qp1a7e7ey82d4sn80z5rg",
  "slug": "github-cli",
  "version": "1.0.0",
  "publishedAt": 1771174855479
}

skill-card.md

## Description:

Comprehensive GitHub CLI (gh) reference. Covers repos, issues, PRs, Actions, releases, gists, search, projects v2, API, secrets/variables, labels, codespaces, extensions, auth, and advanced GraphQL patterns.

This skill is ready for commercial/non-commercial use.

## Publisher:

[tag-assistant](https://clawhub.ai/user/tag-assistant)

### License/Terms of Use:


## Use Case:

Developers and automation engineers use this skill as a GitHub CLI reference for repository, issue, pull request, Actions, release, project, API, secret, variable, codespace, and authentication workflows.

### Deployment Geography for Use:

Global

## Known Risks and Mitigations:

Risk: Examples can perform live GitHub account, repository, secret, variable, workflow, release, project, and API changes.

Mitigation: Verify the repo, org, account, scopes, command effects, and destructive flags before running examples against a real GitHub account.

Risk: Token and secret examples can expose or modify sensitive credentials if copied without review.

Mitigation: Use least-privilege tokens, avoid printing tokens, protect shell history and logs, and rotate credentials if exposure is suspected.

Risk: Extension and raw API or GraphQL examples can execute third-party extension behavior or mutate resources outside common CLI workflows.

Mitigation: Install only trusted extensions and review raw API payloads before execution.

## Reference(s):

- [ClawHub skill page](https://clawhub.ai/tag-assistant/skills/github-cli)
- [Publisher profile](https://clawhub.ai/user/tag-assistant)

## Skill Output:

**Output Type(s):** [Guidance, Markdown, Shell commands, Configuration, Code]

**Output Format:** [Markdown with inline bash, JSON, and GraphQL examples]

**Output Parameters:** [1D]

**Other Properties Related to Output:** [Requires the GitHub CLI binary `gh`; examples may require GitHub authentication, environment tokens, and feature-specific scopes.]

## Skill Version(s):

1.0.0 (source: server release metadata)

## Ethical Considerations:

Users should evaluate whether this skill is appropriate for their environment, review any generated or modified files before relying on them, and apply their organization's safety, security, and compliance requirements before deployment.

Sponsored

Ads related to Github Cli and adjacent AI workflows.