Every premium and members-only resource for $9.99/month, as a no-commitment subscription. See the plans

PalateKit

Menu

Request a resource

Describe the resource you are missing in one sentence. We will email you when it is published.

0 / 280

Unlock PalateKit

Unlock everything

Plan

Paying means accepting our terms of sale.

Secure payment by Stripe. Receipts and invoices sent by email.

Welcome back

Sign in to install, download or save this resource. A free account is enough for free resources.

Using the gh CLI from agents v1.0.0

Use this resource to drive GitHub reliably with the gh CLI from an agent

New

  • 497 downloads
  • 186 likes
  • 216 saves

Free

Install with the CLI

In a terminal, from the folder you want:

npx --yes palatekit@latest install github-cli-agent-patterns

With no option, the skill goes to ~/.agents/skills/; add --agent claude-code (or codex, cursor…) to target an agent.

First time: connect the CLI with

npx --yes palatekit@latest login

The agent runs gh non-interactively, asks for structured JSON output, handles pagination and targets the right repository. It falls back to gh api when a command does not cover the need. You get reliable GitHub calls that are easy to parse.

Mostly picked by

Updated November 2, 2026

Card for the “Using the gh CLI from agents” skill

Details

Generates with
Your agent's model
Licence
MIT

Similar resources

View all

What you get

  • SKILL.md: JSON output, pagination and repository targeting
  • SKILL.md: search versus list, issues, discussions and repository files
  • SKILL.md: fallback to gh api

Good fit for

  • Your agent needs to read issues or pull requests
  • A GitHub list is silently truncated

Not for

    Tags

    • github
    • cli
    • gh
    • pull request

    About

    You say

    “List the open pull requests of this repository as JSON and tell me which ones are waiting for review.”

    Card for the “Using the gh CLI from agents” skill

    Skill published by cli under the MIT license, delivered in its original version.

    Show more

    How to use it

    1. Install the skill in your agent's skills folder
    2. Ask your agent to drive GitHub reliably with the gh CLI from an agent
    3. Review and adjust the result

    Content preview

    Files

    • LICENSE1 KB
    • NOTICE-PALATEKIT.md0.4 KB
    • SKILL.md21.1 KB

    Origin and licence

    Listed unmodified

    Author
    cli
    Source
    github.com/cli/cli/tree/f7a06a18a91eef5c0b218b549dab64b86f36f8b9/skills/gh
    Licence
    MIT

    Notice

    « gh » (cli, MIT) livré dans sa version d'origine : fiche en français et en anglais par PalateKit.

    User reviews

    –

    No ratings yet

    Loading reviews…

    Delete your review?

    Your rating and comment will be removed from the page.