Download for MacApple silicon, macOS 14+
Skill

extension-to-functions-codebase

@firebase Updated 2026-10-28

Skill for converting an installed Firebase Extension (or extension source) into a standalone Cloud Functions for Firebase codebase or publishable npm package, including V1 to V2 trigger upgrades, lifecycle hooks, and declarative security

Install

With your agent

Install OMGSkills skill "firebase/agent-skills:skills/extension-to-functions-codebase" into this agent's normal skills directory: call the OMGSkills MCP get_install_plan tool for your agent and run the script it returns (it installs only the pinned commit and verifies SKILL.md), and stop if MCP or the pin is unavailable. Do not overwrite or change existing skills without asking me.

Manual command

git clone https://github.com/firebase/agent-skills /tmp/agent-skills && ln -s /tmp/agent-skills/skills/extension-to-functions-codebase ~/.claude/skills/extension-to-functions-codebase

From README

Extension to Functions Codebase & npm Package Migration Overview Migrates a Firebase Extension into either: A local Cloud Functions codebase (functions/src/ for app integration). A publishable npm package (reusable open-source package exporting V2 functions). Leverages native Cloud Functions features (declarative IAM, Parameterized Config, SDK Lifecycle Hooks) and modernizes 1st Gen triggers to 2nd Gen using the Destructuring Compatibility Shim. Target Migration Workflows Target A: Local Functions Codebase (End-User App Integration) Output: Code under functions/src/. Config in .env. Deployment: firebase deploy --only functions. Target B: Publishable npm Package / Shareable Package Output: Reusable npm package exporting V2 functions. Configuration: package.json specifying exports map, engines: { "node": ">=22" }, and peerDependencies: { "firebase-functions": ">=6.0.0" }. Consumers package and re-export functions in index.ts (export from " ").