GitHub CLI Usage

SkillDev tools

Using GitHub CLI (gh) for PRs, issues, and API calls. Use when interacting with GitHub.

Available today. Use it from your connected AI after setup.

Connect ahel once, and every AI you use reads what you have installed.

Then ask your AI: use the GitHub CLI Usage skill

What this skill tells your AI

The instructions your AI receives, as published by megane-labs/megane in .agents/skills/github-cli/SKILL.md and read by ahel’s review.

Remote URL Workaround

The git remote may point to a local proxy (http://127.0.0.1:…/git/…) instead of GitHub directly. When this happens, gh commands like gh pr create fail with:

none of the git remotes configured for this repository point to a known GitHub host

Fix: Temporarily swap the remote URL

# Save current remote and switch to GitHub
ORIG_REMOTE=$(git remote get-url origin)
git remote set-url origin https://github.com/megane-labs/megane.git

# Run gh commands
gh pr create --base main --title "..." --body "..."

# Restore original remote
git remote set-url origin "$ORIG_REMOTE"

Always restore the original remote URL after the gh command completes.

Authentication

A GITHUB_TOKEN is set in the environment. No additional auth setup is needed.

Signals

GitHub stars
22
Forks
2
Last commit
Sep 2026

ahel review

  • S4info
    community integration — published by megane-labs, not github

Automated review, not a security audit. Ruleset v1.

Advanced
Catalog kind
skill
Gateway key
github-cli-megane-labs
Source
github.com/megane-labs/megane