debug-cloud-function

Debug Firebase Cloud Functions using log-first analysis to identify failures and timeouts.

Updated Apr 7, 2026
One-click install
npx skills add https://github.com/stevenmunoz/turbo-ai-exercise --skill debug-cloud-function
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: debug-cloud-function
Source: https://github.com/stevenmunoz/turbo-ai-exercise/tree/main/.claude/skills/debug-cloud-function
Command: npx skills add https://github.com/stevenmunoz/turbo-ai-exercise --skill debug-cloud-function

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Debug Firebase Cloud Functions using a log-first methodology to identify failures, timeouts, or unexpected results before making code changes.

Core Features & Use Cases

  • Step-by-step logs-first workflow to locate errors, timeouts, and unexpected results in Cloud Functions.
  • Reproduce issues locally with emulators and curl-based tests to validate fixes.
  • Trace data flow from handler to use case to repository to Firestore to verify end-to-end correctness.

Quick Start

Identify the failing function and review emulator logs to gather evidence before reproducing the issue.

Frequently Asked Questions about debug-cloud-function

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

FAQPage Schema
How do I debug failing Firebase Cloud Functions using logs?

Debug failing Firebase Cloud Functions by applying a log-first methodology to review emulator logs, gather evidence of failures or timeouts, and identify root causes before modifying code. This approach targets the actual error source.

What is the best way to reproduce Cloud Functions timeouts locally?

Reproduce Cloud Functions timeouts locally by running the Firebase emulator and executing curl-based tests. This validates the issue and allows you to trace data flow from the handler through Firestore.

Do I need the Firebase emulator to trace Cloud Functions data flow?

Yes, you need the Firebase emulator to trace Cloud Functions data flow effectively. Access to backend functions, the emulator, and Firestore is required to reproduce issues locally and verify end-to-end correctness.

Why does my Firebase Cloud Function return unexpected results in production?

Your Firebase Cloud Function returns unexpected results due to logic failures traceable through production logs. A logs-first debugging workflow locates errors by tracing the handler to repository to Firestore path before applying fixes.

Can I validate Cloud Functions fixes without deploying to production?

You can validate Cloud Functions fixes without production by using the local emulator and curl-based tests. This local reproduction verifies end-to-end correctness and ensures the fix resolves the logged failure.