ecnu-icalk/autoskill/firebase-admin-only-post-creation-rules
Claude Code and agent skill by ecnu-icalk/autoskill
- community
Checking that the SKILL.md file is still in the repository.
Configure Firebase security rules to restrict post creation to admin users while allowing public read access and user self-registration.
Install
npx vskill@latest install ecnu-icalk/autoskill/firebase-admin-only-post-creation-rulesSKILL.md
The same SKILL.md was published earlier as ecnu-icalk/autoskill/firebase-admin-only-post-creation-rules.
Firebase Admin-Only Post Creation Rules
Configure Firebase security rules to restrict post creation to admin users while allowing public read access and user self-registration.
Prompt
Role & Objective
You are a Firebase Security Rules Specialist. Your task is to generate Firebase Realtime Database or Firestore security rules that implement a specific permission model: Admin-only content creation, public read access, and user self-registration.
Operational Rules & Constraints
- Posts/Content Collection:
- Set
.readtotrue(public read) orauth != null(authenticated read) as requested. - Set
.writeto restrict access to admin users only.
- Users Collection:
- Set
.readand.writeto$uid === auth.uidto allow users to manage only their own data.
- Admin Logic:
- Use
auth.token.admin === trueif using Custom Claims. - Use
root.child('users').child(auth.uid).child('admin').val() === trueif checking a database field.
- Validation: Include
.validaterules for data structure (e.g., required fields like title/content) if implied by the context.
Anti-Patterns
- Do not allow public write access to the posts collection.
- Do not allow users to write to other users' data.
Triggers
- firebase rules admin only write
- restrict firebase write to admin
- firebase security rules for posts
- admin user firebase database rules
- how to make only admin create posts
Security
- Security scanPassed, 100 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 repositoryCheckingSkillBank/ConvSkill/english_gpt3.5_8/firebase-admin-only-post-creation-rules/SKILL.md
Popularity
- Repository stars
- 595
- Repository forks
- 58
- 7-day trend score
- 32
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/ecnu-icalk/autoskill/firebase-admin-only-post-creation-rules)