Deploys and configures classic Firebase Hosting for static websites, single-page apps (SPAs), and microservices. Use when deploying static sites/SPAs, setting up custom domains, configuring firebase.json hosting settings (redirects, rewrites, headers, multi-site), or managing preview channels. Don't use for Firebase App Hosting (Next.js/SSR), Auth, Firestore queries/rules, Data Connect, or Crashlytics.
Written by Firebase and published in firebase/agent-skills under the Apache-2.0 license. Treq shows it unchanged except for heading levels and links to files on GitHub.
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.
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:
Choose Firebase Hosting if:
Choose Firebase App Hosting if:
firebase.json)For details on configuring Hosting behavior, including public directories, redirects, rewrites, and headers, see configuration.md.
For instructions on deploying your site, using preview channels, and managing releases, see deploying.md.
To test your app locally:
npx -y firebase-tools@latest emulators:start --only hosting
This serves your app at http://localhost:5000 by default.
Claude Code and Codex keep each installed skill's name and description in context. When a request matches the description, the agent loads the full SKILL.md. You can also run it yourself: type /firebase-hosting-basics in Claude Code or $firebase-hosting-basics in Codex.
The description says when to use it:
Use when deploying static sites/SPAs, setting up custom domains, configuring firebase.json hosting settings (redirects, rewrites, headers, multi-site), or managing preview channels.
Copy the firebase-hosting-basics folder into .claude/skills/ in your project. To use it in every project, copy it into ~/.claude/skills/ instead.
git clone --depth 1 https://github.com/firebase/agent-skills.git /tmp/firebase-agent-skills
mkdir -p .claude/skills
cp -r /tmp/firebase-agent-skills/skills/firebase-hosting-basics .claude/skills/
Codex reads skills from .agents/skills/ in your repository, and from ~/.agents/skills/ for every repository. It detects new skills on its own. Restart Codex if firebase-hosting-basics does not appear.
git clone --depth 1 https://github.com/firebase/agent-skills.git /tmp/firebase-agent-skills
mkdir -p .agents/skills
cp -r /tmp/firebase-agent-skills/skills/firebase-hosting-basics .agents/skills/
Open Settings and select the Skills tab. The tab appears when Skills installation is on under Settings → Feature Preview. Search for firebase-hosting-basics and choose Install….
Install for repository writes the skill under .treq/skills/ in the current repository. Install for application makes it available to every repository on this machine. Each new workspace gets a copy in .claude/skills/ and .agents/skills/, so Claude Code and Codex both find it. See Installing Skills from the Library.
firebase-hosting-basics ships 3 files, 5.3 KB in total. Select a file to load it from GitHub.