Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Build production Firebase Genkit applications including RAG systems, multi-step flows, and tool calling for Node.js/Python/Go. Deploy to Firebase Functions or Cloud Run with AI monitoring. Use when asked to "create genkit flow" or "implement RAG". Trigger with relevant phrases based on skill purpose.
.claude/skills/jeremylongshore-genkit-production-expert/SKILL.md| Test case | Without → With | Effect | Δ tokens | Δ turns |
|---|---|---|---|---|
| case-03 | ✗→✓ | ▲ Improved | 14% | 0% |
| case-07 | ✗→✓ | ▲ Improved | 66% | 0% |
| case-08 | ✗→✓ | ▲ Improved | 56% | 0% |
| case-18 | ✗→✓ | ▲ Improved | 95% | 0% |
| case-19 | ✗→✓ | ▲ Improved | 14% | 0% |
Build production-grade Firebase Genkit applications including RAG systems, multi-step flows, and tool-calling agents for Node.js, Python, and Go. This skill covers the full lifecycle from project scaffolding and schema validation through flow implementation, local testing with the Genkit Developer UI, and deployment to Firebase Functions or Cloud Run with AI monitoring and OpenTelemetry tracing.
npm install genkit @genkit-ai/googleai for TypeScript)npm install -g firebase-tools)tsconfig.json, genkit.config.ts, or equivalent)ai.defineFlow() with model configuration, temperature tuning, and token limitsai.defineTool() with scoped schemas for each external capability the flow requiresai.defineRetriever() with embedding generation (text-embedding-gecko) and vector database integrationSAFETY_BLOCK), quota exceeded (QUOTA_EXCEEDED), and provider timeoutsSee ${CLAUDE_SKILL_DIR}/references/how-it-works.md for the phased workflow and ${CLAUDE_SKILL_DIR}/references/production-best-practices-applied.md for the production checklist.
firebase.json) or Cloud Run service YAML| Error | Cause | Solution | |-------|-------|----------| | SAFETY_BLOCK response | Model safety filters triggered on input or output | Review prompt content; adjust safety settings; add input sanitization before generation | | QUOTA_EXCEEDED | API rate limit or daily token quota reached | Implement exponential backoff with jitter; request quota increase; cache repeated prompts | | Schema validation failure | Runtime input does not match Zod/Pydantic schema | Add descriptive error messages to schema; validate inputs before calling ai.generate() | | Retriever returns empty results | Vector database query found no matches above similarity threshold | Lower similarity threshold; verify embeddings are indexed; check embedding model version match | | Deployment timeout | Cold start exceeds Firebase Functions 60s limit | Increase memory allocation; use Cloud Run for long-running flows; enable min instances > 0 |
See ${CLAUDE_SKILL_DIR}/references/errors.md for additional error scenarios.
Scenario 1: Question-Answering Flow -- Create a Genkit flow using Gemini 2.5 Flash with Zod input/output schemas. Set temperature to 0.3 for factual responses. Deploy to Firebase Functions with token usage monitoring. Expected latency: under 2 seconds per query.
Scenario 2: RAG Document Search -- Implement a retriever with text-embedding-gecko embeddings connected to Firestore vector search. Build a RAG flow that retrieves top-5 relevant documents, injects them as context, and generates grounded answers with source citations. Include context caching for repeated queries.
Scenario 3: Multi-Tool Agent -- Define weather and calendar tools with typed schemas. Create an agent flow that routes user queries to appropriate tools, handles multi-turn conversations, and traces each tool execution for debugging. Deploy to Cloud Run with auto-scaling (2-10 instances).
See ${CLAUDE_SKILL_DIR}/references/workflow-examples.md for complete code examples.
| Case | Status | Duration (ms) | Turns | Tokens | Tool calls | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Without | With | Δ | Without | With | Δ | Without | With | Δ | Without | With | Δ | ||
case-01 | fail→fail | 31,044 | 32,969 | +6% | 1 | 1 | 0% | 5,288 | 7,340 | +39% | 0 | 0 | — |
case-02 | fail→fail | 38,358 | 37,862 | -1% | 1 | 1 | 0% | 8,252 | 8,096 | -2% | 0 | 0 | — |
case-03 | fail→pass | 31,177 | 22,400 | -28% | 1 | 1 | 0% | 5,490 | 6,247 | +14% | 0 | 0 | — |
case-04 | pass→pass | 16,373 | 21,142 | +29% | 1 | 1 | 0% | 3,352 | 4,708 | +40% | 0 | 0 | — |
case-05 | pass→pass | 14,628 | 18,072 | +24% | 1 | 1 | 0% | 3,222 | 4,182 | +30% | 0 | 0 | — |
case-06 | pass→pass | 17,627 | 19,347 | +10% | 1 | 1 | 0% | 3,943 | 5,814 | +47% | 0 | 0 | — |
case-07 | fail→pass | 19,476 | 24,060 | +24% | 1 | 1 | 0% | 3,399 | 5,630 | +66% | 0 | 0 | — |
case-08 | fail→pass | 15,949 | 17,530 | +10% | 1 | 1 | 0% | 3,627 | 5,672 | +56% | 0 | 0 | — |
case-09 | pass→pass | 20,774 | 24,805 | +19% | 1 | 1 | 0% | 3,618 | 5,891 | +63% | 0 | 0 | — |
case-10 | fail→fail | 22,544 | 20,927 | -7% | 1 | 1 | 0% | 4,162 | 4,710 | +13% | 0 | 0 | — |
case-11 | pass→pass | 23,597 | 20,076 | -15% | 1 | 1 | 0% | 3,161 | 4,958 | +57% | 0 | 0 | — |
case-12 | pass→pass | 13,885 | 16,129 | +16% | 1 | 1 | 0% | 2,419 | 4,341 | +79% | 0 | 0 | — |
case-13 | pass→pass | 8,126 | 7,838 | -4% | 1 | 1 | 0% | 1,292 | 2,448 | +89% | 0 | 0 | — |
case-14 | pass→pass | 21,130 | 21,075 | -0% | 1 | 1 | 0% | 3,099 | 4,115 | +33% | 0 | 0 | — |
case-15 | pass→pass | 15,913 | 18,303 | +15% | 1 | 1 | 0% | 2,014 | 3,690 | +83% | 0 | 0 | — |
case-16 | pass→pass | 23,500 | 25,747 | +10% | 1 | 1 | 0% | 3,091 | 4,991 | +61% | 0 | 0 | — |
case-17 | fail→fail | 21,090 | 16,681 | -21% | 1 | 1 | 0% | 3,369 | 4,743 | +41% | 0 | 0 | — |
case-18 | fail→pass | 14,267 | 18,520 | +30% | 1 | 1 | 0% | 2,565 | 4,997 | +95% | 0 | 0 | — |
case-19 | fail→pass | 22,173 | 14,136 | -36% | 1 | 1 | 0% | 2,923 | 3,335 | +14% | 0 | 0 | — |
case-20 | fail→pass | 14,981 | 18,441 | +23% | 1 | 1 | 0% | 2,534 | 3,225 | +27% | 0 | 0 | — |
case-21 | pass→pass | 14,908 | 25,807 | +73% | 1 | 1 | 0% | 2,695 | 4,470 | +66% | 0 | 0 | — |
case-22 | fail→fail | 12,841 | 19,775 | +54% | 1 | 1 | 0% | 2,572 | 4,325 | +68% | 0 | 0 | — |
DecimalAI ran this skill against gemini-3.6-flash twice over the same eval suite — once with the skill loaded and once without — and compared the two runs case by case. 22 cases were attempted. The headline lift of +27 percentage points is the difference between those two pass rates over the 22 comparable cases.
Without the skill loaded, the model failed this case. With it loaded, the same prompt on the same model passed. This is one improved case from the latest verified run; every case, including any that regressed, is in the table above.
Other measured skills in the registry, with their headline benchmark lift.