developing-genkit-js

This skill provides guidance for developing AI-powered applications using Genkit in Node.js and TypeScript. It enforces a strict troubleshooting protocol that prioritizes reading local documentation via the Genkit CLI over internal knowledge to account for recent breaking API changes.

50.1K
Installs
5
Use cases
5/10
Quality

Is developing-genkit-js safe to install?

Review the source first

Review the source first: our audit of developing-genkit-js's source files found 10 shell commands, 0 external URLs, file reads and writes (high risk). Every command and URL listed appears verbatim in the skill's source. The skill executes shell commands via the Genkit CLI, including package installation and documentation retrieval, which requires system-level access.

How we audit skills: our security review methodology.

Who is this skill for?

Developers building AI agents, flows, and tools using the Genkit framework in JavaScript or TypeScript environments.

What can you do with it?

  • Setting up new Genkit projects
  • Implementing AI agents with persistent state and multi-turn conversations
  • Troubleshooting Genkit-related errors, type issues, and API problems
  • Searching and reading official Genkit documentation via the CLI
  • Integrating middleware for generation tasks

How good is this skill?

Quality score: 5/10. The skill provides a clear, actionable protocol for development and troubleshooting. It correctly identifies the need to bypass internal knowledge in favor of CLI-based documentation lookups due to API volatility.

What does the skill file contain?

SKILL.md
# Genkit JS

## Prerequisites

Ensure the `genkit` CLI is available.
-   Run `genkit --version` to 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](references/setup.md).

## Hello World

```ts
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 ...

Frequently asked questions

What is the mandatory first step when encountering a Genkit error?

You must read the Common Errors reference file (references/common-errors.md) to identify if the error matches a known pattern before attempting any other fix.

How should I find documentation for Genkit?

Use the Genkit CLI commands: genkit docs:search to query topics, genkit docs:list to see all files, or genkit docs:read to view specific guides.

Which Genkit version is required for the agent API?

The agent API requires Genkit version 1.39.0 or higher.

Data sourced from genkit-ai/skills on GitHub. Install counts from skills.sh. The summary and security audit are derived from the skill's source files: every command and URL listed appears verbatim in the source.

Related skills