firebase – skill Bảo mật cho agent AI
Firebase cung cấp backend hoàn chỉnh chỉ trong vài phút: auth, cơ sở dữ liệu, storage, functions, hosting. Nhưng sự dễ dàng khi thiết lập che giấu độ phức tạp thực sự. Security rules là lớp phòng thủ cuối cùng, và chúng thường bị cấu hình sai.
Cài skill firebase bằng một lệnh
Chọn công cụ bạn đang dùng, copy lệnh và dán vào terminal. Skill sẽ nằm trong thư mục skills của công cụ đó và sẵn sàng dùng ở phiên làm việc tiếp theo.
Claude Code
mkdir -p ~/.claude/skills && curl -fsSL https://skill.dn1nguoi.com/z/firebase-b39b8.tgz | tar xz -C ~/.claude/skills
Gọi trong Claude Code: /firebase – rồi mô tả công việc bạn muốn làm.
Codex
mkdir -p ~/.codex/skills && curl -fsSL https://skill.dn1nguoi.com/z/firebase-b39b8.tgz | tar xz -C ~/.codex/skills
Gọi trong Codex: $firebase – rồi mô tả công việc bạn muốn làm.
Hermes Agent
mkdir -p ~/.hermes/skills && curl -fsSL https://skill.dn1nguoi.com/z/firebase-b39b8.tgz | tar xz -C ~/.hermes/skills
Gọi trong Hermes Agent: /firebase – rồi mô tả công việc bạn muốn làm.
DeepSeek
mkdir -p ~/.deepcode/skills && curl -fsSL https://skill.dn1nguoi.com/z/firebase-b39b8.tgz | tar xz -C ~/.deepcode/skills
Gọi trong DeepSeek: /firebase – rồi mô tả công việc bạn muốn làm.
Nội dung SKILL.md
Nội dung SKILL.md gốc bằng tiếng Anh.
Firebase
Firebase gives you a complete backend in minutes - auth, database, storage,
functions, hosting. But the ease of setup hides real complexity. Security rules
are your last line of defense, and they're often wrong. Firestore queries are
limited, and you learn this after you've designed your data model.
This skill covers Firebase Authentication, Firestore, Realtime Database, Cloud
Functions, Cloud Storage, and Firebase Hosting. Key insight: Firebase is
optimized for read-heavy, denormalized data. Choose relational versus denormalized storage from consistency and query requirements;
Firestore is not the right choice for every workload.
2025 lesson: Firestore pricing can surprise you. Reads are cheap until they're
not. A poorly designed listener can cost more than a dedicated database. Plan
your data model for your query patterns, not your data relationships.
Detailed Guide
Read [the detailed guide](references/detailed-guide.md) before executing this skill. It retains the complete procedure and reference material. Treat its safety, prerequisites, and validation requirements as mandatory. For focused work, load the relevant sections; for end-to-end work, read the guide completely.
When to Use
- User mentions or implies: firebase
- User mentions or implies: firestore
- User mentions or implies: firebase auth
- User mentions or implies: cloud functions
- User mentions or implies: firebase storage
- User mentions or implies: realtime database
- User mentions or implies: firebase hosting
- User mentions or implies: firebase emulator
- User mentions or implies: security rules
- User mentions or implies: firebase admin
Example
User request:
> Use @firebase for this task: Firebase gives you a complete backend in minutes - auth, database, storage, functions, hosting.
Limitations
- Use this skill only when the task clearly matches the scope described above.
- Do not treat the output as a substitute for environment-specific validation, testing, or expert review.
- Stop and ask for clarification if required inputs, permissions, safety boundaries, or success criteria are missing.
Skill liên quan
- firewall-config – Cấu hình iptables, nftables và cloud firewall. Triển khai phân vùng mạng và lọc lưu…
- firmware-analyst – Chuyên gia phân tích firmware, chuyên về hệ thống nhúng, bảo mật IoT và reverse…
- firmware-pentest – Kiểm thử xâm nhập firmware theo quy trình chín giai đoạn OWASP FSTM: trích xuất, tự động…
- fixing-accessibility – Kiểm tra và sửa lỗi khả năng truy cập HTML, gồm nhãn ARIA, điều hướng bàn phím, quản lý…
- fixing-metadata – Kiểm tra và sửa metadata HTML gồm tiêu đề trang, meta description, URL canonical, thẻ…
- security-guidance – Hook PreToolUse cho Claude Code phát hiện anti-pattern bảo mật. Bắt 12 rủi ro bảo mật…
- security-pen-testing – Dùng khi người dùng yêu cầu kiểm tra bảo mật, pen test, quét lỗ hổng, kiểm tra OWASP Top…
- frontend-mobile-security-xss-scan – Kiểm tra mã frontend để tìm điểm chèn XSS, thao tác DOM không an toàn và thiếu bước…