capacitor-security

capacitor-security is a skill for Claude Code from Cap-go/capgo-skills. It costs 243 tokens per session (2,542 once invoked), scanned A, original, MIT.

A security guide for Capacitor apps, which package web code as mobile apps. It covers checks for secrets, data storage, networks, login, encryption, and mobile-platform vulnerabilities using the Capsec scanner.

In plain words
What is it for?
Use it to review a Capacitor app for security issues or run a Capsec scan. It is suited to checking authentication, stored data, network traffic, cryptography, and platform-specific risks.
Why use it?
It helps find security problems that can be missed when web code runs inside a mobile app. It also gives the agent a defined set of security checks for an audit.

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 review a Capacitor app for security issues or run a Capsec scan. It is suited to checking authentication, stored data, network traffic, cryptography, and platform-specific risks.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/cap-go/capgo-skills/capacitor-security
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-security
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-security

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/cap-go/capgo-skills/capacitor-security"><img src="https://agentmods.dev/badge/skills/cap-go/capgo-skills/capacitor-security.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 243 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,542 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.00243 $0.02542
Opus 5.5 $0.00097 $0.01017
Sonnet 5.5 $0.00049 $0.00508
Haiku 4.5 $0.00024 $0.00254

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

Security

Grade A, and why

capacitor-security 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 22d 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-security/SKILL.md · 115 lines

How it starts

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

Capacitor Security

Audit and harden the app layer of a Capacitor app: secrets in the bundle, on-device storage, network transport, WebView and native bridge exposure, and platform manifests.

When to Use

TRIGGER when:

  • The user asks for a security audit, OWASP Mobile Top 10 / MASVS review, or wants to fix pentest findings.
  • The user wants to run or interpret @capgo/capgo-sec (capsec) results, rule IDs such as SEC001, STO002, NET003, CAP004, AND004, IOS001.
  • API keys, service-role keys, or .env values appear in src/, dist/, www/, or capacitor.config.*.
  • Auth tokens are stored with Preferences.set, localStorage, IndexedDB, or plain SQLite.
  • capacitor.config.* contains server.cleartext: true, server.url, broad server.allowNavigation, android.allowMixedContent, or webContentsDebuggingEnabled: true.
  • Native files contain NSAllowsArbitraryLoads, android:usesCleartextTraffic="true", android:allowBackup="true", android:debuggable, or exported components without permissions.
  • The user needs certificate pinning, a Content Security Policy, screenshot protection, or root/jailbreak detection.

Do not use:

  • Xcode build settings, Enhanced Security, pointer authentication, stack/heap hardening -> capacitor-ios-security-hardening.
  • Universal Links / App Links setup -> capacitor-deep-linking (this skill only covers validating incoming URLs).
  • Privacy manifests, App Review rejections -> capacitor-apple-review-preflight; store listing -> capacitor-app-store.
  • Pipeline structure and signing secrets in CI -> capacitor-ci-cd.
  • Live update installation and channels -> capgo-live-updates (this skill covers only bundle encryption).
  • Runtime crashes and WebView inspection -> debugging-capacitor.

Workflow

  1. Inspect before editing. Read capacitor.config.ts|json, package.json (Capacitor major, installed plugins), android/app/src/main/AndroidManifest.xml, android/app/src/main/res/xml/network_security_config.xml (if any), ios/App/App/Info.plist, *.entitlements, and index.html.
  2. Scan. Run the Capgo scanner from the project root (Node 18+):
    npx @capgo/capgo-sec@latest scan --severity medium
    
    The npm package is @capgo/capgo-sec; it installs a capsec binary. npx capsec does not work because no package named capsec exists on npm.
  3. Grep for what scanners miss (see Verification). Build the web app first and also grep dist/ or www/: bundlers inline import.meta.env.* and process.env.* values.
  4. Triage and report before invasive changes. Group findings by Critical/High/Medium/Low with file and line. Ask the user before changes that alter behavior: certificate pinning (can lock out users when certs rotate), blocking rooted devices, removing allowNavigation hosts, a strict CSP.
  5. Fix by area, loading the matching reference below.
  6. Re-run the scan and Verification checks, then npx cap sync and test a release build on a device.

Read the full file on GitHub · 115 lines

Files

What ships with it

6 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. 22d ago Changed 681970d3109e
  2. 1mo ago Changed · -370 lines · +187 tokens per session 8de1237ec8e3
  3. 3mo ago First seen · 485 lines · 56 tokens per session scan A 20c60216a025

Subscribe to this mod's changes

capacitor-security is a skill published in the GitHub repository Cap-go/capgo-skills (79 stars, last pushed 22d ago), licensed MIT. It adds 243 tokens to every session and 2,542 once invoked, about $0.0010 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-security compared with skills from other repositories

capacitor-security next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
capacitor-securityCap-go/capgo-skillsSkill7922d agoMITA243Claude 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