Creative & DesignIntermediate
developing-genkit-js
Build AI-powered apps with Firebase Genkit in Node.js
Developer Setup
Setup & Installation
bash
npx skills add https://github.com/firebase/agent-skills --skill developing-genkit-jsnpx skills add https://github.com/firebase/agent-skills --skill developing-genkit-jsOr paste this URL into your assistant to install:
Overview
What This Skill Does
Build AI-powered apps with Firebase Genkit in Node.js
Application
When to use this Skill
- Integrating developing genkit js into your development workflow.
- Following best practices for build ai-powered apps with firebase genkit in node.
- Automating repetitive tasks with AI-assisted tooling.
- Building production-grade applications with proper standards.
- Debugging and troubleshooting common implementation issues.
Documentation
Show Skills.md file
Genkit JS
Prerequisites
Ensure the genkit CLI is available.
- Run
genkit --versionto verify. Minimum CLI version needed: 1.29.0 - If not found or if an older version (1.x < 1.29.0) is present, install/upgrade it:
npm install -g genkit-cli@^1.29.0.
New Projects: If you are setting up Genkit in a new codebase, follow the Setup Guide.
Hello World
import { z, genkit } from 'genkit';
import { googleAI } from '@genkit-ai/google-genai';
// Initialize Genkit with the Google AI plugin
const ai = genkit({
plugins: [googleAI()],
});
export const myFlow = ai.defineFlow({
name: 'myFlow',
inputSchema: z.string().default('AI'),
outputSchema: z.string(),
}, async (subject) => {
const response = await ai.generate({
model: googleAI.model('gemini-2.5-flash'),
prompt: `Tell me a joke about ${subject}`,
});
return response.text;
});
Lines 1 - 33 of 105
Recommendations