Automated summary
Provides guidance for configuring, deploying, and locally testing static sites, SPAs, and simple apps with Firebase Hosting (Classic).
Strengths
- Helps choose between Firebase Hosting and App Hosting based on whether the site is static/SPA or SSR/full-stack.
- Covers firebase.json configuration, deployment, preview channels, and local emulation.
- Provides concrete commands for running the Hosting emulator and references for deeper configuration details.
Limitations
- Only covers Firebase Hosting Classic and explicitly excludes Firebase App Hosting.
- Detailed configuration and deployment steps are delegated to external reference files.
- Does not elaborate on CI/CD workflows beyond mentioning GitHub Actions integration.
Use when deploying a static site or client-side SPA to Firebase Hosting, or when configuring redirects, rewrites, headers, and preview channels.
Do not use for Firebase App Hosting, SSR/ISR frameworks such as Next.js, or a fully automated git-push-to-deploy workflow.
Security analysis
CautionThe skill contains a legitimate command to run the Firebase emulator, but it relies on `npx` to auto-install and execute the latest version of Firebase tools. This is a common development workflow with no destructive or exfiltrating behavior, but the unpinned remote package execution warrants a caution rating due to potential supply-chain risk.
- •Uses `npx -y firebase-tools@latest`, which downloads and executes remote code from npm without a pinned version or checksum.
Examples
Configure my firebase.json to deploy a Vite React SPA from the dist folder, rewrite all routes to index.html, deploy it to a preview channel first, and then promote it to production.I have a static HTML/CSS/JS site. Show me how to deploy it to Firebase Hosting and run it locally with the Hosting emulator on http://localhost:5000.Add custom security headers and a redirect from /old-page to /new-page in my firebase.json for Firebase Hosting, then deploy the site.name: firebase-hosting-basics description: Skill for working with Firebase Hosting (Classic). Use this when you want to deploy static web apps, Single Page Apps (SPAs), or simple microservices. Do NOT use for Firebase App Hosting.
hosting-basics
This skill provides instructions and references for working with Firebase Hosting, a fast and secure hosting service for your web app, static and dynamic content, and microservices.
Overview
Firebase Hosting provides production-grade web content hosting for developers. With a single command, you can deploy web apps and serve both static and dynamic content to a global CDN (content delivery network).
Key Features:
- Fast Content Delivery: Files are cached on SSDs at CDN edges around the world.
- Secure by Default: Zero-configuration SSL is built-in.
- Preview Channels: View and test changes on temporary preview URLs before deploying live.
- GitHub Integration: Automate previews and deploys with GitHub Actions.
- Dynamic Content: Serve dynamic content and microservices using Cloud Functions or Cloud Run.
Hosting vs App Hosting
Choose Firebase Hosting if:
- You are deploying a static site (HTML/CSS/JS).
- You are deploying a simple SPA (React, Vue, etc. without SSR).
- You want full control over the build and deploy process via CLI.
Choose Firebase App Hosting if:
- You are using a supported full-stack framework like Next.js or Angular.
- You need Server-Side Rendering (SSR) or ISR.
- You want an automated "git push to deploy" workflow with zero configuration.
Instructions
1. Configuration (firebase.json)
For details on configuring Hosting behavior, including public directories, redirects, rewrites, and headers, see configuration.md.
2. Deploying
For instructions on deploying your site, using preview channels, and managing releases, see deploying.md.
3. Emulation
To test your app locally:
npx -y firebase-tools@latest emulators:start --only hosting
This serves your app at http://localhost:5000 by default.
From the file to a first result
The download contains exactly the content displayed on this page. This copy may differ from the latest version in the source repository.
View the source and supporting filesThis download contains SKILL.md only. Any scripts, references, templates and dependencies are not included. Get the required files from the source, preserving their directory structure, before continuing.
1. Download the file
Download SKILL.mdFrom the root of a test project, save the file as .skill-downloads/firebase-hosting-basics-ms1aw5mk/SKILL.md, or use the command below. This folder is for inspecting the skill before installation.
Command for macOS/Linux or WSL: requires a POSIX shell and curl. On Windows without WSL, use the download button and create the folder manually.
mkdir -p '.skill-downloads/firebase-hosting-basics-ms1aw5mk' && curl --fail --show-error --location 'https://skills-guides.com/api/skills/firebase-hosting-basics-ms1aw5mk/download' --output '.skill-downloads/firebase-hosting-basics-ms1aw5mk/SKILL.md.part' && mv '.skill-downloads/firebase-hosting-basics-ms1aw5mk/SKILL.md.part' '.skill-downloads/firebase-hosting-basics-ms1aw5mk/SKILL.md'2. Check prerequisites
Read SKILL.md before using it. If it references scripts or external services, inspect them and prepare the required access in your test environment.
No recognized prerequisites section in this file. This does not mean it is self-contained: libraries, tools and access requirements may be mentioned elsewhere in the content or source repository.
The platforms on this page are catalog indications. The paths below follow tool documentation; they do not prove this skill has been run in those tools. No minimum tool version is confirmed for this listing.
3. Load the skill
After inspection, copy the complete folder into your project using one of the commands below, then open a new tool session. The command stops if a folder with the same name already exists: compare the files before replacing it.
Claude Code
test -f '.skill-downloads/firebase-hosting-basics-ms1aw5mk/SKILL.md' && test -s '.skill-downloads/firebase-hosting-basics-ms1aw5mk/SKILL.md' && mkdir -p '.claude/skills' && test ! -e '.claude/skills/firebase-hosting-basics' && cp -R '.skill-downloads/firebase-hosting-basics-ms1aw5mk' '.claude/skills/firebase-hosting-basics'OpenSkills
OpenSkills must already be installed. The local install/read procedure is checked with OpenSkills 1.5.0, which requires Node.js ≥ 20.6.0. Catalog slugs are not resolved automatically.
Official OpenSkills installationopenskills install './.skill-downloads/firebase-hosting-basics-ms1aw5mk'openskills read 'firebase-hosting-basics-ms1aw5mk'Reading should display the installed file content and its base directory. It does not run the skill or install its dependencies.
For an agent that reads AGENTS.md, then sync the index. This command changes AGENTS.md: review the diff before using it.
openskills syncManual method or another tool: attach SKILL.md to a conversation, or open it in an agent that can read files. Include any required supporting resources. No universal folder is recognized by every tool.
4. Try a first task
Use a short, synthetic input: an API endpoint, a small document or an interface brief. In a new conversation, attach the file or give the agent its path, then adapt this request:
Read .skill-downloads/firebase-hosting-basics-ms1aw5mk/SKILL.md and apply its instructions to this example: [describe a test input]. Identify any missing files, dependencies or access. Produce the result requested by the skill without inventing data or running unreviewed scripts.Expected result: output matching the skill instructions, or a precise list of missing prerequisites. A read confirmation alone does not validate a first use. If an external resource is unavailable, that path remains untested.
Configure a Chat Channel with SecretRefs
DevOps
Set up chat channels using non-interactive commands, with secrets only as SecretRefs. Covers gather, mutate, repair, and prove steps for reliable delivery.
Investigate ClickHouse CI Failures
DevOps
Investigate a ClickHouse CI failure end-to-end from a PR or S3 report URL. Fetches failed tests, classifies flaky vs real regression, and checks for existing issues/fixes.
Ansible PR Review
DevOps
Reviews an Ansible PR following the project's standardized process, including changelog checks, test coverage validation, and feedback tracking.