/swift-xcode-kit:c-bounds-safetyfrom Swift & Xcode
Guide for the C -fbounds-safety language extension — the language model, pointer annotations, adopting bounds-safety in existing C code, compiler build settings and modes, and runtime debugging of bounds violations. Use when working with, reading, reviewing, comparing, debugging, or analyzing C code that has adopted -fbounds-safety or wants to adopt it. Triggers: bounds annotations (__counted_by, __counted_by_or_null, __sized_by, __sized_by_or_null, __ended_by, __single, __indexable, __bidi_indexable, __unsafe_indexable, __null_terminated, __terminated_by), helper functions (__unsafe_forge_bidi_indexable, __unsafe_forge_single, __null_terminated_to_indexable, __unsafe_null_terminated_to_indexable, __unsafe_null_terminated_from_indexable), macros (__ptrcheck_abi_assume_single), or includes of "ptrcheck.h".
Ships in Swift & Xcode. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
When helping with -fbounds-safety adoption or code changes, ask clarifying questions about the user's codebase and goals before suggesting changes. For complex tasks involving multiple files or non-trivial annotation decisions, use plan mode to propose an approach before implementing.
-fbounds-safety Language Extension-fbounds-safety is a C language extension that prevents out-of-bounds memory access by enforcing bounds safety at the language level. It inserts automatic bounds checks at runtime, rejects unsafe pointer operations at compile time, and requires programmers to provide bounds annotations so the compiler can guarantee safety. Out-of-bounds accesses become deterministic traps instead of exploitable vulnerabilities.
You MUST have fully read the following three documents (via the Read tool) at the start of an adoption task, and re-read them via the Read tool before any source-modifying step in the adoption workflow unless their content is verifiably fresh in your active context:
-fbounds-safety in an existing C project (full and header-only modes).-fbounds-safety: pointer kinds, annotations, and the rules that govern them.For compiler flags, Xcode build settings, soft trap mode, and ptrcheck.h configuration, read build-settings.md.
For debugging bounds violations at runtime — trap behavior, LLDB commands, wide pointer inspection, watchpoints, crash log analysis, and soft trap debugging, read runtime-debugging.md.
What SKILL.md sets; muted values are Claude Code's defaults
7 skills in this plugin
/audit-xcode-security-settingsAudit and enable security-oriented Xcode build settings. Progressively enables compiler warnings, static analyzer checkers, and Enhanced Security features. Use when: user wants to secure their Xcode project, audit security settings, enable hardening, review security posture of build configuration, set up security-focused static analysis, enable static analysis, improve warning coverage, harden diagnostics, or catch more bugs at compile time in C/C++/Objective-C/Swift. SKIP: network security (TLS/ATS), code signing, privacy APIs./device-interactionVerify iOS app behavior on device or simulator via screenshots, UI hierarchy, and touch interactions./swiftui-specialistBest practices and idiomatic patterns for SwiftUI. Use when writing, reviewing, or editing SwiftUI code./swiftui-whats-new-27New SwiftUI APIs, behaviors, and deprecations in the 2027 OS releases (iOS/macOS/watchOS/tvOS/visionOS 27). Use when the user asks what's new in SwiftUI; when code breaks after an SDK 27 update — especially @State compile errors like "used before being initialized" or "invalid redeclaration of synthesized property" (@State became a macro; the obvious reordering fix is WRONG — consult the references first); or when adopting SDK 27 features: drag-to-reorder and swipe actions in any container, AsyncImage caching and request control, toolbar overflow/pinning/minimize-on-scroll, cross-fade sheet transitions, prominent tabs, gesture input-source filtering, alerts from items or errors, and DocumentGroup document-based apps./test-modernizerModernize test suites to use modern Swift Testing features or migrate from XCTest./uikit-app-modernizationModernizes UIKit apps for multi-window environments by replacing legacy shared-state APIs with context-appropriate modern alternatives. This includes references to mainScreen, interfaceOrientation, application and scene lifecycle, as well as safe area inset updates.swift-xcode-kit@cypherpoet-toolchest is listed by cypherpoet/cypherpoet-toolchest — review the source before installing
npx claudepluginhub cypherpoet/cypherpoet-toolchest --plugin swift-xcode-kit