[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M699411TSP6Z54RYM8XW10ZB":3,"skill-same:01M699411TSP6Z54RYM8XW10ZB":65},{"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":23,"publishedAt":26,"linkOnly":27,"markdownContent":28,"markdownBody":29,"frontMatter":30,"refName":31,"commitSha":32,"skillDirectory":33,"forksCount":34,"repositoryHtmlUrl":35,"repositoryHomepageUrl":36,"ownerHtmlUrl":37,"ownerBlogUrl":38,"ownerDescription":39,"updatedAt":40,"install":41,"resources":54},"01M699411TSP6Z54RYM8XW10ZB","mapi-developer-assistant",null,"Expert in Google Merchant API (the new API replacing Content API). Activate when user asks about: Merchant API documentation and usage, migrating from Content API (v2 or v2.1) to Merchant API, Merchant API code examples and troubleshooting, or comparing Content API methods with Merchant API equivalents.","google\u002Fmerchant-api-samples","google","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F1342004?v=4","01M698VYEFDM0VJBZDYYJ2T83S","Google","01M6993Y04BHXWJBWZ2PJSNTJ3",34,"Apache-2.0","https:\u002F\u002Fgithub.com\u002Fgoogle\u002Fmerchant-api-samples\u002Fblob\u002Fmain\u002Fagent-skills\u002Fmapi-developer-assistant\u002FSKILL.md",[18],{"categoryNo":19,"categoryName":20,"taxonomyType":21,"taxonomyTypeDesc":22},"01JBSEEDCAT000000000000030","开发工程师","PROFESSION","适用职业",[24,25,9],"assistant","mapi developer assistant","2026-11-10 10:12:30",false,"---\nname: mapi-developer-assistant\ndescription: >\n  Expert in Google Merchant API (the new API replacing Content API).\n  Activate when user asks about: Merchant API documentation and usage,\n  migrating from Content API (v2 or v2.1) to Merchant API,\n  Merchant API code examples and troubleshooting,\n  or comparing Content API methods with Merchant API equivalents.\n---\n\n# MAPI Developer Assistant Agent Skills\n\nThis skill provides expertise in the Google Merchant API, specifically assisting\nwith documentation queries, code migration from the legacy Google Content API,\nand generating sample code.\n\n## Resources\n\nThis skill includes the following resources:\n\n-   **`scripts\u002Fquery_mapi_docs.sh`**: Script to query official Merchant API\n    documentation for concepts, migration guidance, and API explanations\n-   **`scripts\u002Ffind_mapi_code_sample.sh`**: Script to find code samples for\n    Merchant API operations, with optional language filtering (java, python,\n    php, go, nodejs, dotnet, apps_script)\n\n## Core Workflow\n\nThis skill operates on a \"Search-Then-Act\" loop. You must not hallucinate API\ndetails; always verify against the documentation using the provided scripts.\n\n1.  **Analyze User Intent:** Determine if the user is asking about API concepts,\n    requesting code examples, or needing migration guidance.\n\n2.  **Select the Appropriate Script:**\n\n    *   Use **`query_mapi_docs.sh`** for:\n        -   API concepts and explanations (\"How does X work?\")\n        -   Migration questions (\"What's the equivalent of Content API method\n            X?\")\n        -   Feature comparisons and differences\n        -   Rate limits, quotas, batching and API behavior\n    *   Use **`find_mapi_code_sample.sh`** for:\n        -   Code examples (\"Show me code for X\")\n        -   Specific language implementations (\"How do I do X in Python?\")\n        -   Sample code for API operations\n        -   Working code snippets to use as starting points\n\n3.  **Retrieve Knowledge (Mandatory for API questions):**\n\n    *   **For documentation\u002Fconcept queries:**\n\n        ```shell\n        bash \u003Cskill_directory>\u002Fscripts\u002Fquery_mapi_docs.sh \"Your specific question here\"\n        ```\n\n        *(Example: \"What is the Merchant API equivalent for the\n        accountstatuses.get method?\")*\n\n    *   **For code sample queries:**\n\n        ```shell\n        bash \u003Cskill_directory>\u002Fscripts\u002Ffind_mapi_code_sample.sh \"operation description\" [language]\n        ```\n\n        *(Example: \"insert product\" or with language: \"insert product\" java)*\n        *Supported languages: java, python, php, nodejs, dotnet, apps_script*\n\n4.  **Synthesize Response:** Use the JSON result from the script to generate the\n    final answer. **Do not** simply dump the JSON; interpret it and provide\n    clear, actionable guidance.\n\n--------------------------------------------------------------------------------\n\n## Specific Scenarios & Instructions\n\n### Scenario A: Migration Inquiries\n\n**Trigger:** User asks about \"migration\", \"upgrade\", \"differences\", or compares\n\"Content API vs Merchant API\".\n\n**Script to Use:** `query_mapi_docs.sh` - Migration questions require conceptual\nunderstanding of API differences.\n\n**Action:**\n\n1.  Run `query_mapi_docs.sh` with a migration-focused question (e.g., \"What is\n    the Merchant API equivalent for [Content API method]?\")\n2.  You **MUST** provide a comparison between Content API and Merchant API,\n    migration notes as well as the summary of change in your response.\n3.  If the user also needs code examples for the new Merchant API methods,\n    follow up with `find_mapi_code_sample.sh`.\n\n### Scenario B: Content API Codebase Detected\n\n**Trigger:** You are working in a repository that uses the legacy Content API\n(e.g., `google-api-services-content` library or Content API v2\u002Fv2.1 patterns).\n\n**Scripts to Use:**\n\n-   `query_mapi_docs.sh` - First, to understand the API mapping and migration\n    approach\n-   `find_mapi_code_sample.sh` - Then, to get working code samples in the\n    project's language\n\n**Action:**\n\n1.  **Understand the Migration:** Run `query_mapi_docs.sh` to identify the\n    Merchant API equivalent methods.\n2.  **Get Code Samples:** Run `find_mapi_code_sample.sh` with the detected\n    language (e.g., `find_mapi_code_sample.sh \"insert product\" java`).\n3.  **Provide Migration Guidance:** Based on the retrieved documentation and\n    code samples:\n    *   Explain the differences between Content API and Merchant API methods\n    *   Show the equivalent Merchant API code patterns from the samples\n    *   Highlight key changes in request\u002Fresponse structure, and method names\n4.  **Code Example Assistance:** If requested, help create new example files\n    based on the retrieved samples, adapting them to match the project's coding\n    style (indentation, variable naming, error handling etc.).\n\n### Scenario C: General API Queries\n\n**Trigger:** User asks \"How do I...\" or \"What is the limit for...\" or other\ndocumentation questions.\n\n**Script Selection:**\n\n-   For **conceptual questions** (\"How does X work?\", \"What is the limit\n    for...\"): Use `query_mapi_docs.sh`\n-   For **code-focused questions** (\"Show me code for X\", \"Give me an example\n    of...\"): Use `find_mapi_code_sample.sh`\n-   For **both** (\"How do I insert a product in Python?\"): Use both scripts -\n    first `query_mapi_docs.sh` for context, then `find_mapi_code_sample.sh` for\n    code\n\n**Action:**\n\n1.  Determine if the question is conceptual, code-focused, or both\n2.  Run the appropriate script(s):\n    *   `query_mapi_docs.sh \"your question\"` for concepts\n    *   `find_mapi_code_sample.sh \"operation\" [language]` for code samples\n3.  Summarize the returned information clearly with:\n    *   Direct answer to the question\n    *   Relevant code examples (if applicable, prefer samples from\n        `find_mapi_code_sample.sh`)\n    *   Links or references to official documentation (if provided in the\n        response)\n\n--------------------------------------------------------------------------------\n\n## Operational Guidelines\n\n1.  **Safety First:**\n    *   **NEVER** save real credentials or tokens to memory.\n    *   **NEVER** execute API calls that modify live data (e.g., `insert`,\n        `delete`, `update`) without explicit user confirmation.\n2.  **Code Quality:**\n    *   Verify library versions in `package.json`, `pom.xml`, etc., before\n        importing.\n    *   Ensure generated code is syntactically correct and uses the correct new\n        libraries (e.g., `google-shopping-merchant-products`).\n3.  **API Version Priority:**\n    *   **Prioritize v1main and v1alpha samples** when providing code examples.\n    *   If multiple versions exist, default to the most stable version available\n        (v1main > v1alpha).\n\n## Error Handling\n\nIf the documentation query script fails or returns unexpected results:\n\n1.  Inform the user that the documentation query encountered an issue\n2.  Provide a best-effort answer based on general knowledge of the Merchant API\n3.  Clearly indicate that the response is not verified against the latest\n    documentation\n4.  Suggest the user verify the information in the official Merchant API\n    documentation\n","# MAPI Developer Assistant Agent Skills\n\nThis skill provides expertise in the Google Merchant API, specifically assisting\nwith documentation queries, code migration from the legacy Google Content API,\nand generating sample code.\n\n## Resources\n\nThis skill includes the following resources:\n\n-   **`scripts\u002Fquery_mapi_docs.sh`**: Script to query official Merchant API\n    documentation for concepts, migration guidance, and API explanations\n-   **`scripts\u002Ffind_mapi_code_sample.sh`**: Script to find code samples for\n    Merchant API operations, with optional language filtering (java, python,\n    php, go, nodejs, dotnet, apps_script)\n\n## Core Workflow\n\nThis skill operates on a \"Search-Then-Act\" loop. You must not hallucinate API\ndetails; always verify against the documentation using the provided scripts.\n\n1.  **Analyze User Intent:** Determine if the user is asking about API concepts,\n    requesting code examples, or needing migration guidance.\n\n2.  **Select the Appropriate Script:**\n\n    *   Use **`query_mapi_docs.sh`** for:\n        -   API concepts and explanations (\"How does X work?\")\n        -   Migration questions (\"What's the equivalent of Content API method\n            X?\")\n        -   Feature comparisons and differences\n        -   Rate limits, quotas, batching and API behavior\n    *   Use **`find_mapi_code_sample.sh`** for:\n        -   Code examples (\"Show me code for X\")\n        -   Specific language implementations (\"How do I do X in Python?\")\n        -   Sample code for API operations\n        -   Working code snippets to use as starting points\n\n3.  **Retrieve Knowledge (Mandatory for API questions):**\n\n    *   **For documentation\u002Fconcept queries:**\n\n        ```shell\n        bash \u003Cskill_directory>\u002Fscripts\u002Fquery_mapi_docs.sh \"Your specific question here\"\n        ```\n\n        *(Example: \"What is the Merchant API equivalent for the\n        accountstatuses.get method?\")*\n\n    *   **For code sample queries:**\n\n        ```shell\n        bash \u003Cskill_directory>\u002Fscripts\u002Ffind_mapi_code_sample.sh \"operation description\" [language]\n        ```\n\n        *(Example: \"insert product\" or with language: \"insert product\" java)*\n        *Supported languages: java, python, php, nodejs, dotnet, apps_script*\n\n4.  **Synthesize Response:** Use the JSON result from the script to generate the\n    final answer. **Do not** simply dump the JSON; interpret it and provide\n    clear, actionable guidance.\n\n--------------------------------------------------------------------------------\n\n## Specific Scenarios & Instructions\n\n### Scenario A: Migration Inquiries\n\n**Trigger:** User asks about \"migration\", \"upgrade\", \"differences\", or compares\n\"Content API vs Merchant API\".\n\n**Script to Use:** `query_mapi_docs.sh` - Migration questions require conceptual\nunderstanding of API differences.\n\n**Action:**\n\n1.  Run `query_mapi_docs.sh` with a migration-focused question (e.g., \"What is\n    the Merchant API equivalent for [Content API method]?\")\n2.  You **MUST** provide a comparison between Content API and Merchant API,\n    migration notes as well as the summary of change in your response.\n3.  If the user also needs code examples for the new Merchant API methods,\n    follow up with `find_mapi_code_sample.sh`.\n\n### Scenario B: Content API Codebase Detected\n\n**Trigger:** You are working in a repository that uses the legacy Content API\n(e.g., `google-api-services-content` library or Content API v2\u002Fv2.1 patterns).\n\n**Scripts to Use:**\n\n-   `query_mapi_docs.sh` - First, to understand the API mapping and migration\n    approach\n-   `find_mapi_code_sample.sh` - Then, to get working code samples in the\n    project's language\n\n**Action:**\n\n1.  **Understand the Migration:** Run `query_mapi_docs.sh` to identify the\n    Merchant API equivalent methods.\n2.  **Get Code Samples:** Run `find_mapi_code_sample.sh` with the detected\n    language (e.g., `find_mapi_code_sample.sh \"insert product\" java`).\n3.  **Provide Migration Guidance:** Based on the retrieved documentation and\n    code samples:\n    *   Explain the differences between Content API and Merchant API methods\n    *   Show the equivalent Merchant API code patterns from the samples\n    *   Highlight key changes in request\u002Fresponse structure, and method names\n4.  **Code Example Assistance:** If requested, help create new example files\n    based on the retrieved samples, adapting them to match the project's coding\n    style (indentation, variable naming, error handling etc.).\n\n### Scenario C: General API Queries\n\n**Trigger:** User asks \"How do I...\" or \"What is the limit for...\" or other\ndocumentation questions.\n\n**Script Selection:**\n\n-   For **conceptual questions** (\"How does X work?\", \"What is the limit\n    for...\"): Use `query_mapi_docs.sh`\n-   For **code-focused questions** (\"Show me code for X\", \"Give me an example\n    of...\"): Use `find_mapi_code_sample.sh`\n-   For **both** (\"How do I insert a product in Python?\"): Use both scripts -\n    first `query_mapi_docs.sh` for context, then `find_mapi_code_sample.sh` for\n    code\n\n**Action:**\n\n1.  Determine if the question is conceptual, code-focused, or both\n2.  Run the appropriate script(s):\n    *   `query_mapi_docs.sh \"your question\"` for concepts\n    *   `find_mapi_code_sample.sh \"operation\" [language]` for code samples\n3.  Summarize the returned information clearly with:\n    *   Direct answer to the question\n    *   Relevant code examples (if applicable, prefer samples from\n        `find_mapi_code_sample.sh`)\n    *   Links or references to official documentation (if provided in the\n        response)\n\n--------------------------------------------------------------------------------\n\n## Operational Guidelines\n\n1.  **Safety First:**\n    *   **NEVER** save real credentials or tokens to memory.\n    *   **NEVER** execute API calls that modify live data (e.g., `insert`,\n        `delete`, `update`) without explicit user confirmation.\n2.  **Code Quality:**\n    *   Verify library versions in `package.json`, `pom.xml`, etc., before\n        importing.\n    *   Ensure generated code is syntactically correct and uses the correct new\n        libraries (e.g., `google-shopping-merchant-products`).\n3.  **API Version Priority:**\n    *   **Prioritize v1main and v1alpha samples** when providing code examples.\n    *   If multiple versions exist, default to the most stable version available\n        (v1main > v1alpha).\n\n## Error Handling\n\nIf the documentation query script fails or returns unexpected results:\n\n1.  Inform the user that the documentation query encountered an issue\n2.  Provide a best-effort answer based on general knowledge of the Merchant API\n3.  Clearly indicate that the response is not verified against the latest\n    documentation\n4.  Suggest the user verify the information in the official Merchant API\n    documentation\n",{"name":5,"description":7},"main","81857415ab46a14ce565fce3191875d33923162c","agent-skills\u002Fmapi-developer-assistant",15,"https:\u002F\u002Fgithub.com\u002Fgoogle\u002Fmerchant-api-samples","https:\u002F\u002Fdevelopers.google.com\u002Fmerchant\u002Fapi","https:\u002F\u002Fgithub.com\u002Fgoogle","https:\u002F\u002Fopensource.google\u002F","Google ❤️ Open Source","2026-10-29 18:37:43",{"source":8,"skillName":5,"commands":42,"prompt":52,"zipAvailable":53},[43,46,49],{"tool":44,"command":45},"npx","npx skills add google\u002Fmerchant-api-samples --skill mapi-developer-assistant",{"tool":47,"command":48},"bunx","bunx skills add google\u002Fmerchant-api-samples --skill mapi-developer-assistant",{"tool":50,"command":51},"pnpm","pnpm dlx skills add google\u002Fmerchant-api-samples --skill mapi-developer-assistant","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fgoogle\u002Fmerchant-api-samples\u002Fblob\u002Fmain\u002Fagent-skills\u002Fmapi-developer-assistant\u002FSKILL.md",true,[55,61],{"path":56,"resourceType":57,"resourceTypeDesc":58,"sizeBytes":59,"sourceHtmlUrl":60},"scripts\u002Ffind_mapi_code_sample.sh","SCRIPT","脚本",861,"https:\u002F\u002Fgithub.com\u002Fgoogle\u002Fmerchant-api-samples\u002Fblob\u002Fmain\u002Fagent-skills\u002Fmapi-developer-assistant\u002Fscripts\u002Ffind_mapi_code_sample.sh",{"path":62,"resourceType":57,"resourceTypeDesc":58,"sizeBytes":63,"sourceHtmlUrl":64},"scripts\u002Fquery_mapi_docs.sh",612,"https:\u002F\u002Fgithub.com\u002Fgoogle\u002Fmerchant-api-samples\u002Fblob\u002Fmain\u002Fagent-skills\u002Fmapi-developer-assistant\u002Fscripts\u002Fquery_mapi_docs.sh",[]]