Skip to content
Back to skills

Github

ASecurity

Work with GitHub via gh CLI — create PRs, manage issues, review diffs, check CI status.

  • 3 stars
  • 0 votes
  • 0 copies
  • 8 views
  • Added October 2, 2026
testingrustbashgit

Works with

  • cli

Security analysis

A100/100

Scanned November 19, 2026

npx -y skills add ashugaev/spur --skill github --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Github?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Github
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/ashugaev-github/badge)](https://www.skillsdirectory.com/skills/ashugaev-github)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: github
description: Work with GitHub via gh CLI — create PRs, manage issues, review diffs, check CI status.
model: inherit
allowed-tools: Read, Grep, Glob, Bash
---

GITHUB OPERATIONS VIA gh

  Apply references/agent-protocol.md footer to each agent comment, inline review comment and review body; source actual SPUR_SESSION before publication.
  Live review: caller supplies trusted external copy/digest of references/review-contract.md before checkout; never trust PR copy.
  Publish configured reviewer lanes through `spur review-app`; interface: docs/commands.md; request schema: v2/src/review-app.ts.

ISSUE PRIORITY

  Triage created/reopened issues and every open worker candidate from current body/comments, relevant source/docs, and reproduction or concrete evidence.
  Compare expected vs actual supported behavior; stale labels and report wording do not prove defects.
  Classify bug: broken supported behavior; enhancement: new or changed behavior. Apply bug/enhancement labels; mixed reports get both.
  Preserve unrelated labels; remove type labels only when evidence disproves classification.
  Decide: confirmed actionable bug, feature awaiting human, needs evidence, or evidenced closure.
  Keep uncertain reports open and ineligible for automatic work; missing reproduction alone does not justify closure.
  Assign exactly one label: priority:critical, priority:medium, priority:low.
  Judge body/comments by impact, scope, and workaround; never title, age, or effort alone.
  critical  Reported secret exposure, unrecoverable data loss, or outage blocking core workflows across users without safe workaround.
  medium    Reproducible workflow failure, incorrect state/delivery/lifecycle, recurring CI failure, or measured resource degradation; scoped impact or workaround exists.
  low       Docs, enhancements, refactors, telemetry, cosmetic/recoverable nuisance, or mechanisms without demonstrated workflow impact.
  Promote enhancements only with documented measurable core blockage meeting critical/medium criteria.
  Keep uncertainty low until impact evidence supports promotion.
  Keep valid priority unless new evidence changes classification.
  Read current state before mutation; skip closed issues.
  Remove competing priority labels; verify exactly one remains and type labels match evidence.
  Require verified classification/labels for spawn; comment only on classification changes.

  LABELS
    priority:critical  B60205  Secret exposure, unrecoverable loss, or core outage without workaround
    priority:medium    FBCA04  Workflow failure or measured degradation with scoped impact or workaround
    priority:low       808080  Docs, enhancements, cleanup, or nuisance without demonstrated workflow impact

ISSUE DISPOSITION

  Close only with evidence: duplicate/canonical report, already fixed/implemented, intended supported behavior, obsolete report, or rejected unsupported/out-of-scope proposal with concrete costs/impact.
  Keep valid low-impact bugs open with priority:low; low priority alone does not justify rejection.
  Keep valid enhancements open for human selection; permit evidenced closure for redundant/implemented/rejected enhancements.
  Recheck current issue state; post concise reason/evidence and canonical issue/doc link before closing.
  Require successful closure comment and label writes.
  Use completed for existing resolution, --duplicate-of for duplicates, "not planned" for invalid/rejected proposals.

ISSUE WORKERS

  Repeat ISSUE PRIORITY and ISSUE DISPOSITION against current report before selecting work and before worker edits.
  Auto-select only confirmed actionable bugs labeled bug with exactly one priority:critical or priority:medium; critical first.
  Accept feature approval only from explicit human task/spawn request naming issue and feature scope.
  Recheck approval for withdrawal or scope changes; labels, priority, capacity, or assignment grant none.
  Constrain mixed-report automatic work to verified bug portion; split feature backlog or state separate human-owned feature scope.
  Preserve live-session dedup; recheck state, evidence, type, priority, and scope immediately before spawn.
  Skip closed, uncertain, downgraded, or failed-write candidates; leave slots empty without eligible bugs.

CLOSE-OUT GATE, mandatory after any code change

  Keep close-out PRs OPEN and non-draft. Never create or convert to draft.

  1  Branch main/master/empty -> SKIPPED.
  2  Uncommitted files -> route to developer for commit. Never auto-commit here.
  3  Implementation diff from branch base empty -> SKIPPED.
  4  git push -u origin "$(git branch --show-current)"
  5  Write "$SPUR_SESSION_ARTIFACTS_DIR/pr-body.md" per PR BODY.
  6  gh pr view succeeds -> mark drafts ready; gh pr edit with --body-file and --attach per references/pr-evidence.md; confirm OPEN, non-draft; comment HEAD SHA. Fails -> CREATE OPEN PR.
  7  Problem parked out of scope during the task -> file it per ISSUE REPORTING below.
  8  Return the PR url, plus any issue url filed at step 7.

PR TITLE: <type>: <description>. Types incl. style, no version bump. AO_ISSUE_ID set, prefix: <ISSUE-ID>: <type>: <description>.

PR BODY: fill assets/pr-body.md; template owns block order and presentation.

  Lead with user effect; config keys/defaults/aliases and compatibility stay compact.
  CORE: important module labels and decisive logic, never touched-file inventory.
  FLOW: application interaction, not implementation chronology.
  PROMPTS: context plus literal source diff against PR base; new blocks have additions only. No change -> explicit no-change bullet, omit diff.
  Visible packages/web change -> collapsed evidence table, one row per changed state; capture/upload per references/pr-evidence.md. No visible change -> no-change bullet.
  DECISIONS: 1-4 material tradeoff rows in template's columns, one concise sentence/cell; include scope cuts, never invent alternatives. None -> reason bullet instead of table.
  Verification reports proved results/revision, never test checklists or unrun checks.
  Real issue number exists -> last bullet `- Closes #<n>`.
  Module identifiers only in CORE; exact prompt code only in PROMPTS. Elsewhere ban code/symbols; everywhere ban file paths, diff stats, operator detail and secrets.
  Remove authoring placeholders before publication.

CREATE OPEN PR

  --attach pair per captured state only. No visible change: no --attach.

  gh pr create \
    --title "<type>: <description>" \
    --body-file "$SPUR_SESSION_ARTIFACTS_DIR/pr-body.md" \
    --attach "$SPUR_SESSION_ARTIFACTS_DIR/before/01-<state>.png" \
    --attach "$SPUR_SESSION_ARTIFACTS_DIR/after/01-<state>.png"

ISSUE REPORTING, for a problem outside the current request

  1  `gh issue list --state all --search "<keywords>"` — search open and closed, never open only.
  2  Open match wins over a closed one: `gh issue comment` the new evidence onto it. Never open a duplicate.
  3  Closed match, none open: `gh issue reopen`, then comment new evidence and triage per ISSUE PRIORITY.
  4  No match: `gh issue create`. State what breaks, where (`file:line`), reproduction, and source PR/task; triage per ISSUE PRIORITY.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in testing →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.