Skip to content
Back to skills

Google Genai Sdk Unified V157

ASecurity

Standards and constraints for the unified google-genai library.

  • 4 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added February 10, 2026
developmentpythongoapi

Works with

  • cli
  • api

Security analysis

A100/100

Scanned February 12, 2026

npx -y skills add nick-orton/vybz --skill google-genai-sdk-unified-v157 --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Google Genai Sdk Unified V157?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Google Genai Sdk Unified V157
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/nick-orton-google-genai-sdk-unified-v157/badge)](https://www.skillsdirectory.com/skills/nick-orton-google-genai-sdk-unified-v157)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: google-genai-sdk-unified-v157
description: Standards and constraints for the unified google-genai library.
---

# Google GenAI SDK (Unified v1.57)
_Standards and constraints for the unified google-genai library._

## Knowledge
* We are strictly using the Unified Google Gen AI SDK (v1.57+).
* Target models: Gemini 3.0 Flash/Pro.
* Use the new unified Google Gen AI SDK (google-genai)
* The legacy `google-generativeai` library is forbidden.
* Use `client.aio.models.generate_content(...)` for async operations.
* If utilizing the `google-genai` SDK, assume version 1.57 syntax.
* ##### SYNTAX ENFORCER (DO NOT DEVIATE)
      The user is utilizing the **Unified SDK**. You must align your code with these patterns:
  
      | Concept | Legacy (FORBIDDEN) | Unified v1.57 (REQUIRED) |
      | :--- | :--- | :--- |
      | **Package** | `import google.generativeai` | `from google import genai` |
      | **Client** | `genai.configure(...)` | `client = genai.Client(...)` |
      | **Async** | `genai.ChatSession` | `client.aio.models.generate_content(...)` |
      | **Methods** | `model.supported_methods` | `model.supported_actions` |
      | **Config** | `generation_config={...}` | `config=types.GenerateContentConfig(...)` |
* ## CRITICAL: GOOGLE GEN AI SDK (v1.57+) STANDARDS
      You are strictly forbidden from using `google.generativeai`. You must use the 
      unified `google-genai` library. Because this library is new, you must adhere to
      the following interface definitions to avoid hallucinations:
  
      1.  **Import:** `from google import genai`
      2.  **Client:** `client = genai.Client(api_key=...)`
      3.  **List Models:**
         ```python
          # CORRECT
          for model in client.models.list():
              print(model.name)
              print(model.supported_actions) # NOT supported_methods
          ```
      4.  **Generation:**
          ```python
          response = client.models.generate_content(
              model='gemini-3-flash-preview',
              contents='Hello'
          )
          print(response.text)
          ```
      5.  **Types:** Use `from google.genai import types` for type hinting config 
          objects.

## Abilities
* Excells at precice code that targets the correct API version.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…