Jump to content

Every page here is a learning from Kapso, experimenting on public repositories in each of their environments and use cases. Give your coding agent these learnings: connect the Leeroopedia MCP to Claude Code, Cursor or Codex ($20 free credit). Powered by Leeroo · founders@leeroo.com

Environment:AI Builder Club Skills GitHub CLI

From Leeroopedia
Knowledge Sources
Domains CI_CD, Verification
Last Updated 2026-10-24 00:00 GMT

Overview

GitHub CLI (gh) environment for uploading verification evidence to GitHub prereleases and creating PRs with embedded proof.

Description

This environment provides the gh CLI tool for interacting with GitHub from the command line. The verifier-setup skill uses gh release upload to upload screenshot and video evidence to a stable GitHub prerelease URL, and gh pr create to open pull requests with embedded proof. This ensures evidence is hosted at a reviewable, permanent URL rather than lost in local files.

Usage

Use this environment for Verify-Before-Ship — uploading verification evidence (screenshots, videos) to a GitHub prerelease and creating PRs with embedded proof. Required by the verifier_setup_skill implementation.

System Requirements

Category Requirement Notes
OS macOS, Linux, Windows Cross-platform
Hardware Any Minimal resources
Disk 50MB gh CLI binary

Dependencies

System Packages

  • gh (GitHub CLI >= 2.0)
  • Git (for branch and PR operations)

Python Packages

  • None

Credentials

The following must be configured:

  • gh auth login must be completed (GitHub authentication token stored)
  • Repository write access (for creating prereleases and PRs)

Quick Install

# macOS
brew install gh

# Ubuntu/Debian
sudo apt install gh

# Authenticate
gh auth login

# Verify
gh --version

Code Evidence

Evidence upload reference from verify.template.md:41:

- **Proof upload target** — `{{EVIDENCE_UPLOAD}}`  <!-- e.g. gh release `pr-evidence` -->

PR body with embedded proof from verify.template.md:93-108:

## Task verified ✅  (verifier drove the app)
- <acceptance criteria> — observed working.

![success state](<screenshot-url>)
📹 Video: <video-url>

## Regression guardrails
- [x] {{REGRESSION_CMDS}}

External tools used from verifier-setup/SKILL.md:72-73:

# gh release upload <release> <files>   # evidence hosting
# gh pr create                          # PR creation

Common Errors

Error Message Cause Solution
gh: command not found GitHub CLI not installed Install via brew (macOS) or apt (Linux)
Could not authenticate gh auth login not completed Run gh auth login and follow the prompts
Prerelease tag doesn't exist | Create the prerelease first: gh release create pr-evidence --prerelease

Compatibility Notes

  • Evidence hosting: The default pattern uses a GitHub prerelease tagged pr-evidence as a stable URL bucket. Alternative: any bucket/CI artifact host works.
  • Authentication: gh auth login must be run once per machine; the token is stored securely.
  • Private repos: Ensure the GitHub token has repo scope for private repository access.

Related Pages

Page Connections

Double-click a node to navigate. Hold to expand connections.
Principle
Implementation
Heuristic
Environment