agentleFS
shalombshalomb/agent-skills/skills/github-cli/SKILL.md

github-cli

Skill3 starsChanged 3 months agoMITView on GitHub

Execute GitHub CLI (gh) commands for repository management, issues, pull requests, workflows, releases, and API interactions (REST & GraphQL). Use when working with GitHub repositories, managing issues and PRs, executing workflows, or querying the GitHub API.

17 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use playwright-cli.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • MicrosoftSkill

    playwright-cli

    Automate browser interactions, test web pages and work with Playwright tests.

    Also in 3 projects that use this

The file

We split this skill into the rules it gives an agent

4 rules. 0 are common, 2 are distinctive, and 2 are very specific to this project.

  • 0

    Common

    Most of the 14 edited versions we read keep these.

  • 2

    Distinctive

    This author's own choices. Worth a look.

  • 2

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Use the read tool to load references/github-cli-reference.md.

    line 22
  2. Distinctive:

    Always verify user has admin/maintain permissions before adding teams to repositories

    line 36
  3. Distinctive:

    Test operations on a single repository before bulk operations

    line 38
  4. Very specific:

    Use appropriate permission levels (prefer push for most teams)

    line 39

“Common” is measured: kept by at least 6 in 10 of the 14 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

GitHub CLI (gh) Skill

This skill provides comprehensive GitHub CLI integration for managing repositories, issues, pull requests, workflows, releases, and API interactions (both REST and GraphQL).

Prerequisites

  • GitHub CLI (gh) must be installed and authenticated
  • gh auth login successfully completed
  • Active internet connection for GitHub API access
  • Appropriate repository permissions for target operations

Usage Instructions

This skill has a broad command surface and supports powerful API interactions. DO NOT GUESS COMMAND FLAGS OR GRAPHQL QUERIES.

  1. Whenever you need to perform complex operations with the GitHub CLI (e.g. advanced PR management, workflows, or raw API calls), you must first read the detailed reference documentation to see the exact syntax:
    • Use the read tool to load references/github-cli-reference.md.
  2. The reference files contain instructions for:
    • Repository, Issue, and Pull Request operations
    • Advanced PR operations: marking as draft, adding comments with context
    • GitHub Actions workflow triggering and monitoring
    • Advanced REST API calls via gh api
    • Complex GraphQL queries and mutations via gh api graphql
    • Issue Hierarchy (Parent/Child): See references/issue-hierarchy.guide.md
    • Team Management Operations: See references/github-team-management.md
    • PI Epic Issues: See references/epic-issue-template.md — template, labels, body structure, and the safe issue-rewrite pattern
    • Common developer workflow examples
  3. Team Management Best Practices:
    • Always verify user has admin/maintain permissions before adding teams to repositories
    • Handle repository redirects (renamed repos) gracefully
    • Test operations on a single repository before bulk operations
    • Use appropriate permission levels (prefer push for most teams)
  4. Whenever possible, use built-in gh commands rather than writing raw curl commands or custom Python scripts for GitHub integration.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.