firebase-tools: Skill for Claude Code

.agent/skills/firebase-tools-pr-review/SKILL.md

firebase-tools-pr-review is a skill for Claude Code, Codex from firebase/firebase-tools. It costs 77 tokens per session (2,679 once invoked), scanned A, original, MIT.

A pull-request review guide for Firebase Tools, a command-line toolkit for Firebase services. It focuses on TypeScript code, command-line behavior, errors, tests, and compatibility.

In plain words
What is it for?
It helps review pull requests for TypeScript safety, CLI options and startup behavior, JSON output, error handling, backward compatibility, emulator changes, and changelog updates.
Why use it?
It gives reviewers concrete checks for unsafe typing, unclear errors, broken command output, regressions, and missing release notes.

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/firebase-tools-pr-review/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 firebase-tools-pr-review

README.md
[![agentmods](https://agentmods.dev/badge/skills/firebase/firebase-tools/firebase-tools-pr-review/github.svg)](https://agentmods.dev/skills/firebase/firebase-tools/firebase-tools-pr-review)
Your own site
<a href="https://agentmods.dev/skills/firebase/firebase-tools/firebase-tools-pr-review"><img src="https://agentmods.dev/badge/skills/firebase/firebase-tools/firebase-tools-pr-review/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 firebase-tools-pr-review

Your own site · 80×15
<a href="https://agentmods.dev/skills/firebase/firebase-tools/firebase-tools-pr-review"><img src="https://agentmods.dev/badge/skills/firebase/firebase-tools/firebase-tools-pr-review.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 77 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,679 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. A grade says what 26 rules found in the file — not that it is safe.
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.00077 $0.02679
Opus 5.5 $0.00031 $0.01072
Sonnet 5.5 $0.00015 $0.00536
Haiku 4.5 $0.00008 $0.00268

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

Security

Grade A, and why

firebase-tools-pr-review scanned grade A with 1 finding 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 1mo 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.

Runs shell commandslowCapability

Expected in a hook, worth knowing in a rule or an instructions file.

- **Rule**: Handlers executing child processes (`child_process.spawn`) must attach asynchronous `'error'` listeners and drain `stdout`/`stderr` streams to prevent buffer deadlocks.
.agent/skills/firebase-tools-pr-review/SKILL.md · 182 lines

How it starts

The opening of the file, as written. The whole thing — 182 lines — stays where its author put it; the contents beside it link to each section on GitHub.

1. Quick Author & Reviewer Checklist

Before submitting or approving any PR on firebase/firebase-tools, verify:

  • TypeScript Precision: No any or as any. Use generic parameters (client.request<T>()), explicit interfaces, or readonly string[] for unmutated inputs.
  • No null: Use undefined or optional type annotations (string | undefined) instead of null. Drop redundant = undefined initializers.
  • CLI UX & Options Objects: Functions accept options objects rather than long positional argument lists. Command interfaces favor explicit flags over interactive pickers (CI safety).
  • Clean CLI Initialization: No expensive background commands (e.g. npx, sub-process execution) are triggered during CLI startup.
  • Error Remediation & FirebaseError: Errors throw FirebaseError with clear explanations and explicit remediation instructions (telling the user/agent what flag or tool to run).
  • Pristine stdout (jq Safety): When --json is set, all logs, warnings, and spinners output to stderr so stdout remains valid, parseable JSON.
  • Downgrade & Backward Safety: Disk state, emulator schemas, and CLI configs are backward-compatible to ensure developers can safely downgrade CLI versions.
  • Testing Discipline: Unit tests exercise public APIs (experiments.setEnabled) rather than stubbing private helpers. Mocks are cleaned up in afterEach (sinon.restore(), nock.cleanAll()).
  • CHANGELOG.md Rules: User-facing bug fixes and new features include a changelog entry starting with a past-tense verb, with no [] annotations, and ending with (#<issue_number>) if applicable. Omit changelogs for unreleased flags or internal refactors.
  • No AI/Agent Junk: Unused comment blocks, residual issue numbers, or boilerplate generated by AI agents are stripped out.

2. Detailed Review Standards by Category

Category A: Code Style, Syntax & Anti-Patterns

  1. Strict Type Safety & Type Guard Functions
    • Rule: Avoid any, as any, or loose casting. Use generic type parameters at call sites (e.g., client.request<T>()), explicit type guard functions (val is TargetType), or stepped assertions (as unknown as TargetType).
    • Immutability: Mark non-mutated array parameters as readonly (e.g., readonly string[]).

Read the full file on GitHub · 182 lines

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. 1mo ago First seen · 182 lines · 77 tokens per session scan A dc6241c17791

Subscribe to this mod's changes

firebase-tools-pr-review is a skill published in the GitHub repository firebase/firebase-tools (4,484 stars, last pushed today), licensed MIT. It adds 77 tokens to every session and 2,679 once invoked, about $0.0003 per session on Opus 5.5. A static security scan graded it A with 1 finding (runs shell commands). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-29.

Related

Other skills, from other repositories

no-bare-casts

Writing as in TypeScript or TSX production code, modifying a file that contains a bare as cast, silencing a type error with a cast, encountering as unknown as, or reviewing a cast site.

prisma/orm · 52 tokens

coding-standards

Universal coding standards, best practices, and patterns for TypeScript, JavaScript, React, and Node.js development.

hashgraph-online/awesome-codex-plugins · 28 tokens

splitting-oversized-modules

Split an oversized Python module (a thousand-plus-line logic.py, models.py, api.py, or its test file) into a package of one module per concern, mechanically and provably without changing behavior. Use on a request to split / break up / decompose a god module or move functions out of one, once a human has agreed to…

PostHog/posthog · 197 tokens

plankton-code-quality

Write-time code quality enforcement using Plankton — auto-formatting, linting, and Claude-powered fixes on every file edit via hooks.

loulanyue/awesome-claude-notes · 34 tokens

best-practices

Language-specific best practices, code quality standards, and framework detection rules. Use when executing refactoring workflows, applying code quality rules, detecting frameworks, or checking language-specific patterns for TypeScript, Python, Go, Swift, or React.

FradSer/dotclaude · 52 tokens

code-review-typescript

Provides TypeScript-specific code review patterns covering strict mode, ESM, type safety, branded types, discriminated unions, async patterns, runtime safety, and common anti-patterns. Activates on detection of tsconfig.json, .ts, or .tsx files during code review — loaded automatically by dh:code-reviewer.

Jamie-BitFlight/claude_skills · 70 tokens