webapp-to-capacitor

webapp-to-capacitor is a skill for Claude Code from Cap-go/capgo-skills. It costs 166 tokens per session (2,651 once invoked), scanned B, original, MIT.

A migration guide for turning an existing web app, progressive web app, or single-page app into a store-ready iOS and Android app with Capacitor.

In plain words
What is it for?
It helps prepare a web app for app-store release, including platform behavior, permissions, offline support, billing, testing, and avoiding rejection as a thin WebView app.
Why use it?
It addresses mobile requirements that a basic browser wrapper may miss, such as native-feeling interactions, permissions, offline use, billing, testing, and account deletion.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter.

Part of the capacitor-app-migrations plugin — 8 skills shipped together

Good fit It helps prepare a web app for app-store release, including platform behavior, permissions, offline support, billing, testing, and avoiding rejection as a thin WebView app.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/cap-go/capgo-skills/webapp-to-capacitor
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add Cap-go/capgo-skills --skill webapp-to-capacitor
Clone the repo
git clone --depth 1 https://github.com/Cap-go/capgo-skills

Made for: Claude Code.

Or install capacitor-app-migrations, the plugin that ships this one along with the rest of its 8 skills.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for webapp-to-capacitor

README.md
[![agentmods](https://agentmods.dev/badge/skills/cap-go/capgo-skills/webapp-to-capacitor/github.svg)](https://agentmods.dev/skills/cap-go/capgo-skills/webapp-to-capacitor)
Your own site
<a href="https://agentmods.dev/skills/cap-go/capgo-skills/webapp-to-capacitor"><img src="https://agentmods.dev/badge/skills/cap-go/capgo-skills/webapp-to-capacitor/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for webapp-to-capacitor

Your own site · 80×15
<a href="https://agentmods.dev/skills/cap-go/capgo-skills/webapp-to-capacitor"><img src="https://agentmods.dev/badge/skills/cap-go/capgo-skills/webapp-to-capacitor.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 166 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,651 The whole file, excluding the scripts and references it only reads on demand.
Security scan B 1 finding. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • Socket pass 15 Sept 2026
  • Snyk pass 15 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00166 $0.02651
Opus 5.5 $0.00066 $0.01060
Sonnet 5.5 $0.00033 $0.00530
Haiku 4.5 $0.00017 $0.00265

Measured 14d ago against content hash 8b745a898ca6, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade B, and why

webapp-to-capacitor scanned grade B with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 14d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Strips warnings and disclaimersmediumAnti-refusal

Omitting safety caveats hides risk from the user and is a common jailbreak preamble.

- `npm run build` produces `<webDir>/index.html`; `npx cap sync` completes without warnings about missing plugins.
plugins/capacitor-app-migrations/skills/webapp-to-capacitor/SKILL.md · 158 lines

How it starts

The opening of the file, as written. The whole thing — 158 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Web App to Capacitor

Turn a production web app into a Capacitor app that behaves like a mobile app and survives store review. The Capacitor shell is usually a day of work; mobile UX, native capabilities, and store policy are the real project.

When to Use

TRIGGER when:

  • "Turn my website / PWA / React (Vue, Angular, Svelte, Next.js, Nuxt) app into an iOS/Android app."
  • The user asks whether Apple will reject a WebView wrapper (guideline 4.2) or how to make it feel native.
  • The user needs a migration plan covering permissions, offline, auth, account deletion, payments, and testing.

Do not use for:

  • Only fixing webDir, SSR, or routing for a specific framework -> framework-to-capacitor.
  • Cordova/PhoneGap/Ionic-Cordova projects -> cordova-to-capacitor.
  • Uploading builds, screenshots, listing metadata -> capacitor-app-store.
  • Auditing a submission or answering a rejection -> capacitor-apple-review-preflight.
  • CI pipelines and signing -> capacitor-ci-cd or capgo-native-builds.

Live Project Snapshot

Detected web framework, build scripts, and Capacitor packages: !node -e "const fs=require('fs');if(!fs.existsSync('package.json'))process.exit(0);const pkg=JSON.parse(fs.readFileSync('package.json','utf8'));const names=['@capacitor/core','@capacitor/cli','@capacitor/ios','@capacitor/android','@capgo/capacitor-updater','next','react','vue','@angular/core','@sveltejs/kit','nuxt','vite','@ionic/react','@ionic/vue','@ionic/angular','vite-plugin-pwa','workbox-window'];const out=[];for(const section of ['dependencies','devDependencies']){for(const [name,version] of Object.entries(pkg[section]||{})){if(names.includes(name))out.push(section+'.'+name+'='+version)}}for(const [name,cmd] of Object.entries(pkg.scripts||{})){if(/build|dev|preview|start|export|generate|sync|cap|ios|android/i.test(name))out.push('scripts.'+name+'='+cmd)}console.log(out.sort().join('\n'))"

Relevant config and native project paths: !find . -maxdepth 4 -not -path '*/node_modules/*' \( -name 'capacitor.config.*' -o -name 'vite.config.*' -o -name 'next.config.*' -o -name 'nuxt.config.*' -o -name 'angular.json' -o -name 'svelte.config.*' -o -name 'manifest.webmanifest' -o -name 'manifest.json' -o -path './ios' -o -path './android' -o -name 'Info.plist' -o -name 'AndroidManifest.xml' \)

Read the full file on GitHub · 158 lines

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 14d ago Changed · -69 lines · +83 tokens per session scan A → B 8b745a898ca6
  2. 1mo ago First seen · 227 lines · 83 tokens per session scan A e25d9966fde5

Subscribe to this mod's changes

webapp-to-capacitor is a skill published in the GitHub repository Cap-go/capgo-skills (73 stars, last pushed 7d ago), licensed MIT. It adds 166 tokens to every session and 2,651 once invoked, about $0.0007 per session on Opus 5.5. A static security scan graded it B with 1 finding (strips warnings and disclaimers). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

loom-dart

Dart language expertise for idiomatic, production-quality code.

cosmix/loom · 16 tokens

capacitor-plugins

Guides the agent through installing, configuring, and using Capacitor plugins from six sources — official Capacitor plugins, Capawesome plugins, Capacitor Community plugins, Capacitor Firebase plugins, Capacitor MLKit plugins, and RevenueCat plugins. Covers installation, platform-specific configuration (Android and…

capawesome-team/skills · 101 tokens

ionic-appflow-migration

Guides the agent through migrating an existing Ionic Appflow project to Capawesome Cloud. Imports an Ionic Appflow organization export with the Capawesome CLI apps:import command — apps, signing certificates, environments, live update channels, native configurations, store destinations, build automations, and…

capawesome-team/skills · 196 tokens

capacitor-expert

A comprehensive starting point for AI agents to work with Capacitor. Covers core concepts, CLI, app creation, plugins, framework integration, best practices, storage, security, testing, troubleshooting, upgrading, and Capawesome Cloud (live updates, native builds, app store publishing). Pair with the other Capacitor…

capawesome-team/skills · 76 tokens

capgo-cloud-migration

Guides the agent through migrating an existing Capacitor project from Capgo to Capawesome Cloud. Detects Capgo usage (the @capgo/capacitor-updater plugin, CapacitorUpdater configuration, and @capgo/cli commands in CI/CD) and provides step-by-step migration: replacing the plugin with @capawesome/capacitor-live-update…

capawesome-team/skills · 160 tokens

ionic-expert

A comprehensive starting point for AI agents to work with the Ionic Framework. Covers core concepts, components, CLI, theming, layout, lifecycle, navigation, and framework-specific patterns for Angular, React, and Vue. Pair with the other Ionic skills in this collection for deeper topic-specific guidance like app…

capawesome-team/skills · 71 tokens