fix-issue

fix-issue is a command for Claude Code from litestar-org/litestar-fullstack-inertia. It costs 7 tokens per session (1,003 once invoked), scanned A, original, MIT.

A command for investigating and fixing GitHub issues, which are tracked reports of bugs or requested changes.

In plain words
What is it for?
Use it to load an issue, investigate related code, implement a pattern-compliant fix, and verify the result.
Why use it?
It gives the work a defined path from understanding the report and finding the root cause to testing and quality checks.

Command for Claude Code

Written for Claude Code: allowed-tools in frontmatter.

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/litestar-org/litestar-fullstack-inertia/fix-issue
Clone the repo
git clone --depth 1 https://github.com/litestar-org/litestar-fullstack-inertia

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 fix-issue

README.md
[![agentmods](https://agentmods.dev/badge/commands/litestar-org/litestar-fullstack-inertia/fix-issue.svg)](https://agentmods.dev/commands/litestar-org/litestar-fullstack-inertia/fix-issue)
Your own site
<a href="https://agentmods.dev/commands/litestar-org/litestar-fullstack-inertia/fix-issue"><img src="https://agentmods.dev/badge/commands/litestar-org/litestar-fullstack-inertia/fix-issue.svg" alt="Measured on agentmods" height="20"></a>
Per session 7 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,003 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.1 $0.00007 $0.01003
Opus 5 $0.00003 $0.00502
Sonnet 5 $0.00001 $0.00201
Haiku 4.5 $0.00001 $0.00100

Measured 2d ago against content hash 9f19b3028654, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade A, and why

fix-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.

.claude/commands/fix-issue.md · 236 lines

How it starts

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

GitHub Issue Fix Workflow

You are fixing issue: $ARGUMENTS

Workflow Overview

  1. Load issue context
  2. Investigate root cause
  3. Implement fix with pattern compliance
  4. Test thoroughly
  5. Verify quality gates

Checkpoint 0: Load Issue Context

Fetch issue details:

gh issue view {issue_number}

Or if URL provided:

Use WebFetch to read issue content.

Extract key information:

  • Issue description
  • Expected behavior
  • Actual behavior
  • Steps to reproduce
  • Related files mentioned

Output: "✓ Checkpoint 0 complete - Issue loaded: {title}"


Checkpoint 1: Root Cause Investigation

Use debug tool for complex issues:

mcp__pal__debug(
    step="Investigating issue #{issue_number}...",
    step_number=1,
    total_steps=3,
    next_step_required=true,
    findings="Issue description: ...",
    hypothesis="The root cause might be..."
)

Search for related code:

# Find related files
grep -r "{keyword}" app/ --include="*.py"
grep -r "{keyword}" resources/ --include="*.tsx"

# Find error sources
grep -r "{error_message}" app/

Read related files:

cat {related_file}

Document findings:

## Investigation Findings

### Root Cause
[Description of the root cause]

### Affected Files
- `path/to/file.py:line` - Description
- `path/to/file.tsx:line` - Description

### Proposed Fix
[Description of the fix approach]

Output: "✓ Checkpoint 1 complete - Root cause identified"


Checkpoint 2: Pattern Check

Before implementing fix, verify patterns:

Read similar implementations to understand existing patterns:

# Find similar code
grep -r "similar_pattern" app/

Ensure fix follows:

  • Existing code style
  • Type hint conventions (T | None)
  • Error handling patterns
  • Test patterns

Output: "✓ Checkpoint 2 complete - Patterns verified"


Checkpoint 3: Implement Fix

Make minimal, focused changes:

  • Only fix what's broken
  • Don't refactor surrounding code
  • Don't add unrelated improvements

Read the full file on GitHub · 236 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 · 236 lines · 7 tokens per session scan A 9f19b3028654

Subscribe to this mod's changes

fix-issue is a command published in the GitHub repository litestar-org/litestar-fullstack-inertia (43 stars, last pushed 5d ago), licensed MIT. It adds 7 tokens to every session and 1,003 once invoked, about $0.0000 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-09-03.