agentsclimarketplace

Adk vertex genai

Skill andrey-learning-machines/swe-harness/plugins/swe-harness/skills/adk-vertex-genai

Portable SWE harness plugin for Codex and Claude Code

Install
npx -y skills add andrey-learning-machines/swe-harness --skill adk-vertex-genai

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

One thing to look at

  • 1 stars1 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.

What its author says it does

Copied from the file, not written here

Build, deploy, tune, and verify Google Agent Development Kit (ADK) agents on Vertex AI Agent Engine with Vertex AI Google Gen AI Software Development Kit (SDK) tools, Discovery Engine or Vertex AI Search retrieval, Gemini Enterprise registration, callbacks, source-based packaging, and remote smoke tests. Use when Codex needs a Vertex AI-only ADK and Gen AI workflow, full-document inspection with Part.from_uri, deep-research workflow agents, source-link callbacks, Gemini Enterprise rendering fixes, or Google Developers Gemini API avoidance.

SKILL.md

8.7 KB, as published. Nobody here has run it

ADK Vertex Gen AI

Operating Stance

Build Python Google Agent Development Kit (ADK) agents for Vertex AI Agent Engine and Gemini Enterprise. Treat Vertex AI as the production control plane and runtime target; do not use Google Developers Gemini Application Programming Interface (API) key patterns for this workflow.

Use this skill when work touches any of these areas:

  • ADK LlmAgent, SequentialAgent, ParallelAgent, callbacks, tools, evaluation, or local ADK servers.
  • Vertex AI Agent Engine source-based deployment, runtime service accounts, logs, or remote smoke tests.
  • Google Gen AI Software Development Kit (SDK) calls through Vertex AI, especially Part.from_uri document understanding.
  • Discovery Engine or Vertex AI Search retrieval tools, signed source links, and citation formatting.
  • Gemini Enterprise registration of deployed ADK agents.

Workflow Map

flowchart TD
    A["Inspect repo and reference deployment"] --> B["Confirm Vertex AI-only config"]
    B --> C["Shape ADK package and app wrapper"]
    C --> D["Implement agents, workflow agents, tools, and callbacks"]
    D --> E["Validate Application Default Credentials and retrieval directly"]
    E --> F["Run local ADK server and agent checks"]
    F --> G["Deploy to Vertex AI Agent Engine from source"]
    G --> H["Read Agent Engine logs"]
    H --> I["Smoke-test remote Agent Engine"]
    I --> J["Register or prepare Gemini Enterprise registration"]
    J --> K["Verify Gemini Enterprise answer, sources, and latency"]

Core Rules

  • Prefer source-based Vertex AI Agent Engine deployment for real repos. Use source_packages, entrypoint_module, entrypoint_object, generated requirements, and deployment metadata.
  • Export root_agent from an importable package and wrap it with AdkApp(agent=root_agent) for Agent Engine.
  • Separate local operator configuration from runtime configuration. Local files can include service account key paths; Agent Engine runtime environment variables must not include GOOGLE_APPLICATION_CREDENTIALS, GOOGLE_CLOUD_PROJECT, or local Gemini Enterprise registration variables.
  • Use custom function tools for controlled retrieval, full-document inspection, signed links, and normalized citations. Prefer custom tools when built-in tool limitations or output shape matter.
  • Use callbacks when behavior belongs around a model or tool boundary: normalize tool output, collect source state, add final citations, enforce markdown shape, or hide intermediate workflow output.
  • Read logs and run remote queries before declaring a deployment complete.

Vertex AI Gen AI SDK Rules

The Google Gen AI SDK must run in Vertex AI mode for this workflow.

  • Preferred explicit client:
from google import genai
from google.genai import types

client = genai.Client(
    vertexai=True,
    project=project_id,
    location="global",
    http_options=types.HttpOptions(api_version="v1"),
)
  • Environment-variable mode is acceptable only if it is clearly Vertex AI mode: GOOGLE_GENAI_USE_VERTEXAI=True, GOOGLE_CLOUD_PROJECT, and GOOGLE_CLOUD_LOCATION.
  • Do not use GOOGLE_API_KEY, Google AI Studio key flows, or non-Vertex Gemini Developer API clients for Agent Engine production agents.
  • Use types.Part.from_uri(file_uri="gs://...", mime_type="application/pdf") for Cloud Storage document understanding when the runtime service account has object read access.
  • Use global for Gemini 3 preview model endpoints unless a current official model page says otherwise. Note in the plan that Gemini 3 models are preview if the official model page says preview.
  • Keep model settings configurable: primary agent model, document-understanding model, location, output token limits, media resolution, and thinking level.

Agent Design Rules

  • Keep the root agent as the front door when future domain expansion is likely. Its job is greeting, capability explanation, high-level guardrails, and delegation.
  • Put domain retrieval and policy answering in specialized sub-agents.
  • For deep-research behavior, use a sequential-into-parallel-into-synthesis pattern:
    • planner decomposes the question,
    • parallel research agents call retrieval and document tools,
    • synthesizer produces the only final user-visible answer,
    • callback or workflow wrapper suppresses intermediate text while preserving tool events and state deltas.
  • If a workflow wrapper hides intermediate emissions, never drop function-call or function-response events. Those events are needed for ADK state and tool execution.
  • All grounded-answer agents must abstain when retrieval or document evidence is insufficient.
  • Final answers from document agents should cite distinct sources once, preserve markdown, and use valid markdown links.

Deployment Rules

  • Inspect any reference repo the user names before changing deployment commands. Mirror the working make deploy and make register-gemini-enterprise shape when the team expects that interface.
  • Change into repo root before packaging.
  • Put generated requirements inside the uploaded source package and pass requirements_file relative to the uploaded source root.
  • Pin or constrain core dependencies enough for repeatable Agent Engine builds: google-cloud-aiplatform[agent_engines,adk], google-adk, google-genai, google-cloud-discoveryengine, google-cloud-storage, and any framework-specific packages.
  • Use a dedicated runtime service account. Grant minimum practical roles for the actual tools: Agent Engine runtime invocation, Discovery Engine or Vertex AI Search read/search, Cloud Storage object read, and Service Account Token Creator only if signing URLs through Identity and Access Management (IAM) credentials.
  • Write deployment_metadata.json after successful create or update.

Verification Rules

  • Validate Application Default Credentials (ADC) locally before agent tests.
  • Test retrieval and full-document tools directly before prompt debugging.
  • Start a local ADK server and test at least one greeting plus one retrieval-backed question.
  • After deploy, create a remote session and stream-query the deployed Agent Engine resource.
  • Benchmark latency and quality when changing model families, thinking levels, document reads, or parallel lane count.
  • For Gemini Enterprise, test the rendered output, not just the raw Agent Engine stream. Broken markdown can be invisible locally but ugly in Enterprise.

Reference Files

  • Read references/checklists.md before implementation, deployment, and handoff.
  • Read references/common-failures.md when local, deployment, retrieval, document, signed-link, or Gemini Enterprise behavior breaks.
  • Read references/vertex-genai-patterns.md for Vertex AI Gen AI SDK code patterns, document-understanding tools, callbacks, and deep-research workflow guidance.

Official References

Keep looking

Skills are one crate of 328,083. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.