jpskill.com
🛠️ 開発・MCP コミュニティ

firebase-hosting-basics

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.

⚡ おすすめ: コマンド1行でインストール(60秒)

下記のコマンドをコピーしてターミナル(Mac/Linux)または PowerShell(Windows)に貼り付けてください。 ダウンロード → 解凍 → 配置まで全自動。

🍎 Mac / 🐧 Linux
mkdir -p ~/.claude/skills && cd ~/.claude/skills && curl -L -o firebase-hosting-basics.zip https://jpskill.com/download/19109.zip && unzip -o firebase-hosting-basics.zip && rm firebase-hosting-basics.zip
🪟 Windows (PowerShell)
$d = "$env:USERPROFILE\.claude\skills"; ni -Force -ItemType Directory $d | Out-Null; iwr https://jpskill.com/download/19109.zip -OutFile "$d\firebase-hosting-basics.zip"; Expand-Archive "$d\firebase-hosting-basics.zip" -DestinationPath $d -Force; ri "$d\firebase-hosting-basics.zip"

完了後、Claude Code を再起動 → 普通に「動画プロンプト作って」のように話しかけるだけで自動発動します。

💾 手動でダウンロードしたい(コマンドが難しい人向け)
  1. 1. 下の青いボタンを押して firebase-hosting-basics.zip をダウンロード
  2. 2. ZIPファイルをダブルクリックで解凍 → firebase-hosting-basics フォルダができる
  3. 3. そのフォルダを C:\Users\あなたの名前\.claude\skills\(Win)または ~/.claude/skills/(Mac)へ移動
  4. 4. Claude Code を再起動

⚠️ ダウンロード・利用は自己責任でお願いします。当サイトは内容・動作・安全性について責任を負いません。

🎯 このSkillでできること

下記の説明文を読むと、このSkillがあなたに何をしてくれるかが分かります。Claudeにこの分野の依頼をすると、自動で発動します。

📦 インストール方法 (3ステップ)

  1. 1. 上の「ダウンロード」ボタンを押して .skill ファイルを取得
  2. 2. ファイル名の拡張子を .skill から .zip に変えて展開(macは自動展開可)
  3. 3. 展開してできたフォルダを、ホームフォルダの .claude/skills/ に置く
    • · macOS / Linux: ~/.claude/skills/
    • · Windows: %USERPROFILE%\.claude\skills\

Claude Code を再起動すれば完了。「このSkillを使って…」と話しかけなくても、関連する依頼で自動的に呼び出されます。

詳しい使い方ガイドを見る →
最終更新
2026-05-18
取得日時
2026-05-18
同梱ファイル
3

📖 Skill本文(日本語訳)

※ 原文(英語/中国語)を Gemini で日本語化したものです。Claude 自身は原文を読みます。誤訳がある場合は原文をご確認ください。

hosting-basics

このスキルでは、ウェブアプリ、静的および動的コンテンツ、マイクロサービス向けの高速かつ安全なホスティングサービスである Firebase Hosting を使用するための手順とリファレンスを提供します。

概要

Firebase Hosting は、開発者向けのプロダクションレベルのウェブコンテンツホスティングを提供します。単一のコマンドで、ウェブアプリをデプロイし、静的コンテンツと動的コンテンツの両方をグローバル CDN (コンテンツデリバリーネットワーク) に配信できます。

主な機能:

  • 高速なコンテンツ配信: ファイルは世界中の CDN エッジにある SSD にキャッシュされます。
  • デフォルトで安全: ゼロコンフィギュレーションの SSL が組み込まれています。
  • プレビューチャンネル: ライブデプロイの前に、一時的なプレビュー URL で変更を表示およびテストできます。
  • GitHub 連携: GitHub Actions を使用してプレビューとデプロイを自動化します。
  • 動的コンテンツ: Cloud Functions または Cloud Run を使用して、動的コンテンツとマイクロサービスを配信します。

Hosting と App Hosting の比較

Firebase Hosting を選択する場合:

  • 静的サイト (HTML/CSS/JS) をデプロイする場合。
  • シンプルな SPA (React、Vue など、SSR なし) をデプロイする場合。
  • CLI を介してビルドおよびデプロイプロセスを完全に制御したい場合。

Firebase App Hosting を選択する場合:

  • Next.js や Angular などのサポートされているフルスタックフレームワークを使用している場合。
  • Server-Side Rendering (SSR) または ISR が必要な場合。
  • ゼロコンフィギュレーションで自動化された「git push to deploy」ワークフローが必要な場合。

手順

1. 設定 (firebase.json)

公開ディレクトリ、リダイレクト、リライト、ヘッダーなど、Hosting の動作設定の詳細については、configuration.md を参照してください。

2. デプロイ

サイトのデプロイ、プレビューチャンネルの使用、リリースの管理に関する手順については、deploying.md を参照してください。

3. エミュレーション

アプリをローカルでテストするには:

npx -y firebase-tools@latest emulators:start --only hosting

これにより、デフォルトで http://localhost:5000 でアプリが提供されます。

📜 原文 SKILL.md(Claudeが読む英語/中国語)を展開

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.

同梱ファイル

※ ZIPに含まれるファイル一覧。`SKILL.md` 本体に加え、参考資料・サンプル・スクリプトが入っている場合があります。