[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M78C3E2VTWM445GRRFXA464Q":3,"skill-same:01M78C3E2VTWM445GRRFXA464Q":55},{"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},"01M78C3E2VTWM445GRRFXA464Q","agent-platform-prompt-management",null,"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.","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\u002Fskills\u002Fgoogle\u002Fcloud\u002Fagent-platform-prompt-management\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: agent-platform-prompt-management\nmetadata:\n  category: AiAndMachineLearning\ndescription: >-\n  Manages and orchestrates prompts in Agent Platform. Use when you need to create,\n  list, retrieve, version, or delete managed prompts in Agent Platform. Don't use\n  for model training, model deployment to endpoints, or managing non-Agent Platform\n  prompts.\n---\n\n# Agent Platform Prompt Management\n\n## Usage Guide\n\nTo use this skill effectively:\n\n1. **Generate Code**: Provide the Python snippets below to the user to help them\nmanage prompts in Agent Platform.\n\n2. **No File System Search**: Do not try to find Python files or scripts on the\nfile system for these operations.\n\n## Safety & Confirmation Tiers (CRITICAL)\n\nBefore executing any commands or scripts on behalf of the user, you must adhere\nto the following safety tiers based on the action requested, to prevent\naccidental mutation or permanent deletion of prompt resources:\n\n1.  **Tier R: Read-only (`list`, `get`)**\n    *   No confirmation needed. Execute immediately to gather information.\n2.  **Tier M: Mutating & Reversible (`create`)**\n    *   Requires **interactive confirmation** with 'Yes'\u002F'No' options\n    before executing prompt creation, to prevent unintended resource\n    proliferation or misconfiguration. The confirmation prompt must\n    clearly explain the proposed prompt creation and its key parameters\n    (e.g., display name, template text, target model). Natural-language\n    paraphrases without specifying the parameters are not sufficient.\n    *   **Same-turn restriction**: Do not execute the creation code in the same\n        turn as presenting the confirmation prompt. Stop and wait for the user's\n        reply; only execute after explicit 'Yes' \u002F approval.\n    *   **Gold Standard Example**:\n        > I will create a prompt in Agent Platform with the following\n        > parameters. Please confirm this information before I proceed:\n        > *   **Display Name**: `Customer Support Greeting`\n        > *   **Target Model**: `gemini-2.5-pro`\n        > *   **Template Text**: \"Hello {{user_name}}, how can I help...\"\n        > Do you confirm? [Yes\u002FNo]\n3.  **Tier D: Destructive & Irreversible (`delete`)**\n    *   Requires **explicit typed confirmation** (e.g. \"I confirm\" or \"Yes,\n    delete it\") before executing prompt deletion, to prevent accidental\n    permanent loss of production prompt assets. Ask for confirmation\n    before any pre-flight checks.\n    *   **Same-turn restriction**: NEVER execute in the same turn as asking for\n        typed confirmation. Wait for the user to reply in a new turn.\n    *   **Gold Standard Example**:\n        > I will permanently delete the following prompt from Agent Platform.\n        > This action is irreversible. Please explicitly type your\n        > confirmation (e.g., \"I confirm\") before I proceed:\n        > *   **Prompt ID**: `prompt_12345abc`\n        > *   **Display Name**: `Legacy Outdated Prompt`\n        > Please type your confirmation to proceed.\n\n## Phase 0: Environment Setup\n\n**CRITICAL**: Before the user runs any of the Python snippets below, you MUST\nadvise them to ensure the environment is correctly initialized by following\nthese steps:\n\n1. **Google Cloud Authentication**: Authenticate with your Google Cloud account\n   and configure active Application Default Credentials (ADC) for Agent\n   Platform access:\n   \n   ```bash\n   gcloud auth login\n   gcloud auth application-default login\n   ```\n2. **Virtual Environment**: Create and activate a dedicated virtual environment:\n   \n   ```bash\n   python3 -m venv ~\u002Fprompt_agent_venv\n   source ~\u002Fprompt_agent_venv\u002Fbin\u002Factivate\n   ```\n3. **Install Dependencies**: Install the required Agent Platform SDKs:\n   \n   ```bash\n   pip install google-cloud-aiplatform google-genai\n   ```\n4. **Execution**: Advise the user that every time they execute a Python snippet, they must ensure this virtual environment is activated first.\n\n> [!TIP] **Placeholder Parameter Replacement:** The Python scripts below use\n> uppercase string placeholders (like `\"PROJECT_ID\"`, `\"LOCATION_ID\"`, and\n> `\"PROMPT_ID\"`). You **MUST** dynamically replace these placeholders with the\n> actual Project ID, Region, and Prompt ID values provided in the user's prompt\n> (or discovered context) before generating or providing the scripts.\n\n## 1. Managing Prompts via Agent Platform SDK\n\nThe SDK provides a high-level `Prompt` class in the preview module.\n\n### Create a Prompt\n\nUse when you need to create a new managed prompt in Agent Platform.\n\n*   **Reference**: See [create.md](references\u002Fcreate.md) for detailed instructions and Python snippets.\n\n### List Prompts\n\n```python\nimport vertexai\nfrom vertexai.preview import prompts\n\nvertexai.init(project=\"PROJECT_ID\", location=\"LOCATION_ID\")\n\nall_prompts = prompts.list()\nfor p in all_prompts:\n    print(f\"Name: {p.display_name}, ID: {p.prompt_id}\")\n```\n\n### Retrieve and Use a Prompt\n\n```python\nimport vertexai\nfrom vertexai.preview import prompts\n\nvertexai.init(project=\"PROJECT_ID\", location=\"LOCATION_ID\")\n\nretrieved_prompt = prompts.get(prompt_id=\"PROMPT_ID\")\n# Versions are supported: prompts.get(prompt_id=\"PROMPT_ID\", version_id=\"2\")\n\n# Assemble with variables (kwargs must match template variable names)\nassembled = retrieved_prompt.assemble_contents(text=\"The quick brown fox...\")\nprint(assembled)\n```\n\n### Delete a Prompt\n\n**CRITICAL**: You must pass the numeric prompt ID (e.g., `\"1234567890123456789\"`)\nto `prompts.delete()`. The SDK constructs the full resource path internally\nusing the project and location from `vertexai.init()`.\n\n**Confirmation Required**: As a Tier D (Destructive) operation, the agent MUST\npause and request explicit, high-friction typed re-confirmation of the prompt ID\nfrom the user before generating or providing the deletion code.\nThe action is irreversible.\n\n> [!IMPORTANT]\n> **NEVER pre-emptively provide or execute any deletion code before receiving\n> the user's response in a new turn.** You must never speculate or assume that\n> confirmation will be given. Asking for confirmation and providing the code in\n> a single parallel turn is a severe safety violation.\n\n```python\nimport vertexai\nfrom vertexai.preview import prompts\n\nvertexai.init(project=\"PROJECT_ID\", location=\"LOCATION_ID\")\n\nprompts.delete(prompt_id=\"PROMPT_ID\")\n```\n\n## 2. Best Practices\n\n-   **Idempotency**:\n    *   **Tier R** (List, Get): Inherently idempotent.\n    *   **Tier D** (Delete): Re-running a delete on a non-existent or already\n        deleted resource returns NOT_FOUND. Treat this as success.\n-   **Placeholders**: Use the standard placeholder syntax (variable name\n    enclosed in double curly braces) in your prompt templates.\n-   **Versioning**: Always tag or record version IDs when making updates to\n    production prompts.\n-   **Model Reference**: Specify the target model ID (e.g., `gemini-2.5-pro`)\n    when creating the prompt to ensure consistency.\n-   **Underlying Schema**: When using the Dataset API, always use the correct\n    `metadata_schema_uri` and nested `metadata` structure to ensure the prompt\n    is recognized by Agent Platform Studio and the Prompts SDK.\n","# Agent Platform Prompt Management\n\n## Usage Guide\n\nTo use this skill effectively:\n\n1. **Generate Code**: Provide the Python snippets below to the user to help them\nmanage prompts in Agent Platform.\n\n2. **No File System Search**: Do not try to find Python files or scripts on the\nfile system for these operations.\n\n## Safety & Confirmation Tiers (CRITICAL)\n\nBefore executing any commands or scripts on behalf of the user, you must adhere\nto the following safety tiers based on the action requested, to prevent\naccidental mutation or permanent deletion of prompt resources:\n\n1.  **Tier R: Read-only (`list`, `get`)**\n    *   No confirmation needed. Execute immediately to gather information.\n2.  **Tier M: Mutating & Reversible (`create`)**\n    *   Requires **interactive confirmation** with 'Yes'\u002F'No' options\n    before executing prompt creation, to prevent unintended resource\n    proliferation or misconfiguration. The confirmation prompt must\n    clearly explain the proposed prompt creation and its key parameters\n    (e.g., display name, template text, target model). Natural-language\n    paraphrases without specifying the parameters are not sufficient.\n    *   **Same-turn restriction**: Do not execute the creation code in the same\n        turn as presenting the confirmation prompt. Stop and wait for the user's\n        reply; only execute after explicit 'Yes' \u002F approval.\n    *   **Gold Standard Example**:\n        > I will create a prompt in Agent Platform with the following\n        > parameters. Please confirm this information before I proceed:\n        > *   **Display Name**: `Customer Support Greeting`\n        > *   **Target Model**: `gemini-2.5-pro`\n        > *   **Template Text**: \"Hello {{user_name}}, how can I help...\"\n        > Do you confirm? [Yes\u002FNo]\n3.  **Tier D: Destructive & Irreversible (`delete`)**\n    *   Requires **explicit typed confirmation** (e.g. \"I confirm\" or \"Yes,\n    delete it\") before executing prompt deletion, to prevent accidental\n    permanent loss of production prompt assets. Ask for confirmation\n    before any pre-flight checks.\n    *   **Same-turn restriction**: NEVER execute in the same turn as asking for\n        typed confirmation. Wait for the user to reply in a new turn.\n    *   **Gold Standard Example**:\n        > I will permanently delete the following prompt from Agent Platform.\n        > This action is irreversible. Please explicitly type your\n        > confirmation (e.g., \"I confirm\") before I proceed:\n        > *   **Prompt ID**: `prompt_12345abc`\n        > *   **Display Name**: `Legacy Outdated Prompt`\n        > Please type your confirmation to proceed.\n\n## Phase 0: Environment Setup\n\n**CRITICAL**: Before the user runs any of the Python snippets below, you MUST\nadvise them to ensure the environment is correctly initialized by following\nthese steps:\n\n1. **Google Cloud Authentication**: Authenticate with your Google Cloud account\n   and configure active Application Default Credentials (ADC) for Agent\n   Platform access:\n   \n   ```bash\n   gcloud auth login\n   gcloud auth application-default login\n   ```\n2. **Virtual Environment**: Create and activate a dedicated virtual environment:\n   \n   ```bash\n   python3 -m venv ~\u002Fprompt_agent_venv\n   source ~\u002Fprompt_agent_venv\u002Fbin\u002Factivate\n   ```\n3. **Install Dependencies**: Install the required Agent Platform SDKs:\n   \n   ```bash\n   pip install google-cloud-aiplatform google-genai\n   ```\n4. **Execution**: Advise the user that every time they execute a Python snippet, they must ensure this virtual environment is activated first.\n\n> [!TIP] **Placeholder Parameter Replacement:** The Python scripts below use\n> uppercase string placeholders (like `\"PROJECT_ID\"`, `\"LOCATION_ID\"`, and\n> `\"PROMPT_ID\"`). You **MUST** dynamically replace these placeholders with the\n> actual Project ID, Region, and Prompt ID values provided in the user's prompt\n> (or discovered context) before generating or providing the scripts.\n\n## 1. Managing Prompts via Agent Platform SDK\n\nThe SDK provides a high-level `Prompt` class in the preview module.\n\n### Create a Prompt\n\nUse when you need to create a new managed prompt in Agent Platform.\n\n*   **Reference**: See [create.md](references\u002Fcreate.md) for detailed instructions and Python snippets.\n\n### List Prompts\n\n```python\nimport vertexai\nfrom vertexai.preview import prompts\n\nvertexai.init(project=\"PROJECT_ID\", location=\"LOCATION_ID\")\n\nall_prompts = prompts.list()\nfor p in all_prompts:\n    print(f\"Name: {p.display_name}, ID: {p.prompt_id}\")\n```\n\n### Retrieve and Use a Prompt\n\n```python\nimport vertexai\nfrom vertexai.preview import prompts\n\nvertexai.init(project=\"PROJECT_ID\", location=\"LOCATION_ID\")\n\nretrieved_prompt = prompts.get(prompt_id=\"PROMPT_ID\")\n# Versions are supported: prompts.get(prompt_id=\"PROMPT_ID\", version_id=\"2\")\n\n# Assemble with variables (kwargs must match template variable names)\nassembled = retrieved_prompt.assemble_contents(text=\"The quick brown fox...\")\nprint(assembled)\n```\n\n### Delete a Prompt\n\n**CRITICAL**: You must pass the numeric prompt ID (e.g., `\"1234567890123456789\"`)\nto `prompts.delete()`. The SDK constructs the full resource path internally\nusing the project and location from `vertexai.init()`.\n\n**Confirmation Required**: As a Tier D (Destructive) operation, the agent MUST\npause and request explicit, high-friction typed re-confirmation of the prompt ID\nfrom the user before generating or providing the deletion code.\nThe action is irreversible.\n\n> [!IMPORTANT]\n> **NEVER pre-emptively provide or execute any deletion code before receiving\n> the user's response in a new turn.** You must never speculate or assume that\n> confirmation will be given. Asking for confirmation and providing the code in\n> a single parallel turn is a severe safety violation.\n\n```python\nimport vertexai\nfrom vertexai.preview import prompts\n\nvertexai.init(project=\"PROJECT_ID\", location=\"LOCATION_ID\")\n\nprompts.delete(prompt_id=\"PROMPT_ID\")\n```\n\n## 2. Best Practices\n\n-   **Idempotency**:\n    *   **Tier R** (List, Get): Inherently idempotent.\n    *   **Tier D** (Delete): Re-running a delete on a non-existent or already\n        deleted resource returns NOT_FOUND. Treat this as success.\n-   **Placeholders**: Use the standard placeholder syntax (variable name\n    enclosed in double curly braces) in your prompt templates.\n-   **Versioning**: Always tag or record version IDs when making updates to\n    production prompts.\n-   **Model Reference**: Specify the target model ID (e.g., `gemini-2.5-pro`)\n    when creating the prompt to ensure consistency.\n-   **Underlying Schema**: When using the Dataset API, always use the correct\n    `metadata_schema_uri` and nested `metadata` structure to ensure the prompt\n    is recognized by Agent Platform Studio and the Prompts SDK.\n",{"name":5,"metadata":24,"description":7},{"category":25},"AiAndMachineLearning","main","be3de0244dc1a57e323d8160787ebb40fb64930e","skills\u002Fgoogle\u002Fcloud\u002Fagent-platform-prompt-management","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-prompt-management",{"tool":41,"command":42},"bunx","bunx skills add Solizardking\u002Fskillhub-main --skill agent-platform-prompt-management",{"tool":44,"command":45},"pnpm","pnpm dlx skills add Solizardking\u002Fskillhub-main --skill agent-platform-prompt-management","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FSolizardking\u002Fskillhub-main\u002Fblob\u002Fmain\u002Fskills\u002Fgoogle\u002Fcloud\u002Fagent-platform-prompt-management\u002FSKILL.md",true,[49],{"path":50,"resourceType":51,"resourceTypeDesc":52,"sizeBytes":53,"sourceHtmlUrl":54},"references\u002Fcreate.md","REFERENCE","参考文档",1946,"https:\u002F\u002Fgithub.com\u002FSolizardking\u002Fskillhub-main\u002Fblob\u002Fmain\u002Fskills\u002Fgoogle\u002Fcloud\u002Fagent-platform-prompt-management\u002Freferences\u002Fcreate.md",[56,63,70,77,84,92],{"skillNo":57,"name":58,"nameZh":6,"description":59,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":60,"categories":61,"keywords":62,"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":64,"name":65,"nameZh":6,"description":66,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":67,"categories":68,"keywords":69,"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":71,"name":72,"nameZh":6,"description":73,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":74,"categories":75,"keywords":76,"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":78,"name":79,"nameZh":6,"description":80,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":81,"categories":82,"keywords":83,"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":85,"name":86,"nameZh":6,"description":87,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":88,"sourceHtmlUrl":89,"categories":90,"keywords":91,"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":93,"name":94,"nameZh":6,"description":95,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":96,"categories":97,"keywords":98,"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",[],[]]