firebase-tools: Skill for Claude Code

.agent/skills/update-pubsub-emulator/SKILL.md

Update Pub/Sub Emulator is a skill for Claude Code, Codex from firebase/firebase-tools. It costs 12 tokens per session (677 once invoked), scanned A, original, MIT.

Instructions for updating and packaging the Google Cloud Pub/Sub emulator, a local program that imitates Pub/Sub for development and testing. They also describe uploading the packaged emulator to a Firebase preview storage bucket.

In plain words
What is it for?
Use it when maintaining the local Pub/Sub emulator used by a project. It covers updating it with `gcloud`, finding its installation directory, creating the required ZIP file, and uploading it.
Why use it?
It gives a repeatable way to obtain a newer emulator version and prepare it in the directory structure expected by the existing code.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

This is firebase/firebase-tools's own configuration. It tells Claude Code and Codex how to work on firebase-tools itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything firebase-tools configures →

About the project

Firebase Tools is a command-line toolkit for testing, managing, and deploying Firebase projects, with an official MCP server for agent-based access. It is for developers working with Firebase Hosting, databases, Authentication, and other project resources, while the catalogue add-ons support agent workflows around these tools.

firebase/firebase-tools · 4,484 stars · on GitHub

Reuse

Borrowing it

Nothing to install: this file belongs to firebase/firebase-tools. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/firebase/firebase-tools/main/.agent/skills/update-pubsub-emulator/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/firebase/firebase-tools

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for Update Pub/Sub Emulator

README.md
[![agentmods](https://agentmods.dev/badge/skills/firebase/firebase-tools/update-pubsub-emulator/github.svg)](https://agentmods.dev/skills/firebase/firebase-tools/update-pubsub-emulator)
Your own site
<a href="https://agentmods.dev/skills/firebase/firebase-tools/update-pubsub-emulator"><img src="https://agentmods.dev/badge/skills/firebase/firebase-tools/update-pubsub-emulator/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for Update Pub/Sub Emulator

Your own site · 80×15
<a href="https://agentmods.dev/skills/firebase/firebase-tools/update-pubsub-emulator"><img src="https://agentmods.dev/badge/skills/firebase/firebase-tools/update-pubsub-emulator.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 12 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 677 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00012 $0.00677
Opus 5.5 $0.00005 $0.00271
Sonnet 5.5 $0.00002 $0.00135
Haiku 4.5 $0.00001 $0.00068

Measured 2mo ago against content hash 2b72c89c7397, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

Update Pub/Sub Emulator scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.agent/skills/update-pubsub-emulator/SKILL.md · 62 lines

What it actually says

Update Pub/Sub Emulator

  1. Update Local Emulator Run the following command to make sure you have the latest version of the pubsub emulator installed via gcloud:

    gcloud components update pubsub-emulator
    
  2. Locate Emulator Directory The emulator represents a directory likely located at <gcloud-install-path>/platform/pubsub-emulator. You can find the exact path by running the emulator and checking the output, or by inspecting where gcloud is installed (e.g. which gcloud usually points to a bin directory, and the platform directory is a sibling of bin). Verify the version by running the emulator or checking the VERSION file if it exists.

  3. Package the Emulator Zip the directory found in the previous step. Name it pubsub-emulator-<version>.zip. Ensure the zip structure is such that the top-level directory inside the zip is pubsub-emulator. Note: The existing code expects the binary at pubsub-emulator-<version>/pubsub-emulator/bin/cloud-pubsub-emulator inside the cache, which usually means the zip contains a root folder pubsub-emulator.

  4. Upload to Storage Upload the zip file to the Firebase preview bucket:

    gcloud storage cp pubsub-emulator-<version>.zip gs://firebase-preview-drop/emulator/
    

    Make the file publicly readable if necessary (usually the bucket permissions handle this, or use gcloud storage objects update ... --add-acl-grant=entity=allUsers,role=READER).

    Note: For the version 0.8.27 update, this step was already done.

  5. Calculate Metadata Calculate the file size in bytes, MD5 checksum, and SHA256 checksum of the zip file.

    # Size
    ls -l pubsub-emulator-<version>.zip
    
    # MD5 (macOS: `md5`, Linux: `md5sum`)
    md5 pubsub-emulator-<version>.zip
    
    # SHA256 (macOS: `shasum -a 256`, Linux: `sha256sum`)
    shasum -a 256 pubsub-emulator-<version>.zip
    
  6. Update Configuration Edit src/emulator/downloadableEmulatorInfo.json:

    • Update pubsub.version to the new version.
    • Update pubsub.expectedSize.
    • Update pubsub.expectedChecksum (MD5).
    • Update pubsub.expectedChecksumSHA256.
    • Update pubsub.remoteUrl and pubsub.downloadPathRelativeToCacheDir.
  7. Verify Run the emulators to ensure the new version is downloaded and starts correctly.

    firebase emulators:start --only pubsub
    
  8. Add a Changelog Entry Add a changelog entry to CHANGELOG.md like '- Updated Pub/Sub emulator to version '

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2mo ago First seen · 62 lines · 12 tokens per session scan A 2b72c89c7397

Subscribe to this mod's changes

Update Pub/Sub Emulator is a skill published in the GitHub repository firebase/firebase-tools (4,484 stars, last pushed today), licensed MIT. It adds 12 tokens to every session and 677 once invoked, about $0.0000 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

local-ai-agents

Build local-first AI agents that run entirely on a developer workstation with Microsoft Foundry Local and Qwen function-calling models. Covers Small Language Models (SLMs), the OpenAI-compatible local endpoint, sandboxed local tools, local RAG with Chroma, local MCP servers, hybrid cloud/local routing, and the…

microsoft/ai-agents-for-beginners · 200 tokens

systematic-debugging

Use when encountering any bug, test failure, or unexpected behavior, before proposing fixes.

obra/superpowers · 21 tokens

next-cache-components-adoption

Turn on Cache Components in a Next.js app and resolve the blocking routes it surfaces. Use when the user wants to enable, adopt, or migrate to Cache Components, flip the cacheComponents flag, work through a flood of blocking-prerender / instant validation errors, run the cache-components-instant-false codemod, or…

vercel/next.js · 95 tokens

chat-pet-sprite-creation

Use when creating or changing VS Code chat pet sprite art, sprite sheets, state animations, eye treatments, Stable/Insiders variants, or pet transitions under src/vs/workbench/contrib/chat/browser/widget/media/chatPet.

microsoft/vscode · 53 tokens

cpu-profile-analysis

Analyze V8/Chrome CPU profiles (.cpuprofile) and DevTools trace files (Trace-.json). Use when: profiling performance, investigating slow functions, comparing code paths, finding bottlenecks, analyzing timeToRequest, understanding call trees from sampling profiler data, analyzing layout/paint/rendering, investigating…

microsoft/vscode · 71 tokens

insight-error-page

Write or audit an insight-kind error page for the Next.js dev overlay. Use when creating a new errors/ .mdx page, auditing an existing one, or checking that a page matches the framework fix cards. Covers page structure, title alignment, FixCard cards with Copy prompt button, code snippets, terminology verification…

vercel/next.js · 83 tokens