agent-platform-model-registry
它能做什么
它会管理 Agent Platform 模型注册表中的模型条目和版本,包括列出详细信息和上传新版本。适合在 Google Cloud 上追踪训练好模型的团队。
适用场景
- ✓当你想查看 Agent Platform 注册表中有哪些模型时。
- ✓当你需要向注册表上传模型的新版本时。
- ✓当你想更新或删除某个模型的元数据时。
技能链接
https://github.com/google/skills/blob/main/skills/cloud/agent-platform-model-registry/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“请列出我注册表中的模型,并显示最新版本的详细信息。”
每周 5 个新技能,1 分钟读完。
工作原理
只读命令会立即运行。上传和更新命令会先显示确切的命令,并在你批准后才运行。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
Agent Platform Model Registry Management
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:
- Tier R: Read-only (
list,describe,get)- No confirmation needed. Execute immediately to gather information.
- 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
uploadorupdatein 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.
- Requires interactive confirmation with 'Yes'/'No' options. The
confirmation prompt MUST contain the exact, literal command string with
all required flags (e.g.
- 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.
- Cost Estimation: Model Registry operations manage catalog metadata and
stored model artifacts without provisioning serving compute or endpoints. Do
NOT call the
estimate_costtool for Model Registry actions, asestimate_costis 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:
- 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 projectorgcloud config get compute/region). If still unresolved or ambiguous, pause and explicitly ask the user for the missing parameter before executing mutating or resource-specific commands. - 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.
- 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. - Region and Project Flags: Always pass
--region=$LOCATION_IDand--project=$PROJECT_IDexplicitly on allgcloud ai modelscommands. Do NOT useglobal.
1. Listing Models (Tier R)
Use this command to discover exi
常见问题
它会不经询问就更改模型吗?
不会。上传和更新前需要你先确认,然后命令才会运行。
它会训练或部署模型吗?
不会。训练和部署不在本技能范围内。
它能管理 Agent Platform 之外的模型吗?
不能。它只针对 Agent Platform 模型注册表中的模型。
详情
作者的原始描述
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.
repo: google/skills
热度
- GitHub 星标
- 22k
- 排名
- #10205
- 许可证
- Apache-2.0
- 更新时间
- 2026/11/2
评论
- …
同一仓库的更多技能
finding-google-skills
22k帮你的智能体为某项设置任务找到合适的 Google 指南,例如托管、数据库、存储、登录或 AI 模型服务。
gcloud
22k帮你的智能体编写并检查 Google Cloud gcloud 命令,在运行任何内容之前查阅准确的语法,避免猜测参数。
google-cloud-recipe-auth
22k引导你的智能体了解 Google Cloud 的身份与访问管理,包括人员和服务如何登录,以及它们各自获得哪些权限。
google-cloud-recipe-onboarding
22k带领新开发者完成在 Google Cloud 上的第一步,包括选择项目、关联计费,以及部署第一个资源。