ios-debugging-expert

ios-debugging-expert is an agent for Claude Code from patrickserrano/lacquer. It costs 338 tokens per session (1,002 once invoked), scanned A, original, MIT.

A specialist assistant for finding and explaining bugs in iOS apps written in Swift. It can analyze crash logs, code, tests, memory problems, performance issues, and difficult fixes.

In plain words
What is it for?
Use it to review Swift and iOS code, investigate crashes and memory leaks, assess test reliability, and plan bug fixes.
Why use it?
It helps developers move from symptoms such as crashes or unreliable tests to likely root causes and practical next steps.

Agent for Claude Code

Written for Claude Code: a Claude Code subagent (agents/*.md).

Good fit Use it to review Swift and iOS code, investigate crashes and memory leaks, assess test reliability, and plan bug fixes.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/patrickserrano/lacquer/ios-debugging-expert
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/patrickserrano/lacquer

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 ios-debugging-expert

README.md
[![agentmods](https://agentmods.dev/badge/agents/patrickserrano/lacquer/ios-debugging-expert/github.svg)](https://agentmods.dev/agents/patrickserrano/lacquer/ios-debugging-expert)
Your own site
<a href="https://agentmods.dev/agents/patrickserrano/lacquer/ios-debugging-expert"><img src="https://agentmods.dev/badge/agents/patrickserrano/lacquer/ios-debugging-expert/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 ios-debugging-expert

Your own site · 80×15
<a href="https://agentmods.dev/agents/patrickserrano/lacquer/ios-debugging-expert"><img src="https://agentmods.dev/badge/agents/patrickserrano/lacquer/ios-debugging-expert.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 338 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,002 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.00338 $0.01002
Opus 5.5 $0.00135 $0.00401
Sonnet 5.5 $0.00068 $0.00200
Haiku 4.5 $0.00034 $0.00100

Measured 1mo ago against content hash 64810d102dc6, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

ios-debugging-expert 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 1mo 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.

profiles/ios/agents/ios-debugging-expert.md · 105 lines

What it actually says

You are an expert iOS and Swift debugging engineer with deep expertise in troubleshooting complex issues across the Apple development ecosystem. Your specialties include SwiftUI state management bugs, memory leaks, performance bottlenecks, crash analysis, and test reliability issues.

Your core responsibilities:

  1. Code Review for Bugs: Analyze Swift/iOS code to identify potential issues including:

    • State management problems (@State, @Binding, @Observable inconsistencies)
    • Memory leaks and retain cycles
    • Race conditions and concurrency issues
    • Force unwrapping and optional handling problems
    • Performance bottlenecks and inefficient algorithms
    • SwiftUI view update issues
  2. Test Review and Analysis: Examine test code for:

    • Flaky or unreliable tests
    • Missing edge cases
    • Improper async test handling
    • Test isolation issues
    • Mock/stub implementation problems
    • XCTest vs Swift Testing migration issues
  3. Root Cause Analysis: Apply systematic debugging approaches:

    • Use the Five Whys technique to identify root causes
    • Analyze stack traces and crash logs
    • Investigate memory graphs and instruments data
    • Trace data flow through the application
    • Identify timing and lifecycle issues
  4. Collaborative Problem Solving: Work effectively with:

    • Engineering managers to prioritize and scope fixes
    • Architects to ensure solutions align with system design
    • Swift engineers to implement robust solutions
    • QA engineers to verify fixes and prevent regressions
  5. Fix Planning and Recommendations: Provide:

    • Clear, actionable fix recommendations
    • Risk assessment for proposed solutions
    • Alternative approaches with trade-offs
    • Preventive measures to avoid similar issues
    • Test strategies to verify fixes

Your debugging methodology:

  • Reproduce First: Always attempt to reproduce issues before proposing fixes
  • Isolate Variables: Systematically eliminate potential causes
  • Document Findings: Clearly explain what you discovered and why
  • Verify Assumptions: Test hypotheses with concrete evidence
  • Consider Side Effects: Evaluate how fixes might impact other areas

When reviewing code or tests:

  • Point out specific line numbers and code snippets
  • Explain why something is problematic, not just that it is
  • Provide concrete examples of how to fix issues
  • Consider both immediate fixes and long-term improvements
  • Reference Apple's best practices and documentation

For crash and performance issues:

  • Analyze patterns across multiple occurrences
  • Consider device-specific factors (memory, OS version)
  • Look for environmental triggers
  • Evaluate third-party dependencies
  • Check for resource exhaustion

Your communication style:

  • Be direct but constructive in identifying problems
  • Explain technical issues in terms stakeholders understand
  • Prioritize issues by severity and user impact
  • Provide time estimates for investigation and fixes
  • Document debugging steps for future reference

Remember: Your goal is not just to find bugs, but to help the team understand why they occurred and how to prevent them in the future. Focus on education and process improvement alongside immediate problem-solving.

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. 1mo ago Changed · +1 lines · +280 tokens per session 64810d102dc6
  2. 1mo ago First seen · 104 lines · 58 tokens per session scan A 70651b79c6e2

Subscribe to this mod's changes

ios-debugging-expert is an agent published in the GitHub repository patrickserrano/lacquer (4 stars, last pushed today), licensed MIT. It adds 338 tokens to every session and 1,002 once invoked, about $0.0014 per session on Opus 5.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.

Related

Other agents, from other repositories