[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7FAFSSPQDTR8AHJXAPQ7MTR":3,"skill-same:01M7FAFSSPQDTR8AHJXAPQ7MTR":67},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":27,"commitSha":28,"skillDirectory":29,"forksCount":30,"repositoryHtmlUrl":31,"repositoryHomepageUrl":6,"ownerHtmlUrl":32,"ownerBlogUrl":6,"ownerDescription":33,"updatedAt":34,"install":35,"resources":48},"01M7FAFSSPQDTR8AHJXAPQ7MTR","macos-spm-app-packaging",null,"Scaffold, build, sign, and package SwiftPM macOS apps without Xcode projects.","lza6\u002FArmor-piercing-system-prompts","lza6","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F128880206?v=4","01M7EB3K7WPX5T28EJ2NVHE6EG","Chinese-tingfeng","01M7EB3K97E1KQ16QWKJMFNGX8",11,"MIT","https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F06-前端与设计\u002Fmacos-spm-app-packaging\u002FSKILL.md",[],[],"2026-11-16 10:05:34",false,"---\nname: macos-spm-app-packaging\ndescription: Scaffold, build, sign, and package SwiftPM macOS apps without Xcode projects.\nrisk: safe\nsource: \"Dimillian\u002FSkills (MIT)\"\ndate_added: \"2026-03-25\"\n---\n\n# macOS SwiftPM App Packaging (No Xcode)\n\n## Overview\nBootstrap a complete SwiftPM macOS app folder, then build, package, and run it without Xcode. Use `assets\u002Ftemplates\u002Fbootstrap\u002F` for the starter layout and `references\u002Fpackaging.md` + `references\u002Frelease.md` for packaging and release details.\n\n## When to Use\n- When the user needs a SwiftPM-based macOS app without relying on an Xcode project.\n- When you need packaging, signing, notarization, or appcast guidance for a SwiftPM app.\n\n## Two-Step Workflow\n1) Bootstrap the project folder\n   - Copy `assets\u002Ftemplates\u002Fbootstrap\u002F` into a new repo.\n   - Rename `MyApp` in `Package.swift`, `Sources\u002FMyApp\u002F`, and `version.env`.\n   - Customize `APP_NAME`, `BUNDLE_ID`, and versions.\n\n2) Build, package, and run the bootstrapped app\n   - Copy scripts from `assets\u002Ftemplates\u002F` into your repo (for example, `Scripts\u002F`).\n   - Build\u002Ftests: `swift build` and `swift test`.\n   - Package: `Scripts\u002Fpackage_app.sh`.\n   - Run: `Scripts\u002Fcompile_and_run.sh` (preferred) or `Scripts\u002Flaunch.sh`.\n   - Release (optional): `Scripts\u002Fsign-and-notarize.sh` and `Scripts\u002Fmake_appcast.sh`.\n   - Tag + GitHub release (optional): create a git tag, upload the zip\u002Fappcast to the GitHub release, and publish.\n\n## Minimum End-to-End Example\nShortest path from bootstrap to a running app:\n```bash\n# 1. Copy and rename the skeleton\ncp -R assets\u002Ftemplates\u002Fbootstrap\u002F ~\u002FProjects\u002FMyApp\ncd ~\u002FProjects\u002FMyApp\nsed -i '' 's\u002FMyApp\u002FHelloApp\u002Fg' Package.swift version.env\n\n# 2. Copy scripts\ncp assets\u002Ftemplates\u002Fpackage_app.sh Scripts\u002F\ncp assets\u002Ftemplates\u002Fcompile_and_run.sh Scripts\u002F\nchmod +x Scripts\u002F*.sh\n\n# 3. Build and launch\nswift build\nScripts\u002Fcompile_and_run.sh\n```\n\n## Validation Checkpoints\nRun these after key steps to catch failures early before proceeding to the next stage.\n\n**After packaging (`Scripts\u002Fpackage_app.sh`):**\n```bash\n# Confirm .app bundle structure is intact\nls -R build\u002FHelloApp.app\u002FContents\n\n# Check that the binary is present and executable\nfile build\u002FHelloApp.app\u002FContents\u002FMacOS\u002FHelloApp\n```\n\n**After signing (`Scripts\u002Fsign-and-notarize.sh` or ad-hoc dev signing):**\n```bash\n# Inspect signature and entitlements\ncodesign -dv --verbose=4 build\u002FHelloApp.app\n\n# Verify the bundle passes Gatekeeper checks locally\nspctl --assess --type execute --verbose build\u002FHelloApp.app\n```\n\n**After notarization and stapling:**\n```bash\n# Confirm the staple ticket is attached\nstapler validate build\u002FHelloApp.app\n\n# Re-run Gatekeeper to confirm notarization is recognised\nspctl --assess --type execute --verbose build\u002FHelloApp.app\n```\n\n## Common Notarization Failures\n| Symptom | Likely Cause | Recovery |\n|---|---|---|\n| `The software asset has already been uploaded` | Duplicate submission for same version | Bump `BUILD_NUMBER` in `version.env` and repackage. |\n| `Package Invalid: Invalid Code Signing Entitlements` | Entitlements in `.entitlements` file don't match provisioning | Audit entitlements against Apple's allowed set; remove unsupported keys. |\n| `The executable does not have the hardened runtime enabled` | Missing `--options runtime` flag in `codesign` invocation | Edit `sign-and-notarize.sh` to add `--options runtime` to all `codesign` calls. |\n| Notarization hangs \u002F no status email | `xcrun notarytool` network or credential issue | Run `xcrun notarytool history` to check status; re-export App Store Connect API key if expired. |\n| `stapler validate` fails after successful notarization | Ticket not yet propagated | Wait ~60 s, then re-run `xcrun stapler staple`. |\n\n## Templates\n- `assets\u002Ftemplates\u002Fpackage_app.sh`: Build binaries, create the .app bundle, copy resources, sign.\n- `assets\u002Ftemplates\u002Fcompile_and_run.sh`: Dev loop to kill running app, package, launch.\n- `assets\u002Ftemplates\u002Fbuild_icon.sh`: Generate .icns from an Icon Composer file (requires Xcode install).\n- `assets\u002Ftemplates\u002Fsign-and-notarize.sh`: Notarize, staple, and zip a release build.\n- `assets\u002Ftemplates\u002Fmake_appcast.sh`: Generate Sparkle appcast entries for updates.\n- `assets\u002Ftemplates\u002Fsetup_dev_signing.sh`: Create a stable dev code-signing identity.\n- `assets\u002Ftemplates\u002Flaunch.sh`: Simple launcher for a packaged .app.\n- `assets\u002Ftemplates\u002Fversion.env`: Example version file consumed by packaging scripts.\n- `assets\u002Ftemplates\u002Fbootstrap\u002F`: Minimal SwiftPM macOS app skeleton (Package.swift, Sources\u002F, version.env).\n\n## Notes\n- Keep entitlements and signing configuration explicit; edit the template scripts instead of reimplementing.\n- Remove Sparkle steps if you do not use Sparkle for updates.\n- Sparkle relies on the bundle build number (`CFBundleVersion`), so `BUILD_NUMBER` in `version.env` must increase for each update.\n- For menu bar apps, set `MENU_BAR_APP=1` when packaging to emit `LSUIElement` in Info.plist.\n\n## Limitations\n- Use this skill only when the task clearly matches the scope described above.\n- Do not treat the output as a substitute for environment-specific validation, testing, or expert review.\n- Stop and ask for clarification if required inputs, permissions, safety boundaries, or success criteria are missing.\n","# macOS SwiftPM App Packaging (No Xcode)\n\n## Overview\nBootstrap a complete SwiftPM macOS app folder, then build, package, and run it without Xcode. Use `assets\u002Ftemplates\u002Fbootstrap\u002F` for the starter layout and `references\u002Fpackaging.md` + `references\u002Frelease.md` for packaging and release details.\n\n## When to Use\n- When the user needs a SwiftPM-based macOS app without relying on an Xcode project.\n- When you need packaging, signing, notarization, or appcast guidance for a SwiftPM app.\n\n## Two-Step Workflow\n1) Bootstrap the project folder\n   - Copy `assets\u002Ftemplates\u002Fbootstrap\u002F` into a new repo.\n   - Rename `MyApp` in `Package.swift`, `Sources\u002FMyApp\u002F`, and `version.env`.\n   - Customize `APP_NAME`, `BUNDLE_ID`, and versions.\n\n2) Build, package, and run the bootstrapped app\n   - Copy scripts from `assets\u002Ftemplates\u002F` into your repo (for example, `Scripts\u002F`).\n   - Build\u002Ftests: `swift build` and `swift test`.\n   - Package: `Scripts\u002Fpackage_app.sh`.\n   - Run: `Scripts\u002Fcompile_and_run.sh` (preferred) or `Scripts\u002Flaunch.sh`.\n   - Release (optional): `Scripts\u002Fsign-and-notarize.sh` and `Scripts\u002Fmake_appcast.sh`.\n   - Tag + GitHub release (optional): create a git tag, upload the zip\u002Fappcast to the GitHub release, and publish.\n\n## Minimum End-to-End Example\nShortest path from bootstrap to a running app:\n```bash\n# 1. Copy and rename the skeleton\ncp -R assets\u002Ftemplates\u002Fbootstrap\u002F ~\u002FProjects\u002FMyApp\ncd ~\u002FProjects\u002FMyApp\nsed -i '' 's\u002FMyApp\u002FHelloApp\u002Fg' Package.swift version.env\n\n# 2. Copy scripts\ncp assets\u002Ftemplates\u002Fpackage_app.sh Scripts\u002F\ncp assets\u002Ftemplates\u002Fcompile_and_run.sh Scripts\u002F\nchmod +x Scripts\u002F*.sh\n\n# 3. Build and launch\nswift build\nScripts\u002Fcompile_and_run.sh\n```\n\n## Validation Checkpoints\nRun these after key steps to catch failures early before proceeding to the next stage.\n\n**After packaging (`Scripts\u002Fpackage_app.sh`):**\n```bash\n# Confirm .app bundle structure is intact\nls -R build\u002FHelloApp.app\u002FContents\n\n# Check that the binary is present and executable\nfile build\u002FHelloApp.app\u002FContents\u002FMacOS\u002FHelloApp\n```\n\n**After signing (`Scripts\u002Fsign-and-notarize.sh` or ad-hoc dev signing):**\n```bash\n# Inspect signature and entitlements\ncodesign -dv --verbose=4 build\u002FHelloApp.app\n\n# Verify the bundle passes Gatekeeper checks locally\nspctl --assess --type execute --verbose build\u002FHelloApp.app\n```\n\n**After notarization and stapling:**\n```bash\n# Confirm the staple ticket is attached\nstapler validate build\u002FHelloApp.app\n\n# Re-run Gatekeeper to confirm notarization is recognised\nspctl --assess --type execute --verbose build\u002FHelloApp.app\n```\n\n## Common Notarization Failures\n| Symptom | Likely Cause | Recovery |\n|---|---|---|\n| `The software asset has already been uploaded` | Duplicate submission for same version | Bump `BUILD_NUMBER` in `version.env` and repackage. |\n| `Package Invalid: Invalid Code Signing Entitlements` | Entitlements in `.entitlements` file don't match provisioning | Audit entitlements against Apple's allowed set; remove unsupported keys. |\n| `The executable does not have the hardened runtime enabled` | Missing `--options runtime` flag in `codesign` invocation | Edit `sign-and-notarize.sh` to add `--options runtime` to all `codesign` calls. |\n| Notarization hangs \u002F no status email | `xcrun notarytool` network or credential issue | Run `xcrun notarytool history` to check status; re-export App Store Connect API key if expired. |\n| `stapler validate` fails after successful notarization | Ticket not yet propagated | Wait ~60 s, then re-run `xcrun stapler staple`. |\n\n## Templates\n- `assets\u002Ftemplates\u002Fpackage_app.sh`: Build binaries, create the .app bundle, copy resources, sign.\n- `assets\u002Ftemplates\u002Fcompile_and_run.sh`: Dev loop to kill running app, package, launch.\n- `assets\u002Ftemplates\u002Fbuild_icon.sh`: Generate .icns from an Icon Composer file (requires Xcode install).\n- `assets\u002Ftemplates\u002Fsign-and-notarize.sh`: Notarize, staple, and zip a release build.\n- `assets\u002Ftemplates\u002Fmake_appcast.sh`: Generate Sparkle appcast entries for updates.\n- `assets\u002Ftemplates\u002Fsetup_dev_signing.sh`: Create a stable dev code-signing identity.\n- `assets\u002Ftemplates\u002Flaunch.sh`: Simple launcher for a packaged .app.\n- `assets\u002Ftemplates\u002Fversion.env`: Example version file consumed by packaging scripts.\n- `assets\u002Ftemplates\u002Fbootstrap\u002F`: Minimal SwiftPM macOS app skeleton (Package.swift, Sources\u002F, version.env).\n\n## Notes\n- Keep entitlements and signing configuration explicit; edit the template scripts instead of reimplementing.\n- Remove Sparkle steps if you do not use Sparkle for updates.\n- Sparkle relies on the bundle build number (`CFBundleVersion`), so `BUILD_NUMBER` in `version.env` must increase for each update.\n- For menu bar apps, set `MENU_BAR_APP=1` when packaging to emit `LSUIElement` in Info.plist.\n\n## Limitations\n- Use this skill only when the task clearly matches the scope described above.\n- Do not treat the output as a substitute for environment-specific validation, testing, or expert review.\n- Stop and ask for clarification if required inputs, permissions, safety boundaries, or success criteria are missing.\n",{"name":5,"risk":24,"source":25,"date_added":26,"description":7},"safe","Dimillian\u002FSkills (MIT)","2026-03-25","main","d69096e239f2a89aabc2cd078c47664a9d3b1e11","06-前端与设计\u002Fmacos-spm-app-packaging",3,"https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts","https:\u002F\u002Fgithub.com\u002Flza6","个人vx：Tf00798\r\n个人✈：@TFGY999","2026-10-08 14:29:22",{"source":8,"skillName":5,"commands":36,"prompt":46,"zipAvailable":47},[37,40,43],{"tool":38,"command":39},"npx","npx skills add lza6\u002FArmor-piercing-system-prompts --skill macos-spm-app-packaging",{"tool":41,"command":42},"bunx","bunx skills add lza6\u002FArmor-piercing-system-prompts --skill macos-spm-app-packaging",{"tool":44,"command":45},"pnpm","pnpm dlx skills add lza6\u002FArmor-piercing-system-prompts --skill macos-spm-app-packaging","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F06-前端与设计\u002Fmacos-spm-app-packaging\u002FSKILL.md",true,[49,55,59,63],{"path":50,"resourceType":51,"resourceTypeDesc":52,"sizeBytes":53,"sourceHtmlUrl":54},"agents\u002Fopenai.yaml","REFERENCE","参考文档",216,"https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F06-前端与设计\u002Fmacos-spm-app-packaging\u002Fagents\u002Fopenai.yaml",{"path":56,"resourceType":51,"resourceTypeDesc":52,"sizeBytes":57,"sourceHtmlUrl":58},"references\u002Fpackaging.md",783,"https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F06-前端与设计\u002Fmacos-spm-app-packaging\u002Freferences\u002Fpackaging.md",{"path":60,"resourceType":51,"resourceTypeDesc":52,"sizeBytes":61,"sourceHtmlUrl":62},"references\u002Frelease.md",1251,"https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F06-前端与设计\u002Fmacos-spm-app-packaging\u002Freferences\u002Frelease.md",{"path":64,"resourceType":51,"resourceTypeDesc":52,"sizeBytes":65,"sourceHtmlUrl":66},"references\u002Fscaffold.md",1663,"https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F06-前端与设计\u002Fmacos-spm-app-packaging\u002Freferences\u002Fscaffold.md",[68,75,80,87,94,101],{"skillNo":69,"name":70,"nameZh":6,"description":71,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":72,"categories":73,"keywords":74,"publishedAt":19},"01M7FFG485KY83TD6HSC4YPCMC","obsidian-clipper-template-creator","Guide for creating templates for the Obsidian Web Clipper. Use when you want to create a new clipping template, understand available variables, or format clipped content.","https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F07-后端与架构\u002Fobsidian-clipper-template-creator\u002FSKILL.md",[],[],{"skillNo":76,"name":70,"nameZh":6,"description":71,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":77,"categories":78,"keywords":79,"publishedAt":19},"01M7FFG0T6AZ0STEJPSB3CX84K","https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F07-后端与架构\u002Fobsidian-clipper-template-creator-antigravity-awesome-skills-main\u002FSKILL.md",[],[],{"skillNo":81,"name":82,"nameZh":6,"description":83,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":84,"categories":85,"keywords":86,"publishedAt":19},"01M7FFFY0QEM14SKWPDYGMXM2P","python-api","Programmatic Object-Detection-Metrics API guidance for BoundingBox, BoundingBoxes, Evaluator, enums, coordinate conversion, AP\u002FmAP semantics, and source-style import diagnostics.","https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F07-后端与架构\u002Fobject-detection-metrics\u002Fsub-skills\u002Fpython-api\u002FSKILL.md",[],[],{"skillNo":88,"name":89,"nameZh":6,"description":90,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":91,"categories":92,"keywords":93,"publishedAt":19},"01M7FFFVZQZ2GJ0C0TGP7JHD20","file-evaluation","Folder-based PASCAL VOC AP\u002FmAP evaluation from ground-truth and detection text files.","https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F07-后端与架构\u002Fobject-detection-metrics\u002Fsub-skills\u002Ffile-evaluation\u002FSKILL.md",[],[],{"skillNo":95,"name":96,"nameZh":6,"description":97,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":98,"categories":99,"keywords":100,"publishedAt":19},"01M7FFFSFNYSE77SJ6PE1CK2DA","object-detection-metrics","Guides legacy Object-Detection-Metrics PASCAL VOC AP\u002FmAP evaluation from detection text folders and direct Python API classes.","https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F07-后端与架构\u002Fobject-detection-metrics\u002FSKILL.md",[],[],{"skillNo":102,"name":103,"nameZh":6,"description":104,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":105,"categories":106,"keywords":107,"publishedAt":19},"01M7FFFP0GCK1RVXBCPQ8APBMT","nx-workspace-patterns","Configure and optimize Nx monorepo workspaces. Use when setting up Nx, configuring project boundaries, optimizing build caching, or implementing affected commands.","https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F07-后端与架构\u002Fnx-workspace-patterns\u002FSKILL.md",[],[]]