CtrlK
BlogDocsLog inGet started
Tessl Logo
SkillPublic

gh

Install and configure the GitHub CLI (gh) for AI agent environments where gh may not be pre-installed and git remotes use local proxies instead of github.com. Use when gh command not found, shutil.which returns None, need GitHub API access for issues or PRs or releases or workflow runs, or repository operations fail with 'failed to determine base repo' error. Provides auto-install script with SHA256 verification, GITHUB_TOKEN auth with anonymous fallback, and the required -R flag pattern for proxy environments. Covers project management via GitHub Projects V2, milestones via REST API, issue lifecycle templates, and label taxonomy management.

Quality

91%

Does it follow best practices?

Run evals on this skill

Adds up to 20 points to the overall score

View guide
SecuritybySnyk

Low

Low-risk findings worth noting

SKILL.md
Quality
Evals
Security

Quality

Content

78%Weight 40%Scale 1-5

Reviews the quality of instructions and guidance provided to agents. Good implementation is clear, handles edge cases, and produces reliable results.

A well-structured, mostly executable skill body: the environment-specific knowledge (proxy remotes requiring -R, token auth fallback, install script) is exactly what Claude would not know on its own, and details are correctly offloaded to real one-level-deep reference files. The main improvements are tightening repeated authentication statements, showing actual common gh commands instead of only the detect-only invocation, and adding explicit post-install/batch validation steps.

Suggestions

Tighten the Authentication section: state the GITHUB_TOKEN behavior once instead of twice ('GITHUB_TOKEN environment variable provides automatic authentication...' followed by 'If GITHUB_TOKEN is set, gh authenticates automatically...'), and move the pinned 'gh version 2.87.2 (2026-02-20)' line out of Sources into a clearly scoped version/deprecation note so it doesn't silently age.

Make 'Common Commands' deliver on its title: inline 3-5 real invocations (e.g., 'gh pr list -R <owner/repo>', 'gh issue view 12 -R <owner/repo>', 'gh run list -R <owner/repo>') instead of relying solely on the dynamic '!setup_gh.py --detect-only' output.

Add explicit validation checkpoints: a post-install 'gh --version' check after running setup_gh.py, and a note on how the batch operations in github_project_setup.py (label setup, issue import) are validated or safely re-run/rolled back on partial failure.

DimensionReasoningScore

Conciseness

The body is mostly lean — command blocks, bullet lists, a 6-step description of a bundled script Claude cannot otherwise know about. Minor trimmable redundancy: the Authentication section states 'GITHUB_TOKEN environment variable provides automatic authentication' and then repeats 'If GITHUB_TOKEN is set, gh authenticates automatically for all API calls', and the 'Time-sensitive' guideline applies to the hardcoded 'gh version 2.87.2 (2026-02-20)' line, which is not in a deprecated/old-patterns section. This fits the score-4 anchor 'Efficient; minor instances of over-explanation that could be trimmed' rather than the score-5 'every token earns its place'.

4 / 5

Actionability

Most guidance is copy-paste ready: 'uv run .claude/skills/gh/scripts/setup_gh.py', a concrete CLI-options block, 'gh <command> -R <owner/repo>', and github_project_setup.py subcommands with real flags ('milestone create --title "v1.0" --due 2026-03-31'). The gap is the 'Common Commands' section, whose title promises actual gh command examples but contains only a dynamic '!...setup_gh.py --detect-only' invocation — the common pr/issue/run commands themselves are never shown inline. This places it at 'Mostly executable guidance; concrete code or commands with minor gaps' rather than the fully-executable score-5 anchor.

4 / 5

Workflow Clarity

The setup sequence is clear and ordered: detect gh missing → run setup script (with SHA256 verification and 401/403 auth fallback described) → verify with 'gh auth status' → apply the mandatory -R rule. Most checkpoints are present, but a post-install verification (e.g., 'gh --version') is only implicit in the script description, and the batch automation operations (label setup, issue import) have no stated validation/rollback guidance in SKILL.md. That matches score 4, 'Clear sequence with most checkpoints present; minor validation gaps' — not 3 (the sequence is explicit and validation exists for install) and not 5 (no explicit feedback loop for the batch operations).

4 / 5

Progressive Disclosure

The body is a ~130-line overview: core install/auth/-R guidance inline, with the four detail domains (labels, milestones, Projects V2, issue stories) split into one-level-deep references, each listed with a one-line description under 'Reference Files' ('[labels.md](./references/labels.md) — Label taxonomy...'). All six referenced paths were verified to exist on disk. This matches the score-5 anchor 'Clear overview with well-signaled one-level-deep references; content appropriately split; easy navigation'.

5 / 5

Total

17

/

20

Passed

Description

100%Weight 40%Scale 1-5

Based on the skill's description, can an agent find and select it at the right time? Clear, specific descriptions lead to better discovery.

An exemplary description: it states concrete capabilities (install with checksums, token auth with fallback, -R proxy pattern, Projects V2/milestones/issues/labels coverage) and pairs them with an explicit 'Use when' clause containing both natural phrases and literal error strings an agent would encounter. Dense but not padded — every clause carries information.

DimensionReasoningScore

Specificity

The description lists many concrete actions with no filler: 'Install and configure the GitHub CLI (gh)', 'auto-install script with SHA256 verification', 'GITHUB_TOKEN auth with anonymous fallback', 'required -R flag pattern', 'milestones via REST API', 'label taxonomy management'. This matches the anchor 'Lists multiple specific concrete actions; comprehensive coverage' — well beyond the score-4 anchor ('several specific actions; minor gaps'), as it covers install, auth, usage pattern, and four management domains.

5 / 5

Completeness

It explicitly answers what ('Install and configure the GitHub CLI... Provides auto-install script with SHA256 verification...') and when ('Use when gh command not found, shutil.which returns None, need GitHub API access...'). This is a textbook match for the score-5 anchor 'Clearly and explicitly answers both what AND when with concrete trigger phrases'; the explicit 'Use when' clause also avoids the cap noted in the guidelines.

5 / 5

Trigger Term Quality

Trigger phrases are exactly what a user/agent would encounter or say: 'gh command not found', 'shutil.which returns None', "repository operations fail with 'failed to determine base repo' error", 'need GitHub API access for issues or PRs or releases or workflow runs'. Both natural language and literal error strings are covered — comprehensive including synonyms and exact tool vocabulary, matching the score-5 anchor; score 4 ('a few natural terms missing') would understate the coverage.

5 / 5

Distinctiveness Conflict Risk

It carves a clear niche — gh setup and usage in proxied agent environments — with distinct triggers (gh-not-found, the 'failed to determine base repo' error, GITHUB_TOKEN, -R flag). The score-4 anchor ('minor overlap risk with closely related skills') is the nearest competitor, but the triggers are tool-specific and unlikely to fire a generic git or GitHub-API skill, so the score-5 'clear niche with distinct triggers' anchor fits best.

5 / 5

Total

20

/

20

Passed

Validation

100%

Checks the skill against the spec for correct structure and formatting. All validation checks must pass before discovery and implementation can be scored.

Validation — 16 / 16 Passed

Validation for skill structure

No warnings or errors.

Repository

Jamie-BitFlight/claude_skills

Path

.claude/skills/gh/SKILL.md

Reviewed

Table of Contents

Is this your skill?

If you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.