/agent-platform-tuning-management
Manages GenAI tuning jobs in Agent Platform. Use this to list, get, or cancel ongoing model tuning jobs. Don't use for fine-tuning models (use `agent-platform-tuning`), deploying models to endpoints (use `agent-platform-deploy`), or managing serving endpoints (use
Claude Code
$ npx -y skills add google/skills --skill agent-platform-tuning-management --agent claude-code
Codex
$ npx skills add google/skills --skill agent-platform-tuning-management -a codex -y
Cursor
$ npx skills add google/skills --skill agent-platform-tuning-management -a cursor -y
Gemini CLI
$ npx skills add google/skills --skill agent-platform-tuning-management -a gemini-cli -y
GitHub Copilot
$ npx skills add google/skills --skill agent-platform-tuning-management -a github-copilot -y
OpenCode
$ npx skills add google/skills --skill agent-platform-tuning-management -a opencode -y
Windsurf
$ npx skills add google/skills --skill agent-platform-tuning-management -a windsurf -y
SKILL.md
agent-platform-tuning-management.SKILL.mdname: agent-platform-tuning-management
metadata:
version: "1.0.2"
category: AiAndMachineLearning
description: >-
Manages GenAI tuning jobs in Agent Platform. Use this to list, get, or cancel
ongoing model tuning jobs. Don't use for fine-tuning models (use
`agent-platform-tuning`), deploying models to endpoints (use
`agent-platform-deploy`), or managing serving endpoints (use
`agent-platform-endpoint-management`).
Agent Platform Tuning Management
This skill provides instructions on how to manage GenAI Tuning Jobs using the Agent Platform Python SDK. Use this skill when a user wants to check the status of their tuning runs, find an active tuning job, or cancel a job that is running too long.
Attribution
**MUST READ**: Before executing any `gcloud`, REST API, or MCP command, you MUST read [Usage Attribution](references/attribution.md). 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-tuning-management)"
User-Agent: <existing_user_agent> agent-skills/1.0 (skill:agent-platform-tuning-management)
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`, `get`)**
- **Rule**: No confirmation needed. You may execute these commands
immediately to gather information for the user. 2. **Tier D: Destructive & Interruptive (`cancel`)**
- **Rule**: Cancellation is a Tier D action requiring **explicit typed
confirmation** (e.g. "I confirm" or "Yes, cancel it").
- **Required Fields in Dry-Run Confirmation Card**: Before cancelling a
tuning job, you MUST present a dry-run confirmation preview clearly listing:
- **Target Resource**: The full tuning job resource name or ID (e.g.
`projects/<PROJECT_ID>/locations/<REGION>/tuningJobs/<JOB_ID>`).
- **Command / Script**: The exact cancellation command or Python code
to be executed.
- **Expected Effect**: Stops the ongoing tuning job; any in-progress
training will be halted and cannot be resumed.
- Ask the user to explicitly confirm (e.g., "Do you confirm? Please
reply with 'I confirm' or 'Yes, cancel it'.").
- **Same-turn restriction**: NEVER execute the cancellation in the same
turn as presenting the preview card. Stop immediately and wait for the user to confirm in a new turn. Even if the user provided pre-emptive confirmation (e.g. "Yes, I confirm, cancel tuning job ...") or provides a corrected job ID, you MUST present the dry-run preview for that specific job ID and wait for confirmation in a separate turn before issuing the cancellation.
Phase 0: Environment Setup
**CRITICAL**: Before running any of the Python snippets below, you MUST ensure the environment is correctly initialized by following these steps:
1. **Google Cloud Authentication**: Authenticate with your Google Cloud account and configure active Application Default Credentials (ADC) for Agent Platform access:
gcloud auth login
gcloud auth application-default login2. **Python Dependencies**: This skill needs `google-cloud-aiplatform`. Do **not** create a virtual environment — it starts empty and hides packages the environment already provides, forcing a redundant install. Probe, and install only what is missing:
python3 -c "import vertexai" || pip install google-cloud-aiplatform
3. **Execution**: Run Python snippets with a plain `python3`. There is no environment to activate first.
Workflow Decision Tree
1. **Information Gathering**: Do you have a Project ID and Region?
- **No** -> You **MUST** ask the user for the missing Project ID and
Region in plain text, or advise them to check their gcloud configuration. If neither location has this information, then ask the user to provide it. Do not attempt to search random regions on your own.
- **Yes** -> Proceed to Step 2.
2. **Task Type**: What does the user want to do?
- **Find or List Jobs** -> Use the Python SDK to list tuning jobs. (Tier
R)
- **Check Status / Inspect a Specific Job** -> Use the Python SDK to get
tuning job details. (Tier R)
- **Cancel a Job** -> Ask for confirmation, then use the Python SDK to
cancel the tuning job. (Tier D)
Using the Python SDK
> [!NOTE] > > **Resource Verification & Missing Projects/Jobs:** If the execution of the > Python snippet fails because of an invalid filter (e.g., `400 Provided filter > is not valid`), fix or drop the `filter` parameter and re-run. If it fails > with an error indicating a missing or inaccessible project or job ID (`403 > Permission Denied`, `404 Not Found`, or invalid resource ID), you **MUST** > inform the user that the project or tuning job does not exist or cannot be > accessed, prompt the user to provide a valid Project ID or Job ID, and stop > tool execution immediately to wait for their response (do **NOT** loop or > assume the resource is valid).
1. Listing Tuning Jobs (Tier R)
If the user asks "What tuning jobs do I have running?" or wants to find a specific job ID, always execute Python code via `run_command` (do NOT use `curl`). If the user gave a project ID or number, use that **exact** value (otherwise fall back to the configured project). Pass `page_size=20` and read the first page (only page through every job if the user explicitly asks for a total count or the full list). Filter server-side when asked for running jobs (`state="JOB_STATE_RUNNING" OR state="JOB_STATE
Read more
name: agent-platform-tuning-management metadata: version: "1.0.2" category: AiAndMachineLearning description: >- Manages GenAI tuning jobs in Agent Platform. Use this to list, get, or cancel ongoing model tuning jobs. Don't use for fine-tuning models (use `agent-platform-tuning`), deploying models to endpoints (use `agent-platform-deploy`), or managing serving endpoints (use `agent-platform-endpoint-management`).
Agent Platform Tuning Management
This skill provides instructions on how to manage GenAI Tuning Jobs using the Agent Platform Python SDK. Use this skill when a user wants to check the status of their tuning runs, find an active tuning job, or cancel a job that is running too long.
Attribution
**MUST READ**: Before executing any `gcloud`, REST API, or MCP command, you MUST read [Usage Attribution](references/attribution.md). 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-tuning-management)" User-Agent: <existing_user_agent> agent-skills/1.0 (skill:agent-platform-tuning-management)
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`, `get`)**
- **Rule**: No confirmation needed. You may execute these commands
immediately to gather information for the user. 2. **Tier D: Destructive & Interruptive (`cancel`)**
- **Rule**: Cancellation is a Tier D action requiring **explicit typed
confirmation** (e.g. "I confirm" or "Yes, cancel it").
- **Required Fields in Dry-Run Confirmation Card**: Before cancelling a
tuning job, you MUST present a dry-run confirmation preview clearly listing:
- **Target Resource**: The full tuning job resource name or ID (e.g.
`projects/<PROJECT_ID>/locations/<REGION>/tuningJobs/<JOB_ID>`).
- **Command / Script**: The exact cancellation command or Python code
to be executed.
- **Expected Effect**: Stops the ongoing tuning job; any in-progress
training will be halted and cannot be resumed.
- Ask the user to explicitly confirm (e.g., "Do you confirm? Please
reply with 'I confirm' or 'Yes, cancel it'.").
- **Same-turn restriction**: NEVER execute the cancellation in the same
turn as presenting the preview card. Stop immediately and wait for the user to confirm in a new turn. Even if the user provided pre-emptive confirmation (e.g. "Yes, I confirm, cancel tuning job ...") or provides a corrected job ID, you MUST present the dry-run preview for that specific job ID and wait for confirmation in a separate turn before issuing the cancellation.
Phase 0: Environment Setup
**CRITICAL**: Before running any of the Python snippets below, you MUST ensure the environment is correctly initialized by following these steps:
1. **Google Cloud Authentication**: Authenticate with your Google Cloud account and configure active Application Default Credentials (ADC) for Agent Platform access:
gcloud auth login
gcloud auth application-default login2. **Python Dependencies**: This skill needs `google-cloud-aiplatform`. Do **not** create a virtual environment — it starts empty and hides packages the environment already provides, forcing a redundant install. Probe, and install only what is missing:
python3 -c "import vertexai" || pip install google-cloud-aiplatform
3. **Execution**: Run Python snippets with a plain `python3`. There is no environment to activate first.
Workflow Decision Tree
1. **Information Gathering**: Do you have a Project ID and Region?
- **No** -> You **MUST** ask the user for the missing Project ID and
Region in plain text, or advise them to check their gcloud configuration. If neither location has this information, then ask the user to provide it. Do not attempt to search random regions on your own.
- **Yes** -> Proceed to Step 2.
2. **Task Type**: What does the user want to do?
- **Find or List Jobs** -> Use the Python SDK to list tuning jobs. (Tier
R)
- **Check Status / Inspect a Specific Job** -> Use the Python SDK to get
tuning job details. (Tier R)
- **Cancel a Job** -> Ask for confirmation, then use the Python SDK to
cancel the tuning job. (Tier D)
Using the Python SDK
> [!NOTE] > > **Resource Verification & Missing Projects/Jobs:** If the execution of the > Python snippet fails because of an invalid filter (e.g., `400 Provided filter > is not valid`), fix or drop the `filter` parameter and re-run. If it fails > with an error indicating a missing or inaccessible project or job ID (`403 > Permission Denied`, `404 Not Found`, or invalid resource ID), you **MUST** > inform the user that the project or tuning job does not exist or cannot be > accessed, prompt the user to provide a valid Project ID or Job ID, and stop > tool execution immediately to wait for their response (do **NOT** loop or > assume the resource is valid).
1. Listing Tuning Jobs (Tier R)
If the user asks "What tuning jobs do I have running?" or wants to find a specific job ID, always execute Python code via `run_command` (do NOT use `curl`). If the user gave a project ID or number, use that **exact** value (otherwise fall back to the configured project). Pass `page_size=20` and read the first page (only page through every job if the user explicitly asks for a total count or the full list). Filter server-side when asked for running jobs (`state="JOB_STATE_RUNNING" OR state="JOB_STATE
This repository contains Agent Skills for Google products and technologies, including Google Cloud.
Other skills on skills.
More skills from other plugins.
brainstorming
You MUST use this before any creative work - creating features, building components, adding functionality, modifying behavior, or…
ask-matt
Ask which skill or flow fits your situation. A router over the skills in this repo.
Questions about agent-platform-tuning-management.
- Which coding agents can use agent-platform-tuning-management?
- agent-platform-tuning-management installs in Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, OpenCode and Windsurf with the skills CLI, using each agent's flag shown on this page. Flowy's auto-invocation, which fires a skill when your prompt matches, runs in Claude Code only.

