BeClaude

genkit-secrets-manager

New
11Community RegistryGeneralby Amit Patole ยท MIT

Secure API key and secrets management for Genkit - Google Secret Manager, AWS Secrets, HashiCorp Vault integration

Community PluginView Source

Overview

Build production-ready AI applications with Genkit directly from Claude Code

![License: MIT](https://opensource.org/licenses/MIT) ![Claude Code Plugin](https://claude.com/claude-code)

A comprehensive Claude Code plugin that streamlines Genkit development with intelligent commands, templates, and an AI assistant specialized in Genkit best practices.

๐ŸŽ‰ Now Available: VS Code Extension!

The official Genkit for VS Code extension is now live on the VS Code Marketplace!

![Install from Marketplace](https://marketplace.visualstudio.com/items?itemName=amitpatole.genkit-vscode)

Quick Install:

code
ext install amitpatole.genkit-vscode

Features:

  • โ€ขโšก 6 Genkit commands in Command Palette
  • โ€ข๐Ÿ“ 7+ code snippets for rapid development
  • โ€ข๐Ÿ” Genkit Explorer sidebar with project navigation
  • โ€ขโš™๏ธ Customizable settings and auto-start dev server
  • โ€ข๐Ÿ–ฅ๏ธ Cross-platform: Windows, Linux, macOS

๐Ÿค– Autonomous Agents (NEW!)

This repository is monitored and maintained by autonomous agents running 24/7:

Schedule Enforcement Agent

  • โ€ขโœ… Runs every 5 minutes
  • โ€ขโœ… Enforces deployment window: 10 PM - 8 AM EST
  • โ€ขโœ… Blocks deployments outside allowed hours
  • โ€ขโœ… Generates violation reports

Monitoring & Maintenance Agent

  • โ€ขโœ… Runs every 10 minutes
  • โ€ขโœ… Auto-fixes compilation errors
  • โ€ขโœ… Auto-updates dependencies & security patches
  • โ€ขโœ… Responds to GitHub issues automatically
  • โ€ขโœ… Tracks marketplace metrics
  • โ€ขโœ… Researches new features

Learn More:

Agent Status:

bash
# Check if agents are running
cat .github/agent-status/*.txt

# View recent reports
ls -lt agent-reports/

Features

๐Ÿš€ Quick Project Initialization

  • โ€ข`/genkit-init` - Create new Genkit projects with interactive setup

- TypeScript, JavaScript, Go, or Python support - Multiple AI providers (Claude, Gemini, GPT) - Pre-configured project structure - Example flows to get started

๐Ÿ’ป Development Tools

  • โ€ข`/genkit-run` - Start Genkit dev server with auto-configuration

- Automatic dependency detection - Smart .env file management - Genkit Developer UI at localhost:4000 - Hot reload support

๐Ÿ“ฆ Flow Generation

  • โ€ข`/genkit-flow` - Create flows from templates

- Simple Chat Flow - RAG (Retrieval Augmented Generation) - Tool Calling with function execution - Multi-step workflows - Streaming responses - Blank templates

๐ŸŒ Deployment Support

  • โ€ข`/genkit-deploy` - Deploy to multiple platforms

- Firebase Cloud Functions - Google Cloud Run - Google Cloud Functions (2nd gen) - Vercel - Docker containers - Local builds

๐Ÿฅ Health Monitoring

  • โ€ข`/genkit-doctor` - Comprehensive project health checks

- System requirements validation - Package installation verification - Configuration file checks - Environment variable validation - Flow detection - Dependency health

๐Ÿค– AI Assistant

  • โ€ขGenkit-specialized AI agent with deep expertise in:

- Genkit architecture and patterns - AI model integration - Production deployment strategies - Performance optimization - Security best practices

Installation

From GitHub (Recommended)

  1. Add the marketplace:

`` /plugin marketplace add https://github.com/amitpatole/claude-genkit-plugin.git ``

  1. Install the plugin:

`` /plugin install genkit ``

  1. Verify installation:

`` /genkit-doctor ``

From Local Directory

  1. Install the plugin:

`` /plugin install /path/to/claude-genkit-plugin ``

  1. Enable the plugin:

`` /plugin enable genkit ``

  1. Verify installation:

`` /genkit-doctor ``

Quick Start

Create Your First Genkit Project

bash
# 1. Initialize a new project
/genkit-init

# Follow the interactive prompts:
# - Project name: my-ai-app
# - Language: TypeScript
# - AI Provider: Anthropic Claude

# 2. Navigate to your project
cd my-ai-app

# 3. Add your API keys to .env
# Edit .env and add:
# ANTHROPIC_API_KEY=your_key_here

# 4. Start development server
/genkit-run

# 5. Open Genkit Developer UI
# Visit http://localhost:4000

Create a New Flow

bash
# In your Genkit project
/genkit-flow

# Follow prompts:
# - Flow name: summarizeFlow
# - Template: RAG (Retrieval Augmented Generation)

Deploy to Production

bash
/genkit-deploy

# Choose deployment target:
# 1. Firebase Cloud Functions
# 2. Google Cloud Run
# 3. Vercel
# etc.

Commands Reference

CommandDescriptionUsage
/genkit-initInitialize new Genkit projectInteractive setup wizard
/genkit-runStart development serverRun from project directory
/genkit-flowGenerate new flow from templateChoose from 6 templates
/genkit-deployDeploy to productionMultiple platform support
/genkit-doctorHealth check and diagnosticsValidates entire setup

Supported Technologies

Languages

  • โ€ขโœ… TypeScript (Recommended)
  • โ€ขโœ… JavaScript
  • โ€ขโœ… Go (Beta)
  • โ€ขโœ… Python (Alpha)

AI Models

  • โ€ข๐Ÿค– Anthropic Claude (3.5 Sonnet, 3 Opus, etc.)
  • โ€ข๐Ÿง  Google Gemini (1.5 Pro, 1.5 Flash)
  • โ€ข๐Ÿ’ฌ OpenAI GPT (GPT-4, GPT-3.5)
  • โ€ข๐Ÿ  Local Models (via Ollama)

Deployment Platforms

  • โ€ข๐Ÿ”ฅ Firebase Cloud Functions
  • โ€ขโ˜๏ธ Google Cloud Run
  • โ€ขโšก Google Cloud Functions (2nd gen)
  • โ€ข๐Ÿ”บ Vercel
  • โ€ข๐Ÿณ Docker
  • โ€ข๐ŸŒ Custom platforms

Flow Templates

1. Simple Chat

Basic conversational AI flow with single-turn responses.

2. RAG (Retrieval Augmented Generation)

Query documents and generate answers with context.

3. Tool Calling

Execute functions and tools based on AI decisions.

4. Multi-step

Complex workflows with sequential AI operations.

5. Streaming

Real-time streaming responses for better UX.

6. Empty

Blank template for custom implementations.

AI Assistant

The plugin includes a specialized AI agent with expertise in:

  • โ€ขArchitecture Design - Design scalable Genkit applications
  • โ€ขCode Generation - Create production-ready flows and tools
  • โ€ขDebugging - Troubleshoot configuration and runtime issues
  • โ€ขOptimization - Improve performance, reduce costs
  • โ€ขBest Practices - Security, error handling, testing

Activate the assistant:

code
@genkit-assistant How do I implement a RAG flow with Claude?

Examples

Example 1: Chat Application

typescript
import { defineFlow } from '@genkit-ai/flow';
import { claude35Sonnet } from '@genkit-ai/anthropic';
import { z } from 'zod';

export const chatFlow = defineFlow(
  {
    name: 'chat',
    inputSchema: z.object({
      message: z.string(),
      history: z.array(z.object({
        role: z.enum(['user', 'assistant']),
        content: z.string(),
      })).optional(),
    }),
    outputSchema: z.string(),
  },
  async (input) => {
    const messages = [
      ...(input.history || []),
      { role: 'user', content: input.message },
    ];

    const result = await claude35Sonnet.generate({
      messages,
    });

    return result.text;
  }
);

Example 2: RAG with Vector Search

typescript
export const ragFlow = defineFlow(
  {
    name: 'rag',
    inputSchema: z.object({
      question: z.string(),
      maxResults: z.number().default(5),
    }),
    outputSchema: z.object({
      answer: z.string(),
      sources: z.array(z.string()),
    }),
  },
  async (input) => {
    // Retrieve relevant documents
    const docs = await vectorStore.search(input.question, {
      limit: input.maxResults,
    });

    // Generate answer with context
    const result = await claude35Sonnet.generate({
      prompt: `Context:\n${docs.map(d => d.content).join('\n\n')}\n\nQuestion: ${input.question}\n\nAnswer:`,
    });

    return {
      answer: result.text,
      sources: docs.map(d => d.id),
    };
  }
);

Configuration

Environment Variables

Create a .env file in your project:

bash
# Anthropic (Claude)
ANTHROPIC_API_KEY=sk-ant-...

# Google AI (Gemini)
GOOGLE_AI_API_KEY=AIza...

# OpenAI (GPT)
OPENAI_API_KEY=sk-...

# Optional: Custom configuration
PORT=3000
NODE_ENV=development

Genkit Configuration

Create src/genkit.config.ts:

typescript
import { configureGenkit } from '@genkit-ai/core';
import { claude } from '@genkit-ai/anthropic';
import { googleAI } from '@genkit-ai/googleai';

export default configureGenkit({
  plugins: [
    claude({
      apiKey: process.env.ANTHROPIC_API_KEY,
    }),
    googleAI({
      apiKey: process.env.GOOGLE_AI_API_KEY,
    }),
  ],
  logLevel: 'debug',
  enableTracingAndMetrics: true,
});

Troubleshooting

Common Issues

Issue: "Genkit CLI not found"

bash
# Install globally
npm install -g genkit-cli

# Or run without global install
npx genkit start

Issue: "No API key configured"

bash
# Copy example env file
cp .env.example .env

# Edit .env and add your keys
nano .env

Issue: "Port 4000 already in use"

bash
# Kill existing process
lsof -ti:4000 | xargs kill -9

# Or change port in your start script
PORT=4001 npm run dev

Health Check

Run a comprehensive health check:

code
/genkit-doctor

Requirements

  • โ€ขNode.js 18+ (for JavaScript/TypeScript)
  • โ€ขnpm 8+
  • โ€ขGo 1.21+ (for Go projects)
  • โ€ขPython 3.10+ (for Python projects)

Contributing

Contributions are welcome! Please:

  1. Fork the repository
  2. Create a feature branch
  3. Make your changes
  4. Test with /genkit-doctor
  5. Submit a pull request

Plugin Marketplace

This plugin is part of a comprehensive marketplace with 34 specialized plugins for Genkit development!

๐ŸŽฏ Core Plugin

  • โ€ขgenkit - Main Genkit integration with initialization, templates, and deployment

๐Ÿ› ๏ธ Development & Testing (7 plugins)

  • โ€ขgenkit-test-writer - Automatic test generation
  • โ€ขgenkit-architect - Architecture design guidance
  • โ€ขgenkit-debugger - Interactive debugging
  • โ€ขgenkit-validator - Input/output validation
  • โ€ขgenkit-documentation - Auto-generate docs
  • โ€ขgenkit-starter-kits - Production templates
  • โ€ขgenkit-api-generator - REST/GraphQL APIs

๐Ÿค– AI Models & Optimization (4 plugins)

  • โ€ขgenkit-ollama - Local AI models
  • โ€ขgenkit-model-selector - Model comparison
  • โ€ขgenkit-prompt-optimizer - Prompt engineering
  • โ€ขgenkit-embedding-helper - Embeddings for RAG

๐Ÿ’พ Database & Storage (4 plugins)

  • โ€ขgenkit-firestore - Firestore integration
  • โ€ขgenkit-vector-db - Vector databases
  • โ€ขgenkit-cache - Caching strategies
  • โ€ขgenkit-session-manager - Session management

๐Ÿ“Š Monitoring & Performance (4 plugins)

  • โ€ขgenkit-monitor - Real-time monitoring
  • โ€ขgenkit-cost-tracker - Cost tracking
  • โ€ขgenkit-performance-analyzer - Performance profiling
  • โ€ขgenkit-logger - Enhanced logging

๐Ÿ” Security (3 plugins)

  • โ€ขgenkit-security-auditor - Security auditing
  • โ€ขgenkit-secrets-manager - Secrets management
  • โ€ขgenkit-auth-helper - Authentication

๐Ÿ”„ Integration & Automation (5 plugins)

  • โ€ขgenkit-migration-helper - Framework migration
  • โ€ขgenkit-webhooks - Webhook integration
  • โ€ขgenkit-scheduler - Scheduled tasks
  • โ€ขgenkit-workflow-orchestrator - Workflows
  • โ€ขgenkit-rate-limiter - Rate limiting

๐ŸŽจ Media Processing (3 plugins)

  • โ€ขgenkit-image - Image generation, editing, OCR
  • โ€ขgenkit-audio - Audio transcription, TTS
  • โ€ขgenkit-video - Video generation, editing

๐Ÿ“ Content Creation (2 plugins)

  • โ€ขgenkit-content-studio - Multi-modal content
  • โ€ขgenkit-analytics - Analytics insights
  • โ€ขgenkit-ui-generator - UI components

Install specialized plugins:

bash
/plugin install genkit-test-writer
/plugin install genkit-monitor
/plugin install genkit-image
# ... and 31 more!

Roadmap

โœ… Completed

  • โ€ขโœ… Plugin marketplace submission (34 plugins live!)
  • โ€ขโœ… Additional flow templates (6 templates)
  • โ€ขโœ… Firebase integration helpers (genkit-firestore)
  • โ€ขโœ… Advanced monitoring tools (monitor, performance-analyzer, logger)
  • โ€ขโœ… Testing utilities (genkit-test-writer)
  • โ€ขโœ… Migration helpers (genkit-migration-helper)

๐Ÿš€ Future Plans

  • โ€ขโœ… VS Code extension integration - COMPLETED!

- ๐ŸŽ‰ Published to VS Code Marketplace v1.0.1 - ๐Ÿ“ฆ Install from Marketplace - ๐Ÿ’ป 6 commands, 7+ snippets, Genkit Explorer sidebar - ๐Ÿ“– See vscode-extension/ directory for details

  • โ€ขโœ… CI/CD pipeline templates - COMPLETED!

- ๐Ÿš€ Production-ready templates for GitHub Actions, GitLab CI, Azure Pipelines - ๐Ÿ“ฆ Multi-environment support (dev, staging, production) - ๐Ÿ” Security scanning, automated testing, health checks - ๐ŸŽฏ Multiple deployment targets (Firebase, Cloud Run, Vercel, AWS Lambda) - ๐Ÿ“– See cicd-templates/ directory for details

  • โ€ขโœ… Multi-region deployment - COMPLETED!

- ๐ŸŒ Deploy across multiple geographic regions - โšก Active-active, active-passive, and geo-routing strategies - ๐Ÿ›ก๏ธ Automatic failover and health monitoring - ๐Ÿ“Š Load balancing and traffic management - ๐Ÿ“– See multi-region/ directory for details

  • โ€ขโœ… Advanced RAG patterns - COMPLETED!

- ๐Ÿ” 8 production-ready RAG patterns (Hybrid, Hierarchical, Conversational, etc.) - ๐Ÿ“Š Pattern comparison and use cases - ๐Ÿ’ก Best practices for chunking, embedding, reranking - ๐Ÿ“ˆ Evaluation metrics and optimization strategies - ๐Ÿ“– See advanced-rag/ directory for details

  • โ€ขโœ… Real-time collaboration - COMPLETED!

- ๐Ÿ’ฌ WebSocket server for bidirectional communication - ๐Ÿ“ก Server-Sent Events for AI response streaming - ๐Ÿค Multi-user collaboration examples - ๐Ÿ”” Presence tracking and broadcasting - ๐Ÿ“– See realtime-collaboration/ directory for details

  • โ€ขโœ… Plugin SDK for extensions - COMPLETED!

- ๐Ÿ”ง Complete plugin development framework - ๐Ÿ“ฆ Packaging and distribution tools - ๐Ÿงช Testing utilities and examples - ๐Ÿ“š Documentation generators - ๐Ÿš€ Publishing workflow to npm - ๐Ÿ“– See plugin-sdk/ directory for details

Resources

License

MIT License - see LICENSE file for details

Support

Acknowledgments

  • โ€ขGenkit Team at Google
  • โ€ขAnthropic for Claude AI
  • โ€ขClaude Code Team at Anthropic

Made with โค๏ธ for the AI developer community

Build amazing AI applications with Genkit and Claude Code!

Install & Usage

1
Create the skills directory
mkdir -p .claude/skills
2
Download the skill file
mkdir -p .claude/skills && curl -o .claude/skills/genkit-secrets-manager.md https://raw.githubusercontent.com/amitpatole/claude-genkit-plugin/main/SKILL.md
3
Invoke in Claude Code
/genkit-secrets-manager
View source on GitHub
apigenkitsecretssecurityapi-keysvault

Frequently Asked Questions

What is genkit-secrets-manager?

Secure API key and secrets management for Genkit - Google Secret Manager, AWS Secrets, HashiCorp Vault integration

How to install genkit-secrets-manager?

To install genkit-secrets-manager, create the .claude/skills directory in your project, then run the curl command to download the skill file. Once installed, invoke it in Claude Code with /genkit-secrets-manager.

What is genkit-secrets-manager best for?

genkit-secrets-manager is a community categorized under General. It is designed for: api, genkit, secrets, security, api-keys, vault. Created by Amit Patole.