agent-platform-inference
Connects to and performs inference with Google Cloud Agent Platform GenAI models, including First-Party Gemini models and Third-Party OpenMaaS models (Llama…
Skill by googleOfficial
Install
Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.
npx agentmarket install skill/google-agent-platform-inference
Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.
Get the weekly diff
The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.
About
Use cases: testing, cloud, ml, agent-building
Reviews
Write a reviewNo reviews yet. Installed it? Reviews come from verified installers only. How reviews work
Permissions
What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.
- Tools
- No tools found
- Secrets
- None asked for
- Install scripts
- None found
- Runs as
- Python package
Network hosts it talks to 1
codeload.github.com· found in install command
Files it touches
~/.claude/skills/agent-platform-inference
What's inside
- Skill name
agent-platform-inference- Description
- Connects to and performs inference with Google Cloud Agent Platform GenAI models, including First-Party Gemini models and Third-Party OpenMaaS models (Llama, DeepSeek, Qwen, etc.). Use when asked to perform inference, ask a model a question, run a test prompt, execute chat completions, or generate code for calling Gemini or OpenMaaS models, authenticate with GenAI SDK, OpenAI SDK, or legacy Agent Platform SDK, configure base URLs and global/regional endpoints, or troubleshoot 429 Resource Exhausted (DSQ), 400 User Validation, or 404 Not Found errors. Don't use for deploying models to endpoints or for running model evaluations.
- License
- Apache-2.0
- Metadata
- version: 1.0.0 · category: AiAndMachineLearning
- Instructions
- 822 lines in SKILL.md · view on GitHub
Before installing
- Ships executable scripts
- Instructions call the network
Agent Skills spec issues
- body: 822 lines (spec recommends under 500)
Files (9)
- SKILL.md
- gemini_genai_sdk.py · scripts/
- gemini_openai_sdk.py · scripts/
- gemini_vertexai_sdk.py · scripts/
- openmaas_genai_sdk.py · scripts/
- openmaas_openai_sdk.py · scripts/
- openmaas_vertexai_sdk.py · scripts/
- requirements.txt · scripts/
- verify_all.sh · scripts/
SKILL.md (first lines)
# Agent Platform GenAI Inference Skill
This skill provides instructions for authenticating and connecting to Google
Cloud Agent Platform to use Generative AI models. It covers:
* **First-Party publisher models** (Gemini) — section 2.
* **Third-Party publisher models** (OpenMaaS: Llama, DeepSeek, Qwen, etc.)
— section 3.
* **Custom endpoints** (any model on a numeric `projects/.../endpoints/<id>`
resource — tuned Gemini models, OSS LLMs self-deployed from Model Garden
via the `agent-platform-deploy` skill, and legacy custom models) —
section 4.
## Safety & Confirmation Tiers (CRITICAL)
Before executing any commands or scripts on behalf of the user, you must adhere
to the following safety tiers based on the action requested. (The skill is
read-only; other safety tiers are omitted):
1. **Tier R: Read-only / Inference (`client.models.generate_content`,
`client.chat.completions.create`, `client.completions.create`,
`client.embeddings.create`)**
* Requires **interactive confirmation** with 'Yes'/ 'No' options before
executing model inference on behalf of the user, to prevent unexpected
cost or quota consumption.
* **Required Fields in Confirmation Card**: The confirmation prompt must
clearly explain the proposed inference execution and explicitly list all
of the following parameters:
* **Project ID**: The Google Cloud project ID or number (e.g.
`123456789012`, `my-project`).
* **Region / Location**: The target region (e.g. `us-central1`,
`global`).
* **Model ID**: The exact model ID (e.g. `gemini-2.5-flash`,
`deepseek-ai/deepseek-v3.2-maas`).
* **SDK**: The SDK choice (e.g. `Google GenAI SDK (google-genai)`,
`OpenAI SDK`).
* **Input Prompt** (or **Input Image** / **Input Media**): The prompt
text or media URI.
* Any additional generation parameters (e.g. `max_output_tokens`,
`response_schema`) if specified.
Natural-language paraphrases without explicitly listing these
parameters are NOT sufficient.
* **Same-turn restriction**: Do not execute the inference scripts or
commands in the same turn as presenting the confirmation prompt. Stop
and wait for the user's reply; only execute after explicit 'Yes' /
approval.
* **Gold Standard Example**:
> I will perform model inference with the following parameters. Please
> confirm this information before I proceed:
> * **Project ID**: `my-project`
> * **Region**: `us-central1`
> * **Model ID**: `gemini-2.5-pro`
> * **SDK**: Google GenAI SDK (`google-genai`)
> * **Input Prompt**: "Summarize the plot of Hamlet in 3 sentences"
>
> Do you confirm? [Yes/No]
* **Post-Execution Response Grounding (CRITICAL)**:
After receiving explicit user approval and executing the inference call
via the SDK, the response returning the generated text **MUST
explicitly confirm the execution parameters** alongside the model's
output. Never return a bare model response alone. Always include:
* **Model ID**: The exact model ID used (e.g. `gemini-2.5-pro`
or `<MODEL_ID>`).
* **SDK**: The SDK used (e.g. `Google GenAI SDK (google-genai)`
or `OpenAI SDK`).
* **Project ID**: The Google Cloud project ID/number used.
* **Region**: The region or endpoint location used (e.g. `global`
or `us-central1`).
* **Generated Output**: The model's complete generated answer.
## Phase 0: Environment Setup
**CRITICAL**: Before running any of the Python sample scripts in the `scripts/`
directory (e.g., `scripts/openmaas_openai_sdk.py`), you MUST ensure the
environment is correctly initialized by following these steps:
1. **Google Cloud Authentication**: Authenticate with your Google Cloud
credentials and configure active Application Default Credentials (ADC) for
Agent Platform access:
```bash
gcloud auth login
gcloud auth application-default login
```
2. **Enable API** (if not already enabled):
```bash
gcloud services enable aiplatform.googleapis.com
```
3. **Python Dependencies**: The scripts import `vertexai` (from
`google-cloud-aiplatform`), `google-genai`, and `openai`. Do **not** create
a virtual environment — it starts empty and hides packages the environment
already provides, forcing a redundant install. Probe, and install only what
is missing:
```bash
python3 -c "import vertexai, google.genai, openai" \
|| pip install -r scripts/requirements.txt
```
`scripts/requirements.txt` is a fallback for an environment that does not
already provide these SDKs; do not install it on top of a working
environment.
4. **Verify Setup (Optional)**: Run all sample scripts at once to verify the
environment is working end-to-end:
```bash
./scripts/verify_all.sh
```
5. **Execution**: Run the scripts with a plain `python3 scripts/...`. There is
no environment to activate first.
> [!IMPORTANT] **CRITICAL: Model IDs & Availability** * **Gemini Models**: SeeFrom google/skills, Apache-2.0.
More from google/skills
- 0.865score
google-ads-api-account-diagnostics
google-ads-api-teamOfficial
Diagnoses Google Ads account performance issues such as conversion loss (value or volume), low lead flow/volume, and lost impression share (opportunities) due…
SkillAFreshness: A★ 21.5KClaude Code +9 - 0.861score
secops-triage
Google LLCOfficial
Expert guidance for security alert triage in Google SecOps.
SkillAFreshness: A★ 21.5KClaude Code +9 - 0.861score
secops-detection-engineering
Google LLCOfficial
Author, validate, test, and deploy YARA-L 2.0 detection rules and evaluate end-to-end detection coverage gaps in Google SecOps.
SkillAFreshness: A★ 21.5KClaude Code +9 - 0.861score
secops-hunt
Google LLCOfficial
Expert guidance for proactive threat hunting in Google SecOps.
SkillAFreshness: A★ 21.5KClaude Code +9 - 0.861score
secops-cases
Google LLCOfficial
Manage Google Security Operations (SecOps) SOAR cases throughout their lifecycle.
SkillAFreshness: A★ 21.5KClaude Code +9 - 0.861score
secops-investigate
Google LLCOfficial
Expert guidance for deep security incident and entity investigations in Google SecOps.
SkillAFreshness: A★ 21.5KClaude Code +9 - 0.824score
google-ads-api-quickstart
google-ads-api-teamOfficial
Guides developers through Google Ads API quickstart: credential setup, choosing from 6 client libraries/REST, configuring environments, and running a…
SkillBFreshness: B★ 21.5KClaude Code +9 - 0.819score
google-ads-api-mcp-setup
google-ads-api-teamOfficial
Guides developers through downloading, configuring, and installing the official open-source Google Ads MCP Server.
SkillBFreshness: B★ 21.5KClaude Code +9 - 0.815score
ima-dai-sdk
Google LLCOfficial
Integrates the Google Interactive Media Ads (IMA) Dynamic Ad Insertion (DAI) SDK into websites, web apps, mobile apps, or TV apps.
SkillBFreshness: B★ 21.5KClaude Code +9 - 0.815score
ima-sdk-client-side
Google LLCOfficial
Supports Interactive Media Ads (IMA) SDK.
SkillBFreshness: B★ 21.5KClaude Code +9 - 0.699score
gcloud
googleOfficial
Provides safety-critical validation, guardrails, and data reduction for gcloud CLI operations across Google Cloud Platform (GCP) services and infrastructure.
SkillAFreshness: A★ 21.5KClaude Code +9 - 0.699score
agent-platform-deploy
googleOfficial
Deploy open models or custom weights from Model Garden to Agent Platform endpoints, check the status of an in-progress deployment operation, or clean up…
SkillAFreshness: A★ 21.5KClaude Code +9
Signals
- Stars
- 21,542
- Forks
- 1,821
- Open issues
- 21
- Last commit (this folder)
- Sep 24, 2026 (1 month ago)
From GitHub (fetched Oct 24, 2026).
Details
- Version
- 1.0.0
- License
- Apache-2.0
- Repository
- github.com/google/skills
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
Same skill elsewhere
Copies of this SKILL.md published by others; search shows only one of them.
More from google
- 0.699score
retrieving-developer-knowledge
googleOfficial
Searches, retrieves, and synthesizes official Google developer documentation across Google Cloud, AI/Gemini, Android, Chrome, Web, Flutter, Go, Firebase, and…
SkillAFreshness: A★ 21.5KClaude Code +9 - 0.699score
data-manager-api-setup
googleOfficial
Guides developers through client library installation and authentication setup steps for the Data Manager API.
SkillAFreshness: A★ 21.5KClaude Code +9 - 0.699score
agent-platform-migrate-from-ai-studio
googleOfficial
Guides agents and users through migrating from Gemini API in Google AI Studio to Gemini Enterprise Agent Platform (formerly Vertex AI).
SkillAFreshness: A★ 21.5KClaude Code +9 - 0.699score
gcloud
googleOfficial
Provides safety-critical validation, guardrails, and data reduction for gcloud CLI operations across Google Cloud Platform (GCP) services and infrastructure.
SkillAFreshness: A★ 21.5KClaude Code +9 - 0.699score
google-cloud-recipe-onboarding
googleOfficial
Guides a developer's first steps on Google Cloud, covering account creation, billing setup, project management, and deploying a first resource.
SkillAFreshness: A★ 21.5KClaude Code +9 - 0.699score
agent-platform-deploy
googleOfficial
Deploy open models or custom weights from Model Garden to Agent Platform endpoints, check the status of an in-progress deployment operation, or clean up…
SkillAFreshness: A★ 21.5KClaude Code +9
Cite this page
agent-platform-inference skill. Agent Mart. https://agentmart.dev/skills/google-agent-platform-inference (last updated 2026-10-24)