welitonevoc/biblia-codex/codex-capacitor-permissions
Claude Code and agent skill by welitonevoc/biblia-codex
- community
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-permissionsSKILL.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
- 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/.docxgenerator services).
- Onboarding Integration (`src/components/Onboarding.tsx`)
- Keep permissions as the Final onboarding step (Step 7:
PermissionScreen.tsx). - The app actively monitors whether
hasLaunchedexists 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.
- Global Permission Checks (`src/App.tsx`)
- Utilize Capacitor's
Capacitor.getPlatform()checking explicitly for AndroidisAndroid === 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 premiumPermissionScreencomponent 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 returndenied, 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
- SKILL.md in the repositoryCheckingagente-IA/skills/codex-capacitor-permissions/SKILL.md
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
[](https://verified-skill.com/skills/welitonevoc/biblia-codex/codex-capacitor-permissions)