analyze-and-create-issue

analyze-and-create-issue is a command for coding agents from sgaunet/claude-plugins. It costs 23 tokens per session (600 once invoked), scanned A, original, MIT.

A command that reviews a codebase for possible improvements and can turn selected findings into issues on GitHub, GitLab, or Forgejo, which are services for hosting and tracking software projects.

In plain words
What is it for?
It helps identify improvements, discuss each finding with the user, check available project labels, and create approved issues in the repository.
Why use it?
It reduces the manual work of spotting follow-up tasks, writing them down, and choosing the right issue-tracking command for the repository.

Command

Part of the software-engineering plugin — 4 skills, 12 commands, 7 agents shipped together

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/analyze-and-create-issue
Clone the repo
git clone --depth 1 https://github.com/sgaunet/claude-plugins

Or install software-engineering, the plugin that ships this one along with the rest of its 4 skills, 12 commands, 7 agents.

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 analyze-and-create-issue

README.md
[![agentmods](https://agentmods.dev/badge/commands/sgaunet/claude-plugins/analyze-and-create-issue.svg)](https://agentmods.dev/commands/sgaunet/claude-plugins/analyze-and-create-issue)
Your own site
<a href="https://agentmods.dev/commands/sgaunet/claude-plugins/analyze-and-create-issue"><img src="https://agentmods.dev/badge/commands/sgaunet/claude-plugins/analyze-and-create-issue.svg" alt="Measured on agentmods" height="20"></a>
Per session 23 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 600 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.00023 $0.00600
Opus 5 $0.00012 $0.00300
Sonnet 5 $0.00005 $0.00120
Haiku 4.5 $0.00002 $0.00060

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

Security

Grade A, and why

analyze-and-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 5d 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/analyze-and-create-issue.md · 54 lines

How it starts

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

Analyze And Create Issue Command

Analyze codebase to find improvements. For each improvement:

  • Describe concisely to the user and ask if they want to create an issue
  • If yes, create the issue in the git repository (GitHub, GitLab, or Forgejo) using the appropriate CLI.

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 issues are in the domain of $argument. If no $argument is provided, consider all types of issues.

  3. Get the list of labels for the current project:

    • GitHub: gh label list --repo <owner>/<repo>
    • GitLab: glab label list
    • Forgejo: fgj label list -R <owner>/<repo>
  4. For each improvement, Ask the user if they want to create an issue

  5. If yes, Create Issue: Use the appropriate CLI:

    • GitHub: gh issue create --repo <owner>/<repo> --title "<title>" --body "<body>" --label "<label>"
    • GitLab: glab issue create --title "<title>" --description "<body>" --label "<label>"
    • Forgejo: fgj issue create -R <owner>/<repo> -t "<title>" -b "<body>" -l <label>

Issue Content Guidelines

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 CLI is unavailable: Inform user to install gh, glab, or fgj and suggest manual creation

Read the full file on GitHub · 54 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. 5d ago First seen · 54 lines · 23 tokens per session scan A 3a2e89e0051f

Subscribe to this mod's changes

analyze-and-create-issue is a command published in the GitHub repository sgaunet/claude-plugins (16 stars, last pushed 3d ago), licensed MIT. It adds 23 tokens to every session and 600 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.