Index of every page on this site: llms.txt
All skills
genkit-ai avatar

/developing-genkit-dart

@d12c988
by Genkitgenkit-ai/skills40 stars
13
Run it yourself

Provides guidance on developing AI-powered applications using the Genkit Dart SDK. Use when the user asks to build AI agents in Dart, use Genkit flows, or integrate LLMs into Dart/Flutter applications. Don't use for Genkit in JavaScript/TypeScript, Go, or Python.

Use this Skill: https://skilld.dev/gh/genkit-ai/skills/developing-genkit-dart

Nothing lands on disk. Nothing to clean up.

Fork this Skill

Edit a local copy. It keeps the author and licence.

referencesgenkit_anthropic.md

≈425 tokens on demand. Your agent reads this file only when SKILL.md points to it.

Genkit Anthropic Plugin (genkit_anthropic)

The Anthropic plugin for Genkit Dart, used for interacting with the Claude models.

Usage

Requires ANTHROPIC_API_KEY to be passed to the init block.

import 'dart:io';
import 'package:genkit/genkit.dart';
import 'package:genkit_anthropic/genkit_anthropic.dart';

void main() async {
  final ai = Genkit(
    plugins: [
      anthropic(apiKey: Platform.environment['ANTHROPIC_API_KEY']!),
    ],
  );

  final response = await ai.generate(
    model: anthropic.model('claude-sonnet-4-5'),
    prompt: 'Tell me a joke about a developer.',
    use: [retry()], // recommended for reliable runs
  );
  
  print(response.text);
}

Claude Thinking Configurations

Provides specific configurations for utilizing Claude 3.7+ "thinking" model capabilities.

final response = await ai.generate(
  model: anthropic.model('claude-sonnet-4-5'),
  prompt: 'Solve this 24 game: 2, 3, 10, 10',
  config: AnthropicOptions(
    thinking: AnthropicThinkingConfig(budgetTokens: 2048),
  ),
);

// The thinking content is available in the message parts
print(response.message?.content);

Multi-turn reasoning is preserved. Thinking blocks are re-sent on later turns of a thinking + tool loop, so reasoning is not dropped on the second turn. The signature metadata key is thoughtSignature (matching the Gemini plugins and Genkit JS), and redacted thinking comes back as CustomPart(custom: {redactedThinking}). History persisted by older versions still replays.

Overloads are retried. HTTP 529 (overloaded) maps to UNAVAILABLE, so the retry() middleware retries it instead of surfacing a non-retriable error.

Source: SKILL.md on GitHub

skilld matched fixed text patterns in SKILL.md and file names. Patterns miss obfuscated code.

skilld run checks every file with the same patterns. It asks for approval before it loads a Skill with a behavior marked Needs approval.

1 alert2d4 checks · Risk SAFE
  • Gen Agent Trust Hub3d

    The Genkit Dart skill provides comprehensive documentation and examples for building AI agents and flows using the Genkit framework. It includes guidance on using A2UI for interactive interfaces, managing agent sessions, and implementing middleware for filesystem access and multi-agent orchestration. While the skill includes instructions for installing the Genkit CLI from a vendor-controlled domain, its primary security considerations involve the attack surface for indirect prompt injection created by agents that ingest external data while possessing capabilities such as file modification and command execution.

  • Socket2d

    No alerts

  • Snyk3d

    Risk: CRITICAL · 2 issues

  • Runlayer8mo

    2/11 files flagged

Signed by skilld at d12c988. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub 4 days ago.

Activeupdated 5 days ago
metadata
{
  "version": "1.0.0",
  "category": "AiAndMachineLearning"
}

README badge

README badge for genkit-ai/skills/developing-genkit-dart