agentleFS
ravvdevvravvdevv/gh-issue/SKILL.md

gh-issue

Skill0 starsChanged 4 months agoMITView on GitHub

Complete GitHub issue management — find, view, create, update, close, assign, and auto-fix via gh CLI

  • Commits and pushes

12 other projects use a version of this.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

8 rules. 0 are common, 5 are distinctive, and 3 are very specific to this project.

  • 0

    Common

    Most of the 11 edited versions we read keep these.

  • 5

    Distinctive

    This author's own choices. Worth a look.

  • 3

    Very specific

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

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

    Run at the start of every /gh-issue invocation:

    line 19
  2. Distinctive:

    Read issue → 2. Plan, confirm → 3.

    line 105
  3. Distinctive:

    Every line this skill writes must sound like a competent human wrote it, not an AI filling a template.

    line 177
  4. Distinctive:

    No filler: "This commit", "This PR", "I've noticed", "It appears", "Please review"

    line 193
  5. Very specific:

    If scope is obvious from context, omit (fix: #42 - ...

    line 195
  6. Distinctive:

    Before committing or creating a PR, diff against base branch and strip:

    line 199
  7. Distinctive:

    Defensive checks abnormal for the codebase: If the codebase doesn't null-check every parameter, don't add guards on trusted internal paths.

    line 202
  8. Very specific:

    Style inconsistent with the file: If the file uses function declarations, don't add arrow consts.

    line 204

“Common” is measured: kept by at least 6 in 10 of the 11 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

gh-issue

Complete GitHub issue management via gh CLI. Search, inspect, create, update, close, assign, and auto-fix issues end-to-end.

Preamble

Run at the start of every /gh-issue invocation:

# Resolve skill install directory (supports both global and project-local installs)
if [ -d "$HOME/.claude/skills/gh-issue" ]; then
  _GS="$HOME/.claude/skills/gh-issue"
elif [ -d ".claude/skills/gh-issue" ]; then
  _GS=".claude/skills/gh-issue"
else
  echo "ERROR: gh-issue skill directory not found."
  echo "Install: git clone https://github.com/ravvdevv/gh-issue.git ~/.claude/skills/gh-issue"
  exit 1
fi

# Verify gh CLI
if ! command -v gh &>/dev/null; then
  echo "ERROR: gh CLI not found. Install: https://cli.github.com/"
  exit 1
fi
if ! gh auth status &>/dev/null; then
  echo "ERROR: gh CLI not authenticated. Run: gh auth login"
  exit 1
fi

MANDATORY: Read the relevant $_GS/ops/<op>.md reference file BEFORE executing any gh command. Do not attempt to gh issue * without first loading the matching operation doc.

Operations

CommandDescriptionRef
/gh-issue find [query] [flags]Search issues$_GS/ops/find.md
/gh-issue view <N>Inspect issue + comments$_GS/ops/view.md
/gh-issue create --title <t>Create issue from conversation$_GS/ops/create.md
/gh-issue update <N> [flags]Edit title, body, labels$_GS/ops/update.md
/gh-issue close <N>Close with optional comment$_GS/ops/close.md
/gh-issue assign <N> <login>Add/remove assignees$_GS/ops/assign.md
/gh-issue auditScan codebase for bugs, file issues$_GS/ops/audit.md
/gh-issue fix <N>Auto-fix pipeline (branch→PR→merge)$_GS/ops/fix.md
/gh-issue changelogGenerate release notes from merged PRs$_GS/ops/changelog.md
/gh-issue sprint <create|status|close>Milestone sprint management$_GS/ops/sprint.md
/gh-issue debtScan codebase for tech debt, file issues$_GS/ops/debt.md

Quick reference

find — search issues

/gh-issue find [query] [--label <l>] [--state <open|closed|all>] [--assignee <u>] [--author <u>] [--limit <N>] [--repo <owner/repo>]

Defaults: current repo, open issues, limit 10. @me for self-assigned.

view — inspect issue

/gh-issue view <N>

Shows body, labels, assignee, milestone, comments.

create — new issue

/gh-issue create --title <t> [--body <b>] [--label <l>] [--assignee <u>]

Body written to temp file → --body-file (avoids shell escaping). Always display created URL.

update — edit issue

/gh-issue update <N> [--title <t>] [--body <b>] [--add-label <l>] [--remove-label <l>]

Repeat flags for multiple values. Multi-line body → temp file pattern.

close — close issue

/gh-issue close <N> [--comment <c>]

assign — manage assignees

/gh-issue assign <N> <login>     # assign
/gh-issue update <N> --remove-assignee <login>  # unassign

@me not supported — use actual login.

fix — auto-fix pipeline

/gh-issue fix <N>
  1. Read issue → 2. Plan, confirm → 3. Branch → 4. SCOPE (feature manifest) → 5. TRACE (deps) → 6. DIAGNOSE (root cause) → 7. Implement (3-strike rule) → 8. Pre-commit cleanup → 9. Commit → 10. Push → 11. PR → 12. Self-review → 13. Handle review comments → 14. Squash-merge → 15. Report.

Iron Law: no code written until SCOPE/TRACE/DIAGNOSE complete.

audit — codebase scan

/gh-issue audit
  1. Explore codebase → 2. Analyze for bugs/security/error-handling → 3. Present findings → 4. Confirm → 5. File issues (uses create op).

Max 10 findings, deduped against existing open issues. Senior dev voice in filed issues.

changelog — release notes

/gh-issue changelog

Scans merged PRs + closed issues since last git tag. Categorizes (Added/Fixed/Changed/Deprecated/Removed/Security). Uses "Unreleased" if no tags exist.

sprint — milestone management

/gh-issue sprint create               # create milestone with goal + due date
/gh-issue sprint status               # show open/closed counts, burndown
/gh-issue sprint close                # close milestone, report velocity, list carry-over

Sprint name format: sprint-N-YYYY-mm. Carry-over > 30% flagged as over-commitment warning.

debt — tech debt scanning

/gh-issue debt

Scans codebase for TODO/FIXME/HACK, dead code, deep nesting, magic numbers, missing error handling. Ranks HIGH/MED/LOW. Files deduped issues with tech-debt label. Max 10 per run.

Common workflows

Bug triage:

/gh-issue find --state open --label bug
/gh-issue view 15
/gh-issue update 15 --add-label triaged
/gh-issue assign 15 alice

Auto-fix bugs:

/gh-issue find --label bug --limit 3
/gh-issue fix 12
/gh-issue fix 18

Create issue from conversation: User describes bug → extract details → write temp file body → gh issue create --body-file.

Sprint close:

/gh-issue sprint close

Release cut:

/gh-issue sprint close
/gh-issue changelog
git tag v1.2.0 && git push origin v1.2.0

Tech debt sweep:

/gh-issue debt
# review findings → confirm which to file → issues created

Output quality — senior dev voice, no slop

Every line this skill writes must sound like a competent human wrote it, not an AI filling a template. Two dimensions: what you say (prose) and what you ship (code).

Prose — PRs, commits, issues, comments

Do NOT write like this (AI slop):

  • "This commit addresses issue #42 by implementing a comprehensive token validation mechanism that checks for expiry before allowing access to protected resources."
  • "I've noticed that when users attempt to log in with an email address that contains trailing whitespace characters, the application returns a 500 Internal Server Error."
  • "Closes #42. This PR fixes the token issue by adding validation. Please review."

Write like this (senior dev):

  • fix(auth): #42 - validate refresh token expiry
  • "Login returns 500 when email has trailing space" — not the AI-verbose version above
  • PR body: Closes #42\n\nWhat changed:\n- Token expiry check before signature verification\n- Returns TOKEN_EXPIRED error code\n\nWhy this way:\n- Expiry check is cheaper, fails fast\n- Frontend routes TOKEN_EXPIRED to re-auth\n\nTesting: expired, valid, malformed tokens

Rules:

  • Lead with the point. One sentence says what changed and why.
  • No filler: "This commit", "This PR", "I've noticed", "It appears", "Please review"
  • Conventional commits for PR/commit titles with scope
  • If scope is obvious from context, omit (fix: #42 - ... not fix(auth): #42 - ...)

Code — no AI code slop

Before committing or creating a PR, diff against base branch and strip:

  1. Extra comments a human wouldn't add. No // This function validates the token on a function called validateToken. No inline play-by-play of obvious code. Match the file's existing comment density — if the file is sparsely commented, your additions should be too.
  2. Defensive checks abnormal for the codebase. If the codebase doesn't null-check every parameter, don't add guards on trusted internal paths. Match the existing error-handling style.
  3. Casts to any to get around type issues. Fix the type properly instead. as any is a lint suppressions, not a solution.
  4. Style inconsistent with the file. If the file uses function declarations, don't add arrow consts. If it uses 2-space indent, match it. If it uses named exports, don't add defaults.

Report what was stripped in 1-2 sentences at commit/PR time.

Prerequisites

  • gh CLI installed and authenticated (gh auth status)
  • Git repo with GitHub remote
  • Temp directory writable (/tmp or $TMPDIR)

Edge cases

ConditionBehavior
gh not installedPreamble detects, shows install link
gh auth status failsPreamble detects, prompts gh auth login
Skill dir not foundPreamble detects, shows clone command
Issue N missingError, exit
Multi-line body--body-file temp file (never inline body string)
Branch existsgit switch instead of git checkout -b
PR exists for branchSkip create, go to merge
Merge conflictAbort, user resolves manually
No git remoteError, exit

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.