gh-issue

gh-issue is a command for Claude Code from synaptiai/synapti-marketplace. It costs 0 tokens per session (1,928 once invoked), scanned A, original, Apache-2.0.

A guided command for creating a new issue in GitHub, the service teams use to track bugs and work requests. It asks for the needed context, checks for similar open issues, and can link the issue to a milestone.

In plain words
What is it for?
Use it to gather requirements, define observable acceptance criteria, search for duplicate issues, and choose an active milestone.
Why use it?
It helps turn a vague request into a clear, outcome-focused issue and reduces duplicate reports. It also makes missing details visible before the issue is created.

Command for Claude Code

Written for Claude Code: installed under .claude/. Also seen: names the AskUserQuestion tool.

Good fit Use it to gather requirements, define observable acceptance criteria, search for duplicate issues, and choose an active milestone.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/synaptiai/synapti-marketplace/gh-issue
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Clone the repo
git clone --depth 1 https://github.com/synaptiai/synapti-marketplace

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for gh-issue

README.md
[![agentmods](https://agentmods.dev/badge/commands/synaptiai/synapti-marketplace/gh-issue/github.svg)](https://agentmods.dev/commands/synaptiai/synapti-marketplace/gh-issue)
Your own site
<a href="https://agentmods.dev/commands/synaptiai/synapti-marketplace/gh-issue"><img src="https://agentmods.dev/badge/commands/synaptiai/synapti-marketplace/gh-issue/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for gh-issue

Your own site · 80×15
<a href="https://agentmods.dev/commands/synaptiai/synapti-marketplace/gh-issue"><img src="https://agentmods.dev/badge/commands/synaptiai/synapti-marketplace/gh-issue.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,928 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00000 $0.01928
Opus 5 $0.00000 $0.00964
Sonnet 5 $0.00000 $0.00386
Haiku 4.5 $0.00000 $0.00193

Measured 10d ago against content hash 7608b4d3142b, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-10, from the pricing page.

Security

Grade A, and why

gh-issue scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 10d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.claude/commands/gh-issue.md · 260 lines

How it starts

The opening of the file, as written. The whole thing — 260 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Create GitHub Issue

Create a new GitHub issue following solution-agnostic principles.

Tool Usage: This workflow uses the AskUserQuestion tool extensively for interactive dialogues. Use it to clarify ambiguity, offer choices with tradeoffs, and gather missing context.

Phase 1: Gather Requirements

  1. Use the AskUserQuestion tool to gather missing information:

    • Context: What's the background? Why is this needed?
    • Current State: What's the problem? (describe behavior, not implementation)
    • Objective: What should be achieved? (outcomes, not methods)
    • Acceptance Criteria: How do we know it's complete? (observable behavior)
  2. Extract keywords from the user's description for duplicate detection

  3. Check for milestones:

    gh api repos/{owner}/{repo}/milestones --jq '.[] | "\(.number): \(.title)"'
    

    If milestones exist, use AskUserQuestion tool:

    • Option 1: "No milestone"
    • Option 2: "[Milestone name]" (for each active milestone)

Phase 2: Search for Existing Issues

Before creating a new issue, check for potential duplicates:

  1. Search open issues using relevant keywords:

    gh issue list --state open --search "RELEVANT_KEYWORDS"
    
  2. Search closed issues (may have already been solved):

    gh issue list --state closed --search "RELEVANT_KEYWORDS"
    
  3. If matches found, use the AskUserQuestion tool:

    Present the findings and offer choices:

    • Option 1: Proceed - "Create new issue (these are different enough)"
    • Option 2: View existing - "View issue #{number} instead"
    • Option 3: Cancel - "This is a duplicate, don't create"

    Include in the question: issue numbers, titles, and states of potential duplicates.

  4. If related issues found but not duplicates, use AskUserQuestion tool:

    • Option 1: "Create new issue, link as 'Related to #X'"
    • Option 2: "Create new issue without linking"
    • Option 3: "View related issue first"

Read the full file on GitHub · 260 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 10d ago First seen · 260 lines · 0 tokens per session scan A 7608b4d3142b

Subscribe to this mod's changes

gh-issue is a command published in the GitHub repository synaptiai/synapti-marketplace (6 stars, last pushed today), licensed Apache-2.0. It costs nothing until one of its globs matches a file; then it loads 1,928 tokens. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other commands, from other repositories