[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M79DMXCYPKX0N1Q0770C26X2":3,"skill-same:01M79DMXCYPKX0N1Q0770C26X2":56},{"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":29,"repositoryHtmlUrl":30,"repositoryHomepageUrl":31,"ownerHtmlUrl":32,"ownerBlogUrl":33,"ownerDescription":34,"updatedAt":35,"install":36,"resources":49},"01M79DMXCYPKX0N1Q0770C26X2","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.","hamzabellouch\u002Fagent-skills","hamzabellouch","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F237856042?v=4","01M79BRYW7XAMK3YDWQEMTWGWS","Hamza Bellouch","01M79BRYWXQV3JK2TGVTX8GN2A",8,"MIT","https:\u002F\u002Fgithub.com\u002Fhamzabellouch\u002Fagent-skills\u002Fblob\u002Fmain\u002FProgramming\u002FAI_Engineering_and_Platforms\u002FAgents_and_LLM_Platforms\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","e905af21e5f1e1c3ca605e9656c3a7930360a84e","Programming\u002FAI_Engineering_and_Platforms\u002FAgents_and_LLM_Platforms\u002Fagent-platform-prompt-management",1,"https:\u002F\u002Fgithub.com\u002Fhamzabellouch\u002Fagent-skills","https:\u002F\u002Fhamzabellouch.github.io\u002F","https:\u002F\u002Fgithub.com\u002Fhamzabellouch","hamzabellouch.github.io","CEO & Founder of @tknoglobal | Researcher in Technology & Applied Sciences.","2026-10-17 03:20:19",{"source":8,"skillName":5,"commands":37,"prompt":47,"zipAvailable":48},[38,41,44],{"tool":39,"command":40},"npx","npx skills add hamzabellouch\u002Fagent-skills --skill agent-platform-prompt-management",{"tool":42,"command":43},"bunx","bunx skills add hamzabellouch\u002Fagent-skills --skill agent-platform-prompt-management",{"tool":45,"command":46},"pnpm","pnpm dlx skills add hamzabellouch\u002Fagent-skills --skill agent-platform-prompt-management","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fhamzabellouch\u002Fagent-skills\u002Fblob\u002Fmain\u002FProgramming\u002FAI_Engineering_and_Platforms\u002FAgents_and_LLM_Platforms\u002Fagent-platform-prompt-management\u002FSKILL.md",true,[50],{"path":51,"resourceType":52,"resourceTypeDesc":53,"sizeBytes":54,"sourceHtmlUrl":55},"references\u002Fcreate.md","REFERENCE","参考文档",1946,"https:\u002F\u002Fgithub.com\u002Fhamzabellouch\u002Fagent-skills\u002Fblob\u002Fmain\u002FProgramming\u002FAI_Engineering_and_Platforms\u002FAgents_and_LLM_Platforms\u002Fagent-platform-prompt-management\u002Freferences\u002Fcreate.md",[57,64,71,78,85,92],{"skillNo":58,"name":59,"nameZh":6,"description":60,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":61,"categories":62,"keywords":63,"publishedAt":19},"01M79FHH2H815A9TAP6WNKH4Q8","security-audit","Comprehensive security guidance, source code audit, vulnerability assessment, and penetration test review for codebases, APIs, microservices, CLI tools, libraries, and LLM-backed applications. Triggers on requests to audit a codebase, conduct security reviews, find vulnerabilities or flaws, pen-test source code, or when the user asks in Arabic (فحص أمني، تدقيق الكود أمنياً، مراجعة الثغرات، فحص أمان المشروع). Supports Guidance mode (focused review) and Full Audit mode (deterministic 6-phase harness).","https:\u002F\u002Fgithub.com\u002Fhamzabellouch\u002Fagent-skills\u002Fblob\u002Fmain\u002FSecurity\u002FSecurity_Audit_and_Code_Review\u002Fsecurity-audit\u002FSKILL.md",[],[],{"skillNo":65,"name":66,"nameZh":6,"description":67,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":68,"categories":69,"keywords":70,"publishedAt":19},"01M79FHBGXVBY6VQ1X7ETAZMF1","malware-analysis-reversing","Production malware analysis workflows, reverse engineering methodologies, isolated sandbox triage, static\u002Fdynamic binary analysis, memory forensics, and YARA detection rule authoring.","https:\u002F\u002Fgithub.com\u002Fhamzabellouch\u002Fagent-skills\u002Fblob\u002Fmain\u002FSecurity\u002FOffensive_Security_and_Pentesting\u002Fmalware-analysis-reversing\u002FSKILL.md",[],[],{"skillNo":72,"name":73,"nameZh":6,"description":74,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":75,"categories":76,"keywords":77,"publishedAt":19},"01M79FH6EACDR801TZCE4R8SAC","application-security-pentesting","Production Application Security (AppSec) standards, OWASP Top 10 vulnerability remediation, SAST\u002FDAST pipeline integration, secure code review, threat modeling, and defensive security posture.","https:\u002F\u002Fgithub.com\u002Fhamzabellouch\u002Fagent-skills\u002Fblob\u002Fmain\u002FSecurity\u002FOffensive_Security_and_Pentesting\u002Fapplication-security-pentesting\u002FSKILL.md",[],[],{"skillNo":79,"name":80,"nameZh":6,"description":81,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":82,"categories":83,"keywords":84,"publishedAt":19},"01M79FH0VKVT44FK923K520ZQA","oauth2-oidc-security-flows","Implement enterprise OAuth 2.1 and OpenID Connect (OIDC) authorization code flow with Proof Key for Code Exchange (PKCE), state and nonce verification, refresh token rotation, token revocation, and centralized IdP federation (Keycloak, Auth0, Okta). Trigger when building secure authentication, single sign-on (SSO), or third-party delegated authorization.","https:\u002F\u002Fgithub.com\u002Fhamzabellouch\u002Fagent-skills\u002Fblob\u002Fmain\u002FSecurity\u002FIdentity_and_Access_Management_IAM\u002Foauth2-oidc-security-flows\u002FSKILL.md",[],[],{"skillNo":86,"name":87,"nameZh":6,"description":88,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":89,"categories":90,"keywords":91,"publishedAt":19},"01M79FGVVB3R4T88XXD8FRSV5B","jwt-session-management-hardening","Harden JWT-based authentication and session lifecycles using asymmetric signing (RS256\u002FEdDSA), JWKS rotation, strict claims validation, Redis-backed sliding window sessions, revocation lists, and secure HttpOnly cookie storage. Trigger when implementing token validation, session revocation, or hardening API authentication.","https:\u002F\u002Fgithub.com\u002Fhamzabellouch\u002Fagent-skills\u002Fblob\u002Fmain\u002FSecurity\u002FIdentity_and_Access_Management_IAM\u002Fjwt-session-management-hardening\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},"01M79FGNCPZ85CVEY0B3NE4H3B","soc2-compliance-automation","Best practices for implementing SOC 2 Type II compliance controls, continuous evidence collection, infrastructure policy-as-code, and automated security monitoring. Use when automating Trust Services Criteria (Security, Availability, Confidentiality, Processing Integrity, Privacy), audit logging, IAM least privilege, or CI\u002FCD security gates.","https:\u002F\u002Fgithub.com\u002Fhamzabellouch\u002Fagent-skills\u002Fblob\u002Fmain\u002FSecurity\u002FGovernance_Compliance_and_Legal_Tech\u002Fsoc2-compliance-automation\u002FSKILL.md",[],[]]