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.
от ECNU-ICALK★ 623 звезды на GitHubОб этом скилле
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.
- Set
- Users Collection:
- Set
.readand.writeto$uid === auth.uidto allow users to manage only their own data.
- Set
- 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.
- Use
- 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
Установить Firebase Admin-Only Post Creation Rules в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл 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.
Как установить скилл Firebase Admin-Only Post Creation Rules?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл Firebase Admin-Only Post Creation Rules запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
theme-factory
Toolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
от Anthropicaccess
Manage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropicconfigure
Set up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
от Anthropicaccess
Manage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropic