capacitor-performance

capacitor-performance is a skill for Claude Code from Cap-go/capgo-skills. It costs 195 tokens per session (1,997 once invoked), scanned A, original, MIT.

A performance guide for Capacitor apps, which package web code as mobile apps. It covers app size, screen rendering, memory use, communication with native phone features, and performance profiling.

In plain words
What is it for?
Use it to optimize a Capacitor app’s bundle size, rendering, memory usage, and native bridge work. It also helps with profiling, which means measuring where the app spends time and resources.
Why use it?
It helps identify why a mobile app feels slow, uses too much memory, or takes too long to load. The guide organizes the checks needed to improve those areas.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the capacitor-quality plugin — 7 skills shipped together

Good fit Use it to optimize a Capacitor app’s bundle size, rendering, memory usage, and native bridge work. It also helps with profiling, which means measuring where the app spends time and resources.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/cap-go/capgo-skills/capacitor-performance
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 capacitor-performance
Clone the repo
git clone --depth 1 https://github.com/Cap-go/capgo-skills

Made for: Claude Code.

Or install capacitor-quality, the plugin that ships this one along with the rest of its 7 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 capacitor-performance

README.md
[![agentmods](https://agentmods.dev/badge/skills/cap-go/capgo-skills/capacitor-performance/github.svg)](https://agentmods.dev/skills/cap-go/capgo-skills/capacitor-performance)
Your own site
<a href="https://agentmods.dev/skills/cap-go/capgo-skills/capacitor-performance"><img src="https://agentmods.dev/badge/skills/cap-go/capgo-skills/capacitor-performance/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 capacitor-performance

Your own site · 80×15
<a href="https://agentmods.dev/skills/cap-go/capgo-skills/capacitor-performance"><img src="https://agentmods.dev/badge/skills/cap-go/capgo-skills/capacitor-performance.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 195 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,997 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • Socket pass 11 Oct 2026
  • Snyk pass 11 Oct 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.00195 $0.01997
Opus 5.5 $0.00078 $0.00799
Sonnet 5.5 $0.00039 $0.00399
Haiku 4.5 $0.00019 $0.00200

Measured 1mo ago against content hash 6e6063af2f5d, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

capacitor-performance scanned grade A with 0 findings 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 1mo 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.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

plugins/capacitor-quality/skills/capacitor-performance/SKILL.md · 83 lines

How it starts

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

Capacitor Performance

Find the bottleneck first (WebView JS, bridge, native, or network), then fix the specific cause. Generic web advice (code splitting, image compression, virtual lists) still applies; this skill focuses on what is different inside Capacitor.

When to Use

TRIGGER when:

  • Cold start is slow, splash stays long, or the first screen is blank for seconds.
  • App "restarts" or shows a white screen after taking a photo, opening a big file, or returning from background.
  • Native calls feel slow, especially with images, files, or large HTTP responses.
  • Scrolling/animations jank only on device (often older Android WebView).
  • Memory grows over time; listeners pile up.

Do not use:

  • Crashes, native stack traces -> debugging-capacitor, capacitor-native-observability.
  • Getting logs off a device -> ios-android-logs.
  • Offline storage design / SQLite migration -> capacitor-offline-first, sqlite-to-fast-sql.
  • Splash screen setup -> capacitor-splash-screen; keyboard resize jank -> capacitor-keyboard.
  • OTA bundle size and delta updates -> capgo-live-updates.

Procedure

  1. Reproduce on a real device in a release-like build. Debug builds log every bridge call and disable optimizations; simulators hide memory and GPU limits.
  2. Classify with the profiling table below: JS main thread busy, bridge payloads large, native thread busy, or waiting on network.
  3. Check the traps list. Most Capacitor-specific regressions are one of these.
  4. Fix one thing, measure again with the same command/trace. Report before/after numbers to the user.

Profiling Quick Reference

Question Tool
JS long tasks, layout, paint (iOS) Safari > Develop > device > app > Timelines. Requires ios.webContentsDebuggingEnabled: true for release builds (debug builds are inspectable by default on iOS 16.4+).
JS long tasks, memory heap (Android) chrome://inspect > Performance / Memory.
Native CPU, allocations, leaks (iOS) Xcode > Product > Profile > Time Profiler / Allocations / Leaks; field data in Xcode Organizer > Metrics.
Native CPU/memory (Android) Android Studio > Profiler.
Android cold start time adb shell am force-stop <appId> && adb shell am start -W -n <appId>/.MainActivity (read TotalTime).
Android frame stats adb shell dumpsys gfxinfo <appId> (janky frames %).
Android WebView version adb shell dumpsys webviewupdate (current provider and version).

Read the full file on GitHub · 83 lines

Files

What ships with it

2 files 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. 1mo ago Changed · -91 lines · +158 tokens per session 6e6063af2f5d
  2. 3mo ago First seen · 174 lines · 37 tokens per session scan A 57f39a2f9031

Subscribe to this mod's changes

capacitor-performance is a skill published in the GitHub repository Cap-go/capgo-skills (79 stars, last pushed 22d ago), licensed MIT. It adds 195 tokens to every session and 1,997 once invoked, about $0.0008 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

capacitor-performance compared with skills from other repositories

capacitor-performance next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
capacitor-performanceCap-go/capgo-skillsSkill7922d agoMITA195Claude Code
capacitor-pluginscapawesome-team/skillsSkill58yesterdayMITA171Claude Code, Codex
capacitor-expertcapawesome-team/skillsSkill58yesterdayMITA118Claude Code, Codex
ionic-appflow-migrationcapawesome-team/skillsSkill58yesterdayMITA198Claude Code, Codex
ionic-expertcapawesome-team/skillsSkill58yesterdayMITA108Claude Code, Codex
capgo-cloud-migrationcapawesome-team/skillsSkill58yesterdayMITA200Claude Code, Codex
ionic-app-developmentcapawesome-team/skillsSkill58yesterdayMITA102Claude Code, Codex