[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M787RYTNMWR11G19R8N41F4D":3,"skill-same:01M787RYTNMWR11G19R8N41F4D":73},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":26,"commitSha":27,"skillDirectory":28,"forksCount":14,"repositoryHtmlUrl":29,"repositoryHomepageUrl":30,"ownerHtmlUrl":31,"ownerBlogUrl":32,"ownerDescription":33,"updatedAt":34,"install":35,"resources":48},"01M787RYTNMWR11G19R8N41F4D","agent-platform-deploy",null,"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\u002Fclean 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).","Solizardking\u002Fskillhub-main","Solizardking","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F108096810?v=4","01M786KDB10AYV042N0F9BD5B5","Clawd","01M786NYYXSZK1D05WM8JQPC48",0,"MIT","https:\u002F\u002Fgithub.com\u002FSolizardking\u002Fskillhub-main\u002Fblob\u002Fmain\u002Fpublic\u002Fapi\u002Fskills\u002Fgoogle\u002Fcloud\u002Fagent-platform-deploy\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: agent-platform-deploy\nmetadata:\n  category: AiAndMachineLearning\ndescription: >-\n  Deploy open models or custom weights from Model Garden to Agent Platform\n  endpoints, check deployment status, verify serving endpoints, or clean up\n  resources by undeploying models and deleting endpoints. Use when asked to\n  deploy models on Agent Platform, list available Model Garden models, check if\n  a model is deployable, query deployment cost, troubleshoot deployment errors\n  (like quota limits), or undeploy\u002Fclean up endpoints. Also use when copying\n  and deploying a 1P Tuned Model. Don't use for public Vertex AI deployments\n  (use the `vertex-deploy` skill) or for running model evaluations (use the\n  `agent-platform-eval` skill).\n---\n\n# Agent Platform Model Garden Deploy Skill\n\nThis skill provides instructions for deploying Open Models from Agent Platform\nModel Garden to endpoints, and subsequently undeploying them to clean up\nresources.\n\n## 1P Tuned Model Copy & Deployment\n\nIf 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](references\u002Fcopy_deploy_guide.md).\n\n## Safety & Confirmation Tiers (CRITICAL)\n\nBefore executing any commands on behalf of the user, you MUST adhere to the\nfollowing safety tiers based on the action requested:\n\n1.  **Tier R: Read-only (`list`, `describe`, `list-deployment-config`)**\n    *   **Rule**: No confirmation needed. You may execute these commands immediately to gather information for the user.\n2.  **Tier M: Mutating & Reversible (`deploy`, `undeploy-model`)**\n    *   **Rule**: This requires explicit user confirmation. You MUST present a\n        clear confirmation prompt to the user explaining the proposed command.\n        You MUST wait for their explicit confirmation before executing. For\n        `undeploy-model`, you MUST first verify that the endpoint and deployed\n        model exist; if `describe` or `list` returns a 404 or empty result, you\n        MUST halt and inform the user rather than attempting undeployment.\n3.  **Tier D: Destructive & Irreversible (`delete`)**\n    *   **Rule**: This requires **explicit typed confirmation**. You MUST output\n        a text message explaining the irreversible nature of endpoint or model\n        deletion and asking the user to type \"I confirm\" or \"Yes, delete it\"\n        before executing the deletion command.\n\n## 1. Prerequisites\n\nBefore deploying, ensure you have the correct project and region set. The\ncommands below use placeholder variables `PROJECT_ID` and `LOCATION_ID`.\n\nEnsure you are authenticated:\n\n```bash\ngcloud auth login\ngcloud auth application-default login\ngcloud config set project $PROJECT_ID\n```\n\n## 2. Discovering Deployable Models\n\nYou can list models available in Model Garden and check if they can be\nself-deployed.\n\n```bash\ngcloud ai model-garden models list\n```\n\nTo see what machine types and accelerators are supported for a specific model\n(e.g., `google\u002Fgemma3@gemma-3-27b-it`):\n\n```bash\ngcloud ai model-garden models list-deployment-config \\\n    --model=\"google\u002Fgemma3@gemma-3-27b-it\"\n```\n\n> [!NOTE] Some models, especially Hugging Face models, might require a Hugging\n> Face Access Token for deployment.\n\n> [!TIP] **Model Recommendation Instructions:** If a user asks to deploy a model\n> but **does not specify which one**, you should recommend a model based on\n> their use case (e.g., Llama 3.3 70B for general purpose or Gemma 3 for\n> lightweight tasks). * You **MUST** ensure you are recommending the **latest\n> version** or **popular version** of the suggested model family. * You **MUST**\n> verify the model is currently deployable using `gcloud ai model-garden models\n> list` before suggesting it to the user.\n\n## 3. Deploying a Model\n\n> [!WARNING] Deploying models, especially large ones, consumes significant\n> compute resources and incurs costs.\n>\n> 1. You **MUST** refer to\n>    [Agent Platform prediction pricing](https:\u002F\u002Fcloud.google.com\u002Fproducts\u002Fgemini-enterprise-agent-platform\u002Fpricing?hl=en#prediction-and-explanation)\n>    to calculate a rough cost estimation based on the requested `--machine-type`\n>    and `--accelerator-type` (and count).\n> 2. You **MUST** present this cost estimation to the user and warn them that\n>    this is the **list price**, which may differ from their actual bill due to\n>    potential discounts or reservations.\n> 3. You **MUST ALWAYS** request explicit confirmation from the user agreeing to\n>    the estimated cost before executing any `deploy` command.\n\nTo deploy a model, use the `deploy` command. It is highly recommended to use the\n`--asynchronous` flag for long-running deployments, and then poll the status if\nnecessary.\n\n### Example: Deploying Gemma 3\n\nHere is a typical bash script to deploy a model. You can run this block\ndirectly.\n\n```bash\n#!\u002Fbin\u002Fbash\n# Example script to deploy a model from Model Garden\n\nPROJECT_ID=$(gcloud config get-value project)\nLOCATION_ID=\"us-central1\" # Recommended default region\nMODEL_ID=\"google\u002Fgemma3@gemma-3-27b-it\" # Replace with your chosen model ID\n\necho \"Deploying model $MODEL_ID to project $PROJECT_ID in $LOCATION_ID...\"\n\n# Model Garden can automatically select the required hardware based on the list-deployment-config if hardware params are omitted.\n# Below is a comprehensive command with all supported parameters:\ngcloud ai model-garden models deploy \\\n    --project=$PROJECT_ID \\\n    --region=$LOCATION_ID \\\n    --model=$MODEL_ID \\\n    --machine-type=\"g2-standard-48\" \\\n    --accelerator-type=\"NVIDIA_L4\" \\\n    --accelerator-count=4 \\\n    --endpoint-display-name=\"my-gemma-deployment\" \\\n    --hugging-face-access-token=\"YOUR_HF_TOKEN\" \\\n    --reservation-affinity=\"reservation-affinity-type=specific-reservation,key=compute.googleapis.com\u002Freservation-name,values=my-reservation\" \\\n    --asynchronous\n\necho \"Deployment initiated asynchronously.\"\n```\n\n### Example: Deploying Custom Weights\n\nTo deploy a model using custom weights, you can use the exact same `deploy`\ncommand. Instead of providing the model garden model ID, provide the Google\nCloud Storage (GCS) URI to your custom weights folder in the `--model` flag.\n\n```bash\n#!\u002Fbin\u002Fbash\n# Example script to deploy a model with custom weights from a GCS bucket\n\nPROJECT_ID=$(gcloud config get-value project)\nLOCATION_ID=\"us-central1\"\n# Replace with the gs:\u002F\u002F URI pointing to your custom weights\nMODEL_GCS_URI=\"gs:\u002F\u002Fyour-bucket-name\u002Fpath\u002Fto\u002Fcustom-weights\"\n\necho \"Deploying custom model from $MODEL_GCS_URI to project $PROJECT_ID in $LOCATION_ID...\"\n\ngcloud ai model-garden models deploy \\\n    --project=$PROJECT_ID \\\n    --region=$LOCATION_ID \\\n    --model=$MODEL_GCS_URI \\\n    --machine-type=\"g2-standard-12\" \\\n    --accelerator-type=\"NVIDIA_L4\" \\\n    --endpoint-display-name=\"my-custom-model\" \\\n    --asynchronous\n\necho \"Deployment initiated asynchronously.\"\n```\n\n## 4. Checking Deployment Status\n\nWhen you deploy a model asynchronously using the `--asynchronous` flag, the\n`deploy` command will return an operation ID. You can use this ID to check the\nongoing status of the deployment.\n\n```bash\ngcloud ai operations describe YOUR_OPERATION_ID \\\n    --region=$LOCATION_ID\n```\n\n> [!NOTE] As an agent, you can also offer to check the status of a deployment\n> for the user if they provide an operation ID or if they just initiated the\n> deployment with you.\n\nAlternatively, you can list your endpoints to see if it shows up and check the\nCloud Console under the \"Online prediction\" tab.\n\n```bash\ngcloud ai endpoints list \\\n    --region=$LOCATION_ID\n```\n\nNote: Large models (like Llama 3.1 8B or Gemma 27B) may take 15-20 minutes to\nfully deploy and start serving.\n\n### Verifying Deployment\n\nIf the model is successfully deployed, verify by making a prediction call to\ntest. Because Model Garden models are often deployed to Dedicated Endpoints, you\nshouldn't use `gcloud ai endpoints predict`. Instead, you must fetch the\nendpoint's dedicated DNS name and send a `curl` request.\n\n> [!TIP] Ask the user to try using their own prompt to see the results.\n> Otherwise use the default.\n\nUse the following script:\n\n```bash\n#!\u002Fbin\u002Fbash\nPROJECT_ID=$(gcloud config get-value project)\nLOCATION_ID=\"us-central1\"\nENDPOINT_ID=\"YOUR_ENDPOINT_ID\"\nPROMPT=${1:-\"Explain quantum computing in simple terms.\"}\n\necho \"Fetching dedicated Endpoint DNS...\"\nENDPOINT_URL=$(gcloud ai endpoints describe $ENDPOINT_ID --project=$PROJECT_ID --region=$LOCATION_ID --format=\"value(dedicatedEndpointDns)\")\n\nif [ -z \"$ENDPOINT_URL\" ]; then\n    echo \"Error: Could not retrieve a dedicated endpoint URL. Verify your ENDPOINT_ID.\"\n    exit 1\nfi\n\necho \"Sending prediction request to $ENDPOINT_URL...\"\ncurl -X POST \\\n  -H \"Authorization: Bearer $(gcloud auth print-access-token)\" \\\n  -H \"Content-Type: application\u002Fjson\" \\\n  \"https:\u002F\u002F${ENDPOINT_URL}\u002Fv1beta1\u002Fprojects\u002F${PROJECT_ID}\u002Flocations\u002F${LOCATION_ID}\u002Fendpoints\u002F${ENDPOINT_ID}\u002Fchat\u002Fcompletions\" \\\n  -d '{\n    \"model\": \"'\"$ENDPOINT_ID\"'\",\n    \"messages\": [\n      {\n        \"role\": \"user\",\n        \"content\": \"'\"$PROMPT\"'\"\n      }\n    ]\n  }'\n```\n\n## 5. Undeploying and Cleaning Up\n\nTo stop incurring charges, you must undeploy the model from the endpoint. This\nis a multi-step process if you don't already have the exact endpoint and\ndeployed model IDs.\n\n### Example: Finding and Undeploying a Model\n\nHere is a bash script demonstrating how to find the IDs and undeploy the model.\n\n```bash\n#!\u002Fbin\u002Fbash\n# Example script to undeploy a model\n\nPROJECT_ID=$(gcloud config get-value project)\nLOCATION_ID=\"us-central1\"\n# The model ID used during deployment (without the provider prefix sometimes, or exactly as listed in describe)\n# It's usually easier to find the specific ID via `gcloud ai models list`\n# For this example, let's assume we know the exact Endpoint ID and Deployed Model ID.\n\n# 1. Find the Endpoint ID\necho \"Listing endpoints in $LOCATION_ID:\"\ngcloud ai endpoints list --project=$PROJECT_ID --region=$LOCATION_ID\n\n# (Assuming you extracted ENDPOINT_ID from the above output)\n# ENDPOINT_ID=\"your_endpoint_id\"\n\n# 2. Find the Deployed Model ID\necho \"Listing models in $LOCATION_ID to find model description:\"\ngcloud ai models list --project=$PROJECT_ID --region=$LOCATION_ID\n\n# (Assuming you found the specific MODEL_ID)\n# MODEL_ID=\"your_model_id\"\n# gcloud ai models describe $MODEL_ID --project=$PROJECT_ID --region=$LOCATION_ID\n# (Extract the deployedModelId from the output)\n# DEPLOYED_MODEL_ID=\"your_deployed_model_id\"\n\n# 3. Undeploy\necho \"Undeploying model $DEPLOYED_MODEL_ID from endpoint $ENDPOINT_ID...\"\ngcloud ai endpoints undeploy-model $ENDPOINT_ID \\\n    --project=$PROJECT_ID \\\n    --region=$LOCATION_ID \\\n    --deployed-model-id=$DEPLOYED_MODEL_ID\n\necho \"Model undeployed.\"\n\n# 4. Delete Endpoint\necho \"Deleting endpoint $ENDPOINT_ID...\"\ngcloud ai endpoints delete $ENDPOINT_ID \\\n    --project=$PROJECT_ID \\\n    --region=$LOCATION_ID \\\n    --quiet\necho \"Endpoint deleted.\"\n\n# 5. Delete Model\necho \"Deleting model $MODEL_ID...\"\ngcloud ai models delete $MODEL_ID \\\n    --project=$PROJECT_ID \\\n    --region=$LOCATION_ID \\\n    --quiet\necho \"Model deleted.\"\n```\n\n> [!WARNING] Failing to undeploy a model will result in continuous charges for\n> the allocated compute resources, even if you are not sending prediction\n> requests. Always clean up after testing.\n\n## 6. Troubleshooting\n\n### Deployment Failure: Quota or Resource Exhausted\n\nIf your deployment fails (or stays in an error state) due to `QUOTA_EXCEEDED` or\n`RESOURCE_EXHAUSTED` errors, the specific hardware requested (e.g., `NVIDIA_L4`\nor `g2-standard-24`) is either not available in your chosen region or exceeds\nyour project's quota limits.\n\n**Solution:** Look closely at the error message returned. It will often\nrecommend an alternative region or machine type that currently has availability.\n**Ask the user for confirmation** to retry the deployment using the suggested\n`--region` or `--machine-type` parameters.\n\n> [!WARNING] If the alternative suggestions involve changing the machine type or\n> accelerator, you **MUST** recalculate the estimated cost using\n> [Agent Platform prediction pricing](https:\u002F\u002Fcloud.google.com\u002Fproducts\u002Fgemini-enterprise-agent-platform\u002Fpricing?hl=en#prediction-and-explanation),\n> warn the user about list prices versus actual billing, and get their explicit\n> confirmation for the new cost before retrying the deployment.\n","# Agent Platform Model Garden Deploy Skill\n\nThis skill provides instructions for deploying Open Models from Agent Platform\nModel Garden to endpoints, and subsequently undeploying them to clean up\nresources.\n\n## 1P Tuned Model Copy & Deployment\n\nIf 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](references\u002Fcopy_deploy_guide.md).\n\n## Safety & Confirmation Tiers (CRITICAL)\n\nBefore executing any commands on behalf of the user, you MUST adhere to the\nfollowing safety tiers based on the action requested:\n\n1.  **Tier R: Read-only (`list`, `describe`, `list-deployment-config`)**\n    *   **Rule**: No confirmation needed. You may execute these commands immediately to gather information for the user.\n2.  **Tier M: Mutating & Reversible (`deploy`, `undeploy-model`)**\n    *   **Rule**: This requires explicit user confirmation. You MUST present a\n        clear confirmation prompt to the user explaining the proposed command.\n        You MUST wait for their explicit confirmation before executing. For\n        `undeploy-model`, you MUST first verify that the endpoint and deployed\n        model exist; if `describe` or `list` returns a 404 or empty result, you\n        MUST halt and inform the user rather than attempting undeployment.\n3.  **Tier D: Destructive & Irreversible (`delete`)**\n    *   **Rule**: This requires **explicit typed confirmation**. You MUST output\n        a text message explaining the irreversible nature of endpoint or model\n        deletion and asking the user to type \"I confirm\" or \"Yes, delete it\"\n        before executing the deletion command.\n\n## 1. Prerequisites\n\nBefore deploying, ensure you have the correct project and region set. The\ncommands below use placeholder variables `PROJECT_ID` and `LOCATION_ID`.\n\nEnsure you are authenticated:\n\n```bash\ngcloud auth login\ngcloud auth application-default login\ngcloud config set project $PROJECT_ID\n```\n\n## 2. Discovering Deployable Models\n\nYou can list models available in Model Garden and check if they can be\nself-deployed.\n\n```bash\ngcloud ai model-garden models list\n```\n\nTo see what machine types and accelerators are supported for a specific model\n(e.g., `google\u002Fgemma3@gemma-3-27b-it`):\n\n```bash\ngcloud ai model-garden models list-deployment-config \\\n    --model=\"google\u002Fgemma3@gemma-3-27b-it\"\n```\n\n> [!NOTE] Some models, especially Hugging Face models, might require a Hugging\n> Face Access Token for deployment.\n\n> [!TIP] **Model Recommendation Instructions:** If a user asks to deploy a model\n> but **does not specify which one**, you should recommend a model based on\n> their use case (e.g., Llama 3.3 70B for general purpose or Gemma 3 for\n> lightweight tasks). * You **MUST** ensure you are recommending the **latest\n> version** or **popular version** of the suggested model family. * You **MUST**\n> verify the model is currently deployable using `gcloud ai model-garden models\n> list` before suggesting it to the user.\n\n## 3. Deploying a Model\n\n> [!WARNING] Deploying models, especially large ones, consumes significant\n> compute resources and incurs costs.\n>\n> 1. You **MUST** refer to\n>    [Agent Platform prediction pricing](https:\u002F\u002Fcloud.google.com\u002Fproducts\u002Fgemini-enterprise-agent-platform\u002Fpricing?hl=en#prediction-and-explanation)\n>    to calculate a rough cost estimation based on the requested `--machine-type`\n>    and `--accelerator-type` (and count).\n> 2. You **MUST** present this cost estimation to the user and warn them that\n>    this is the **list price**, which may differ from their actual bill due to\n>    potential discounts or reservations.\n> 3. You **MUST ALWAYS** request explicit confirmation from the user agreeing to\n>    the estimated cost before executing any `deploy` command.\n\nTo deploy a model, use the `deploy` command. It is highly recommended to use the\n`--asynchronous` flag for long-running deployments, and then poll the status if\nnecessary.\n\n### Example: Deploying Gemma 3\n\nHere is a typical bash script to deploy a model. You can run this block\ndirectly.\n\n```bash\n#!\u002Fbin\u002Fbash\n# Example script to deploy a model from Model Garden\n\nPROJECT_ID=$(gcloud config get-value project)\nLOCATION_ID=\"us-central1\" # Recommended default region\nMODEL_ID=\"google\u002Fgemma3@gemma-3-27b-it\" # Replace with your chosen model ID\n\necho \"Deploying model $MODEL_ID to project $PROJECT_ID in $LOCATION_ID...\"\n\n# Model Garden can automatically select the required hardware based on the list-deployment-config if hardware params are omitted.\n# Below is a comprehensive command with all supported parameters:\ngcloud ai model-garden models deploy \\\n    --project=$PROJECT_ID \\\n    --region=$LOCATION_ID \\\n    --model=$MODEL_ID \\\n    --machine-type=\"g2-standard-48\" \\\n    --accelerator-type=\"NVIDIA_L4\" \\\n    --accelerator-count=4 \\\n    --endpoint-display-name=\"my-gemma-deployment\" \\\n    --hugging-face-access-token=\"YOUR_HF_TOKEN\" \\\n    --reservation-affinity=\"reservation-affinity-type=specific-reservation,key=compute.googleapis.com\u002Freservation-name,values=my-reservation\" \\\n    --asynchronous\n\necho \"Deployment initiated asynchronously.\"\n```\n\n### Example: Deploying Custom Weights\n\nTo deploy a model using custom weights, you can use the exact same `deploy`\ncommand. Instead of providing the model garden model ID, provide the Google\nCloud Storage (GCS) URI to your custom weights folder in the `--model` flag.\n\n```bash\n#!\u002Fbin\u002Fbash\n# Example script to deploy a model with custom weights from a GCS bucket\n\nPROJECT_ID=$(gcloud config get-value project)\nLOCATION_ID=\"us-central1\"\n# Replace with the gs:\u002F\u002F URI pointing to your custom weights\nMODEL_GCS_URI=\"gs:\u002F\u002Fyour-bucket-name\u002Fpath\u002Fto\u002Fcustom-weights\"\n\necho \"Deploying custom model from $MODEL_GCS_URI to project $PROJECT_ID in $LOCATION_ID...\"\n\ngcloud ai model-garden models deploy \\\n    --project=$PROJECT_ID \\\n    --region=$LOCATION_ID \\\n    --model=$MODEL_GCS_URI \\\n    --machine-type=\"g2-standard-12\" \\\n    --accelerator-type=\"NVIDIA_L4\" \\\n    --endpoint-display-name=\"my-custom-model\" \\\n    --asynchronous\n\necho \"Deployment initiated asynchronously.\"\n```\n\n## 4. Checking Deployment Status\n\nWhen you deploy a model asynchronously using the `--asynchronous` flag, the\n`deploy` command will return an operation ID. You can use this ID to check the\nongoing status of the deployment.\n\n```bash\ngcloud ai operations describe YOUR_OPERATION_ID \\\n    --region=$LOCATION_ID\n```\n\n> [!NOTE] As an agent, you can also offer to check the status of a deployment\n> for the user if they provide an operation ID or if they just initiated the\n> deployment with you.\n\nAlternatively, you can list your endpoints to see if it shows up and check the\nCloud Console under the \"Online prediction\" tab.\n\n```bash\ngcloud ai endpoints list \\\n    --region=$LOCATION_ID\n```\n\nNote: Large models (like Llama 3.1 8B or Gemma 27B) may take 15-20 minutes to\nfully deploy and start serving.\n\n### Verifying Deployment\n\nIf the model is successfully deployed, verify by making a prediction call to\ntest. Because Model Garden models are often deployed to Dedicated Endpoints, you\nshouldn't use `gcloud ai endpoints predict`. Instead, you must fetch the\nendpoint's dedicated DNS name and send a `curl` request.\n\n> [!TIP] Ask the user to try using their own prompt to see the results.\n> Otherwise use the default.\n\nUse the following script:\n\n```bash\n#!\u002Fbin\u002Fbash\nPROJECT_ID=$(gcloud config get-value project)\nLOCATION_ID=\"us-central1\"\nENDPOINT_ID=\"YOUR_ENDPOINT_ID\"\nPROMPT=${1:-\"Explain quantum computing in simple terms.\"}\n\necho \"Fetching dedicated Endpoint DNS...\"\nENDPOINT_URL=$(gcloud ai endpoints describe $ENDPOINT_ID --project=$PROJECT_ID --region=$LOCATION_ID --format=\"value(dedicatedEndpointDns)\")\n\nif [ -z \"$ENDPOINT_URL\" ]; then\n    echo \"Error: Could not retrieve a dedicated endpoint URL. Verify your ENDPOINT_ID.\"\n    exit 1\nfi\n\necho \"Sending prediction request to $ENDPOINT_URL...\"\ncurl -X POST \\\n  -H \"Authorization: Bearer $(gcloud auth print-access-token)\" \\\n  -H \"Content-Type: application\u002Fjson\" \\\n  \"https:\u002F\u002F${ENDPOINT_URL}\u002Fv1beta1\u002Fprojects\u002F${PROJECT_ID}\u002Flocations\u002F${LOCATION_ID}\u002Fendpoints\u002F${ENDPOINT_ID}\u002Fchat\u002Fcompletions\" \\\n  -d '{\n    \"model\": \"'\"$ENDPOINT_ID\"'\",\n    \"messages\": [\n      {\n        \"role\": \"user\",\n        \"content\": \"'\"$PROMPT\"'\"\n      }\n    ]\n  }'\n```\n\n## 5. Undeploying and Cleaning Up\n\nTo stop incurring charges, you must undeploy the model from the endpoint. This\nis a multi-step process if you don't already have the exact endpoint and\ndeployed model IDs.\n\n### Example: Finding and Undeploying a Model\n\nHere is a bash script demonstrating how to find the IDs and undeploy the model.\n\n```bash\n#!\u002Fbin\u002Fbash\n# Example script to undeploy a model\n\nPROJECT_ID=$(gcloud config get-value project)\nLOCATION_ID=\"us-central1\"\n# The model ID used during deployment (without the provider prefix sometimes, or exactly as listed in describe)\n# It's usually easier to find the specific ID via `gcloud ai models list`\n# For this example, let's assume we know the exact Endpoint ID and Deployed Model ID.\n\n# 1. Find the Endpoint ID\necho \"Listing endpoints in $LOCATION_ID:\"\ngcloud ai endpoints list --project=$PROJECT_ID --region=$LOCATION_ID\n\n# (Assuming you extracted ENDPOINT_ID from the above output)\n# ENDPOINT_ID=\"your_endpoint_id\"\n\n# 2. Find the Deployed Model ID\necho \"Listing models in $LOCATION_ID to find model description:\"\ngcloud ai models list --project=$PROJECT_ID --region=$LOCATION_ID\n\n# (Assuming you found the specific MODEL_ID)\n# MODEL_ID=\"your_model_id\"\n# gcloud ai models describe $MODEL_ID --project=$PROJECT_ID --region=$LOCATION_ID\n# (Extract the deployedModelId from the output)\n# DEPLOYED_MODEL_ID=\"your_deployed_model_id\"\n\n# 3. Undeploy\necho \"Undeploying model $DEPLOYED_MODEL_ID from endpoint $ENDPOINT_ID...\"\ngcloud ai endpoints undeploy-model $ENDPOINT_ID \\\n    --project=$PROJECT_ID \\\n    --region=$LOCATION_ID \\\n    --deployed-model-id=$DEPLOYED_MODEL_ID\n\necho \"Model undeployed.\"\n\n# 4. Delete Endpoint\necho \"Deleting endpoint $ENDPOINT_ID...\"\ngcloud ai endpoints delete $ENDPOINT_ID \\\n    --project=$PROJECT_ID \\\n    --region=$LOCATION_ID \\\n    --quiet\necho \"Endpoint deleted.\"\n\n# 5. Delete Model\necho \"Deleting model $MODEL_ID...\"\ngcloud ai models delete $MODEL_ID \\\n    --project=$PROJECT_ID \\\n    --region=$LOCATION_ID \\\n    --quiet\necho \"Model deleted.\"\n```\n\n> [!WARNING] Failing to undeploy a model will result in continuous charges for\n> the allocated compute resources, even if you are not sending prediction\n> requests. Always clean up after testing.\n\n## 6. Troubleshooting\n\n### Deployment Failure: Quota or Resource Exhausted\n\nIf your deployment fails (or stays in an error state) due to `QUOTA_EXCEEDED` or\n`RESOURCE_EXHAUSTED` errors, the specific hardware requested (e.g., `NVIDIA_L4`\nor `g2-standard-24`) is either not available in your chosen region or exceeds\nyour project's quota limits.\n\n**Solution:** Look closely at the error message returned. It will often\nrecommend an alternative region or machine type that currently has availability.\n**Ask the user for confirmation** to retry the deployment using the suggested\n`--region` or `--machine-type` parameters.\n\n> [!WARNING] If the alternative suggestions involve changing the machine type or\n> accelerator, you **MUST** recalculate the estimated cost using\n> [Agent Platform prediction pricing](https:\u002F\u002Fcloud.google.com\u002Fproducts\u002Fgemini-enterprise-agent-platform\u002Fpricing?hl=en#prediction-and-explanation),\n> warn the user about list prices versus actual billing, and get their explicit\n> confirmation for the new cost before retrying the deployment.\n",{"name":5,"metadata":24,"description":7},{"category":25},"AiAndMachineLearning","main","be3de0244dc1a57e323d8160787ebb40fb64930e","public\u002Fapi\u002Fskills\u002Fgoogle\u002Fcloud\u002Fagent-platform-deploy","https:\u002F\u002Fgithub.com\u002FSolizardking\u002Fskillhub-main","https:\u002F\u002Fskills.x402.wtf","https:\u002F\u002Fgithub.com\u002FSolizardking","https:\u002F\u002Fmusebook.trade","Got a mile high and never came down","2026-10-08 23:20:13",{"source":8,"skillName":5,"commands":36,"prompt":46,"zipAvailable":47},[37,40,43],{"tool":38,"command":39},"npx","npx skills add Solizardking\u002Fskillhub-main --skill agent-platform-deploy",{"tool":41,"command":42},"bunx","bunx skills add Solizardking\u002Fskillhub-main --skill agent-platform-deploy",{"tool":44,"command":45},"pnpm","pnpm dlx skills add Solizardking\u002Fskillhub-main --skill agent-platform-deploy","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FSolizardking\u002Fskillhub-main\u002Fblob\u002Fmain\u002Fpublic\u002Fapi\u002Fskills\u002Fgoogle\u002Fcloud\u002Fagent-platform-deploy\u002FSKILL.md",true,[49,55,59,63,69],{"path":50,"resourceType":51,"resourceTypeDesc":52,"sizeBytes":53,"sourceHtmlUrl":54},"metadata.json","REFERENCE","参考文档",838,"https:\u002F\u002Fgithub.com\u002FSolizardking\u002Fskillhub-main\u002Fblob\u002Fmain\u002Fpublic\u002Fapi\u002Fskills\u002Fgoogle\u002Fcloud\u002Fagent-platform-deploy\u002Fmetadata.json",{"path":56,"resourceType":51,"resourceTypeDesc":52,"sizeBytes":57,"sourceHtmlUrl":58},"references\u002Fcopy_deploy_guide.md",9535,"https:\u002F\u002Fgithub.com\u002FSolizardking\u002Fskillhub-main\u002Fblob\u002Fmain\u002Fpublic\u002Fapi\u002Fskills\u002Fgoogle\u002Fcloud\u002Fagent-platform-deploy\u002Freferences\u002Fcopy_deploy_guide.md",{"path":60,"resourceType":51,"resourceTypeDesc":52,"sizeBytes":61,"sourceHtmlUrl":62},"references\u002Fusage.md",379,"https:\u002F\u002Fgithub.com\u002FSolizardking\u002Fskillhub-main\u002Fblob\u002Fmain\u002Fpublic\u002Fapi\u002Fskills\u002Fgoogle\u002Fcloud\u002Fagent-platform-deploy\u002Freferences\u002Fusage.md",{"path":64,"resourceType":65,"resourceTypeDesc":66,"sizeBytes":67,"sourceHtmlUrl":68},"scripts\u002Fconfig_gcloud_cli.sh","SCRIPT","脚本",1219,"https:\u002F\u002Fgithub.com\u002FSolizardking\u002Fskillhub-main\u002Fblob\u002Fmain\u002Fpublic\u002Fapi\u002Fskills\u002Fgoogle\u002Fcloud\u002Fagent-platform-deploy\u002Fscripts\u002Fconfig_gcloud_cli.sh",{"path":70,"resourceType":51,"resourceTypeDesc":52,"sizeBytes":71,"sourceHtmlUrl":72},"verification.json",2044,"https:\u002F\u002Fgithub.com\u002FSolizardking\u002Fskillhub-main\u002Fblob\u002Fmain\u002Fpublic\u002Fapi\u002Fskills\u002Fgoogle\u002Fcloud\u002Fagent-platform-deploy\u002Fverification.json",[74,81,88,95,102,110],{"skillNo":75,"name":76,"nameZh":6,"description":77,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":78,"categories":79,"keywords":80,"publishedAt":19},"01M78E0TGCAMNPS207BA3G07S7","zkrouter","Self-hosted OpenAI-compatible LLM router — smart tier-based routing, ZK-stamped routing decisions, mode overrides, free OpenRouter at install via the Birth bot. Save 60-80% on inference costs by routing to the cheapest capable model across 12+ OpenRouter models.","https:\u002F\u002Fgithub.com\u002FSolizardking\u002Fskillhub-main\u002Fblob\u002Fmain\u002Fskills\u002Fzkrouter\u002FSKILL.md",[],[],{"skillNo":82,"name":83,"nameZh":6,"description":84,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":85,"categories":86,"keywords":87,"publishedAt":19},"01M78E0R1Z8BDT6EDTHY17MTNB","zk","For custom ZK Solana programs and privacy-preserving applications to prevent double spending. Guide to integrate rent-free nullifier PDAs for double-spend prevention.","https:\u002F\u002Fgithub.com\u002FSolizardking\u002Fskillhub-main\u002Fblob\u002Fmain\u002Fskills\u002Fzk\u002FSKILL.md",[],[],{"skillNo":89,"name":90,"nameZh":6,"description":91,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":92,"categories":93,"keywords":94,"publishedAt":19},"01M78E0P3ZTZ1YWF8MD5MM23QE","zk-omni-messaging","Zero-knowledge omnichain messaging between Robinhood Chain and Solana using CheshireZkOmniMessenger (msgType 4) with nullifier anti-replay and the zk-omni-relayer service.","https:\u002F\u002Fgithub.com\u002FSolizardking\u002Fskillhub-main\u002Fblob\u002Fmain\u002Fskills\u002Fzk-omni-messaging\u002FSKILL.md",[],[],{"skillNo":96,"name":97,"nameZh":6,"description":98,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":99,"categories":100,"keywords":101,"publishedAt":19},"01M78E0JXZ2PNB1896VXAGDBWD","zerion-wallet-data","Use when the user asks to check a wallet's portfolio, token balances, DeFi positions, PnL, transaction history, or NFTs. Provides interpreted on-chain data across 40+ EVM chains and Solana via x402 pay-per-request or API key — no raw RPC decoding needed.","https:\u002F\u002Fgithub.com\u002FSolizardking\u002Fskillhub-main\u002Fblob\u002Fmain\u002Fskills\u002Fzerion-wallet-data\u002FSKILL.md",[],[],{"skillNo":103,"name":104,"nameZh":6,"description":105,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":106,"sourceHtmlUrl":107,"categories":108,"keywords":109,"publishedAt":19},"01M78E0G14FH9GRRTQYMKD5E59","youtube-clipper","YouTube 视频智能剪辑工具。下载视频和字幕，AI 分析生成精细章节（几分钟级别）， 用户选择片段后自动剪辑、翻译字幕为中英双语、烧录字幕到视频，并生成总结文案。 使用场景：当用户需要剪辑 YouTube 视频、生成短视频片段、制作双语字幕版本时。 关键词：视频剪辑、YouTube、字幕翻译、双语字幕、视频下载、clip video","https:\u002F\u002Fgithub.com\u002FSolizardking\u002Fskillhub-main\u002Fblob\u002Fmain\u002Fskills\u002Fyoutube-clipper\u002FLICENSE","https:\u002F\u002Fgithub.com\u002FSolizardking\u002Fskillhub-main\u002Fblob\u002Fmain\u002Fskills\u002Fyoutube-clipper\u002FSKILL.md",[],[],{"skillNo":111,"name":112,"nameZh":6,"description":113,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":114,"categories":115,"keywords":116,"publishedAt":19},"01M78E0C2ZYA99CFFDNB7ZMK5S","yield-optimization","Multi-chain yield optimization via yield.xyz (StakeKit). Discover 2,988+ yield opportunities across 75+ blockchains, build deposit\u002Fwithdrawal transactions with shell scripts, and sign them with a MoonPay wallet. Use when the user wants to earn yield, find the best lending or staking rate, enter\u002Fexit a position, or check portfolio balances.","https:\u002F\u002Fgithub.com\u002FSolizardking\u002Fskillhub-main\u002Fblob\u002Fmain\u002Fskills\u002Fyield-optimization\u002FSKILL.md",[],[]]