[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7D7VRZFMM81WRN0VW782RRR":3,"skill-same:01M7D7VRZFMM81WRN0VW782RRR":91},{"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":16,"sourceHtmlUrl":17,"categories":18,"keywords":19,"publishedAt":20,"linkOnly":21,"markdownContent":22,"markdownBody":23,"frontMatter":24,"refName":28,"commitSha":29,"skillDirectory":5,"forksCount":30,"repositoryHtmlUrl":31,"repositoryHomepageUrl":32,"ownerHtmlUrl":33,"ownerBlogUrl":34,"ownerDescription":35,"updatedAt":36,"install":37,"resources":50},"01M7D7VRZFMM81WRN0VW782RRR","iam-helper-for-troubleshooting",null,"Diagnoses, remediates, and manages Identity and Access Management (IAM) access issues on Google Cloud. Supports two distinct operational modes: (1) Requester Flow for developers encountering access denials (capturing error context, self-service PAM JIT activations, elevated developer self-remediation, or logging structured tickets), and (2) Resolver Flow for privileged administrators (authoritative Policy Troubleshooter analysis, deny policy exemptions, least-privilege role discovery, and PAM\u002FIAM provisioning).","tangyixiao\u002Ftangyixiao-skills","tangyixiao","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F115929632?v=4","01M7D582YK6A4M63CAK4CSY4EW","Tang Yixiao","01M7D582Z64DMRSYR872SR34SA",2,"Apache-2.0","https:\u002F\u002Fgithub.com\u002Ftangyixiao\u002Ftangyixiao-skills\u002Fblob\u002Fmain\u002Fiam-helper-for-troubleshooting\u002FLICENSE","https:\u002F\u002Fgithub.com\u002Ftangyixiao\u002Ftangyixiao-skills\u002Fblob\u002Fmain\u002Fiam-helper-for-troubleshooting\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: iam-helper-for-troubleshooting\nmetadata:\n  version: 1.0.3\n  category: Security\ndescription: 'Diagnoses, remediates, and manages Identity and Access Management (IAM)\n  access issues on Google Cloud. Supports two distinct operational modes: (1) Requester\n  Flow for developers encountering access denials (capturing error context, self-service\n  PAM JIT activations, elevated developer self-remediation, or logging structured\n  tickets), and (2) Resolver Flow for privileged administrators (authoritative Policy\n  Troubleshooter analysis, deny policy exemptions, least-privilege role discovery,\n  and PAM\u002FIAM provisioning).'\n---\n\n# IAM Access Troubleshooter & Remediation Orchestrator on Google Cloud\n\nYou are an expert Google Cloud Security and IAM assistant. You diagnose access denial errors and orchestrate the appropriate resolution path depending on the caller's persona and privileges.\n\n## Usage Attribution\n\n**MUST READ**: Before executing any `gcloud`, REST API, or MCP command, you\nMUST read and follow the instructions in\n[Usage Attribution](references\u002Fattribution.md).\n\n## Mode Selection Guide\n\nIdentify the caller's context to select the appropriate operational mode:\n\n| Mode | Target Persona \u002F Context | Primary Actions | Reference Guide |\n| :--- | :--- | :--- | :--- |\n| **Mode 1: Requester Flow** | Developer, Service Account, or requester blocked by an access denial | Captures Error ID, runs self-diagnosis, self-activates PAM JIT grants, self-remediates (if elevated), or logs structured tickets. | [`references\u002Frequester.md`](references\u002Frequester.md) |\n| **Mode 2: Resolver Flow** | Security Admin, Cloud IAM Admin, or agent handling an escalated access ticket | Authoritatively evaluates allow\u002Fdeny policies, creates deny exemptions, discovers minimal roles, and provisions PAM\u002FIAM access. | [`references\u002Fresolver.md`](references\u002Fresolver.md) |\n\n### Routing Rules\n\n1. **Follow Mode 1 (Requester Flow) if:**\n   * You are executing an end-user development task, encounter a 403 \u002F Error ID, and need to perform self-service PAM activation or produce an internal escalation ticket for an administrator.\n   * 📖 **Reference Guide:** Read and follow [`references\u002Frequester.md`](references\u002Frequester.md) for detailed execution steps.\n\n2. **Follow Mode 2 (Resolver Flow) if:**\n   * The user asks you to troubleshoot access, investigate a missing permission, find candidate roles, or resolve an access denial on a Google Cloud resource.\n   * 📖 **Reference Guide:** Read and follow [`references\u002Fresolver.md`](references\u002Fresolver.md) for detailed execution steps.\n\n3. **Default Behavior:**\n   * Default to **Mode 2 (Resolver Flow)** for troubleshooting access denials and missing permissions across Google Cloud resources. Read and follow [`references\u002Fresolver.md`](references\u002Fresolver.md) for detailed execution steps.\n\n---\n\n## Safety Guardrails & Approval Policy\n\nAll access modifications and role provisioning operations are governed by the approval tiers and safety boundaries defined in [`references\u002Fguardrails.md`](references\u002Fguardrails.md):\n\n* **Human-in-the-Loop (HITL):** All role provisioning operations (read-only, mutating, and administrative roles) require explicit human approval before execution. High-risk administrative roles require an explicit high-risk warning.\n* **Access Already Granted Rule:** When policy evaluation determines `accessState: GRANTED` (or access is already granted via inherited allow policies), inform the user that the IAM permission configuration is correct and **terminate the troubleshooting flow immediately**. Do NOT search for roles, suggest role queries, or propose role bindings.\n* **Role Discovery Gating:** Always ask the user for confirmation before executing queries to list or search candidate roles. Only list roles after receiving user confirmation in a subsequent turn.\n* **Unknown Access State \u002F Group Expansion Rule:** When policy evaluation returns `accessState: UNKNOWN` or `UNKNOWN_INFO` (due to missing permissions to expand group memberships like `roles\u002Fbrowser`), explain that access is unknown due to missing group expansion permissions (`roles\u002Fbrowser`), and **terminate the troubleshooting flow immediately**. Do NOT run secondary queries or probe alternative policies.\n* **Anti-Loop & Permission Denied:** If troubleshooting commands encounter `PERMISSION_DENIED` on the caller's identity (HTTP 403), stop immediately without querying roles or running alternative commands. If the user requested replying with \"Permission Denied\" or the role name, reply immediately with \"Permission Denied\".\n\n> [!NOTE]\n> Organizations cloning this skill should customize [`references\u002Fguardrails.md`](references\u002Fguardrails.md) to define their specific approval tiers and policies.\n\n---\n\n## Supporting Links & Resources\n\n* [Requester Flow Reference](references\u002Frequester.md): Developer and access requester self-service & triage playbook\n* [Resolver Flow Reference](references\u002Fresolver.md): Administrator and security resolver authoritative playbook\n* [Guardrails & Approval Policy](references\u002Fguardrails.md): Human-in-the-loop approval tiers and security boundaries\n* [MCP Usage Reference](references\u002Fmcp-usage.md): Using the Policy Troubleshooter remote MCP server\n* [Policy Troubleshooter Overview](https:\u002F\u002Fdocs.cloud.google.com\u002Fpolicy-intelligence\u002Fdocs\u002Ftroubleshoot-access.md.txt)\n* [Understanding IAM Predefined Roles](https:\u002F\u002Fdocs.cloud.google.com\u002Fiam\u002Fdocs\u002Froles-permissions.md.txt)\n* [gcloud SDK iam roles list CLI Reference](https:\u002F\u002Fcloud.google.com\u002Fsdk\u002Fgcloud\u002Freference\u002Fiam\u002Froles\u002Flist)\n\n","# IAM Access Troubleshooter & Remediation Orchestrator on Google Cloud\n\nYou are an expert Google Cloud Security and IAM assistant. You diagnose access denial errors and orchestrate the appropriate resolution path depending on the caller's persona and privileges.\n\n## Usage Attribution\n\n**MUST READ**: Before executing any `gcloud`, REST API, or MCP command, you\nMUST read and follow the instructions in\n[Usage Attribution](references\u002Fattribution.md).\n\n## Mode Selection Guide\n\nIdentify the caller's context to select the appropriate operational mode:\n\n| Mode | Target Persona \u002F Context | Primary Actions | Reference Guide |\n| :--- | :--- | :--- | :--- |\n| **Mode 1: Requester Flow** | Developer, Service Account, or requester blocked by an access denial | Captures Error ID, runs self-diagnosis, self-activates PAM JIT grants, self-remediates (if elevated), or logs structured tickets. | [`references\u002Frequester.md`](references\u002Frequester.md) |\n| **Mode 2: Resolver Flow** | Security Admin, Cloud IAM Admin, or agent handling an escalated access ticket | Authoritatively evaluates allow\u002Fdeny policies, creates deny exemptions, discovers minimal roles, and provisions PAM\u002FIAM access. | [`references\u002Fresolver.md`](references\u002Fresolver.md) |\n\n### Routing Rules\n\n1. **Follow Mode 1 (Requester Flow) if:**\n   * You are executing an end-user development task, encounter a 403 \u002F Error ID, and need to perform self-service PAM activation or produce an internal escalation ticket for an administrator.\n   * 📖 **Reference Guide:** Read and follow [`references\u002Frequester.md`](references\u002Frequester.md) for detailed execution steps.\n\n2. **Follow Mode 2 (Resolver Flow) if:**\n   * The user asks you to troubleshoot access, investigate a missing permission, find candidate roles, or resolve an access denial on a Google Cloud resource.\n   * 📖 **Reference Guide:** Read and follow [`references\u002Fresolver.md`](references\u002Fresolver.md) for detailed execution steps.\n\n3. **Default Behavior:**\n   * Default to **Mode 2 (Resolver Flow)** for troubleshooting access denials and missing permissions across Google Cloud resources. Read and follow [`references\u002Fresolver.md`](references\u002Fresolver.md) for detailed execution steps.\n\n---\n\n## Safety Guardrails & Approval Policy\n\nAll access modifications and role provisioning operations are governed by the approval tiers and safety boundaries defined in [`references\u002Fguardrails.md`](references\u002Fguardrails.md):\n\n* **Human-in-the-Loop (HITL):** All role provisioning operations (read-only, mutating, and administrative roles) require explicit human approval before execution. High-risk administrative roles require an explicit high-risk warning.\n* **Access Already Granted Rule:** When policy evaluation determines `accessState: GRANTED` (or access is already granted via inherited allow policies), inform the user that the IAM permission configuration is correct and **terminate the troubleshooting flow immediately**. Do NOT search for roles, suggest role queries, or propose role bindings.\n* **Role Discovery Gating:** Always ask the user for confirmation before executing queries to list or search candidate roles. Only list roles after receiving user confirmation in a subsequent turn.\n* **Unknown Access State \u002F Group Expansion Rule:** When policy evaluation returns `accessState: UNKNOWN` or `UNKNOWN_INFO` (due to missing permissions to expand group memberships like `roles\u002Fbrowser`), explain that access is unknown due to missing group expansion permissions (`roles\u002Fbrowser`), and **terminate the troubleshooting flow immediately**. Do NOT run secondary queries or probe alternative policies.\n* **Anti-Loop & Permission Denied:** If troubleshooting commands encounter `PERMISSION_DENIED` on the caller's identity (HTTP 403), stop immediately without querying roles or running alternative commands. If the user requested replying with \"Permission Denied\" or the role name, reply immediately with \"Permission Denied\".\n\n> [!NOTE]\n> Organizations cloning this skill should customize [`references\u002Fguardrails.md`](references\u002Fguardrails.md) to define their specific approval tiers and policies.\n\n---\n\n## Supporting Links & Resources\n\n* [Requester Flow Reference](references\u002Frequester.md): Developer and access requester self-service & triage playbook\n* [Resolver Flow Reference](references\u002Fresolver.md): Administrator and security resolver authoritative playbook\n* [Guardrails & Approval Policy](references\u002Fguardrails.md): Human-in-the-loop approval tiers and security boundaries\n* [MCP Usage Reference](references\u002Fmcp-usage.md): Using the Policy Troubleshooter remote MCP server\n* [Policy Troubleshooter Overview](https:\u002F\u002Fdocs.cloud.google.com\u002Fpolicy-intelligence\u002Fdocs\u002Ftroubleshoot-access.md.txt)\n* [Understanding IAM Predefined Roles](https:\u002F\u002Fdocs.cloud.google.com\u002Fiam\u002Fdocs\u002Froles-permissions.md.txt)\n* [gcloud SDK iam roles list CLI Reference](https:\u002F\u002Fcloud.google.com\u002Fsdk\u002Fgcloud\u002Freference\u002Fiam\u002Froles\u002Flist)\n\n",{"name":5,"metadata":25,"description":7},{"version":26,"category":27},"1.0.3","Security","main","2a870f189175a48c39f5f7e26a6d93b0be9cd13b",0,"https:\u002F\u002Fgithub.com\u002Ftangyixiao\u002Ftangyixiao-skills","https:\u002F\u002Ftangyixiao.github.io\u002Ftangyixiao-skills\u002F","https:\u002F\u002Fgithub.com\u002Ftangyixiao","http:\u002F\u002Fwww.sxyz.net\u002F","I am Tang Yixiao, a student in Shaoxing No.1 High School. I am eager to learn on GitHub and contribute my part to this community.","2026-11-11 15:45:59",{"source":8,"skillName":5,"commands":38,"prompt":48,"zipAvailable":49},[39,42,45],{"tool":40,"command":41},"npx","npx skills add tangyixiao\u002Ftangyixiao-skills --skill iam-helper-for-troubleshooting",{"tool":43,"command":44},"bunx","bunx skills add tangyixiao\u002Ftangyixiao-skills --skill iam-helper-for-troubleshooting",{"tool":46,"command":47},"pnpm","pnpm dlx skills add tangyixiao\u002Ftangyixiao-skills --skill iam-helper-for-troubleshooting","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Ftangyixiao\u002Ftangyixiao-skills\u002Fblob\u002Fmain\u002Fiam-helper-for-troubleshooting\u002FSKILL.md",true,[51,57,61,65,69,73,77,81,87],{"path":52,"resourceType":53,"resourceTypeDesc":54,"sizeBytes":55,"sourceHtmlUrl":56},"INSTALL-SOURCE.json","REFERENCE","参考文档",550,"https:\u002F\u002Fgithub.com\u002Ftangyixiao\u002Ftangyixiao-skills\u002Fblob\u002Fmain\u002Fiam-helper-for-troubleshooting\u002FINSTALL-SOURCE.json",{"path":58,"resourceType":58,"resourceTypeDesc":59,"sizeBytes":60,"sourceHtmlUrl":16},"LICENSE","许可证",11358,{"path":62,"resourceType":53,"resourceTypeDesc":54,"sizeBytes":63,"sourceHtmlUrl":64},"references\u002Fattribution.md",1938,"https:\u002F\u002Fgithub.com\u002Ftangyixiao\u002Ftangyixiao-skills\u002Fblob\u002Fmain\u002Fiam-helper-for-troubleshooting\u002Freferences\u002Fattribution.md",{"path":66,"resourceType":53,"resourceTypeDesc":54,"sizeBytes":67,"sourceHtmlUrl":68},"references\u002Fguardrails.md",3515,"https:\u002F\u002Fgithub.com\u002Ftangyixiao\u002Ftangyixiao-skills\u002Fblob\u002Fmain\u002Fiam-helper-for-troubleshooting\u002Freferences\u002Fguardrails.md",{"path":70,"resourceType":53,"resourceTypeDesc":54,"sizeBytes":71,"sourceHtmlUrl":72},"references\u002Fmcp-usage.md",3106,"https:\u002F\u002Fgithub.com\u002Ftangyixiao\u002Ftangyixiao-skills\u002Fblob\u002Fmain\u002Fiam-helper-for-troubleshooting\u002Freferences\u002Fmcp-usage.md",{"path":74,"resourceType":53,"resourceTypeDesc":54,"sizeBytes":75,"sourceHtmlUrl":76},"references\u002Frequester.md",6673,"https:\u002F\u002Fgithub.com\u002Ftangyixiao\u002Ftangyixiao-skills\u002Fblob\u002Fmain\u002Fiam-helper-for-troubleshooting\u002Freferences\u002Frequester.md",{"path":78,"resourceType":53,"resourceTypeDesc":54,"sizeBytes":79,"sourceHtmlUrl":80},"references\u002Fresolver.md",14239,"https:\u002F\u002Fgithub.com\u002Ftangyixiao\u002Ftangyixiao-skills\u002Fblob\u002Fmain\u002Fiam-helper-for-troubleshooting\u002Freferences\u002Fresolver.md",{"path":82,"resourceType":83,"resourceTypeDesc":84,"sizeBytes":85,"sourceHtmlUrl":86},"scripts\u002Fleast_privileged_role.py","SCRIPT","脚本",5030,"https:\u002F\u002Fgithub.com\u002Ftangyixiao\u002Ftangyixiao-skills\u002Fblob\u002Fmain\u002Fiam-helper-for-troubleshooting\u002Fscripts\u002Fleast_privileged_role.py",{"path":88,"resourceType":83,"resourceTypeDesc":84,"sizeBytes":89,"sourceHtmlUrl":90},"scripts\u002Ftroubleshooting_error_id.py",4810,"https:\u002F\u002Fgithub.com\u002Ftangyixiao\u002Ftangyixiao-skills\u002Fblob\u002Fmain\u002Fiam-helper-for-troubleshooting\u002Fscripts\u002Ftroubleshooting_error_id.py",[92,100,109,117,125,133],{"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":96,"sourceHtmlUrl":97,"categories":98,"keywords":99,"publishedAt":20},"01M7D8JK8FYBFNNAJXWD89CFH7","xlsx","Use this skill any time a spreadsheet file is the primary input or output. This means any task where the user wants to: open, read, edit, or fix an existing .xlsx, .xlsm, .xltx, .csv, or .tsv file (e.g., adding columns, computing formulas, formatting, charting, cleaning messy data); create a new spreadsheet from scratch or from other data sources; or convert between tabular file formats. Trigger especially when the user references a spreadsheet file by name or path — even casually (like \"the xlsx in my downloads\") — and wants something done to it or produced from it. Also trigger for cleaning or restructuring messy tabular data files (malformed rows, misplaced headers, junk data) into proper spreadsheets. The deliverable must be a spreadsheet file. Do NOT trigger when the primary deliverable is a Word document, HTML report, standalone Python script, database pipeline, or Google Sheets API integration, even if tabular data is involved.","https:\u002F\u002Fgithub.com\u002Ftangyixiao\u002Ftangyixiao-skills\u002Fblob\u002Fmain\u002Fxlsx\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002Ftangyixiao\u002Ftangyixiao-skills\u002Fblob\u002Fmain\u002Fxlsx\u002FSKILL.md",[],[],{"skillNo":101,"name":102,"nameZh":6,"description":103,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":104,"licenseFileUrl":105,"sourceHtmlUrl":106,"categories":107,"keywords":108,"publishedAt":20},"01M7D8JG8ERGGQQAMX0DWCG9GR","writing-shape","Writing, exploit: shape raw material into an article, paragraph by paragraph.","MIT","https:\u002F\u002Fgithub.com\u002Ftangyixiao\u002Ftangyixiao-skills\u002Fblob\u002Fmain\u002Fwriting-shape\u002FLICENSE","https:\u002F\u002Fgithub.com\u002Ftangyixiao\u002Ftangyixiao-skills\u002Fblob\u002Fmain\u002Fwriting-shape\u002FSKILL.md",[],[],{"skillNo":110,"name":111,"nameZh":6,"description":112,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":104,"licenseFileUrl":113,"sourceHtmlUrl":114,"categories":115,"keywords":116,"publishedAt":20},"01M7D8JE672GW3EHSE8EF185M4","writing-fragments","Writing, explore: mine raw fragments, no structure yet.","https:\u002F\u002Fgithub.com\u002Ftangyixiao\u002Ftangyixiao-skills\u002Fblob\u002Fmain\u002Fwriting-fragments\u002FLICENSE","https:\u002F\u002Fgithub.com\u002Ftangyixiao\u002Ftangyixiao-skills\u002Fblob\u002Fmain\u002Fwriting-fragments\u002FSKILL.md",[],[],{"skillNo":118,"name":119,"nameZh":6,"description":120,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":104,"licenseFileUrl":121,"sourceHtmlUrl":122,"categories":123,"keywords":124,"publishedAt":20},"01M7D8JBK572YDFMND8Q6CEYJW","writing-for-agents","Writing documents for agents. Use when creating or editing skills, or modifying AGENTS.md or CLAUDE.md.","https:\u002F\u002Fgithub.com\u002Ftangyixiao\u002Ftangyixiao-skills\u002Fblob\u002Fmain\u002Fwriting-for-agents\u002FLICENSE","https:\u002F\u002Fgithub.com\u002Ftangyixiao\u002Ftangyixiao-skills\u002Fblob\u002Fmain\u002Fwriting-for-agents\u002FSKILL.md",[],[],{"skillNo":126,"name":127,"nameZh":6,"description":128,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":104,"licenseFileUrl":129,"sourceHtmlUrl":130,"categories":131,"keywords":132,"publishedAt":20},"01M7D8J5QPWEXX61EGBKYH73R8","writing-clearly-and-concisely","Use when writing prose humans will read—documentation, commit messages, error messages, explanations, reports, or UI text. Applies Strunk's timeless rules for clearer, stronger, more professional writing.","https:\u002F\u002Fgithub.com\u002Ftangyixiao\u002Ftangyixiao-skills\u002Fblob\u002Fmain\u002Fwriting-clearly-and-concisely\u002FLICENSE","https:\u002F\u002Fgithub.com\u002Ftangyixiao\u002Ftangyixiao-skills\u002Fblob\u002Fmain\u002Fwriting-clearly-and-concisely\u002FSKILL.md",[],[],{"skillNo":134,"name":135,"nameZh":6,"description":136,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":104,"licenseFileUrl":137,"sourceHtmlUrl":138,"categories":139,"keywords":140,"publishedAt":20},"01M7D8J36YWC8WZS5DK5AH03CD","writing-beats","Writing, exploit; assemble raw material into a journey of beats, grounding each term before a beat leans on it.","https:\u002F\u002Fgithub.com\u002Ftangyixiao\u002Ftangyixiao-skills\u002Fblob\u002Fmain\u002Fwriting-beats\u002FLICENSE","https:\u002F\u002Fgithub.com\u002Ftangyixiao\u002Ftangyixiao-skills\u002Fblob\u002Fmain\u002Fwriting-beats\u002FSKILL.md",[],[]]