# Build Firebase Genkit AI Workflows

Developers need clear patterns for production AI flows, agents, RAG, and deployment. This skill provides Genkit setup, examples, commands, and deployment guidance for Firebase and Cloud Run.

## Install

```bash
npx skillstore add supercent-io/genkit
```

## Metadata

- Status: approved
- Slug: supercent-io-genkit
- Version: 1.0.0
- Author version: 1.0.0
- Skillstore revision: r1
- Version status: valid
- Tree hash: fd0daffa396868cb78c771557e059a9ae0893098362e2c9d6d1af1b63007b796
- Author: supercent-io
- GitHub username: supercent-io
- License: MIT
- Repository: https://github.com/supercent-io/skills-template/tree/main/.agent-skills/genkit/
- Ref: f93e9bb0daca99badb6a7e574b97737155d57cb3
- Supported tools: Claude, Codex, Claude Code
- Audit status: complete
- Agent install advisory: blocked
- Manual install advisory: allowed\_with\_warning
- Artifact signature: available
- Audit attestation: unavailable
- Human verification: not\_verified
- Risk factors: external\_commands, network, env\_access
- Quality score: 38
- Quality tier: warning
- Public page: https://skillstore.pages.dev/skills/supercent-io-genkit
- Manifest: https://skillstore.pages.dev/api/skills/supercent-io-genkit/manifest

## Capabilities

- Explains Genkit setup for TypeScript projects and model plugins.
- Shows type-safe flow definitions with Zod input and output schemas.
- Covers streaming responses, tool calling, and multi-agent flow patterns.
- Describes RAG setup with local vector stores and retrieval flows.
- Includes deployment patterns for Firebase Functions, Express, and Cloud Run.
- Lists Genkit CLI commands for running, testing, tracing, and evaluation.

## Use Cases

- Create a typed AI endpoint: Build a Genkit flow with validated inputs, structured outputs, and traceable execution.
- Prototype a retrieval assistant: Combine vector retrieval, grounding instructions, and a Genkit flow for question answering.
- Prepare cloud deployment: Map a working local flow to Firebase Functions, Express, or Cloud Run deployment patterns.

## Prompt Templates

### Create a starter flow

```
Help me create a Firebase Genkit TypeScript flow for <task>. Include input fields, output shape, and local test steps.
```

### Add streaming output

```
Update my Genkit flow to stream progress for <use case>. Explain the stream schema, final output, and client handling.
```

### Design a tool-calling agent

```
Design a Genkit agent for <goal> using tools for <tool list>. Include schemas, tool behavior, and error handling.
```

### Plan a RAG deployment

```
Plan a Genkit RAG pipeline for <content source>. Cover indexing, retrieval, grounding, evaluation, secrets, and Firebase or Cloud Run deployment.
```

## Limitations

- It is guidance only and does not install dependencies by itself.
- Examples need project-specific credentials, model choices, and cloud settings.
- Commands can change local or cloud resources when a user runs them.
- It does not replace current Genkit, Firebase, or provider documentation.

## Best Practices

- Define schemas for every flow input and output before adding model calls.
- Use secret managers or environment variables for provider keys, and avoid logging secret values.
- Test flows in the Genkit Developer UI before deploying them to shared environments.

## Anti Patterns

- Do not run installation or deployment commands without reviewing the command and target environment.
- Do not hardcode API keys, project IDs, or private endpoints into shared examples.
- Do not let agent tools call external services without validation, timeouts, and clear user consent.

## Security Audit

- Audited at: 2026-07-07T04:22:52.174\+00:00
- Summary: Most static findings are false positives caused by Markdown code fences, inline backticks, documentation links, and placeholder secret names. The confirmed issue is the curl-to-bash installer pattern in SKILL.md and SKILL.toon, which executes remote code without verification. No prompt injection attempt or credential exfiltration intent was found in the reviewed files.

## Stats

- Views: 145
- Downloads: 10
- Favorites: 0
- Popularity score: 0
