iam-helper-for-troubleshooting
Skill này làm gì
Skill này tìm ra lý do một người bị chặn khỏi tài nguyên Google Cloud và cách xử lý. Skill phục vụ hai nhóm: nhà phát triển bị chặn, và quản trị viên xử lý các yêu cầu truy cập.
Khi nào nên dùng
- ✓Khi nhà phát triển hoặc service account gặp lỗi từ chối truy cập hoặc lỗi 403 trên Google Cloud.
- ✓Khi quản trị viên cần xem các chính sách cho phép và từ chối để giải thích việc bị chặn.
- ✓Khi người dùng bị chặn cần một phiếu yêu cầu có cấu trúc hoặc một yêu cầu truy cập tạm thời.
Liên kết skill
https://github.com/google/skills/blob/main/skills/cloud/iam-helper-for-troubleshooting/SKILL.mdSao chép rồi dán vào AI của bạn (Claude, ChatGPT hoặc Cursor) và nhờ nó làm theo hướng dẫn.
Cách dùng
Cách dễ nhất: sao chép tin nhắn và dán vào AI của bạn. AI sẽ đọc skill và làm theo hướng dẫn.
Tin nhắn có sẵn để dán
Dành cho Claude Code, Codex hoặc Cursor: chạy lệnh trong thư mục dự án của bạn và skill sẽ được cài đặt.
Tải tệp SKILL.md về và thả vào thư mục skill của agent.
Ví dụ cách nhờ AI
“Service account của tôi nhận lỗi 403 từ BigQuery. Hãy tìm xem nó đang thiếu quyền nào và cần yêu cầu gì.”
5 skill mới mỗi tuần. Đọc chỉ 1 phút.
Cách hoạt động
Skill ghi lại chi tiết lỗi và kiểm tra các chính sách cho phép và từ chối liên quan. Tùy người hỏi là ai, skill hướng dẫn yêu cầu quyền tự phục vụ hoặc đưa cho quản trị viên cách khắc phục.
Nội dung kỹ thuật (SKILL.md gốc)
Lấy nguyên văn từ GitHub, do tác giả viết bằng tiếng Anh.
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.
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 |
| 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 |
Routing Rules
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.mdfor detailed execution steps.
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.mdfor detailed execution steps.
Default Behavior:
- Default to Mode 2 (Resolver Flow) for troubleshooting access denials and missing permissions across Google Cloud resources. Read and follow
references/resolver.mdfor detailed execution steps.
- Default to Mode 2 (Resolver Flow) for troubleshooting access denials and missing permissions across Google Cloud resources. Read and follow
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:
- 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: UNKNOWNorUNKNOWN_INFO(due to missing permissions to expand group memberships likeroles/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_DENIEDon 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.mdto define their specific approval tiers and policies.
Supporting Links & Resources
- Requester Flow Reference: Developer and access requester self-service & triage playbook
- Resolver Flow Reference: Administrator and security resolver authoritative playbook
- Guardrails & Approval Policy: Human-in-the-loop approval tiers and security boundaries
Câu hỏi thường gặp
Skill dành cho ai?
Nhà phát triển bị chặn dùng luồng người yêu cầu, còn quản trị viên dùng luồng người xử lý.
Skill có tự thay đổi quyền truy cập không?
Chỉ trong luồng quản trị viên, và mọi thay đổi được hiển thị để xác nhận trước.
Skill có tạo phiếu không?
Có. Với người yêu cầu bị chặn, skill có thể ghi lại một phiếu có cấu trúc.
Chi tiết
Mô tả gốc của tác giả
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).
repo: google/skills
Độ phổ biến
- Sao GitHub
- 22k
- Vị trí xếp hạng
- #10341
- Giấy phép
- Apache-2.0
- Cập nhật
- 2/11/2026
Bình luận
- …
Thêm skill từ kho mã này
finding-google-skills
22kGiúp agent của bạn tìm hướng dẫn Google phù hợp cho việc thiết lập, như hosting, cơ sở dữ liệu, lưu trữ, đăng nhập hoặc phục vụ mô hình AI.
gcloud
22kGiúp agent của bạn viết và kiểm tra các lệnh gcloud của Google Cloud, tra cứu cú pháp chính xác trước khi chạy bất cứ thứ gì để không đoán các flag.
google-cloud-recipe-auth
22kHướng dẫn agent của bạn qua quản lý danh tính và quyền truy cập của Google Cloud, gồm cách con người và dịch vụ đăng nhập và những quyền họ nhận được.
google-cloud-recipe-onboarding
22kHướng dẫn một lập trình viên mới qua các bước đầu tiên trên Google Cloud, gồm chọn dự án, liên kết thanh toán và triển khai tài nguyên đầu tiên.
Skill tương tự
reverse-engineer-anything
422kGiúp agent của bạn xem bên trong các app và package đã phát hành để giải thích tính năng, so sánh phiên bản hoặc hướng dẫn dựng lại bằng công cụ REA.
1password
394kGiúp agent của bạn cài đặt CLI của 1Password, đăng nhập, và đọc hoặc đưa thông tin bí mật vào mà không in giá trị ra cuộc trò chuyện.
healthcheck
394kGiúp agent của bạn rà soát bảo mật máy tính hoặc máy chủ đang chạy OpenClaw, như SSH, tường lửa, cập nhật và sao lưu, rồi đề xuất cách sửa an toàn.