Skip to content
Agentmart
Submit a tool

iam-helper-for-troubleshooting

Diagnoses, remediates, and manages Identity and Access Management (IAM) access issues on Google Cloud.

Skill by googleOfficial

IndexedApache-2.0★ 21,542
Write a review

Install

Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.

npx agentmarket install skill/google-iam-helper-for-troubleshooting

Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.

Get the weekly diff

The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.

We use your email only for this newsletter. Privacy

About

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/IAM provisioning).

Use cases: cloud

No reviews yet. Installed it? Reviews come from verified installers only. How reviews work

Permissions

What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.

Tools
No tools found
Secrets
None asked for
Install scripts
None found
Runs as
Python package

Network hosts it talks to 1

  • codeload.github.com · found in install command

Files it touches

  • ~/.claude/skills/iam-helper-for-troubleshooting

What's inside

Skill name
iam-helper-for-troubleshooting
Description
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/IAM provisioning).
License
Apache-2.0
Metadata
version: 1.0.3 · category: Security
Instructions
61 lines in SKILL.md · view on GitHub

Before installing

  • Ships executable scripts

Files (8)

  • SKILL.md
  • attribution.md · references/
  • guardrails.md · references/
  • mcp-usage.md · references/
  • requester.md · references/
  • resolver.md · references/
  • least_privileged_role.py · scripts/
  • troubleshooting_error_id.py · scripts/

SKILL.md (first lines)

# IAM Access Troubleshooter & Remediation Orchestrator on Google Cloud

You 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.

## Usage Attribution

**MUST READ**: Before executing any `gcloud`, REST API, or MCP command, you
MUST read and follow the instructions in
[Usage Attribution](references/attribution.md).

## Mode Selection Guide

Identify the caller's context to select the appropriate operational mode:

| Mode | Target Persona / Context | Primary Actions | Reference Guide |
| :--- | :--- | :--- | :--- |
| **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/requester.md`](references/requester.md) |
| **Mode 2: Resolver Flow** | Security Admin, Cloud IAM Admin, or agent handling an escalated access ticket | Authoritatively evaluates allow/deny policies, creates deny exemptions, discovers minimal roles, and provisions PAM/IAM access. | [`references/resolver.md`](references/resolver.md) |

### Routing Rules

1. **Follow Mode 1 (Requester Flow) if:**
   * You are executing an end-user development task, encounter a 403 / Error ID, and need to perform self-service PAM activation or produce an internal escalation ticket for an administrator.
   * 📖 **Reference Guide:** Read and follow [`references/requester.md`](references/requester.md) for detailed execution steps.

2. **Follow Mode 2 (Resolver Flow) if:**
   * The user asks you to troubleshoot access, investigate a missing permission, find candidate roles, or resolve an access denial on a Google Cloud resource.
   * 📖 **Reference Guide:** Read and follow [`references/resolver.md`](references/resolver.md) for detailed execution steps.

3. **Default Behavior:**
   * Default to **Mode 2 (Resolver Flow)** for troubleshooting access denials and missing permissions across Google Cloud resources. Read and follow [`references/resolver.md`](references/resolver.md) for detailed execution steps.

---

## Safety Guardrails & Approval Policy

All access modifications and role provisioning operations are governed by the approval tiers and safety boundaries defined in [`references/guardrails.md`](references/guardrails.md):

* **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.
* **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.
* **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.
* **Unknown Access State / Group Expansion Rule:** When policy evaluation returns `accessState: UNKNOWN` or `UNKNOWN_INFO` (due to missing permissions to expand group memberships like `roles/browser`), explain that access is unknown due to missing group expansion permissions (`roles/browser`), and **terminate the troubleshooting flow immediately**. Do NOT run secondary queries or probe alternative policies.
* **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".

> [!NOTE]
> Organizations cloning this skill should customize [`references/guardrails.md`](references/guardrails.md) to define their specific approval tiers and policies.

---

## Supporting Links & Resources

* [Requester Flow Reference](references/requester.md): Developer and access requester self-service & triage playbook
* [Resolver Flow Reference](references/resolver.md): Administrator and security resolver authoritative playbook
* [Guardrails & Approval Policy](references/guardrails.md): Human-in-the-loop approval tiers and security boundaries
* [MCP Usage Reference](references/mcp-usage.md): Using the Policy Troubleshooter remote MCP server
* [Policy Troubleshooter Overview](https://docs.cloud.google.com/policy-intelligence/docs/troubleshoot-access.md.txt)
* [Understanding IAM Predefined Roles](https://docs.cloud.google.com/iam/docs/roles-permissions.md.txt)
* [gcloud SDK iam roles list CLI Reference](https://cloud.google.com/sdk/gcloud/reference/iam/roles/list)

From google/skills, Apache-2.0.

More from google/skills

Signals

Stars
21,542
Forks
1,821
Open issues
21
Last commit (this folder)
Oct 22, 2026 (6 days ago)

From GitHub (fetched Oct 24, 2026).

Details

Version
1.0.3
License
Apache-2.0
First seen
Oct 24, 2026
Last checked
Oct 24, 2026

More from google

Cite this page

iam-helper-for-troubleshooting skill. Agent Mart. https://agentmart.dev/skills/google-iam-helper-for-troubleshooting (last updated 2026-10-24)