agentleFS
kumaran-iskumaran-is/claude-code-onboarding/.claude/skills/firebase-basics/SKILL.md

firebase-basics

Skill36 starsChanged 6 months agoMITView on GitHub

Firebase CLI foundation for any project. Use when checking Firebase CLI version, authenticating with Firebase, setting active projects, initializing Firebase services, or running Firebase MCP commands. Triggers: firebase login, firebase use, firebase projects list, firebase init, firebase MCP, Firebase CLI setup, Firebase emulator start.

4 other projects use a version of this.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

4 rules. 0 are common, 2 are distinctive, and 2 are very specific to this project.

  • 0

    Common

    Most of the 4 edited versions we read keep these.

  • 2

    Distinctive

    This author's own choices. Worth a look.

  • 2

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Every command in this skill prepends npx -y firebase-tools@latest.

    line 17
  2. Distinctive:

    Check the project's CLAUDE.md to understand which Firebase services are in use and any project-specific constraints (e.g.

    line 21
  3. Distinctive:

    Read references/local-env-setup.md for full setup.

    line 34
  4. Very specific:

    Consult Firebase MCP first: Use developerknowledge_search_documents before falling back to web search or memory

    line 53

“Common” is measured: kept by at least 6 in 10 of the 4 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Iron Law

NEVER use the naked firebase binary — always npx -y firebase-tools@latest <cmd>.

This guarantees the latest CLI version is used without polluting global node_modules. Every command in this skill prepends npx -y firebase-tools@latest.

Project Context

Check the project's CLAUDE.md to understand which Firebase services are in use and any project-specific constraints (e.g. which services are intentionally NOT used, whether Firestore is used as a canonical store or a status bus only, etc.).

Firebase project ID should be stored in an environment variable (e.g. FIREBASE_PROJECT_ID) — never hardcoded.

Prerequisites

  1. Local Environment Setup:
    npx -y firebase-tools@latest --version
    Read references/local-env-setup.md for full setup.
  2. Authentication:
    npx -y firebase-tools@latest login
    # Headless / remote shell:
    npx -y firebase-tools@latest login --no-localhost
  3. Active Project:
    npx -y firebase-tools@latest use
    # Set project from env var (preferred):
    npx -y firebase-tools@latest use --add ${FIREBASE_PROJECT_ID}

Firebase Usage Principles

  1. npx always: npx -y firebase-tools@latest <cmd> — never bare firebase
  2. Consult Firebase MCP first: Use developerknowledge_search_documents before falling back to web search or memory
  3. Use Firebase MCP tools for remote API calls: Crashlytics, Firestore queries, project management — always MCP, never manual REST calls
  4. Emulator for local dev: Set FIREBASE_AUTH_EMULATOR_HOST and related emulator environment variables — without them, Admin SDK calls hit production Firebase with dev tokens

References

  • Initialize services: references/firebase-service-init.md
  • CLI commands: references/firebase-cli-guide.md
  • Local env setup: references/local-env-setup.md

Related Skills

  • flutter-mobile — Firebase Auth integration in Flutter apps
  • firebase-hosting-basics — deploy static SPA to Firebase Hosting
  • security-reviewer — Firestore Security Rules audit

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.