audit-xcode-security-settings
БесплатноЗапускает вложенные скриптыНе проверенAudit and enable security-oriented Xcode build settings. Progressively enables compiler warnings, static analyzer checkers, and Enhanced Security features…
от superagents-lab★ 373 звезды на GitHubОб этом скилле
Audit Xcode Security Settings
Assess an Xcode project's security posture and progressively enable security build settings and entitlements — from broadly applicable warnings through Enhanced Security hardening.
Tool Preferences
When GetTargetBuildSettings writes its output to a saved file due to a token limit, see references/reading-build-settings.md for the schema and the filter script (scripts/filter_build_settings.py). Do not read the saved file linearly.
When XcodeGlob, XcodeGrep, XcodeRead, and XcodeLS tools are available, ALWAYS use them. Do not fall back to Bash filesystem tools (ls, find, cat, grep) to learn about the project. They trigger extra permission prompts and bypass project scoping.
- XcodeGlob for file discovery —
findis forbidden for files inside the project. - XcodeGrep for content search —
grep/rgis forbidden for files inside the project. - XcodeRead for file contents —
cat/Readis forbidden for files registered in the project. - XcodeLS for directory listing —
lsis forbidden for any path inside the project.
Project root and name are already in the system prompt context. Do NOT run ls to "verify" the project layout before starting. The system prompt already tells you the working directory and the project structure.
Empty XcodeGlob results are not a failure. The .xcodeproj and .xcworkspace are not indexed as files inside the Xcode project organization — XcodeGlob "**/*.xcodeproj" correctly returns 0 matches. Use the project name from system-prompt context instead. Do not fall back to filesystem ls/find.
Path translation between project-org and filesystem. XcodeGlob returns project-org-relative paths. To read or edit a file:
- Prefer
XcodeRead/XcodeUpdatewith the project-org path. - If that path is rejected (some on-disk files like
.entitlementsplists may not be navigable throughXcodeRead), translate to a filesystem absolute path by prepending the project root from system context. Do NOT usefindto discover the on-disk path.
Fall back to Bash only for operations the Xcode tools cannot do (e.g., plutil for plist editing, git operations).
Common Failure Modes
| Symptom | Cause | Correct Response |
|---|---|---|
XcodeGlob "**/*.xcodeproj" returns 0 matches |
The .xcodeproj itself isn't a project-indexed file |
Use the project name from system context; do not fall back to find or ls |
XcodeRead <project-org-path> fails for a config-type file (.entitlements, .xcsettings, .xcconfig) |
Some on-disk artifacts aren't navigable via project paths | Translate to filesystem absolute path using the project root from system context, then use Read / Edit |
Workflow
Phase 0: Discovery
Read the system prompt context. It contains:
- The project root (working directory).
- The project name and structure (top-level files, packages).
- The active scheme.
Do not call ls, find, or any filesystem tool to re-discover this information.
Track Progress
Before starting Phase 1:
Print the workflow plan to the user as a visible bullet list (so non-verbose users can see what's coming):
Workflow:
- Phase 1: Analyze project and existing settings
- Phase 2: Apply settings
- Step 1: Enhanced Security
- Step 2: Basic Clang safety warnings
- Phase 3: Inquire about disabled settings
- Phase 4: Validate applied settings
- Phase 5: Report and update decision document
- Phase 6: Optional follow-ups
Call
TaskCreatewith the same items so verbose users get a tracker.
When entering each phase or sub-step:
- Print one line: "▶ Phase N: …" (or "▶ Phase 2 / Step 1: …" for sub-steps).
- Update the task to
in_progress.
When finishing each phase or sub-step:
- Print one line: "✓ Phase N: …" (with a brief outcome if applicable, e.g., "✓ Phase 3: No disabled settings found.").
- Update the task to
completed.
Phase 6 starts as a single task and a single line. When the user opts into a specific follow-up, print "▶ Phase 6 /
Phase 1: Analyze Project and Settings
No user interaction. Gather facts silently. Prefer XcodeGlob, XcodeGrep, and XcodeRead over Bash equivalents when available (see Tool Preferences).
- Find
.xcodeprojor.xcworkspacevia XcodeGlob (**/*.xcodeproj) or Glob. - Search for an existing decision document (
**/xcode-security-settings.md) via XcodeGlob or Glob. If found, read it and extract: languages and all prior setting decisions with their statuses and rationale. This informs subsequent phases. - Detect languages present via XcodeGlob or Glob:
**/*.c→ C**/*.cpp,**/*.cxx,**/*.cc→ C++**/*.m→ Objective-C**/*.mm→ Objective-C++**/*.swift→ Swift
- Enumerate targets and their entitlements files — for each target, record its product type, platform (via `S
Установить audit-xcode-security-settings в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл audit-xcode-security-settings?
Audit 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.
Как установить скилл audit-xcode-security-settings?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл audit-xcode-security-settings запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
skill-creator
Create new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an…
от Anthropicdiscernment-nudge
After you give a substantive answer or draft that the user may act on — advice or recommendations, drafted artifacts such as goals, plans, pitches, proposals…
от Anthropicdata-consolidate
Joins the plant's scheduled exports and connector data into one working dataset — ERP items (NetSuite or Infor M3), sales orders, production work orders…
от Anthropicinspection-to-capa
Runs the quality chain end to end: writes the nonconformance against the requirement it violates, searches history at the moment of writing to say whether…
от Anthropic