capacitor-keyboard

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

A guide to controlling how the on-screen keyboard behaves in Capacitor apps. It covers detecting visibility, the accessory bar, scrolling, and focusing input fields.

In plain words
What is it for?
Use it when handling keyboard-related layout, scrolling, visibility, or input-focus problems.
Why use it?
It helps fix forms and screens that are covered, shifted, or difficult to use when the keyboard opens.

Skill for Claude Code

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

Part of the capacitor-features plugin — 6 skills shipped together

Good fit Use it when handling keyboard-related layout, scrolling, visibility, or input-focus problems.

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

Made for: Claude Code.

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

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/cap-go/capgo-skills/capacitor-keyboard"><img src="https://agentmods.dev/badge/skills/cap-go/capgo-skills/capacitor-keyboard.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 207 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,112 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.00207 $0.02112
Opus 5.5 $0.00083 $0.00845
Sonnet 5.5 $0.00041 $0.00422
Haiku 4.5 $0.00021 $0.00211

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

Security

Grade A, and why

capacitor-keyboard 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-features/skills/capacitor-keyboard/SKILL.md · 133 lines

How it starts

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

Keyboard Handling in Capacitor

When to Use

TRIGGER when:

  • Focused input is covered by the keyboard, or the page scrolls unexpectedly
  • Chat composer / fixed footer does not stick to the keyboard
  • White or black band above the keyboard (Android 15+ edge-to-edge, iOS backdrop)
  • 100vh / dvh layout collapses when the keyboard opens
  • iOS zooms into inputs, or the QuickType/accessory bar looks wrong
  • Keyboard events never fire or fire twice

Do not use:

  • Notch / home-indicator / status-bar padding: safe-area-handling
  • Ionic ion-input, ion-footer styling: ionic-design
  • Labels, focus order, screen readers: capacitor-accessibility

Platform model (the key decision)

iOS Android
Who resizes Plugin, per resize mode OS + WebView; resize config is ignored
Events keyboardWillShow before animation, keyboardDidShow after Will/Did fire almost together
JS control setResizeMode, getResizeMode, setScroll, setStyle, setAccessoryBarVisible (iPhone only) show() (Android only), hide()

iOS resize modes (KeyboardResize enum):

Mode Effect Use when
native (default) Whole WebView shrinks; vh units change Plain web apps; simplest
body Only <body> height changes; vh unchanged Layouts that rely on stable vh
ionic Only ion-app resizes Ionic Framework apps only
none Nothing resizes; you position with keyboard height Custom chat UIs, full control

Workflow

  1. Inspect: capacitor.config.* plugins.Keyboard, @capacitor/keyboard version (8.0.4+ includes iOS 26 and Android SystemBars fixes), whether Ionic is used, @capacitor/status-bar / SystemBars config, and the failing screen's CSS (position: fixed, 100vh).
  2. Reproduce on a device (simulators often use a hardware keyboard: iOS Simulator -> I/O -> Keyboard -> Toggle Software Keyboard).
  3. Pick the iOS resize mode from the table; set it in config, not at runtime, unless one screen needs a different mode.
  4. Fix Android separately (below).
  5. Verify.

Read the full file on GitHub · 133 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. 1mo ago Changed · -29 lines · +170 tokens per session 39a2c1005960
  2. 3mo ago First seen · 162 lines · 37 tokens per session scan A 05eae563c4b9

Subscribe to this mod's changes

capacitor-keyboard is a skill published in the GitHub repository Cap-go/capgo-skills (79 stars, last pushed 19d ago), licensed MIT. It adds 207 tokens to every session and 2,112 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-keyboard compared with skills from other repositories

capacitor-keyboard next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
capacitor-keyboardCap-go/capgo-skillsSkill7919d agoMITA207Claude Code
loom-dartcosmix/loomSkill66yesterdayMITA16Claude Code, Codex
deploy-edge-ai-modelpjt222/agent-almanacSkill46yesterdayMITA108Claude Code
capacitor-pluginscapawesome-team/skillsSkill5612d agoMITA101Claude Code, Codex
ionic-appflow-migrationcapawesome-team/skillsSkill5612d agoMITA196Claude Code, Codex
capacitor-expertcapawesome-team/skillsSkill5612d agoMITA76Claude Code, Codex
capgo-cloud-migrationcapawesome-team/skillsSkill5612d agoMITA160Claude Code, Codex