Index of every page on this site: llms.txt
All skills
devon-systems avatar

/gh-cli

@52b1f68
by Devon Systemsdevon-systems/hoenn250 stars
3
Run it yourself

Standardize all GitHub work via `gh` CLI (repos, issues, PRs, reviews, Actions, labels, releases). Trigger on any GitHub URL (incl. deep links like /pull/123, /issues/123,

  • 9 files
  • 19 KB
  • Updated 3 weeks ago
  • GitHub
Use this Skill: https://skilld.dev/gh/devon-systems/hoenn/gh-cli

Nothing lands on disk. Nothing to clean up.

Fork this Skill

Edit a local copy. It keeps the author and licence.

SKILL.md

≈45 tokens for metadata: the name and description. ≈530 when used: this file. ≈790 more on demand in 1 file.

Description uses 2.3% of example budget

Before choosing a Skill, your Agent reads its name and description. All available Skills share that space.

  • A shorter description leaves more room for other Skills. This entry exceeds our 1% size suggestion.

In our Claude Code example, all Skill names and descriptions share 8,000 characters. This Skill uses ≈180 characters, or 2.3%.

The 1% threshold is a size suggestion. Longer descriptions can still fit.

Your model, settings, and other Skills decide how much text your Agent can read.

Example settings and source

The example uses a 200k-token context and default Claude Code settings. The count includes the name, description, separators, and when_to_use when present. Codex also counts local file paths.

Skit's source and limits: Codex 0.160.1, Claude Code 2.1.292.

GitHub gh CLI

Use gh for all GitHub work. Discover flags and --json fields with gh <command> --help and gh help formatting instead of guessing or loading a cookbook. Verify auth once per session, or when debugging it, with gh auth status.

Operating rules (do not skip)

  1. First-class commands first. Use gh issue, gh pr, gh repo, gh run, gh workflow, gh release, and so on. Use gh api only when no dedicated command exists, and say which endpoint and why.
  2. Machine-readable output. Use --json <fields> -q '<jq>' instead of parsing table output. Return only the value asked for, not the full blob.
  3. Explicit repo targeting. Prefer -R OWNER/REPO outside a known checkout. If you infer the repo from the directory, confirm it with gh repo view --json nameWithOwner -q .nameWithOwner. For repeated work in one checkout, gh repo set-default OWNER/REPO.
  4. Confirm state changes. Ask before destructive or hard-to-reverse changes: closing, merging, deleting, resolving or unresolving review threads, branch protections, permissions. Routine reversible output (review reply, comment, gh pr checkout) needs no extra gate. Keep settings changes small and reversible.

PR review feedback

Inline review comments and thread resolution state need gh api, not first-class commands. Load references/gh-commands.md only for that workflow or for gh api REST and GraphQL fallbacks.

Tooling

Scripts live in scripts/ relative to this skill.

scripts/gh_context.sh   # gh version/auth + active repo, for debugging targeting
scripts/pr_feedback.sh -R OWNER/REPO PR_NUMBER > pr-feedback.json

Reply to review feedback:

# Inline review comment (REST)
scripts/pr_review_comment_reply.sh -R OWNER/REPO PR_NUMBER COMMENT_ID --body "..."

# Review thread (GraphQL)
scripts/pr_review_thread_reply.sh PRRT_... --body "..."

# Resolve a review thread (state change; --yes required)
scripts/pr_review_thread_resolve.sh --yes PRRT_...

# Reopen a resolved thread (state change; --yes required)
scripts/pr_review_thread_unresolve.sh --yes PRRT_...

Source: SKILL.md on GitHub

skilld matched fixed text patterns in SKILL.md and file names. Patterns miss obfuscated code.

skilld run checks every file with the same patterns. It asks for approval before it loads a Skill with a behavior marked Needs approval.

No third-party reports yet.

Signed by skilld at 52b1f68. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub yesterday.

Activeupdated 3 weeks ago

README badge

README badge for devon-systems/hoenn/gh-cli