swift-package-agents-maintainer
Swift Package AGENTS Maintainer
Maintain one canonical AGENTS.md across Swift Package repositories.
Prefer the bundled script for deterministic automation runs.
Workflow
- Confirm scope and mode.
- Use
--repo <path>for a single repository. - Use
--root <path>to scan recursively for repos containingPackage.swift. - If neither
--reponor--rootis provided, scan~/Workspaceby default. - Use
--checkfor read-only drift detection in recurring automation. - Omit
--checkto apply updates.
- Resolve the canonical file.
- Default canonical file:
assets/AGENTS.mdin this skill. - If the user provides another canonical source, pass it with
--canonical <path>.
- Run synchronization.
- Command:
scripts/sync_agents_md.sh [--canonical <path>] (--repo <path> | --root <path>) [--check] [--verbose] - In apply mode, the script creates or updates
AGENTS.mdin each discovered Swift package repo. - In check mode, the script reports drift and exits non-zero if any repo differs.
- Validate and report.
- Summarize: scanned repos, unchanged repos, updated repos, and drift count.
- For automation runs, include whether exit status indicates drift.
Defaults
- Prefer
--checkfor scheduled automation runs that only detect drift. - Prefer apply mode for user-invoked maintenance runs.
- Treat a directory as a Swift package repo only when
Package.swiftis present. - Use
~/Workspaceas the default discovery root on machines where Swift packages are stored there. - Use
--rootwhen your repositories live outside~/Workspace. - Skip hidden/build dependency directories during scans (for example
.git, any.*directory,.build,.swiftpm,node_modules). - Skip Xcode-protected/generated directories during scans (for example
*.xcworkspace,*.xcodeproj,DerivedData).
Automation Prompting
- Codex App automation fit: Strong. Use for recurring drift detection or scheduled apply runs.
- Codex CLI automation fit: Strong. Use deterministic prompts that map directly to
--checkor apply mode. - Use
references/automation-prompts.mdfor Codex App and Codex CLI templates with placeholders. - Keep mode, schedule, and workspace routing explicit to avoid accidental apply runs.
Troubleshooting
- If the canonical file path is missing, stop and request or restore a valid canonical
AGENTS.md. - If no repositories are discovered under
--root, report that noPackage.swiftfiles were found. - If permissions block writes, rerun with an authorized workspace path or approved elevation.
Resources
scripts/
scripts/sync_agents_md.sh: Detect and apply canonicalAGENTS.mdchanges across Swift package repos.
assets/
assets/AGENTS.md: Canonical baseline template for Swift package repositories.
references/
references/automation-usage.md: Suggested recurring automation modes and output expectations.references/automation-prompts.md: Codex App and Codex CLI automation templates with placeholders and guardrails.
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.
15apple-swift-package-bootstrap
Bootstrap new Swift Package Manager repositories with consistent defaults, generated AGENTS guidance, validation, and customizable bootstrap settings. Use when creating a new Swift package, choosing platform or version presets, scaffolding its initial structure, or maintaining this skill's bootstrap defaults.
14dash-docset-search
Search and reason about Dash.app docsets and cheatsheets on macOS. Use when the task involves explaining Dash capabilities, listing installed docsets, searching one or more docsets, enabling full-text search, detecting missing docsets before handoff to -docset-install-generate, or customizing this skills search policy.
10bootstrap-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.
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.
10