skills/swift_debug/SKILL.md
Use this skill for semantic runtime debugging and state analysis. It provides LLDB plugins to bridge code context with runtime state. Use when debugging crashes, inspecting variable state at runtime, setting semantic breakpoints, or analyzing why code behaves differently than expected — even if they don't mention "LLDB" or "debugger".
npx skillsauth add swiftzilla/skills swift_debugInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Bridge static code context with dynamic runtime state using LLDB extensions.
Install the LLDB plugin once per environment:
scripts/swift_debug install
This sets up the Python plugin and adds the loader script to ~/.lldbinit.
Once installed, these commands are available in any LLDB session:
sz_break "<QUERY>": Set a breakpoint by semantic search (e.g., sz_break "user authentication logic")sz_explain: Explain the current execution frame — what this code does and whysz_inspect: Capture stacktrace and variable values for semantic analysissz_* commands will not exist in LLDB without running install first.sz_break uses semantic matching, not line numbers. If the query is too broad, it may set multiple breakpoints — review them with breakpoint list.sz_inspect is a snapshot — variables may change between inspection and your next step.~/.lldbinit already exists and is managed by another tool, the install script appends to it. Check for conflicts if LLDB behaves unexpectedly.scripts/swift_debug install (one-time setup)sz_break "<query>" to set breakpoints semanticallysz_inspect to capture runtime statesz_explain to understand the execution contexttools
Use this skill when you need expert Swift/iOS architectural guidance, semantic codebase analysis, or PR impact reviews. It provides a senior mentor layer for Swift (SwiftUI, UIKit, Combine, Concurrency) and a semantic engine to query local code context. Trigger this skill to: 1. Validate architectural patterns before implementation using 'ask'. 2. Find and map local code dependencies using 'context'. 3. Analyze the risk and blast radius of a PR using 'review'. 4. Generate system overviews for onboarding using 'onboard'. 5. Troubleshoot runtime crashes with semantic LLDB tools using 'debug'. Activate even if specific keywords are missing but the intent is improving Swift code quality or understanding project structure.
development
Swift Testing framework for unit tests, integration tests, and async testing with modern syntax.
development
SwiftUI framework concepts including property wrappers, state management, and reactive UI patterns.
development
Swift style guidelines covering naming conventions, code organization, and best practices for writing idiomatic Swift code.