issue-fix

Fix bugs and resolve problems from GitHub issues with security and performance validation.

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/matteocervelli/llms/issue-fix
Clone the repo
git clone --depth 1 https://github.com/matteocervelli/llms
Per session 14 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 538 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.00014 $0.00538
Opus 5 $0.00007 $0.00269
Sonnet 5 $0.00003 $0.00108
Haiku 4.5 $0.00001 $0.00054

Measured today against content hash c115cd9a2487, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

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

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.

.archive/claude-v1/commands/issue-fix.md · 86 lines

What it actually says

Fix Bug from Issue: $ARGUMENTS

💡 Tip: For safer planning, activate Plan Mode (press Shift+Tab twice) before running this command to review the fix strategy before implementation.

Analysis Phase

!gh issue view $ARGUMENTS
!git checkout -b fix/issue-$ARGUMENTS

Use sequential-thinking-mcp to:

  1. Understand the bug and identify root cause
  2. Assess security implications (auth, input validation, data exposure)
  3. Plan minimal fix with performance considerations
  4. Identify testing strategy

Implementation Phase

Implement fix following:

  • Security: Validate inputs, secure error handling, no data leaks
  • Performance: Measure impact, optimize queries if needed
  • Defensive: Null checks, proper error boundaries

Testing Phase

# Quality checks
!npm run lint && npm run typecheck || flake8 . && mypy .
!npm run test || pytest

Create tests for:

  • Bug reproduction (verify fix works)
  • Security edge cases (malicious inputs)
  • Performance regression (response times)
  • Integration scenarios

Validation Checkpoint

Test the fix in development and confirm:

  1. Original bug is resolved
  2. No regressions in existing functionality
  3. Performance impact acceptable
  4. Security measures working

Deploy Phase

!git add . && git commit -m "fix: resolve issue $ARGUMENTS

- Root cause: [brief description]
- Security: [input validation/auth preserved/no data exposure]
- Performance: [within SLA/optimized/no regression]
- Testing: [unit/integration/security tests added]

Fixes #$ARGUMENTS"

!git push origin fix/issue-$ARGUMENTS
!gh pr create --title "fix: issue $ARGUMENTS" --body "Security-validated bug fix with performance testing. Fixes #$ARGUMENTS"

Documentation

Update:

  • docs/implementation/ with fix details
  • docs/developers/TROUBLESHOOTING.md if needed
  • docs/architecture/ docs if structural changes
  • docs/guides/ docs if user guide changes

Final Steps

  • Update @CHANGELOG.md with bug fix addition and increase versioning accordingly
  • Update user documentation and publish if needed
  • Monitor bug fix adoption and performance post-deployment
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. today First seen · 86 lines · 14 tokens per session scan A c115cd9a2487

Subscribe to this mod's changes

issue-fix is a command published in the GitHub repository matteocervelli/llms (25 stars, last pushed 3mo ago), licensed MIT. It adds 14 tokens to every session and 538 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-09-01.