Capacitor Plugin Spm Support
Add Swift Package Manager support to an existing Capacitor plugin so SPM apps can consume it.
- CCM score
- 72 of 100
- skills.sh installs
- 811
- GitHub stars
- 79
- last updated
- Aug 21, 2026
Own this skill? Claim it
What it does
- Covers root
Package.swiftnaming,CAPBridgedPluginconversion, removing the ObjCCAP_PLUGINbridge, and Sources/Tests layout - Includes podspec and
package.jsonupdates, third-party pod to SPM mapping, resources, binary xcframeworks, and Capacitor 9 Cordova product removal - Enforces CLI naming rules so the
Packagename and.libraryproduct both match the npm-derived class name - Designed for plugin maintainers preparing for CocoaPods Trunk going read-only, not for app project migrations
Install
$ npx -y skills add cap-go/capgo-skills --skill capacitor-plugin-spm-support -yInstalls into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.
Files
Add Swift Package Manager Support to a Capacitor Plugin
Make a plugin installable in SPM-based Capacitor apps while keeping its podspec for CocoaPods apps.
When to Use
TRIGGER when:
- A plugin repo has
ios/Plugin/*.swift+*.m/*.hwithCAP_PLUGIN(...)and no rootPackage.swift. - An app's
npx cap sync iosprints<plugin id> does not have a Package.swiftfor a plugin the user maintains. - A plugin works with CocoaPods but JS gets
"X" plugin is not implemented on iosin SPM apps. - Preparing a plugin for Capacitor 9 / CocoaPods Trunk read-only.
Do not use:
- App-side CocoaPods removal ->
cocoapods-to-spm. - Capacitor major bumps of a plugin ->
capacitor-plugin-upgrades,capacitor-plugin-upgrade-v8-to-v9. - Android-only plugin work, or non-Capacitor (pure Cordova, React Native) plugins.
Rules the CLI Enforces (non-obvious)
Details
- Repository
- github.com/cap-go/capgo-skills
- Categories
- Mobile Apps, Skill & Plugin Building
- First seen
- Jun 3, 2026
Questions
What does the capacitor-plugin-spm-support skill do?
It adds Swift Package Manager support to an existing Capacitor plugin so apps using CapApp-SPM can consume it after CocoaPods Trunk goes read-only. It covers the root Package.swift, converting the class to CAPBridgedPlugin, removing the ObjC bridge, and updating the podspec and package.json files.
Who should use this skill for a Capacitor plugin?
It is for plugin maintainers who own a Capacitor plugin repository with iOS code, especially when app sync warns that a plugin does not have a Package.swift. It is not for app projects or non-Capacitor plugin frameworks, so app migrations should use cocoapods-to-spm instead.
How do I install the capacitor-plugin-spm-support skill?
Run npx -y skills add cap-go/capgo-skills --skill capacitor-plugin-spm-support -y in your project. The agent then gets the instructions to convert the plugin for Swift Package Manager.
Where does this skill stand in the Mobile Apps category?
It sits in the Mobile Apps category alongside vercel-react-native-skills, animate-expo, write-swift, firebase-crashlytics and xcode-project-setup. It is focused on making Capacitor plugins installable in SPM-based apps while keeping their CocoaPods podspec.
More from cap-go/capgo-skills
All 41- Capgo Native Builds810
- Capgo Release Management804
- Capgo Release Workflows804
- Capacitor App Upgrade V7 To V8797
- Capgo Cloud787
- Capgo Organization Management779
- Sqlite To Fast Sql758
- Capacitor Plugin Upgrade V7 To V8735
- Skill Creator728
- Ionic Enterprise Sdk Migration726
- Ionic Appflow Migration697
- Capacitor App Upgrade V6 To V7688
- Capacitor Best Practices3.1K
- Capacitor Plugins1.8K
- Ionic Design1.7K
- Debugging Capacitor1.5K
- Safe Area Handling1.5K
- Capacitor Testing1.5K
- Capacitor Deep Linking1.4K
- Ios Android Logs1.4K
- Capacitor Security1.4K
- Capacitor Performance1.4K
- Capacitor Accessibility1.3K
- Capacitor App Store1.3K
Similar to Capacitor Plugin Spm Support
More Mobile Appscocoapods-to-spmSkillcap-go/capgo-skills892 installsMigrates Capacitor iOS apps from CocoaPods to Swift Package Manager before CocoaPods Trunk goes read-only.
capacitor-plugin-devPluginCap-go/capgo-skills79 starsCapacitor plugin development skills for SPM support and plugin major-version upgrades.
capacitor-plugin-developmentSkillcapawesome-team/skills1.6K installsScaffolds, implements, tests, documents, and publishes Capacitor plugins across iOS, Android, and web.
kotlin-tooling-cocoapods-spm-migrationSkillkotlin/kotlin-agent-skills2.2K installsMigrate KMP projects from CocoaPods to SwiftPM with the swiftPMDependencies DSL, keeping CocoaPods active until late.
xcode-project-setupSkillfirebase/agent-skills147.6K installsSafe Swift-based tool that adds Swift Packages and links files to Xcode projects without manual .pbxproj edits.
capacitor-pluginsSkillcapawesome-team/skills2.7K installsCatalog summary for the capacitor-plugins skill, covering six plugin sources with installation and configuration guidance.