Official agent skill

Agent Platform Prompt Management

by google in google/skills

Manages and orchestrates prompts in Agent Platform. An agent skill from google/skills.

OfficialApache-2.0Auto-check passedAI & LLM Engineering

Install Agent Platform Prompt Management

skills CLI
$ npx skills add google/skills --skill agent-platform-prompt-management -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install google/skills agent-platform-prompt-management --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/google/skills.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/cloud/agent-platform-prompt-management .claude/skills/agent-platform-prompt-management && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
agent-platform-prompt-management
GitHub stars
21k
Token cost
~2.2k tokens
SKILL.md length
991 words
Files
2 (incl. references)
Skills in repo
147
Repo updated
First seen
Licence
Apache-2.0

At a glance

Manages and orchestrates prompts in Agent Platform. An agent skill from google/skills.

  • Works in 3 steps: Environment Setup → Managing Prompts via Agent Platform SDK → Best Practices
  • You need to create
  • SKILL.md covers Usage Guide, Safety & Confirmation Tiers…, Phase 0: Environment Setup and 1. Managing Prompts via Agent…, plus 1 more section
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md

What it does

Agent Platform Prompt Management is an agent skill from google/skills, published by the product's own GitHub organization. Manages and orchestrates prompts in Agent Platform. Use when you need to create, list, retrieve, version, or delete managed prompts in Agent Platform. Don't use for model training, model deployment to endpoints, or managing non-Agent Platform prompts.

Its SKILL.md is about 2.2k tokens, which your agent loads only when the skill is triggered. The skill folder holds 2 other files, including reference files (for example `references/create.md`).

It sits in AI & LLM Engineering, covering Fine-tuning. It works with Python. The repository describes itself as: Agent Skills for Google products and technologies. The licence is Apache-2.0.

When your agent uses it

  • You need to create
  • Delete managed prompts in Agent Platform
  • Model deployment to endpoints
  • Managing non-Agent Platform prompts

Example prompts

  • “Use the agent-platform-prompt-management skill to manage and orchestrates prompts in Agent Platform. An agent skill from google/skills”
  • “/agent-platform-prompt-management”

Requirements

  • Python 3

Workflow steps

3 steps, taken from the step headings in SKILL.md.

  1. Environment Setup
  2. Managing Prompts via Agent Platform SDK
  3. Best Practices

What it can do on your machine

Read from SKILL.md and the folder at commit 7d97937. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    No scripts in the folder and no shell commands in SKILL.md (its code samples are python).

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Agent Platform Prompt Management loads about 2.2k tokens when it runs, and up to ~2.9k if it reads all its reference files. Until then it costs about 71 tokens; SKILL.md has 991 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~71
When it runs · the whole SKILL.md, loaded when a task matches
~2.2k
With references · SKILL.md plus every file in references/, read only if the agent opens them
~2.9k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from google/skills at commit 7d97937, republished under its Apache-2.0 licence (© google). 991 words, ~2,247 tokens.

Download SKILL.mdSave it as .claude/skills/agent-platform-prompt-management/SKILL.md (or your agent's skills folder). This skill also uses 1 other file; get the full folder from GitHub.
name
agent-platform-prompt-management
description
Manages and orchestrates prompts in Agent Platform. Use when you need to create, list, retrieve, version, or delete managed prompts in Agent Platform. Don't use for model training, model deployment to endpoints, or managing non-Agent Platform prompts.
metadata.version
1.0.0
metadata.category
AiAndMachineLearning

Usage Guide

To use this skill effectively:

  1. Execute Operations via Python: Run the Python snippets below using run_command in the execution environment to manage prompts in Agent Platform on behalf of the user. Do not delegate execution to the user or claim lack of access once approved.

  2. No File System Search: Do not try to find Python files or scripts on the file system for these operations.

Safety & Confirmation Tiers (CRITICAL)

Before executing any commands or scripts on behalf of the user, you must adhere to the following safety tiers based on the action requested, to prevent accidental mutation or permanent deletion of prompt resources:

  1. Tier R: Read-only (list, get)

    • No confirmation needed. Execute immediately to gather information.
  2. Tier M: Mutating & Reversible (create)

    • Requires interactive confirmation with 'Yes'/'No' options before executing prompt creation, to prevent unintended resource proliferation or misconfiguration. The confirmation prompt must clearly explain the proposed prompt creation and its key parameters (e.g., display name, template text, target model). Natural-language paraphrases without specifying the parameters are not sufficient.

    • Same-turn restriction: Do not execute the creation code in the same turn as presenting the confirmation prompt. Stop and wait for the user's reply; only execute after explicit 'Yes' / approval.

    • Every parameter in the card must trace back to something the user said. The target model is a user choice, not a default: if the user did not name one, ASK before building the card. Do not carry over the model that appears in the examples here or in references/create.md.

    • Gold Standard Example — for a user who said "create a prompt called Customer Support Greeting for gemini-2.5-pro with the template Hello {{user_name}}, how can I help...":

      I will create a prompt in Agent Platform with the following parameters. Please confirm this information before I proceed:

      • Display Name: Customer Support Greeting
      • Target Model: gemini-2.5-pro
      • Template Text: "Hello {{user_name}}, how can I help..."

      Do you confirm? [Yes/No]

  3. Tier D: Destructive & Irreversible (delete)

    • Requires explicit typed confirmation (e.g. "I confirm" or "Yes, delete it") before executing prompt deletion, to prevent accidental permanent loss of production prompt assets. Ask for confirmation before any pre-flight checks.

    • Same-turn restriction: NEVER execute in the same turn as asking for typed confirmation. Wait for the user to reply in a new turn.

    • Gold Standard Example:

      I will permanently delete the following prompt from Agent Platform. This action is irreversible. Please explicitly type your confirmation (e.g., "I confirm") before I proceed:

      • Prompt ID: prompt_12345abc
      • Display Name: Legacy Outdated Prompt

      Please type your confirmation to proceed.

Phase 0: Environment Setup

CRITICAL: Before the user runs any of the Python snippets below, you MUST advise them to 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:

    bash
    gcloud auth login
    gcloud auth application-default login
  2. Python Dependencies: This skill needs google-cloud-aiplatform and google-genai. 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:

    bash
    python3 -c "import vertexai, google.genai" \
      || pip install google-cloud-aiplatform google-genai
  3. Execution: Run Python snippets with a plain python3. There is no environment to activate first.

[!TIP]

Placeholder Parameter Replacement: The Python scripts below use uppercase string placeholders (like "PROJECT_ID", "LOCATION_ID", "PROMPT_ID", and "MODEL_ID"). You MUST dynamically replace these placeholders with the actual Project ID, Region, Prompt ID, and target model values provided in the user's prompt (or discovered context) before generating or providing the scripts. If the user did not supply one of these, ask -- a placeholder is never satisfied by guessing a plausible value.

Show full SKILL.md (379 more words)Show less

1. Managing Prompts via Agent Platform SDK

The SDK provides a high-level Prompt class in the preview module.

Create a Prompt (Tier M)

Use when you need to create a new managed prompt in Agent Platform.

  • Reference: See create.md for detailed instructions and Python snippets.
List Prompts (Tier R)
python
import vertexai
from vertexai.preview import prompts

vertexai.init(project="PROJECT_ID", location="LOCATION_ID")

all_prompts = prompts.list()
for p in all_prompts:
    print(f"Name: {p.display_name}, ID: {p.prompt_id}")
Retrieve and Use a Prompt (Tier R)
python
import vertexai
from vertexai.preview import prompts

vertexai.init(project="PROJECT_ID", location="LOCATION_ID")

retrieved_prompt = prompts.get(prompt_id="PROMPT_ID")
# Attributes on retrieved Prompt:
# - retrieved_prompt.prompt_id (e.g. "123456789...")
# - retrieved_prompt.prompt_data (template text string)
# - retrieved_prompt.model_name (target model)
# - retrieved_prompt.prompt_name (display name, or
#   retrieved_prompt._dataset.display_name)
# Versions are supported: prompts.get(prompt_id="PROMPT_ID", version_id="2")

# Assemble with variables (kwargs must match template variable names)
assembled = retrieved_prompt.assemble_contents(text="The quick brown fox...")
print(assembled)
Delete a Prompt (Tier D)

CRITICAL: You must pass the numeric prompt ID (e.g., "1234567890123456789") to prompts.delete(). The SDK constructs the full resource path internally using the project and location from vertexai.init().

Confirmation Required: As a Tier D (Destructive) operation, the agent MUST pause and request explicit, high-friction typed re-confirmation of the prompt ID from the user before executing the deletion code. The action is irreversible. Once the user replies with typed confirmation (e.g., "I confirm"), proceed immediately to execute the deletion code via run_command.

[!IMPORTANT]

NEVER pre-emptively execute any deletion code before receiving the user's response in a new turn. You must never speculate or assume that confirmation will be given. Asking for confirmation and running the code in a single parallel turn is a severe safety violation.

python
import vertexai
from vertexai.preview import prompts

vertexai.init(project="PROJECT_ID", location="LOCATION_ID")

prompts.delete(prompt_id="PROMPT_ID")
Verification After Deletion

When the user asks to list prompts or check that a deleted prompt is gone, list the prompts and explicitly state whether the deleted prompt ID is present. If it is not found, explicitly confirm: "I have verified that the prompt with ID <PROMPT_ID> is no longer present in the project."

2. Best Practices

  • Idempotency:
    • Tier R (List, Get): Inherently idempotent.
    • Tier D (Delete): Re-running a delete on a non-existent or already deleted resource returns NOT_FOUND. Treat this as success.
  • Placeholders: Use the standard placeholder syntax (variable name enclosed in double curly braces) in your prompt templates.
  • Versioning: Always tag or record version IDs when making updates to production prompts.
  • Model Reference: A prompt is created against a target model ID, which the snippets carry as the "MODEL_ID" placeholder. Like the other placeholders it is MUST-replace, and it is replaced from what the user said -- if they named no model, ask. Do not substitute a plausible current model such as gemini-2.5-pro.
  • Underlying Schema: When using the Dataset API, always use the correct metadata_schema_uri and nested metadata structure to ensure the prompt is recognized by Agent Platform Studio and the Prompts SDK.

© google, Apache-2.0. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 1 other file (references) in skills/cloud/agent-platform-prompt-management of google/skills.

  • SKILL.md
  • references/create.md

Open the folder on GitHubat commit 7d97937

Compare with similar skills

Agent Platform Prompt Management next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Agent Platform Prompt Management compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Agent Platform Prompt Management this skillgoogle/skills21k—~2.2kAutomated safety check: PassApache-2.0
Hugging Face Vision Trainerhuggingface/skills11k1 repos~7.5kAutomated safety check: PassApache-2.0
Axolotl Fine-Tuning ReferenceOrchestra-Research/AI-Research-SKILLs13k9 repos~1.2kAutomated safety check: PassMIT
SimPO Preference TrainingOrchestra-Research/AI-Research-SKILLs13k5 repos~1.5kAutomated safety check: PassMIT
Aqua CLIoracle/accelerated-data-science125—~2.1kAutomated safety check: PassUPL-1.0
Quaxnstarman/quax143—~5.5kAutomated safety check: PassApache-2.0

Similar skills

  • Hugging Face Vision Trainer

    huggingface/skills

    Official

    Trains and fine-tunes object detection, image classification and SAM or SAM2 segmentation models on Hugging Face Jobs cloud GPUs and saves the results to the Hub.

    11k GitHub starsUsed in 1 repo~7.5k tokens
    AI & LLM EngineeringAuto-check passed
  • Axolotl Fine-Tuning Reference

    Orchestra-Research/AI-Research-SKILLs

    Quick-reference help for fine-tuning language models with Axolotl, covering YAML configs, FSDP, context parallelism, compressed saves and dataset formats.

    13k GitHub starsUsed in 9 repos~1.2k tokens
    AI & LLM EngineeringAuto-check passed
  • SimPO Preference Training

    Orchestra-Research/AI-Research-SKILLs

    Walks through aligning language models with SimPO, a reference-free preference optimization method, using accelerate configs for Mistral 7B, Llama 3 8B and math-focused models.

    13k GitHub starsUsed in 5 repos~1.5k tokens
    AI & LLM EngineeringAuto-check passed
  • Aqua CLI

    oracle/accelerated-data-science

    Official

    Complete CLI reference for the ADS AQUA command-line interface (ads aqua).

    125 GitHub stars~2.1k tokensUpdated 1 mo ago
    AI & LLM EngineeringAuto-check passed
  • Quax

    nstarman/quax

    A skill your agent uses when writing, reviewing, or debugging JAX code that involves quax — custom array-ish objects (physical units, LoRA, sparse, symbolic zero, named axes), quax.quaxify…

    143 GitHub stars~5.5k tokensUpdated 4 days ago
    AI & LLM EngineeringAuto-check passed
  • bitsandbytes Model Quantization

    Orchestra-Research/AI-Research-SKILLs

    Loads large language models in 8-bit or 4-bit with bitsandbytes so they fit smaller GPUs, and sets up QLoRA fine-tuning on a 4-bit base model.

    13k GitHub starsUsed in 3 repos~2.5k tokens
    AI & LLM EngineeringAuto-check passed

More from google/skills

All 147 skills in this repo
  • Official

    Query Cloud Trace spans, filter by latency thresholds or error status, correlate distributed traces with Cloud Logging, and diagnose latency bottlenecks across Google Cloud services.

    21k GitHub stars~1.7k tokensUpdated today
    Auto-check passed
  • Official

    Manages Google Cloud Privileged Access Manager entitlements and grants: create and edit entitlements, request temporary access, and approve or deny pending grants.

    21k GitHub stars~3.2k tokensUpdated today
    Auto-check passed
  • Official

    Writes Terraform alerting policies for AI agents that emit OpenTelemetry metrics, covering reliability, cost, safety, security and quality signals on Google Cloud.

    21k GitHub stars~4.2k tokensUpdated today
    Auto-check passed
  • Official

    Deploys open models or custom weights from Model Garden to Agent Platform endpoints, checks deployment status and cleans up endpoints, confirming before any change.

    21k GitHub stars~5k tokensUpdated today
    Auto-check passed
  • Official

    Searches, manages and scaffolds skills in the Gemini Enterprise Agent Platform Skill Registry using bundled Python scripts and Google Cloud credentials.

    21k GitHub stars~584 tokensUpdated today
    Auto-check passed
  • Designs GCP infrastructure as local Terraform, validates and scans it against best practices, then imports it to Application Design Center for deployment and troubleshooting.

    21k GitHub stars~4.4k tokensUpdated today
    Auto-check passed

Works with

Questions about Agent Platform Prompt Management

What does Agent Platform Prompt Management do?

Manages and orchestrates prompts in Agent Platform. An agent skill from google/skills. Agent Platform Prompt Management is an agent skill from google/skills, published by the product's own GitHub organization. Manages and orchestrates prompts in Agent Platform.

When should I use Agent Platform Prompt Management?

Agent Platform Prompt Management fits situations like: you need to create; delete managed prompts in Agent Platform; model deployment to endpoints; managing non-Agent Platform prompts.

How do I install Agent Platform Prompt Management in Claude Code?

Run `npx skills add google/skills --skill agent-platform-prompt-management -a claude-code`. Or copy the skill folder (skills/cloud/agent-platform-prompt-management in google/skills) into .claude/skills/agent-platform-prompt-management in your project. Claude Code loads it when a task matches its description.

How do I install Agent Platform Prompt Management in Codex?

Run `npx skills add google/skills --skill agent-platform-prompt-management -a codex`. Or copy the skill folder (skills/cloud/agent-platform-prompt-management in google/skills) into .agents/skills/agent-platform-prompt-management in your project. Codex loads it when a task matches its description.

Can I use Agent Platform Prompt Management in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add google/skills --skill agent-platform-prompt-management -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/agent-platform-prompt-management, .gemini/skills/agent-platform-prompt-management, .github/skills/agent-platform-prompt-management and .opencode/skills/agent-platform-prompt-management in your project.

What does Agent Platform Prompt Management need to run?

SKILL.md names no scripts, command-line tools or credentials: Agent Platform Prompt Management is instructions for the agent only. Our summary lists: Python 3.

Does Agent Platform Prompt Management access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Agent Platform Prompt Management safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Agent Platform Prompt Management use?

Agent Platform Prompt Management is published under the Apache-2.0 licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Agent Platform Prompt Management use?

About 2.2k tokens (SKILL.md is roughly 9k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 659 tokens, read only when the agent opens those files.

What are the alternatives to Agent Platform Prompt Management?

Skills that share tags, products or a category with Agent Platform Prompt Management: Hugging Face Vision Trainer (huggingface/skills, 11k stars), Axolotl Fine-Tuning Reference (Orchestra-Research/AI-Research-SKILLs, 13k stars), SimPO Preference Training (Orchestra-Research/AI-Research-SKILLs, 13k stars) and Aqua CLI (oracle/accelerated-data-science, 125 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Agent Platform Prompt Management?

google (a GitHub organization, an official publisher) maintains it in google/skills, which has 21,032 GitHub stars. The repository holds 147 skills in this directory. The repository was last updated on October 8, 2026.

Source: google/skills on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.