welitonevoc/biblia-codex/codex-capacitor-permissions

Claude Code and agent skill by welitonevoc/biblia-codex

Trust tier 3
  • community
Source check pending

Checking that the SKILL.md file is still in the repository.

Android 13+ storage/media permissions guidelines for the web/capacitor Biblia Codex app. Using the custom usePermissions hook and PermissionScreen components in onboarding loops.

Install

npx vskill@latest install welitonevoc/biblia-codex/codex-capacitor-permissions

SKILL.md

The same SKILL.md was published earlier as welitonevoc/biblia-codex/codex-capacitor-permissions.

Biblia Codex - Android Capacitor Permissions

This skill guides the implementation of permission requests natively on Android when operating through the Capacitor wrapper, specifically targeting the storage constraints introduced with Android 13+.

🛠 Permission Flow Architecture

  1. Permission Hook (`src/hooks/usePermissions.ts`)
  • The primary entry point for managing Android external reading permissions (@capacitor/android, @capacitor/filesystem).
  • You MUST utilize const { granted, check, request, ensure } = usePermissions(); in any view needing OS access (ex. importing database blobs, .pdf/.docx generator services).
  1. Onboarding Integration (`src/components/Onboarding.tsx`)
  • Keep permissions as the Final onboarding step (Step 7: PermissionScreen.tsx).
  • The app actively monitors whether hasLaunched exists locally in JSON logic, rendering onboarding if false. Wait until Step 7 to gracefully prompt the user for directory access so that feature benefits are highlighted first.
  1. Global Permission Checks (`src/App.tsx`)
  • Utilize Capacitor's Capacitor.getPlatform() checking explicitly for Android isAndroid === true. Ensure web instances do not aggressively demand native OS permissions since they utilize the browser's implicit sandboxed directories.
  • For modules (src/components/ModuleManagement.tsx), intercept initialization. Do not show raw OS dialogs. ALWAYS trigger the premium PermissionScreen component or the defined dialog with three native buttons (Depois, Abrir Configurações, Conceder Permissão).

🤝 Fallback Flow

  • Always implement the fallback function openAppSettings(). If permission states return denied, Android 13+ prevents standard loop requests. The App Settings menu must intercept the manual override.

Security

  • Security scanPassed, 95 of 100Pattern checks on the skill's files.
  • Model reviewPassed

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

Repository stars
2
7-day trend score
10

Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/welitonevoc/biblia-codex/codex-capacitor-permissions/badge)](https://verified-skill.com/skills/welitonevoc/biblia-codex/codex-capacitor-permissions)

Something wrong with this skill or its page? Tell us.