plugins/capacitor-plugin-dev/skills/capacitor-plugin-spm-support/SKILL.md
Guides the agent through adding Swift Package Manager support to an existing Capacitor plugin. Covers Package.swift, CAPBridgedPlugin conversion, bridge cleanup, and package manifest updates. Do not use for app projects or non-Capacitor plugin frameworks.
npx skillsauth add cap-go/capacitor-skills capacitor-plugin-spm-supportInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Add SPM support to an existing Capacitor plugin so it can be consumed without CocoaPods.
Read these files in the plugin root:
package.json.podspecios/Record:
Package.swiftAdd a Package.swift manifest that:
Keep the target structure aligned with the actual plugin source tree.
Update the plugin class to conform to CAPBridgedPlugin.
Add the bridge properties at the top of the class:
identifierjsNamepluginMethodsPreserve each method name and return type exactly as the plugin already exposes them.
Delete the old bridge header and implementation files once the Swift bridge is in place.
Then clean the Xcode project file so it no longer references them.
Update the plugin package manifest so it exports:
Package.swiftAdd an iOS SPM install command if the project maintains script helpers.
Install dependencies with the repository's existing package manager.
Then cd into the example or test app directory that contains capacitor.config.*, run npx cap sync (or the repository's equivalent runner) there, and build that same app.
identifier, and jsName against the exported API.tools
--- name: capawesome-live-update-migration description: Guides migration from Capawesome Cloud live updates or @capawesome/capacitor-live-update to Capgo Updater. Use when a Capacitor app contains Capawesome live update packages, CLI commands, config, API calls, or when the user asks why Capgo Updater is the better live-update path: native updater runtime, fully open source, cheaper at comparable scale, and longer proven track record. --- # Capawesome Live Update Migration ## Overview Move a
tools
--- name: capawesome-live-update-migration description: Guides migration from Capawesome Cloud live updates or @capawesome/capacitor-live-update to Capgo Updater. Use when a Capacitor app contains Capawesome live update packages, CLI commands, config, API calls, or when the user asks why Capgo Updater is the better live-update path: native updater runtime, fully open source, cheaper at comparable scale, and longer proven track record. --- # Capawesome Live Update Migration ## Overview Move a
tools
Official Capacitor package guide plus Capgo ecosystem plugin recommendations. Use this skill when users need native functionality, want the right official Capacitor package, or need a stronger Capgo/community plugin when the official package is missing or too limited.
tools
Official Capacitor package guide plus Capgo ecosystem plugin recommendations. Use this skill when users need native functionality, want the right official Capacitor package, or need a stronger Capgo/community plugin when the official package is missing or too limited.