hai-capacitor

Bridge Capacitor native features into Hai Framework modules with HaiResult safety.

3|7|Updated Jan 28, 2026
One-click install
npx skills add https://github.com/hai-series/hai-framework --skill hai-capacitor
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: hai-capacitor
Source: https://github.com/hai-series/hai-framework/tree/main/packages/cli/templates/skills/hai-capacitor
Command: npx skills add https://github.com/hai-series/hai-framework --skill hai-capacitor

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Capacitor is great for native features, but bridging it into Hai Framework modules can be verbose and inconsistent. This Skill unifies access to native capabilities (Token storage, device info, push notifications, camera, and status bar) under Hai's standardized APIs, enabling safer, cross-platform integrations.

Core Features & Use Cases

  • Unified Capacitor access: A single API surface to manage token storage, device information, push, camera, and status bar.
  • Cross-platform consistency: Works on Android and iOS with identical behavior and typings.
  • Safe integration with Hai: Returns HaiResult<T> and supports init/use/close lifecycle with robust error handling.

Quick Start

Initialize hai-capacitor in your app and begin using its APIs to access native features such as token storage, device info, push notifications, camera, and status bar.

Frequently Asked Questions about hai-capacitor

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I integrate Capacitor native features like camera and push notifications into Hai apps?

It unifies Capacitor native capabilities under standardized Hai APIs, providing identical behavior and typings for secure token storage, device info, push notifications, camera, and status bar across both platforms.

What is the best way to manage secure token storage in an Android and iOS app built with Capacitor?

Use a unified Hai Framework module that bridges Capacitor's native capabilities to provide secure token storage, ensuring safer cross-platform integration with consistent behavior and typings on Android and iOS.

How do I handle errors when accessing native device info through Capacitor in a Hai Framework module?

The Skill exposes a unified API surface returning HaiResult<T> for safe integration, supporting the init/use/close lifecycle with robust error handling for all bridged Capacitor plugins.

Does the Hai Capacitor bridge require specific plugins for status bar control and camera access?

It supports optional Capacitor plugins for status bar control and camera access, allowing you to enable specific native features as needed within your Hai Framework modules.

Can I use this unified Capacitor bridge for both iOS and Android native app development?

Yes, the bridge works on Android and iOS with identical behavior and typings, enabling cross-platform consistency when integrating native features into Hai Framework modules.