hermesonehq/hermes-registry/agent-platform-deploy
Claude Code and agent skill by hermesonehq/hermes-registry
- community
Checking that the SKILL.md file is still in the repository.
Deploy open models or custom weights from Model Garden to Agent Platform endpoints, check deployment status, verify serving endpoints, or clean up resources by undeploying models and deleting endpoints. Use when asked to deploy models on Agent Platform, list available Model Garden models, check if a model is deployable, query deployment cost, troubleshoot deployment errors (like quota limits), or undeploy/clean up endpoints. Also use when copying and deploying a 1P Tuned Model. Don't use for public Vertex AI deployments (use the `vertex-deploy` skill) or for running model evaluations (use the `agent-platform-eval` skill).
Install
npx vskill@latest install hermesonehq/hermes-registry/agent-platform-deploySKILL.md
Agent Platform Model Garden Deploy Skill
This skill provides instructions for deploying Open Models from Agent Platform Model Garden to endpoints, and subsequently undeploying them to clean up resources.
1P Tuned Model Copy & Deployment
If you need to copy a 1P (First-Party) Tuned Model from a source project to a destination region or project and deploy it to a newly created endpoint, refer to the 1P Tuned Model Copy & Deployment Guide.
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`, `list-deployment-config`)
- Rule: No confirmation needed. You may execute these commands immediately to gather information for the user.
- Tier M: Mutating & Reversible (`deploy`, `undeploy-model`)
- Rule: This requires explicit user confirmation. You MUST present a
clear confirmation prompt to the user explaining the proposed command. You MUST wait for their explicit confirmation before executing. For undeploy-model, you MUST first verify that the endpoint and deployed model exist; if describe or list returns a 404 or empty result, you MUST halt and inform the user rather than attempting undeployment.
- Tier D: Destructive & Irreversible (`delete`)
- Rule: This requires explicit typed confirmation. You MUST output
a text message explaining the irreversible nature of endpoint or model deletion and asking the user to type "I confirm" or "Yes, delete it" before executing the deletion command.
1. Prerequisites
Before deploying, ensure you have the correct project and region set. The commands below use placeholder variables PROJECT_ID and LOCATION_ID.
Ensure you are authenticated:
2. Discovering Deployable Models
You can list models available in Model Garden and check if they can be self-deployed.
To see what machine types and accelerators are supported for a specific model (e.g., google/gemma3@gemma-3-27b-it):
[!NOTE] Some models, especially Hugging Face models, might require a HuggingFace Access Token for deployment.
[!TIP] Model Recommendation Instructions: If a user asks to deploy a modelbut does not specify which one, you should recommend a model based ontheir use case (e.g., Llama 3.3 70B for general purpose or Gemma 3 forlightweight tasks). * You MUST ensure you are recommending the **latestversion or popular version of the suggested model family. * You MUST**verify the model is currently deployable using `gcloud ai model-garden modelslist` before suggesting it to the user.
3. Deploying a Model
[!WARNING] Deploying models, especially large ones, consumes significantcompute resources and incurs costs.1. You MUST refer toto calculate a rough cost estimation based on the requested--machine-typeand--accelerator-type(and count).2. You MUST present this cost estimation to the user and warn them thatthis is the list price, which may differ from their actual bill due topotential discounts or reservations.3. You MUST ALWAYS request explicit confirmation from the user agreeing tothe estimated cost before executing anydeploycommand.
To deploy a model, use the deploy command. It is highly recommended to use the --asynchronous flag for long-running deployments, and then poll the status if necessary.
Example: Deploying Gemma 3
Here is a typical bash script to deploy a model. You can run this block directly.
Example: Deploying Custom Weights
To deploy a model using custom weights, you can use the exact same deploy command. Instead of providing the model garden model ID, provide the Google Cloud Storage (GCS) URI to your custom weights folder in the --model flag.
4. Checking Deployment Status
When you deploy a model asynchronously using the --asynchronous flag, the deploy command will return an operation ID. You can use this ID to check the ongoing status of the deployment.
[!NOTE] As an agent, you can also offer to check the status of a deploymentfor the user if they provide an operation ID or if they just initiated thedeployment with you.
Alternatively, you can list your endpoints to see if it shows up and check the Cloud Console under the "Online prediction" tab.
Note: Large models (like Llama 3.1 8B or Gemma 27B) may take 15-20 minutes to fully deploy and start serving.
Verifying Deployment
If the model is successfully deployed, verify by making a prediction call to test. Because Model Garden models are often deployed to Dedicated Endpoints, you shouldn't use gcloud ai endpoints predict. Instead, you must fetch the endpoint's dedicated DNS name and send a curl request.
[!TIP] Ask the user to try using their own prompt to see the results.Otherwise use the default.
Use the following script:
5. Undeploying and Cleaning Up
To stop incurring charges, you must undeploy the model from the endpoint. This is a multi-step process if you don't already have the exact endpoint and deployed model IDs.
Example: Finding and Undeploying a Model
Here is a bash script demonstrating how to find the IDs and undeploy the model.
[!WARNING] Failing to undeploy a model will result in continuous charges forthe allocated compute resources, even if you are not sending predictionrequests. Always clean up after testing.
6. Troubleshooting
Deployment Failure: Quota or Resource Exhausted
If your deployment fails (or stays in an error state) due to QUOTA_EXCEEDED or RESOURCE_EXHAUSTED errors, the specific hardware requested (e.g., NVIDIA_L4 or g2-standard-24) is either not available in your chosen region or exceeds your project's quota limits.
Solution: Look closely at the error message returned. It will often recommend an alternative region or machine type that currently has availability. Ask the user for confirmation to retry the deployment using the suggested --region or --machine-type parameters.
[!WARNING] If the alternative suggestions involve changing the machine type oraccelerator, you MUST recalculate the estimated cost usingwarn the user about list prices versus actual billing, and get their explicitconfirmation for the new cost before retrying the deployment.
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/mlops/agent-platform-deploy/SKILL.md
Popularity
- Repository stars
- 91
- Repository forks
- 17
- 7-day trend score
- 23
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/hermesonehq/hermes-registry/agent-platform-deploy)