create-issue

A command for creating a formatted issue in the current code repository on GitHub, GitLab, or Forgejo, after asking for approval.

In plain words
What is it for?
Use it to open a titled and described issue with valid labels in a GitHub, GitLab, or Forgejo repository.
Why use it?
It removes the need to identify the hosting service and remember each platform's issue command. It also checks available labels before using them.

Command

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.

agentmods
npx agentmods add commands/sgaunet/claude-plugins/create-issue
Clone the repo
git clone --depth 1 https://github.com/sgaunet/claude-plugins
Per session 17 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 647 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00017 $0.00647
Opus 5 $0.00009 $0.00324
Sonnet 5 $0.00003 $0.00129
Haiku 4.5 $0.00002 $0.00065

Measured 2d ago against content hash 55ab3dfedcb1, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

create-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 2d 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.

plugins/software-engineering/commands/create-issue.md · 62 lines

How it starts

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

Create Issue Command

Create an issue for the current git repository. This command automatically detects whether the repository is hosted on GitHub, GitLab, or Forgejo and uses the appropriate CLI tool (gh, glab, or fgj).

Process

  1. Detect Repository Host: Use the detect-repo-host skill to identify the hosting service (GitHub, GitLab, or Forgejo) and extract owner/repo details.

  2. Validate Arguments: Ensure the issue topic/description is provided as $argument

  3. Always list available labels before creating the issue. Do not add labels that do not exist in the host repository.

    • GitHub: Use gh label list --repo <owner>/<repo> via Bash
    • GitLab: Use glab label list
    • Forgejo: Use fgj label list -R <owner>/<repo>
  4. Create Issue: Use the appropriate CLI tool:

    • GitHub: Use gh issue create --repo <owner>/<repo> --title "<title>" --body "<body>" --label "<label1>" --label "<label2>"
    • GitLab: Use glab issue create --title "<title>" --description "<body>" --label "<label1>" --label "<label2>"
    • Forgejo: Use fgj issue create -R <owner>/<repo> -t "<title>" -b "<body>" -l <label1> -l <label2>
  5. Request Permission: Always ask the user for permission before creating the issue

Issue Content Guidelines

The issue content should be based on: $argument

Requirements:

  • Title: Clear, concise summary (max 80 characters)
  • Description: Detailed explanation including:
    • Problem description or feature request
    • Steps to reproduce (if bug)
    • Expected behavior
    • Current behavior
    • Additional context or screenshots
  • Labels: Suggest appropriate labels based on those available in the host repository.

Formatting:

  • Use proper markdown formatting
  • Include code blocks with syntax highlighting when relevant
  • Add checklists for actionable items
  • Reference related issues or PRs when applicable

Error Handling

  • If repository host detection fails: The detect-repo-host skill provides detailed error messages (not a git repo, no remotes, unsupported host)
  • If gh/glab/fgj CLI not installed: Inform user and suggest installing the appropriate CLI tool

Read the full file on GitHub · 62 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. 2d ago First seen · 62 lines · 17 tokens per session scan A 55ab3dfedcb1

Subscribe to this mod's changes

create-issue is a command published in the GitHub repository sgaunet/claude-plugins (16 stars, last pushed 7d ago), licensed MIT. It adds 17 tokens to every session and 647 once invoked, about $0.0001 per session on Opus 5. 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-30.