Writing Skills
writing-skills
效率与协作技能,来自 obra/superpowers,查看原文获取完整用途和操作说明。
capacitor-plugin-upgrades【部署与运维】Guides the agent through upgrading a Capacitor plugin to a newer major version. Supports upgrades from Capacitor 4 through 8, including multi-version jumps. Covers automated upgrade via official migration tools, Android SDK targets, Gradle configuration, Java/Kotlin versions, iOS deployment targets, and manual step-by-step fallback for each version. …
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
Upgrade a Capacitor plugin to a newer major version (4→5, 5→6, 6→7, or 7→8).
| Target Version | Node.js |
|---|---|
| 5 | 16+ |
| 6 | 18+ |
| 7 | 20+ |
| 8 | 22+ |
The project must be a Capacitor plugin (not an app project).
Read @capacitor/core version from package.json (devDependencies or peerDependencies). Determine the current major version.
Ask the user for the target version. Default to the latest (8) if not specified.
For each major version jump between the current and target version, apply the corresponding upgrade guide sequentially:
| Current → Target | Reference |
|---|---|
| 4 → 5 | references/upgrade-v4-to-v5.md |
| 5 → 6 | references/upgrade-v5-to-v6.md |
| 6 → 7 | references/upgrade-v6-to-v7.md |
| 7 → 8 | references/upgrade-v7-to-v8.md |
For multi-version jumps (e.g., 5 → 8), apply each upgrade in order:
references/upgrade-v5-to-v6.mdnpm install && npx cap sync, build, and verify the plugin's test/example appreferences/upgrade-v6-to-v7.mdnpm install && npx cap sync, build, and verify the plugin's test/example appreferences/upgrade-v7-to-v8.mdnpm install && npx cap sync, build, and verify the plugin's test/example appDo not skip intermediate versions.
After completing all upgrade steps:
npm install
npx cap sync
Build the plugin's test/example app on both platforms to verify.
.gradle files for property assignments without = and update them.capacitor-app-upgrades — If the app project itself also needs upgrading, use this skill.capacitor-plugin-spm-support — After upgrading a plugin to Capacitor 6+, use this skill to add Swift Package Manager support.capacitor-plugin-development — For creating new Capacitor plugins from scratch, including scaffolding, native implementation, and publishing.