swift-fix-issue

swift-fix-issue is a command for Claude Code from SethCalkins/claude-ios-swift-plugin. It costs 18 tokens per session (741 once invoked), scanned A, original, MIT.

A command for taking a GitHub issue number through investigation, implementation, testing, commit, and push. A GitHub issue is a repository task or bug report.

In plain words
What is it for?
Use it to inspect issue details and comments, locate the relevant code, make a focused fix, build an Apple-platform project, run targeted tests, and publish the change.
Why use it?
It provides a defined end-to-end path so the issue’s requirements, affected code, tests, and build results are handled together.

Command for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: mentions CLAUDE.md; mentions AGENTS.md.

Part of the swift-skills plugin — 10 skills, 4 commands, 3 agents shipped together

Good fit Use it to inspect issue details and comments, locate the relevant code, make a focused fix, build an Apple-platform project, run targeted tests, and publish the change.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/sethcalkins/claude-ios-swift-plugin/swift-fix-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/SethCalkins/claude-ios-swift-plugin

Made for: Claude Code.

Or install swift-skills, the plugin that ships this one along with the rest of its 10 skills, 4 commands, 3 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 swift-fix-issue

README.md
[![agentmods](https://agentmods.dev/badge/commands/sethcalkins/claude-ios-swift-plugin/swift-fix-issue/github.svg)](https://agentmods.dev/commands/sethcalkins/claude-ios-swift-plugin/swift-fix-issue)
Your own site
<a href="https://agentmods.dev/commands/sethcalkins/claude-ios-swift-plugin/swift-fix-issue"><img src="https://agentmods.dev/badge/commands/sethcalkins/claude-ios-swift-plugin/swift-fix-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 swift-fix-issue

Your own site · 80×15
<a href="https://agentmods.dev/commands/sethcalkins/claude-ios-swift-plugin/swift-fix-issue"><img src="https://agentmods.dev/badge/commands/sethcalkins/claude-ios-swift-plugin/swift-fix-issue.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 18 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 741 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.00018 $0.00741
Opus 5 $0.00009 $0.00370
Sonnet 5 $0.00004 $0.00148
Haiku 4.5 $0.00002 $0.00074

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

Security

Grade A, and why

swift-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 9d 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.

commands/swift-fix-issue.md · 123 lines

How it starts

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

Fix GitHub Issue

End-to-end workflow to fix a GitHub issue: intake, implement, test, commit, and push.

Instructions

1. Intake and issue context

  1. Get issue details:

    gh issue view <issue-number> --comments
    
    • If repo unclear, run gh repo view --json nameWithOwner
  2. Extract key information:

    • Problem description
    • Reproduction steps
    • Expected vs actual behavior
    • Any maintainer notes or labels
  3. Summarize understanding to user before proceeding

2. Locate the code path

  1. Use Grep to find relevant files and entry points
  2. Read the affected code paths
  3. Follow repo conventions (check CLAUDE.md, AGENTS.md)
  4. Identify the minimal set of files to change

3. Implement the fix

  1. Edit minimal files - avoid scope creep
  2. Follow existing patterns - match architecture and style
  3. Add tests if behavior changes and coverage is practical
  4. Document any non-obvious changes with comments

4. Build and test

  1. Set XcodeBuildMCP defaults:

    mcp__XcodeBuildMCP__session-set-defaults
    
  2. Build:

    • iOS: mcp__XcodeBuildMCP__build_sim
    • macOS: mcp__XcodeBuildMCP__build_macos
  3. Run tests:

    • Prefer targeted test schemes
    • Run mcp__XcodeBuildMCP__test_sim or test_macos
  4. Report all results - don't hide warnings or failures

5. Commit and push

  1. Check status:

    git status --short
    
  2. Stage only the fix - exclude unrelated changes

  3. Commit with closing message:

    git commit -m "Fix [description] (closes #<issue-number>)"
    
  4. Push:

    git push
    

6. Report back

Provide summary:

  • What changed and where
  • Test results (including any failures)
  • Follow-ups or blocked items
  • Link to the commit

Output Format

## Issue #123 Fixed

### Summary
Fixed the crash when loading user profile with missing avatar URL.

### Changes
- `UserProfile.swift:42` - Added nil check for avatar URL
- `UserProfileTests.swift` - Added test for missing avatar case

### Test Results
- Build: SUCCESS
- Tests: 23 passed, 0 failed

### Commit
`abc1234` - Fix crash on missing avatar URL (closes #123)

### Notes
- Consider adding server-side validation for avatar URLs (follow-up)

Read the full file on GitHub · 123 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. 9d ago First seen · 123 lines · 18 tokens per session scan A ac6e615bcca7

Subscribe to this mod's changes

swift-fix-issue is a command published in the GitHub repository SethCalkins/claude-ios-swift-plugin (2 stars, last pushed 7mo ago), licensed MIT. It adds 18 tokens to every session and 741 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-31.