carlosmscabral/cabral-skills/gcp-iam-troubleshooter

Claude Code and agent skill by carlosmscabral/cabral-skills

Trust tier 3
  • community
Source check pending

Checking that the SKILL.md file is still in the repository.

Advanced diagnostics playbook for complex GCP authorization errors, cross-project lookups, and token impersonations.

Install

npx vskill@latest install carlosmscabral/cabral-skills/gcp-iam-troubleshooter

SKILL.md

The same SKILL.md was published earlier as carlosmscabral/cabral-skills/gcp-iam-troubleshooter.

Advanced IAM Troubleshooting Skill

Use this skill when you encounter complex, nested, or cross-project authorization failures (HTTP 403 Permission Denied), token impersonation failures, or Service Account ActAs delegation issues.

1. Identify the Active Principal & Workspace Scope

Execute these commands to identify precisely which service account or developer identity is executing the commands:

bash
# Print current active account and configured project
gcloud config list --format="json(core.account,core.project)"
2. Audit Active Service Account Roles & Bindings

Fetch the current IAM policy bindings for the project to verify if the executing account actually holds the required predefined permissions:

bash
# Filter and print all roles bound to the active service account
gcloud projects get-iam-policy $(gcloud config get-value project) \
--flatten="bindings[].members" \
--filter="bindings.members:$(gcloud config get-value account)" \
--format="table(bindings.role)"
3. Diagnose Service Account Impersonation Issues

If the setup relies on local impersonation (running commands on behalf of another high-privilege service account), verify that your active identity holds the Token Creator role on the target account:

bash
# List accounts you have permission to impersonate or act as
gcloud iam service-accounts get-iam-policy target-service-account@project.iam.gserviceaccount.com \
--filter="bindings.role:roles/iam.serviceAccountTokenCreator"
4. Apply Least-Privilege Remediation

Construct a clear Markdown table of findings and propose specific, predefined role mappings. Never suggest wildcard owner or editor bindings.

Security

  • Security scanPassed, 90 of 100Pattern checks on the skill's files.
  • Model reviewPassed

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

Repository stars
1
7-day trend score
8

Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/carlosmscabral/cabral-skills/gcp-iam-troubleshooter/badge)](https://verified-skill.com/skills/carlosmscabral/cabral-skills/gcp-iam-troubleshooter)

Something wrong with this skill or its page? Tell us.