Capacitor App Upgrade v6 to v7

VerifiedCaution

Upgrade a Capacitor app from v6 to v7 with package and native updates. Use for v6 projects needing the v7 migration path.

Sby Skills Guide Bot
DevelopmentIntermediate
8/22/2026
Claude Code
#capacitor#mobile#dependency-upgrade#ios#android

Recommended for

Automated summary

Walks the agent through migrating a Capacitor app from version 6 to version 7, starting from a snapshot of the @capacitor/* packages in package.json.

Strengths

  • Automatically reads the project's @capacitor/* dependencies before suggesting any changes
  • Short, ordered procedure: bump packages, npm install, npx cap sync, verify iOS and Android builds
  • Provides targeted troubleshooting hints for iOS (deployment target, Xcode) and Android (Gradle, Java) failures
  • Deliberately scoped to the v6 to v7 migration, so it avoids off-topic guidance

Limitations

  • Covers only the 6 to 7 upgrade, not other major versions or standalone plugin updates
  • Does not include the actual migration notes; the agent must consult external documentation before touching native files
  • Does not truly run or validate the iOS/Android builds, leaving that verification to the user or environment
When to use it

Use it when a project is confirmed to be on Capacitor 6 and needs a clean move to version 7.

When not to use it

Avoid it for non-Capacitor apps, other major version jumps, or plugin-only updates that do not change the core major version.

Security analysis

Caution
Quality score82/100

The skill uses a fixed Node.js command to read package.json and list Capacitor packages, which is read-only and harmless. However, the declared allowed-tools pattern permits any node -e invocation, effectively allowing arbitrary code execution within the Bash tool. This is a powerful capability that goes beyond the skill's actual need, warranting caution.

Findings
  • •The allowed-tools pattern 'Bash(node -e *)' grants arbitrary JavaScript execution via Node.js, which is broader than the single read-only command used in the skill.
How this analysis is made

Examples

Start the v6 → v7 upgrade
Our app is on Capacitor 6 and we need to move to Capacitor 7. Can you walk through the upgrade?
Bump all Capacitor packages
Update every @capacitor/* package in this project to the v7-compatible range, then run npm install and npx cap sync.
Native build failing after upgrade
I upgraded to Capacitor 7 but the Android build fails on Gradle and the iOS build complains about the deployment target — what do I need to change?

name: capacitor-app-upgrade-v6-to-v7 description: Guides the agent through upgrading a Capacitor app from v6 to v7. Use when the project is on Capacitor 6 and needs the v7 migration path. Do not use for other major versions, plugin-only upgrades, or non-Capacitor apps. allowed-tools:

  • Bash(node -e *)

Capacitor App Upgrade v6 to v7

Upgrade a Capacitor app from version 6 to version 7.

When to Use This Skill

  • User says the app is on Capacitor 6 and must move to v7
  • User wants the exact v6 to v7 migration path
  • User needs v7-specific native and package updates

Live Project Snapshot

Current Capacitor packages from package.json: !node -e "const fs=require('fs');if(!fs.existsSync('package.json'))process.exit(0);const pkg=JSON.parse(fs.readFileSync('package.json','utf8'));const out=[];for(const section of ['dependencies','devDependencies']){for(const [name,version] of Object.entries(pkg[section]||{})){if(name.startsWith('@capacitor/'))out.push(section+'.'+name+'='+version)}}console.log(out.sort().join('\n'))"

Procedure

  1. Start from the injected package snapshot and confirm the current @capacitor/core version.
  2. Update all @capacitor/* packages to the v7-compatible range.
  3. Review the v6 to v7 migration notes before editing native files.
  4. Run npm install.
  5. Sync with npx cap sync.
  6. Verify the iOS and Android builds.

Error Handling

  • If the automated migration misses a package, update it manually before syncing again.
  • If iOS fails, check the deployment target and Xcode compatibility for Capacitor 7.
  • If Android fails, check the Gradle and Java requirements for Capacitor 7.

From the file to a first result

The download contains exactly the content displayed on this page. This copy may differ from the latest version in the source repository.

View the source and supporting files

This download contains SKILL.md only. Any scripts, references, templates and dependencies are not included. Get the required files from the source, preserving their directory structure, before continuing.

1. Download the file

Download SKILL.md

From the root of a test project, save the file as .skill-downloads/capacitor-app-upgrade-v6-to-v7-mt3wm0wq/SKILL.md, or use the command below. This folder is for inspecting the skill before installation.

Command for macOS/Linux or WSL: requires a POSIX shell and curl. On Windows without WSL, use the download button and create the folder manually.

mkdir -p '.skill-downloads/capacitor-app-upgrade-v6-to-v7-mt3wm0wq' && curl --fail --show-error --location 'https://skills-guides.com/api/skills/capacitor-app-upgrade-v6-to-v7-mt3wm0wq/download' --output '.skill-downloads/capacitor-app-upgrade-v6-to-v7-mt3wm0wq/SKILL.md.part' && mv '.skill-downloads/capacitor-app-upgrade-v6-to-v7-mt3wm0wq/SKILL.md.part' '.skill-downloads/capacitor-app-upgrade-v6-to-v7-mt3wm0wq/SKILL.md'

2. Check prerequisites

Read SKILL.md before using it. If it references scripts or external services, inspect them and prepare the required access in your test environment.

No recognized prerequisites section in this file. This does not mean it is self-contained: libraries, tools and access requirements may be mentioned elsewhere in the content or source repository.

The platforms on this page are catalog indications. The paths below follow tool documentation; they do not prove this skill has been run in those tools. No minimum tool version is confirmed for this listing.

3. Load the skill

After inspection, copy the complete folder into your project using one of the commands below, then open a new tool session. The command stops if a folder with the same name already exists: compare the files before replacing it.

Claude Code
test -f '.skill-downloads/capacitor-app-upgrade-v6-to-v7-mt3wm0wq/SKILL.md' && test -s '.skill-downloads/capacitor-app-upgrade-v6-to-v7-mt3wm0wq/SKILL.md' && mkdir -p '.claude/skills' && test ! -e '.claude/skills/capacitor-app-upgrade-v6-to-v7' && cp -R '.skill-downloads/capacitor-app-upgrade-v6-to-v7-mt3wm0wq' '.claude/skills/capacitor-app-upgrade-v6-to-v7'

OpenSkills

OpenSkills must already be installed. The local install/read procedure is checked with OpenSkills 1.5.0, which requires Node.js ≥ 20.6.0. Catalog slugs are not resolved automatically.

Official OpenSkills installation
openskills install './.skill-downloads/capacitor-app-upgrade-v6-to-v7-mt3wm0wq'

openskills read 'capacitor-app-upgrade-v6-to-v7-mt3wm0wq'

Reading should display the installed file content and its base directory. It does not run the skill or install its dependencies.

For an agent that reads AGENTS.md, then sync the index. This command changes AGENTS.md: review the diff before using it.

openskills sync

Manual method or another tool: attach SKILL.md to a conversation, or open it in an agent that can read files. Include any required supporting resources. No universal folder is recognized by every tool.

4. Try a first task

Use a short, synthetic input: an API endpoint, a small document or an interface brief. In a new conversation, attach the file or give the agent its path, then adapt this request:

Read .skill-downloads/capacitor-app-upgrade-v6-to-v7-mt3wm0wq/SKILL.md and apply its instructions to this example: [describe a test input]. Identify any missing files, dependencies or access. Produce the result requested by the skill without inventing data or running unreviewed scripts.

Expected result: output matching the skill instructions, or a precise list of missing prerequisites. A read confirmation alone does not validate a first use. If an external resource is unavailable, that path remains untested.

Related skills