areas/software/mobile/skills/native-modules/SKILL.md
# Skill: Native Module Integration ## When to load When integrating device APIs, bridging to native SDKs, or debugging platform-specific behavior. ## When to Use Native Modules ``` Use Native Module: - Device hardware (camera, accelerometer, NFC, Bluetooth) - Cryptographic operations (device secure enclave) - Computation-intensive tasks (image processing, on-device ML) - Third-party SDKs without JS wrapper Stay in JS/React Native: - UI rendering and interactions - Network requests - State m
npx skillsauth add sawrus/agent-guides areas/software/mobile/skills/native-modulesInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
When integrating device APIs, bridging to native SDKs, or debugging platform-specific behavior.
Use Native Module:
- Device hardware (camera, accelerometer, NFC, Bluetooth)
- Cryptographic operations (device secure enclave)
- Computation-intensive tasks (image processing, on-device ML)
- Third-party SDKs without JS wrapper
Stay in JS/React Native:
- UI rendering and interactions
- Network requests
- State management
- Business logic not requiring device APIs
import ReactNativeBiometrics from 'react-native-biometrics';
export async function authenticateWithBiometrics(): Promise<boolean> {
const rnBiometrics = new ReactNativeBiometrics({ allowDeviceCredentials: true });
const { biometryType } = await rnBiometrics.isSensorAvailable();
if (!biometryType) return authenticateWithPin();
const { success } = await rnBiometrics.simplePrompt({
promptMessage: biometryType === 'FaceID' ? 'Confirm with Face ID' : 'Confirm with fingerprint'
});
return success;
}
testing
QA Expert for writing E2E tests, test scenarios, test plans, and ensuring test coverage quality.
development
Expert UI/UX design intelligence for creating distinctive, high-craft, and mobile-first interfaces. Focuses on premium aesthetics, touch-first ergonomics, and Flutter performance.
development
Code Review Expert for static analysis, security auditing, architecture review, and ensuring code quality standards.
development
Babysit a GitHub pull request after creation by continuously polling review comments, CI checks/workflow runs, and mergeability state until the PR is merged/closed or user help is required. Diagnose failures, retry likely flaky failures up to 3 times, auto-fix/push branch-related issues when appropriate, and keep watching open PRs so fresh review feedback is surfaced promptly. Use when the user asks Codex to monitor a PR, watch CI, handle review comments, or keep an eye on failures and feedback on an open PR.