iam
/iam
Analyze IAM and resource policies from templates or a pasted policy, or explain an AccessDenied message. Use when the user asks who can do what, whether a policy is too broad, why a call was denied, or what permission is missing.
- Author
- Alejo2075 ↗
- Repository
- claude-code-aws ↗
- Licence
- MIT
- Last repository change
- 31.10.2026
Assessment and security
- Files in this package
- 1
- Scripts
- 0
- HTML comments
- 0
- URLs in SKILL.md
- 0
No signals detected. Repository changed on 31.10.2026, without references to retired models or APIs.
MIT, open: use and modify while retaining author attribution.
What it does and when to use it
Analyze IAM and resource policies from templates or a pasted policy, or explain an AccessDenied message. Use when the user asks who can do what, whether a policy is too broad, why a call was denied, or what permission is missing.
Arguments
/iam [path] | --policy <file> [--trust|--resource] | --explain "<message>
Original author description
Analyze IAM and resource policies from templates or a pasted policy, or explain an AccessDenied message. Use when the user asks who can do what, whether a policy is too broad, why a call was denied, or what permission is missing.
How it works
- Side effects
- Preconditions and inputs
- Read-only reconnaissance
- Steps
- Agents and tools
- Output
- Failure, permission, cost, and safety handling
SKILL.md preview
---
name: iam
description: Analyze IAM and resource policies from templates or a pasted policy, or explain an AccessDenied message. Use when the user asks who can do what, whether a policy is too broad, why a call was denied, or what permission is missing.
argument-hint: '[path] | --policy <file> [--trust|--resource] | --explain "<message>"'
allowed-tools: Bash(node ${CLAUDE_PLUGIN_ROOT}/dist/cli.mjs iam *)
---
# IAM analysis
Lists the policy statements in the templates (or one pasted policy) with IAM findings, or reads an `AccessDenied` message and says what it states.
## Side effects
`read`. Local files and the message you give it. It does not call AWS and does not simulate policies.
## Preconditions and inputs
- A template path, `--policy <file>` (add `--trust` for a trust policy, `--resource` for a resource policy), or `--explain "<the full message>"`.
- For `--explain` the user must provide the **complete** message, including the part that starts with `User:` or `Role:`.
## Read-only reconnaissance
Do not guess the denial cause from the action name. If the message has no cause, say so and ask for the full text or for CloudTrail.
## Steps
1. Run `node ${CLAUDE_PLUGIN_ROOT}/dist/cli.mjs iam ... --json`.
2. For `--explain`: report the cause the message names, what to check, and, only for an implicit deny in an identity policy, the proposed minimal statement, **labeled a proposal**.
3. For templates or a policy: report the findings and the statements that cause them.
## Agents and tools
The Bash tool, restricted to this plugin's `iam` command. No agent and no MCP server.
## Output
The cause (or "not stated"), the checks in order, and the proposal if any. State that an explicit deny cannot be fixed by adding an Allow, and that cross-account access needs both sides to allow it.
## Failure, permission, cost, and safety handling
- The proposed statement is never applied. The user reviews it, scopes the resource, and adds conditions.
- Never suggest `Action: *` or `Resource: *` as a fix.
- The analysis cannot see the actual policies behind a message, so it cannot confirm that the proposal is enough.
Versions
| Repository | Score | Licence |
|---|---|---|
| This page · Alejo2075/claude-code-aws | 90 | MIT |
| itsmostafa/aws-agent-skills | 100 | MIT |
| chrishuffman5/domain-expert | 100 | MIT |
| aws-samples/sample-claude-code-plugins-for-startups | 100 | MIT |
| jpantsjoha/googlecloud-plugin | 100 | MIT |
Database snapshot: 13.11.2026 · package version 8253766c6c0a (SHA-256 digest of the entire package)
Downloads in the last 30 days: 1 · ranking
Report a problem with this skill: harmful content, incorrect descriptions or an author’s removal request.
Similar skills
- 100iam-policy-creator
Create iam policy creator operations. Auto-activating skill for AWS Skills. Triggers on: iam policy creator, iam policy creator Part of the AWS Skills skill category. Use when working with iam policy creator functionality. Trigger with phrases like "iam policy creator", "iam creator", "iam". - 91iam-policy-design
Generates IAM policies and security controls for AWS architectures following least-privilege principles. Use when designing access controls for a new service. Produces IAM role policies, resource policies, and compliance configurations. - 100iam-policy-reviewer
Execute iam policy reviewer operations. Auto-activating skill for Security Advanced. Triggers on: iam policy reviewer, iam policy reviewer Part of the Security Advanced skill category. Use when working with iam policy reviewer functionality. Trigger with phrases like "iam policy… - 100iam-least-privilege-review
Reviews AWS IAM identity, resource, trust and permission boundary policies for least privilege and reports severity-ranked findings with a tightened policy JSON and IAM Access Analyzer validation commands. Use when asked to audit, review or tighten an IAM policy, check… - 95localstack-iam
Analyze and enforce IAM policies in LocalStack. Use when users want to enable IAM enforcement, detect permission violations, auto-generate least-privilege policies, or test IAM policies locally before deploying to AWS. - 100iam-helper-for-policy-management
Streamlines the creation, modification, and management of IAM allow policies (v1) and deny policies (v2). Manages access control across Resource Manager resources (Organization, Folder, Project) and individual resources. Use when creating, updating, listing, or deleting IAM…