Token导航 LogoToken导航TokenDH.com
开发只读github未标认证来源可访问许可证需确认审计提醒

bootstrap-swift-packagebootstrap Swift package 命令行

Agent Skill

bootstrap-swift-package 用于处理 GitHub 仓库、Issue、Pull Request 和代码协作信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要围绕仓库状态、代码变更或协作事项进行整理时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

247

周安装

10

GitHub Stars

4

下载量

78
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:bootstrap-swift-package(bootstrap Swift package 命令行)
来源仓库:https://github.com/gaelic-ghost/apple-dev-skills
仓库路径:skills/bootstrap-swift-package
安装命令:
npx skills add https://github.com/gaelic-ghost/apple-dev-skills --skill bootstrap-swift-package
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/gaelic-ghost/apple-dev-skills --skill bootstrap-swift-package

简介

bootstrap-swift-package 用于处理 GitHub 仓库、Issue、Pull Request 和代码协作信息。

  • 适合在 Codex、Claude、Cursor、Gemini CLI 中围绕仓库状态、代码变更或协作事项进行整理。
  • 可结合来源仓库、安装命令和原始 README 继续核验具体用法。
  • 安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。
  • 适用宿主包括 Codex、Claude、Cursor、Gemini CLI,接入前应确认版本、权限和运行环境要求。

SKILL.md

Bootstrap Swift Package

Overview

Create a new Swift package quickly with repeatable defaults. Prefer the bundled script for deterministic setup.

Workflow

  1. Confirm package intent.
  • Ask for package name, type (library, executable, or tool), destination path, platform preset (mac, mobile, multiplatform), and version profile (latest-major, current-minus-one, current-minus-two).
  • Accept aliases: macos for mac, ios for mobile, both for multiplatform, and latest/minus-one/minus-two for version profiles.
  1. Create the package.
  • Preferred: run scripts/bootstrap_swift_package.sh --name <Name> --type <library|executable|tool> --destination <dir> --platform <mac|macos|mobile|ios|multiplatform|both> --version-profile <latest-major|current-minus-one|current-minus-two|latest|minus-one|minus-two>.
  • Fallback: run swift package init --name <Name> --type <library|executable|tool> manually inside the target directory, patch Package.swift platforms, copy assets/AGENTS.md to repo root as AGENTS.md, then run git init.
  1. Validate bootstrap output.
  • Verify Package.swift exists.
  • Verify .git exists.
  • Verify AGENTS.md exists.
  • Verify Tests/ exists.
  • Run swift build and swift test in the package root.
  1. Report result.
  • Summarize created path, package type, platform preset, version profile, build/test status, and immediate next steps.

Defaults

  • Use library unless the user clearly asks for executable or tool.
  • Use multiplatform unless the user clearly wants only mac or mobile.
  • Use current-minus-one as the default version profile.
  • Keep generated structure minimal; do not add extra frameworks unless requested.
  • Always initialize git.
  • Always include AGENTS.md with repository expectations for working with Swift Package Manager and Swift packages.

Automation Prompting

  • Codex App automation fit: Guarded. Prefer event-driven or explicit scaffold requests over frequent recurring schedules.
  • Codex CLI automation fit: Strong. Use deterministic codex exec prompts with explicit placeholders and strict scope.
  • Use references/automation-prompts.md for ready-to-use Codex App and Codex CLI templates.
  • Keep schedule and workspace configuration outside the prompt body for App automations.

Troubleshooting

  • If swift is missing, stop and ask the user to install Xcode command line tools or Swift toolchain.
  • If git is missing, stop and ask the user to install git or Xcode command line tools.
  • If assets/AGENTS.md is missing, stop and restore the template before bootstrapping packages.
  • If destination exists and is non-empty (excluding ignorable macOS metadata like .DS_Store), do not overwrite; ask for a new destination or explicit cleanup instructions.
  • If validation fails in constrained environments, rerun with --skip-validation and report that checks were skipped.

Resources

scripts/

  • scripts/bootstrap_swift_package.sh: Create package directory, run swift package init, apply platforms defaults to Package.swift, initialize git, and run safety/validation checks.

references/

  • references/package-types.md: Quick selection guide for package types, platform presets, and version profiles.
  • references/automation-prompts.md: Codex App and Codex CLI automation prompt templates with placeholders and guardrails.

assets/

  • assets/AGENTS.md: Template copied into each new package repository to set repository expectations for Swift Package Manager workflows.

Interactive Customization Flow

  1. Load current effective customization settings first:
  • uv run python scripts/customization_config.py effective
  1. Ask targeted customization questions:
  • Use references/customization-flow.md to drive knob-by-knob questions.
  • Confirm desired behavior changes and safety constraints.
  1. Map requested changes to implementation files:
  • Update SKILL.md, references/*, and any runtime script files listed in references/customization-flow.md.
  1. Persist durable customization state:
  • Start from customization.template.yaml defaults.
  • 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.
  1. Report resulting effective configuration:
  • Re-run uv run python scripts/customization_config.py effective and 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.

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

32.82%
按下载量换算26

Claude

33.69%
按下载量换算26

Cursor

20.13%
按下载量换算16

Gemini CLI

9.19%
按下载量换算7

安全审计

Gen Agent Trust Hub

可疑

Socket

通过

Snyk

通过

权限和风险

只读

该 Skill 主要提供规则、说明或参考内容,本身偏只读;真正读写文件、联网或执行命令仍取决于宿主 Agent 的任务。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在 warning/failed 结果,不能写成本站确认安全。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills