AgentStack
Browse Sign in
Browse Why AgentStack Sell Docs
Sign in
SKILL verified MIT Self-run

Github Cli

skill-esurovtsev-langchain-lab-github-cli · by esurovtsev

Use this skill for any GitHub-related task. Always read it before using gh. It contains the default commands and operating rules for working with GitHub through the local gh CLI.

No reviews yet
0 installs
15 views
0.0% view→install

Install

$ agentstack add skill-esurovtsev-langchain-lab-github-cli

✓ scanned · ✓ verified, works with Claude Code, Cursor, and more.

Security review

✓ Passed

No issues found. Passed automated security review. · v0.1.0 How review works →

  • Prompt-injection patterns
  • Secret / credential exfiltration
  • Dangerous shell & filesystem operations
  • Untrusted network calls
  • Known-malicious package signatures

What it can access

  • Network access No
  • Filesystem access No
  • Shell / process execution No
  • Environment & secrets No
  • Dynamic code execution No

From automated source analysis of v0.1.0. “Used” means the capability is present in the source — more access means more to trust, not that it’s unsafe.

View the full security report →

Verified badge

Passed review? Show it. Paste this badge into your README, it links to the public security report.

AgentStack Verified badge Links to your public security report.
[![AgentStack Verified](https://agentstack.voostack.com/badges/verified.svg)](https://agentstack.voostack.com/security/report/skill-esurovtsev-langchain-lab-github-cli)

Reliability & compatibility

Security review passed
0 installs to date
no reviews yet
4mo ago

Declared compatibility

Claude CodeClaude Desktop

Compatibility is declared by the source manifest. End-to-end runtime verification is coming, see below.

Preview Execution monitoring

We're building live execution health for every listing: tool-call success rate, median latency, uptime, and last-checked timestamps, measured, not self-reported. It isn't live yet, so we don't show numbers we can't stand behind.

How agent discovery & health will work →
Are you the author of Github Cli? Claim this listing to set pricing, connect Stripe payouts, and keep 70% of every sale.
Sign up to claim

About

GitHub CLI

When to Use This Skill

Use this skill for GitHub-related tasks when working through the local gh CLI.

Examples:

  • inspect the authenticated user's repositories
  • read a repository README to understand the project
  • inspect repository metadata
  • work with issues or pull requests

Core Rules

  • Always read this skill before using gh.
  • Prefer short, single-purpose shell commands.
  • Do not start read-only inspection tasks with composite shell scripts.
  • Use GH_PAGER=cat by default.
  • Use NO_COLOR=1 CLICOLOR=0 when output will be parsed or piped.
  • Prefer --json and --jq when available.
  • Do not guess flags from memory. If syntax is uncertain, run GH_PAGER=cat gh --help or the relevant subcommand help first.
  • Do not use gh auth status --show-token.

Shell Discipline

  • Prefer one gh action per shell call.
  • Avoid $(...), while read, long && chains, and large inline scripts for routine inspection.
  • Inspect first, then summarize.
  • If a command fails, simplify the next step instead of making the command longer.

Typical Use Cases

1. Get the Authenticated User

Use this when the task says "my repos", "my PRs", or similar.

GH_PAGER=cat gh api user -q '.login'

2. Get General Understanding of a Project

Start with the repository README. This is the default way to get basic project understanding.

Use this exact command:

GH_PAGER=cat gh api repos///readme --jq '.content' | base64 --decode

Rules:

  • Use this as the default README command.
  • Do not try gh repo view --json readme.
  • Only try another approach if this README command fails.

3. Get Recent Repositories for an Account

For recent GitHub activity, use structured output first.

GH_PAGER=cat NO_COLOR=1 CLICOLOR=0 gh repo list  --limit 100 --json name,nameWithOwner,isFork,updatedAt --jq 'map(select(.isFork == false)) | sort_by(.updatedAt) | reverse | .[:3]'

Important:

  • This uses updatedAt, which means recent GitHub-side updates.
  • If you specifically need recent code work rather than generic repo updates, use pushed_at via gh api instead.

Recent code work example:

GH_PAGER=cat NO_COLOR=1 CLICOLOR=0 gh api 'users//repos?per_page=100&sort=pushed' -q 'map(select(.fork == false)) | .[:3] | map({name: .name, full_name: .full_name, pushed_at: .pushed_at})'

4. Inspect Repository Metadata

Use gh repo view for high-level metadata, not for README content.

GH_PAGER=cat gh repo view / --json name,description,url,updatedAt,pushedAt

5. List Pull Requests or Issues

GH_PAGER=cat gh pr list --json number,title,state,author
GH_PAGER=cat gh issue list --json number,title,state,assignees

If the built-in command does not expose the fields you need, use gh api.

If Something Fails

  • If syntax is uncertain, inspect help before retrying:
GH_PAGER=cat gh --help
GH_PAGER=cat gh repo --help
GH_PAGER=cat gh repo list --help
GH_PAGER=cat gh api --help
  • After one syntax failure, inspect help instead of guessing again.
  • If a high-level command is too limited, switch to gh api.
  • If README retrieval fails, report that the README is unavailable and continue if enough evidence remains.

Safety

  • Never print tokens or secret env vars.
  • Prefer read-only commands unless the user explicitly asks for changes.
  • Before write operations, inspect the target state first.

Source & license

This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.

Install and usage instructions live in the source repository linked above.

Reviews

No reviews yet, be the first.

Versions

  • v0.1.0 Imported from the upstream source.