agent-platform-tuning
Agent Platform Model Tuning
Install / Use
npx skills add google/skills --skill agent-platform-tuningInstalls into whichever agent you are using.
SKILL.md
Installable skill definition
Quality Score
Category
OperationsSupported Platforms
Tags
Our assessment of agent-platform-tuning
agent-platform-tuning scores 87/100 on our quality scale, 201st of 353 Operations skills we index.
Its SKILL.md is 33 KB long, well organised into 27 sections with 10 code examples: a thorough specification that gives an agent plenty to work with.
With 20,340 GitHub stars, it is one of the more widely adopted skills in the catalogue.
Maintenance, license and trust
- The repository was last updated 4 days ago, so agent-platform-tuning is actively maintained.
- It is released under the Apache-2.0 license, a permissive license that allows use, modification and commercial use with attribution.
- Its trust signals score 100/100, with no cautions. These come from repository metadata, not a code audit — read the skill file before letting an agent act on it.
Safety scan
No issues foundOur scan of the whole file found no instruction hijacking, hidden characters, credential access, data exfiltration or destructive commands. An AI review of the same text found nothing harmful.
AI review by kimi-k2.7-code on 2026-09-27. Automated pattern scan on 2026-09-27. It catches known dangerous patterns, not every risk — read a skill before letting an agent act on it.
agent-platform-tuning compared with similar skills
All 4 of these similar skills score higher than agent-platform-tuning; compare them before choosing.
| Skill | Score | Stars | Updated | Format |
|---|---|---|---|---|
| agent-platform-tuning (this skill)by google | 87 | 20.3k | 4d ago | SKILL.md |
| algorithmic-artby anthropics | 100 | 177.9k | 5d ago | SKILL.md |
| pptxby anthropics | 100 | 177.9k | 5d ago | SKILL.md |
| designby nextlevelbuilder | 100 | 130.2k | 6d ago | SKILL.md |
| ui-ux-pro-maxby nextlevelbuilder | 100 | 130.2k | 6d ago | SKILL.md |
Frequently asked questions
- How do I install agent-platform-tuning?
- Run
npx skills add google/skills --skill agent-platform-tuning. The install tabs above show the steps for each supported agent. - Which AI agents does agent-platform-tuning work with?
- It is written for Gemini CLI, as a SKILL.md file. Other agents that read the same format can often use it too.
- Is agent-platform-tuning safe to use?
- Our scan of the whole file found no instruction hijacking, hidden characters, credential access, data exfiltration or destructive commands. An AI review of the same text found nothing harmful. It is Apache-2.0-licensed and scores 100/100 on trust signals. Skills are instructions an agent will follow, so read the file before installing it and do not approve commands you do not understand.
- Is agent-platform-tuning still maintained?
- The repository was last updated 4 days ago, so agent-platform-tuning is actively maintained.
Skill content
View source on GitHubname: agent-platform-tuning
metadata:
version: "1.0.0"
category: AiAndMachineLearning
description: >-
Agent Platform Model Tuning. Use when you need to fine-tune open models
or Gemini models using Agent Platform infrastructure. Don't use for model
training outside Agent Platform, model deployment to endpoints (use
agent-platform-deploy), or managing serving endpoints (use
agent-platform-endpoint-management).
Agent Platform Model Tuning
Overview
This skill provides procedural knowledge for fine-tuning Large Language Models (both Open Models and Gemini Models) using Agent Platform's tuning service. It covers the entire lifecycle from environment setup and data preparation to job configuration, monitoring, and deployment.
Workflow Decision Tree
-
Project & Region Verification Check: Has the user provided the Google Cloud project and region?
- No → STOP tool execution immediately. Do NOT run verification
commands (
gcloud services list,gcloud projects get-iam-policy), do NOT create resources, and do NOT begin dataset preparation. Prompt the user to specify or confirm the project and region (e.g. "Could you please specify which Google Cloud project and region you would like to use?").- If the user's inquiry is solely to check or verify environment readiness (APIs, IAM, service agents), ask ONLY for the project and region. Do NOT ask for the model category.
- If the user is requesting a tuning workflow and also omitted whether they want to tune an Open Model or a Gemini Model, you may ask both questions together.
- Yes → Proceed.
- No → STOP tool execution immediately. Do NOT run verification
commands (
-
Model Category Identification: Has the user explicitly stated whether they want to tune an Open Model or a Gemini Model?
- No →
- EXCEPTION for Environment Verification Inquiries: If the user is only asking to check or verify that the environment, APIs, IAM permissions, or service agents are ready for tuning, do NOT ask for the model category. Verify the environment once the project and region are known and confirm readiness.
- Otherwise, STOP tool execution. Ask the user if they want to tune an Open Model or a Gemini Model. General Setup and Prerequisite Inquiries (e.g., "What environment setup is needed?"): If the user asks what environment setup, prerequisites, APIs, or permissions are needed to start fine-tuning, and has not yet chosen a model category:
- Describe the setup requirements (APIs, IAM permissions/service agents, and Python SDKs).
- Regarding Cloud Storage: state that an existing Cloud Storage bucket
is needed for datasets and artifacts (e.g.,
gs://<existing-bucket>). CRITICAL: Do NOT instruct the user to create a bucket, do NOT output agcloud storage buckets createcommand in setup instructions, and do NOT assume a non-existent bucket exists (users may not have bucket creation permissions and will provide their own existing bucket). - You MUST explicitly conclude your response by asking whether they want to tune an Open Model or a Gemini Model. Never provide setup instructions without asking for the model category choice. (Note: if they ask to actively check or verify a project whose ID or region is missing, ask for the project and region first without running tool calls).
- If the user provides a specific tuning purpose, you should recommend
three models: one Open Model, one Gemini Model, and a third generally
recommended choice. Briefly list the pros and cons of each (e.g., Gemini
models might be more expensive, etc.). CRITICAL: You must read
references/models.mdduring this step and only recommend models explicitly listed in that catalog. Never recommend uncataloged or unsupported models likegoogle/gemma-2-9b-it,gemma-2, orMistral— only recommend supported models such as Gemma 3 (google/gemma3@gemma-3-12b-it), Qwen 3 (qwen/qwen3@qwen3-8b), or Llama 3.1 (meta/llama3_1@llama-3.1-8b). For Gemini models, ONLY recommendgemini-2.5-flash(recommended for general/coding/chat) orgemini-2.5-pro. Never recommendgemini-1.5-flash-002,gemini-1.5-pro-002, orgemini-1.5-flash, which are deprecated and unsupported by the tuning service. If the user names a model that is not in the catalog, follow the fallback rule in that catalog. Do not proceed with model configuration until the category is confirmed. - Yes → Proceed.
- No →
-
Environment Check: Has the environment (Auth, APIs, IAM, Venv) been initialized?
- No → Go to Phase 0: Environment & IAM Setup.
- Yes → Proceed.
-
Dataset Status: Is the dataset ready in JSONL format, is its structure valid for tuning, and is it uploaded to Google Cloud Storage?
- **No** → Go to [Phase 1: Dataset Preparation & Upload](#phase-1). - **Yes** → Proceed. -
Column Selection Confirmation: Have you presented the columns to the user and confirmed the mapping?
- No → STOP. You must show samples and get user confirmation on column mapping as described in Phase 1.0 before proceeding.
- Yes → Proceed.
-
Configuration: Has the user provided the target model and hyperparameters, or explicitly agreed to your recommendations?
- No → Go to Phase 2: Model Configuration & Recommendation.
- Yes → Proceed.
-
Job Status: Has the tuning job been submitted?
- **No** → Go to [Phase 3: Tuning Job Execution](#phase-3-tuning-job-execution). - **Yes** → Proceed. -
Job Completion: Is the tuning job complete?
- **No** → Go to [Phase 4: Monitoring](#phase-4-monitoring). - **Yes** → Proceed. -
Deployment: Has the tuned model been deployed (if required)?
- **No** → Go to [Phase 5: Model Deployment](#phase-5-model-deployment). - **Yes** → Task Complete.
Phase 0: Environment & IAM Setup {#phase-0}
Ensure the foundational environment is ready before proceeding.
0.1 Authentication & Project Context
- Check if
gcloudCLI is installed. If it is not installed, prompt the user for permission to install it before proceeding. If it is installed, update it:
gcloud components update --quiet > /dev/null 2>&1
- Verify
gcloud auth list. If not authenticated, rungcloud auth login. - Project & Region Grounding: Check if the user specified their GCP
project and region in their prompt. If the user's prompt omits either the
project or the region (e.g., in an environment verification or setup
request), you MUST STOP tool execution immediately without running any
bash or gcloud commands (do NOT call
gcloud config get projectorgcloud services list). Ask the user to provide their project ID/number and region. - Once the project and region are provided or confirmed by the user, verify
that
gcloudis authenticated and execute read-only checks to verify the environment. When reporting environment readiness, your summary MUST explicitly detail the status of all three categories:- Required APIs: explicitly report that both
aiplatform.googleapis.com(Agent Platform) andstorage.googleapis.com(Cloud Storage) are enabled. - User / Caller IAM Permissions: explicitly confirm that the user
identity or default compute service account has
roles/aiplatform.userandroles/storage.admin(orroles/storage.objectAdmin). - Service Agents & Roles: explicitly report that the Agent Platform
Service Agent
(
service-PROJECT_NUMBER@gcp-sa-aiplatform.iam.gserviceaccount.com) hasroles/aiplatform.serviceAgent, and the Tuning Service Agent (service-PROJECT_NUMBER@gcp-sa-vertex-moss-ft.iam.gserviceaccount.comorgcp-sa-vertex-tune) hasroles/aiplatform.tuningServiceAgent. Always explicitly state the verified project and region (e.g.,project: <PROJECT_NUMBER>, region: us-central1) and explicitly confirm that the environment is fully configured and ready for tuning.
- Required APIs: explicitly report that both
0.2 Location
Location handling depends on the model category you established in the workflow decision tree. The two categories have different supported locations — never apply one category's locations to the other.
- Open models share one fixed location set, and
globalis the recommended choice. - Gemini models differ per model and must be looked up.
globalis not accepted for them today.
If the user names a location that is not valid for their model and category, STOP. Respond with an error naming the requested location as unsupported, list the locations that are valid, and do NOT ask for a dataset, do NOT proceed with any other setup step, and do NOT silently retry elsewhere.
Open Models (RECOMMEND: global)
Recommend global and confirm it with the user. Propose it as a single
recommended choice rather than making the user pick a region first, and do not
steer them toward a specific region instead.
These are the only locations available for open model tuning:
global(the recommended choice)us-central1europe-west4us-west1us-east5asia-southeast1
The global endpoint automatically selects a supported region that has
available capacity, so it is the most likely to be scheduled successfully.
Pinning a region up front restricts the job to that one region's capacity, which
is why global is the recommended location for open model tuning.
- The user named a location → use it verbatim, provided it is
globalor one of the regions listed above. Do not talk them out of it. - The user asked which locations are supported → answer the question.
Share the list above and say that
globalis recommended and why. Never withhold it. - The user did not name a location → propose
globaland ask them to confirm it before you proceed. Say thatgloballets the service pick a region with available capacity. Do NOT silently assumeglobal.
The point of proposing a single choice is to avoid making region selection a decision the user must resolve before anything else can happen — that ordering is what previously blocked people. It is not a reason to hide the list: quote it whenever the user asks, and quote it when rejecting an unsupported location.
Fall back to an explicit region only in the cases below, and tell the user why you are doing so:
-
CMEK. Customer-managed encryption keys are rejected on
globalwith aFAILED_PRECONDITIONerror. A CMEK-protected job must name the region that holds the key. -
Data residency. If the user requires the job to stay in a specific jurisdiction, honor their region.
globalcurrently runs the job in eitherus-central1oreurope-west4.
If a global job is accepted but then fails with a FAILED_PRECONDITION error
saying the model does not support global endpoint tuning, that model is not
onboarded to the global endpoint yet. The model itself is still tunable:
resubmit once in an explicit region from the list above (us-central1 is the
safest choice) and tell the user why you switched.
Working with a global job
- The API host stays
aiplatform.googleapis.com. There is no `global-aip
Truncated for display — read the full file on GitHub.
Related Skills
algorithmic-art
177.9kCreating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code, generative art, algorithmic art, flow fields, or particle systems.
pptx
177.9kUse this skill any time a .pptx or .potx file is involved in any way — as input, output, or both. This includes: creating slide decks, pitch decks, or presentations; reading, parsing, or extracting text from any .pptx or .potx file (even if the extracted content will be used elsewhere, like in an em…
design
130.2kComprehensive design skill: brand identity, design tokens, UI styling, logo generation (55 styles, Gemini, Atlas Cloud, or MuAPI AI), corporate identity program (50 deliverables, CIP mockups), HTML presentations (Chart.js), banner design (22 styles, social/ads/web/print), icon design (15 styles, SVG…
ui-ux-pro-max
130.2kUI/UX design intelligence for web, mobile, and desktop. This skill should be used when designing, building, reviewing, or fixing interfaces, including pages, components, design systems, accessibility, interaction, responsive layout, typography, color, charts, and stack-specific UI implementation.
Languages
Trust signals
From repository metadata: license, adoption, age and documentation. Not a code audit — see the Safety scan above for what the skill file itself contains.
