Skip to main content
BuildOfficialCertifiedReviewed Jul 21, 2026

Agent Platform Model Registry

Agent Platform Model Registry Management. Use when you need to upload, list, describe, update, or delete machine learning models (and their versions) in the Agent Platform Model Registry. Don't use for model training, model deployment to endpoints, or managing non-Agent Platform models.

v1.0.5New

Install this skill

No account required. Pick your tool, or use the command that detects it for you.

Run in your terminal. It detects your AI tool.

npx @skills-hub-ai/cli install google-cloud-skills-agent-platform-model-registry
Or get the file:
Browse all CLI commands →
Manual setup by platform

Claude Code

~/.claude/skills/google-cloud-skills-agent-platform-model-registry/SKILL.md

Setup guide →

Signing

SignedSLSA L2
Signed by
skills-hub.ai distributor
Method
Distributor-signed by skills-hub.aiSigned with the skills-hub.ai Ed25519 distributor key over this exact slug, version and content. Check it with `npx @skills-hub-ai/cli verify`.
Key
skills-hub-ed25519-2026-11
Signed
0Save

Instructions

Agent Platform Model Registry Management

Attribution

MUST READ: Before executing any gcloud, REST API, or MCP command, you MUST
read Usage Attribution. For commands executed
directly in the terminal (never in generated scripts, Terraform, or user code),
prefix gcloud with CLOUDSDK_METRICS_REQUEST_ATTRIBUTION and append the
attribution suffix to User-Agent headers:

CLOUDSDK_METRICS_REQUEST_ATTRIBUTION="agent-skills/1.0 (skill:agent-platform-model-registry)"
User-Agent: <existing_user_agent> agent-skills/1.0 (skill:agent-platform-model-registry)

Overview

This skill provides instructions for managing machine learning models in the
Agent Platform Model Registry. It covers listing models, describing model
details, uploading new models or versions, updating metadata, and deleting
models.

Safety & Confirmation Tiers (CRITICAL)

Before executing any commands on behalf of the user, you MUST adhere to the
following safety tiers based on the action requested:

  1. Tier R: Read-only (list, describe, get)
    • No confirmation needed. Execute immediately to gather information.
  2. Tier M: Mutating & Reversible (upload, update)
    • Requires interactive confirmation with 'Yes'/'No' options. The
      confirmation prompt MUST contain the exact, literal command string with
      all required flags (e.g. --region=us-central1, --project=...,
      --display-name="...") — natural-language paraphrases are NOT
      sufficient.
    • Same-turn restriction: NEVER execute the command in the same turn as
      receiving the request or presenting the confirmation prompt! In Turn 1,
      you MUST ONLY present the interactive confirmation card with the exact,
      literal command string. Stop and wait for the user's reply; only execute
      in the subsequent turn after explicit 'Yes' / approval. Executing
      upload or update in Turn 1 without prior confirmation is strictly
      prohibited.
    • Mid-flow parameter changes / rejection: If the user rejects the
      prompt or changes any parameters (e.g., display name, description,
      parent model), do NOT execute the old command. Adapt immediately and
      present a NEW confirmation prompt with the updated literal command and
      wait for approval.
  3. Tier D: Destructive & Irreversible (delete)
    • Requires explicit typed confirmation (e.g. "I confirm" or "Yes,
      delete it"). Ask for confirmation IMMEDIATELY — before any pre-flight
      checks (don't check if the model is deployed to endpoints first).
    • Same-turn restriction: NEVER execute in the same turn as asking for
      typed confirmation. Wait for the user to reply in a new turn.
    • Mid-flow target changes: If the user changes their mind (e.g.,
      "delete the second model instead"), do NOT delete the first model.
      Present a fresh typed confirmation prompt for the newly selected model
      ID and wait for approval.
  4. Cost Estimation: Model Registry operations manage catalog metadata and
    stored model artifacts without provisioning serving compute or endpoints. Do
    NOT call the estimate_cost tool for Model Registry actions, as
    estimate_cost is designed for serving infrastructure (endpoints/batch
    prediction) and will return an error if called for registry operations. If
    including cost in the preview card, state that Model Registry operations
    incur no serving compute charges ($0.00 compute charges; standard Cloud
    Storage pricing applies to model artifacts).

Phase 0: Environment Setup & Parameter Resolution

CRITICAL: Before running any commands, verify that all necessary parameters
are known:

  1. Missing Region or Project: Follow the base environment grounding policy:
    if a session location or project is already set from prior turns, reuse it
    without re-asking. If missing from both prompt and session context, at most
    one direct lookup is permitted (e.g. gcloud config get project or gcloud config get compute/region). If the user refers to "my project" or their
    configured environment and compute/region is (unset), fall back to
    us-central1 per base environment grounding; otherwise, if the region is
    still unresolved, pause and explicitly ask the user for the missing
    parameter before executing regional commands.
  2. Missing Model ID: If the user asks to update or describe a model without
    providing the model ID, pause and ask the user for the model ID, or offer to
    list models first to help them find it.
  3. Placeholder Substitution: If the user's requested display name contains
    a placeholder token (e.g., <unique-suffix>, [suffix], or <timestamp>),
    generate a short unique alphanumeric string or timestamp and substitute it
    cleanly. Never pass unexpanded literal placeholder tokens to the API.
  4. Region and Project Flags: Always pass --region=$LOCATION_ID and
    --project=$PROJECT_ID explicitly on all gcloud ai models commands. Do
    NOT use global.

1. Listing Models (Tier R)

Use this command to discover existing models in the registry and retrieve their
numeric IDs. No confirmation is required.

Always pass --limit. A project can hold thousands of models, and an unbounded
list pages through every one of them, which can take over a minute and return
hundreds of KB of output. Results come back most recently updated first, so
--limit=50 returns the newest models in a few seconds.

gcloud ai models list \
    --region=$LOCATION_ID \
    --project=$PROJECT_ID \
    --limit=50
  • Keep --limit=50 when the user asks to list "all" models, and say the reply
    shows the 50 most recently updated models. Do NOT page through the whole
    registry (with gcloud or Model.list()) unless the user asks for a count or
    the complete inventory; offer to look up a specific model by display name
    instead.

  • If the user pushes back and asks for the complete inventory, drop --limit
    and print one compact line per model with
    --format="value(name.basename(),displayName)". Warn that this can take a
    minute or more in a large project.

  • If the user asks how many models there are, count the IDs without printing
    the list. There is no count API, so this still pages through every model
    (about a minute per 1,500 models); tell the user it may take a while. Do not
    run a --limit list first.

    gcloud ai models list \
        --region=$LOCATION_ID \
        --project=$PROJECT_ID \
        --format="value(name)" | wc -l
    
  • Do NOT use --filter or --sort-by to narrow the list. gcloud applies both
    client-side after fetching every page, so they are as slow as an unbounded
    list.

  • To find a model by display name (e.g. to confirm an upload or deletion),
    filter on the server with the Python SDK:

python3 - <<'PY'
from google.cloud import aiplatform

aiplatform.init(project='<PROJECT_ID>', location='<LOCATION_ID>')
for m in aiplatform.Model.list(filter='display_name="<DISPLAY_NAME>"'):
    print(m.name, m.display_name, m.create_time)
PY

2. Describing a Model (Tier R)

Retrieve the full metadata for a specific model or version. No confirmation is
required.

gcloud ai models describe $MODEL_ID \
    --region=$LOCATION_ID \
    --project=$PROJECT_ID

To target a specific version:

gcloud ai models describe ${MODEL_ID}@${VERSION_ID} \
    --region=$LOCATION_ID \
    --project=$PROJECT_ID

3. Uploading a Model (Tier M)

Register a new model or a new version of an existing model. This is a
long-running operation. Action requires an inline confirmation card before
proceeding.

Example: Uploading a Custom Model

gcloud ai models upload \
    --region=$LOCATION_ID \
    --project=$PROJECT_ID \
    --display-name="<DISPLAY_NAME>" \
    --container-image-uri="<CONTAINER_IMAGE_URI>" \
    [--artifact-uri="<ARTIFACT_URI>"]

[!IMPORTANT]

This is a Tier M operation — see [Safety & Confirmation Tiers] above.

  • If the user specifies "with no artifact URI", omit --artifact-uri.
  • If registering a new version of an existing model, include
    --parent-model=$PARENT_MODEL_ID.
  • Substitute <DISPLAY_NAME> with the exact name requested by the user.

4. Updating a Model (Tier M)

Update metadata fields like display name or description. Note that gcloud ai models does NOT have an update subcommand. Instead, model metadata updates
MUST be executed using the Vertex AI Python SDK
(google.cloud.aiplatform.Model).

Action requires an inline confirmation card containing the exact script before
proceeding.

python3 -c "
from google.cloud import aiplatform

aiplatform.init(project='$PROJECT_ID', location='$LOCATION_ID')
model = aiplatform.Model('$MODEL_ID')
model.update(display_name='<NEW_DISPLAY_NAME>', description='<NEW_DESCRIPTION>')
print(f'Successfully updated model: {model.resource_name}')
"

[!IMPORTANT]

This is a Tier M operation — see [Safety & Confirmation Tiers] above.

  • If only updating the display name, pass
    model.update(display_name='<NEW_DISPLAY_NAME>').
  • If only updating the description, pass
    model.update(description='<NEW_DESCRIPTION>').
  • The confirmation card MUST display the exact python command snippet above.
    NEVER execute in Turn 1; wait for explicit user approval.

5. Deleting a Model (Tier D)

Permanently delete a Model and all its versions. Action requires explicit
typed confirmation before proceeding.

gcloud ai models delete $MODEL_ID \
    --region=$LOCATION_ID \
    --project=$PROJECT_ID

[!WARNING]

This operation is irreversible. All model versions must be undeployed from all
Endpoints before deletion.

6. Searching Publisher Models (Tier R)

Before generating interactive model details, you MUST verify the model_id by
searching Model Garden Publisher Models. No confirmation is required.

Use the gcloud ai CLI to search for matching publisher models.

gcloud ai model-garden models list --model-filter="<model_name_or_query>" --full-resource-name --format=json

This will return a list of matching models. Extract the exact name field from
the result (e.g., publishers/google/models/gemma2 or
publishers/qwen/models/qwen3-coder) to use as the verified model_id.

This skill doesn’t include stateful context yet, instructions only. Learn about stateful skills.

Security

Loading security scan...

Reviews (0)

Browse all →
google-cloud-storage-bucket-architectCreates Cloud Storage on Google Cloud (also known colloquially as GCS) buckets. Analyzes the workload (sensitive data, media hosting, ingestion, web hosting, archiving, backup, logging, analytics, AI/ML, or general-purpose), validates project-level security settings, and designs a secure-by-default, cost-effective configuration (location, storage class, uniform bucket-level access, public access prevention, soft delete, lifecycle) before creating it. Use whenever a user wants to create, make, set up, provision, or spin up a bucket, or needs object storage for an app, service, pipeline, or dataset — even a "simple" or "default" bucket, or when bucket creation is one step in a larger workflow. Outputs or executes the creation via gcloud, the JSON/REST API, Terraform, or SDK client libraries (C++, Java, Python, Go). Don't use for anything other than creating new buckets — for uploads, downloads, access changes, or reconfiguring existing buckets, use google-cloud-storage-basics.1 installsgke-cost-analysisAnswer natural language questions and perform analysis on GKE cluster and workload costs using BigQuery billing exports, cost allocation data, and live cluster monitoring metrics. Use when querying GKE costs across projects, namespaces, or workloads, analyzing billing reports in BigQuery (`bq`), checking cluster cost budgets (`gcloud billing`), or diagnosing cost drivers like pod requests vs. actual utilization (`kubectl top`). Don't use for applying cost optimization changes, creating rightsizing manifests (VPA/MPA), or selecting ComputeClasses (use gke-cost-optimization instead).1 installsmanaged-airflow-migrationsProvides guidance for migrating Apache Airflow DAGs in Managed Service for Apache Airflow (MSAA; formerly Cloud Composer). Covers migration to Airflow 2.11.1 (MSAA Gen 2 and 3) and Airflow 3 (MSAA Gen 3), including environment inspection, GCS download/upload and scanning patterns for breaking changes. Use when migrating the DAG code to newer Airflow version. Don't use when checking DAG run failures unrelated to code migration.1 installsfirebase-basicsProvides foundational Firebase CLI setup, CLI installation, version checks (`firebase-tools@latest --version`), CLI login (including --no-localhost), project creation, project selection (`firebase use`), and app config file downloads (`google-services.json`, `GoogleService-Info.plist`). Use ONLY for CLI login, project creation/switching, or downloading app config files. Don't use for Firebase Hosting deploy, Firestore, Auth, App Hosting, Data Connect, Crashlytics, or Remote Config.1 installsgoogle-cloud-solution-rag-enterprise-search-gke-sqldbDiscovers requirements, and generates architectural, design, and deployment guidance for a retrieval-augmented generation (RAG)-capable enterprise search system in Google Cloud. Use when users need a vector-enabled SQL database as the store and index for the embedding vectors, an open model and open-source inferencing framework, and Kubernetes containers to host all the application components. DON'T use this skill for fully-managed RAG, or SaaS search services, or when a non-SQL vector database is required.1 installsbigtable-basicsAssists in provisioning instances/tables, designing performant schemas, and querying data in Bigtable. Use when designing Bigtable row keys, configuring column families, writing SQL queries or client library code (Java, Go, Python) for Bigtable, or diagnosing performance/hotspotting issues. Also use when provisioning Bigtable clusters using gcloud or cbt CLIs. Don't use for generic Cloud SQL administration.1 installs

More from Google Cloud Skills

View source →
spanner-basicsAssists in provisioning instances and databases, designing performant schemas, and querying data in Cloud Spanner on Google Cloud. Use when designing primary keys, writing SQL queries or client library code, or diagnosing performance issues.4 installsgoogle-ads-api-mcp-setupGuides developers through downloading, configuring, and installing the official open-source Google Ads MCP Server. Use this skill when a user wants to connect their AI assistant (such as Gemini, Claude Code, or Cursor) to their Google Ads account to query campaigns or retrieve reporting metrics using natural language.4 installsgke-workload-securityAudits, configures, and hardens workload-level security controls for Google Kubernetes Engine (GKE) applications and namespaces. Covers running security audits (`audit_cluster.sh`), enforcing Network Policies (default-deny and Dataplane V2 logging), isolating high-risk pods inside GKE Sandbox (`gVisor`), enforcing Pod Security Standards (`restricted` labeling) and pod securityContext, and mounting Secret Manager secrets via CSI (`SecretProviderClass`). Use when auditing workload security posture, isolating namespaces, applying pod security standards, or configuring network policies and secret volume mounts. Don't use for Workload Identity (use gke-workload-identity), cluster-wide control plane security, RBAC hardening, Binary Authorization, Shielded Nodes, or enabling platform-level GKE add-ons (use gke-platform-security instead).3 installsgke-upgradesPlans, executes, and validates Google Kubernetes Engine (GKE) cluster upgrades and maintenance operations for both Standard and Autopilot clusters. Produces upgrade plans, pre/post-upgrade checklists, maintenance runbooks with gcloud commands, release channel strategy, and troubleshooting guides. Handles node pool upgrade strategies (surge, blue-green), version compatibility, PDB management, and workload-specific concerns (stateful, GPU, operators). Use this skill whenever the user mentions GKE upgrades, Kubernetes version bumps, node pool maintenance, GKE patching, cluster version management, release channel selection, maintenance windows, surge upgrades, stuck upgrades, or any GKE lifecycle management task — even casual mentions like "we need to upgrade our clusters" or "plan our next GKE maintenance" or "our upgrade is stuck." Don't use for GKE cluster creation, application onboarding, general networking/routing setup, or security policy configurations (use gke-basics or relevant GK2 installsgoogle-cloud-recipe-networking-observabilityInvestigates Google Cloud networking issues by analyzing logs, metrics, and diagnostics. Use when investigating VPC Flow Logs, NAT, firewall, or threat logs, querying latency and throughput metrics, or running Connectivity Tests for path diagnostics.2 installsgke-manifest-generationGenerates and updates secure, production-ready Kubernetes YAML manifests optimized for GKE Autopilot and GKE Standard clusters. Use when creating or modifying GKE deployment manifests, configuring container security contexts, setting CPU/memory resource limits, defining readiness/liveness/startup probes, mounting secrets and volumes, configuring GKE Gateway API routes, targeting Spot VMs, or deploying AI model inference workloads (vLLM, TGI, Gemma). Don't use for live cluster operations, pod troubleshooting (use gke-workload-troubleshooting), or cluster infrastructure provisioning (use gke-cluster-creation).2 installs

More Build skills

Browse category →
senior-frontendBuild and review React, Next.js, TypeScript or Tailwind frontends: components, scaffolding, performance and bundle size. Use whenever the user wants a new component or app, a page feels slow, the bundle is too big, or asks for a frontend code review.647 installsui-design-systemUse when building a design system: tokens, component docs, responsive scales or developer handoff. Generates tokens with design_token_generator.py.549 installsfrontend-designGuidance for distinctive, intentional visual design when building new UI or reshaping an existing one. Helps with aesthetic direction, typography, and making choices that don't read as templated defaults.358 installssenior-backendBuild and fix backend services: REST or GraphQL APIs, auth, microservices, PostgreSQL queries, migrations and load tests. Use whenever the user's API is slow or broken, needs login or auth added, a schema change, or a new endpoint or service scaffolded.258 installsself-improving-agentCurate what the agent has learned into durable project knowledge. Reviews Claude Code auto-memory (MEMORY.md and its topic files) for learnings worth keeping, promotes proven ones into CLAUDE.md or .claude/rules/, records a correction as a lesson that persists across sessions, prunes stale or duplicate entries, and turns a recurring fix into a reusable skill. Use whenever the user asks what you have learned or saved about the project, which memories should become permanent rules, to remember a lesson or stop repeating a mistake, or to clean up, audit or check memory health.183 installsusing-superpowersUse when starting any conversation - establishes how to find and use skills, requiring skill invocation before ANY response including clarifying questions147 installs

Frequently asked questions about agent-platform-model-registry

What does the agent-platform-model-registry skill do?

Agent Platform Model Registry Management. Use when you need to upload, list, describe, update, or delete machine learning models (and their versions) in the Agent Platform Model Registry. Don't use for model training, model deployment to endpoints, or managing non-Agent Platform models. It's a reusable SKILL.md instruction set that loads into your AI coding assistant on demand, no prompt engineering, no copy-pasting every session.

How do I install the agent-platform-model-registry skill?

Run `npx @skills-hub-ai/cli install google-cloud-skills-agent-platform-model-registry` from your terminal. The CLI writes the SKILL.md to the correct location for your AI tool (e.g. ~/.claude/skills/google-cloud-skills-agent-platform-model-registry/ for Claude Code or ~/.cursor/skills/ for Cursor with --target cursor) and adds it to your project's .skills.json lockfile.

Which AI tools does agent-platform-model-registry work with?

agent-platform-model-registry runs in Claude Code. It follows the open Agent Skills standard (SKILL.md), so the same skill works in every supported tool without modification.

Is the agent-platform-model-registry skill free?

Yes. Every skill on skills-hub.ai is free and open-source. There are no premium tiers, paywalls, or usage limits. You only pay for whatever AI assistant you're already using.

How do I use agent-platform-model-registry after installing it?

In Claude Code, type `/google-cloud-skills-agent-platform-model-registry` (or whatever slash command the skill registers) and the AI follows the skill's instructions immediately. You can also reference it by name in natural language, your AI loads the skill into context when relevant.

Can I share the agent-platform-model-registry skill with my team?

Yes. Commit your project's .skills.json lockfile and teammates run `npx @skills-hub-ai/cli install` (no args) to install every skill at the exact version you pinned. Organization-scoped installs work via skills-hub.ai organizations.