extension-to-functions-codebase
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 " ").
More from this repo
firebase-app-hosting-basics
Deploys and manages full-stack web applications (Next.js, Angular) with Server-Side Rendering (SSR) using Firebase App...
firebase-basics
Provides foundational Firebase CLI setup, CLI installation, version checks (`firebase-tools@latest --version`), CLI...
firebase-ai-logic-basics
Integrates Firebase AI Logic (formerly Vertex AI for Firebase) into mobile and web apps (Android, iOS, Web, and...
