create-cloud-function

Automates Firebase Cloud Function setup in an Nx monorepo with required naming patterns.

Updated Oct 4, 2025
One-click install
npx skills add https://github.com/Maple-and-Spruce/maple-and-spruce --skill create-cloud-function
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: create-cloud-function
Source: https://github.com/Maple-and-Spruce/maple-and-spruce/tree/main/.claude/skills/create-cloud-function
Command: npx skills add https://github.com/Maple-and-Spruce/maple-and-spruce --skill create-cloud-function

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill helps engineers quickly initialize a new Firebase Cloud Function in an Nx monorepo, ensuring proper naming, structure, and CI/CD readiness to reduce setup errors.

Core Features & Use Cases

  • Create a new Firebase Cloud Function library skeleton within libs/firebase/maple-functions
  • Enforces naming pattern firebase-maple-functions-{name} for CI/CD
  • Updates project.json and tsconfig to wire up the new function and export entry points
  • Use case: add a feature flag or business logic as a new function in the monorepo

Quick Start

Follow the steps in this skill to create and wire up a new Firebase Cloud Function using the prescribed naming convention.

Frequently Asked Questions about create-cloud-function

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I create a Firebase Cloud Function in an Nx monorepo?

To create a Firebase Cloud Function within an Nx monorepo, this Skill automates the library skeleton creation and updates configuration files like project.json and tsconfig. This ensures proper module wiring and function naming for production-ready deployments.

Why does my Firebase Cloud Function fail CI/CD detection in an Nx monorepo?

Firebase Cloud Function CI/CD detection in an Nx monorepo fails if the function name does not follow the required prefix pattern. This Skill enforces the firebase-maple-functions-{name} naming convention to satisfy CI/CD detection requirements.

What naming pattern is required when adding a Firebase Cloud Function to a TypeScript monorepo?

When adding a Firebase Cloud Function to a TypeScript monorepo, the required naming pattern is firebase-maple-functions-{name}. This Skill enforces this prefix pattern to ensure proper CI/CD detection and module wiring.

Does this Skill update tsconfig and project.json when bootstrapping a Firebase Cloud Function?

Yes, bootstrapping a Firebase Cloud Function with this Skill updates both project.json and tsconfig files. It wires up the new function and exports entry points within the maple-functions library to ensure correct configuration.

Can I use this to add business logic as a new Firebase Cloud Function in my existing library?

Yes, you can use this Skill to add business logic or a feature flag as a new Firebase Cloud Function in your existing maple-functions library. It generates the skeleton and wires up the configuration for production-ready deployments.