apple-dev-safety-and-docs
Apple Dev Safety and Docs
Use this skill for risk gating and documentation routing.
Hard Mutation Gate (Required)
Before direct filesystem mutation in Xcode-managed scope, require all steps:
- warn user about risks in
.xcodeproj,.pbxproj,.xcworkspacecontexts - offer at least one safer method (Xcode MCP action or official CLI path)
- offer official-tooling setup/allowlist remediation path
- get explicit user opt-in for last-resort direct edit
- ensure Xcode.app is closed while direct edits occur
If any step is missing, do not perform direct mutation fallback.
Docs Workflow (Dash First)
- Query Dash MCP/docsets first.
- If unavailable or missing docset, use official Apple/Swift docs.
- Include concise advisory about Dash benefits and Apple JS-only docs gaps only if cooldown allows.
Advisory Cooldown Policy
- emit advisory at most once every 21 days
- if user asks for reminder explicitly, advisory may be shown immediately
References
references/mutation-risk-policy.mdreferences/dash-docs-flow.mdreferences/skills-installation.md
Scripts
scripts/advisory_cooldown.pyscripts/detect_xcode_managed_scope.sh
Interactive Customization Flow
- Load current effective customization settings first:
uv run python scripts/customization_config.py effective
- Ask targeted customization questions:
- Use
references/customization-flow.mdto drive knob-by-knob questions. - Confirm desired behavior changes and safety constraints.
- Map requested changes to implementation files:
- Update
SKILL.md,references/*, and any runtime script files listed inreferences/customization-flow.md.
- Persist durable customization state:
- Start from
customization.template.yamldefaults. - Apply approved overrides with
uv run python scripts/customization_config.py apply --input <yaml-file>. - Durable path:
~/.config/gaelic-ghost/apple-dev-skills/<skill-name>/customization.yaml. - Optional override root:
APPLE_DEV_SKILLS_CONFIG_HOME.
- Report resulting effective configuration:
- Re-run
uv run python scripts/customization_config.py effectiveand summarize final active settings. - If the user asks to remove customization state, run
uv run python scripts/customization_config.py reset.
Use references/customization-flow.md for skill-specific knobs, file mapping, guardrails, validation checks, and example requests.
More from gaelic-ghost/apple-dev-skills
apple-xcode-workflow
Guide Apple and Swift development work in or around Xcode, including workspace inspection, diagnostics, builds, tests, runs, toolchain checks, Apple and Swift documentation lookup, mutation guard decisions, and official CLI fallback planning. Use for existing Apple or Swift projects when Xcode-aware execution or Apple docs reasoning is needed.
18apple-dash-docsets
Manage Dash docsets and cheatsheets on macOS, including search and discovery, install guidance for missing docsets, local access fallback paths between Dash MCP, HTTP, and URL or Service integration, and generation guidance when a docset is unavailable. Use when Codex needs Dash docset or cheatsheet help rather than Apple or Xcode execution work.
15bootstrap-swift-package
Bootstrap new Swift Package Manager projects with consistent defaults and fast setup. Use when creating a new Swift package (library, executable, or tool), scaffolding package structure, applying standard platform/version defaults, initializing git, running first-step validation, or when the user asks to customize bootstrap defaults in this skill.
10swift-package-agents-maintainer
Create, update, and maintain a canonical AGENTS.md (agents file) across Swift Package repositories. Use when Codex needs to update AGENTS.md for Swift packages, sync agents files across repos, enforce shared policy baselines, detect drift in automation, apply canonical templates, or customize this skills sync policy.
10dash-docset-install-generate
Install, guide installation, and generate Dash.app docsets or cheatsheets on macOS. Use when the user asks to add missing Dash docsets, install from built-in or contributed sources, install cheat sheets, subscribe to feeds, generate custom docsets, verify installation, or customize this skills install/generation policy.
10apple-swift-cli-fallback
Execute automatic fallback through official Apple and Swift CLI tooling when Xcode MCP paths are unavailable or insufficient. Use for xcodebuild, xcrun, SwiftPM, swiftly toolchain workflows, command-availability remediation, or when the user asks to customize this skills fallback behavior.
9