| name | swe-bench-mobile-agents-develop |
| description | Apply defensive programming and agent-architecture patterns from SWE-Bench Mobile to tackle production iOS/mobile development tasks. Optimizes how Claude navigates large mixed-language codebases, interprets multi-modal inputs (PRDs + Figma designs), and generates robust patches. Use when: "build this iOS feature from a PRD", "implement this Figma design in Swift", "fix this mobile app issue across multiple files", "generate a patch for this iOS codebase", "help me with production mobile development", "defensive programming for mobile code".
|
SWE-Bench Mobile: Defensive Agent Strategy for Production Mobile Development
This skill equips Claude to tackle production-grade mobile (especially iOS) development tasks using
the Defensive Programming agent strategy identified in SWE-Bench Mobile research. The core insight:
simple prompts focused on edge-case robustness outperform complex multi-step checklists by 7.4%,
and agent architecture choices (tool integration, context management, iterative refinement) matter
as much as raw model capability -- the same model shows up to 6x performance variance across
different agent scaffolding. This skill encodes the winning patterns.
When to Use
- When the user provides a PRD (Product Requirement Document) and/or Figma design and asks you to implement a mobile feature
- When working in a large mixed Swift/Objective-C iOS codebase (or any multi-language mobile project)
- When generating a unified diff patch for a production mobile app
- When the user asks to implement a UI component, data management feature, gesture handler, or networking layer in an iOS app
- When a mobile task requires modifying 3+ files across model, view, and controller layers
- When the user needs help structuring agent-assisted mobile development workflows
- When debugging why an AI-generated mobile patch fails tests or misses requirements
Key Technique: Defensive Programming over Comprehensive Checklists
The SWE-Bench Mobile benchmark evaluated 22 agent-model configurations on 50 industry-level iOS
tasks (449 test cases). The highest-performing prompt strategy was : a
focused instruction to write robust, production-ready code that handles edge cases gracefully --
nil values, empty data, network timeouts, concurrent operations. This simple strategy achieved
26.7% test pass rate vs. 19.3% baseline, while a verbose "Comprehensive" checklist approach
dropped to just 4% task success (vs. 10% for Defensive Programming).