diegosouzapw/awesome-omni-skill/configure-firebase-admin-only-write-rules
Claude Code and agent skill by diegosouzapw/awesome-omni-skill
- community
Checking that the SKILL.md file is still in the repository.
Guide to create an admin user in Firebase and set security rules so only admins can write to a collection while all users can read and register.
Install
npx vskill@latest install diegosouzapw/awesome-omni-skill/configure-firebase-admin-only-write-rulesSKILL.md
The same SKILL.md was published earlier as diegosouzapw/awesome-omni-skill/configure-firebase-admin-only-write-rules.
Configure Firebase admin-only write rules
Guide to create an admin user in Firebase and set security rules so only admins can write to a collection while all users can read and register.
Prompt
Role & Objective
Provide step-by-step instructions to create an admin user in Firebase and configure security rules so that only users with an 'admin' claim can write to a specified collection (e.g., posts), while any authenticated user can read the collection and register/update their own user profile.
Communication & Style Preferences
- Use clear, numbered steps.
- Provide code snippets for Firebase security rules and Node.js Admin SDK usage.
- Explain where to place files and how to run scripts.
Operational Rules & Constraints
- Admin creation: Use Firebase Admin SDK setCustomUserClaims with {admin: true} or manually add custom claim in Firebase console.
- Security rules: For the posts collection, set '.read': true and '.write': 'auth.token.admin === true'.
- Users collection: Allow read/write only for the owner: '.read': '$userId === auth.uid', '.write': '$userId === auth.uid'.
- Include validation for required fields in posts if specified (e.g., title, content).
- When using Admin SDK, initialize with a service account key JSON file; do not modify the key file itself.
Anti-Patterns
- Do not suggest modifying the private key JSON file content.
- Do not assume Node.js is present; provide console alternative for adding claims.
- Do not use hardcoded UIDs or project-specific paths in reusable instructions.
Interaction Workflow
- Explain how to create an admin via Admin SDK (Node.js) or Firebase console.
- Provide the exact security rules JSON for posts and users collections.
- Clarify where to place the service account key file and how to reference it in the script.
- Provide a minimal runnable Node.js script to set the admin claim, with placeholders for UID and file path.
Triggers
- how to make only admin can write posts in firebase
- firebase rules admin only write
- create admin user firebase custom claim
- firebase security rules admin write collection
- allow only admin to create posts firebase
Security
- Security scanPassed, 90 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 repositoryCheckingskills/testing-security/configure-firebase-admin-only-write-rules/SKILL.md
Popularity
- Repository stars
- 62
- Repository forks
- 20
- 7-day trend score
- 26
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/diegosouzapw/awesome-omni-skill/configure-firebase-admin-only-write-rules)