Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

aws-iam

Skill by aws

Provides verified corrections for IAM behaviors that AI agents often get wrong, plus workflows for IAM roles and baseline policies. It is for developers and agents writing IAM, bucket, or trust policies on AWS.

  • Score 89
  • 3.8k stars
  • Apache-2.0
  • Updated
Works withClaude CodeClaude apps Antigravity CLI

Install aws-iam

Built from the published package, never by AI.

git clone --depth 1 https://github.com/aws/agent-toolkit-for-aws /tmp/agent-toolkit-for-aws && mkdir -p ~/.claude/skills && cp -r /tmp/agent-toolkit-for-aws/skills/core-skills/aws-iam ~/.claude/skills/aws-iam

Run in your terminal. Claude Code loads skills from ~/.claude/skills automatically.

Step-by-step: install aws-iam in Claude Code

Skills can run scripts on your machine. Some need an API key: check the README.

About

The aws-iam skill gives AI assistants verified corrections for IAM behaviors they often get wrong. It covers policy evaluation edge cases, trust policy gotchas, STS session limits, Organizations quirks, and SAML and MFA specifics. It also covers condition operator safety, bucket policy deny patterns, and confused deputy protection.

The skill includes two reference workflows. One covers creating and maintaining IAM roles, including service and execution roles with aws:SourceAccount and aws:SourceArn trust conditions. The other covers generating policies from application source code or a Terraform plan JSON, which requires iam-policy-autopilot. It is for developers and agents working on IAM roles, policies, STS, or Organizations. It does not cover Cognito user-pool policies or app-level RBAC.

Written from the project's SKILL.md and checked against it.

What it can do

  • Policy evaluation correctionsCovers ForAllValues with Null checks, case-sensitive tag keys, and privilege escalation actions.
  • Trust policy and confused deputy guidanceCovers trust policy gotchas and aws:SourceAccount and aws:SourceArn trust conditions.
  • STS and Organizations edge casesCovers GetSessionToken restrictions, role chaining limits, and Organizations account removal.
  • IAM role management workflowGuides creating service and execution roles, trust policies, and permission hygiene.
  • Policy generation workflowGenerates baseline policies from application source code or a Terraform plan JSON.
  • Bucket policy deny patternsCovers deny patterns such as VPC endpoint restrictions and org paths.
  • SAML and MFA specificsCovers encrypted SAML assertion URLs, private key format, and MFA resync policy actions.
  • SDK specificsLists boto3 IAM access key methods and Organizations exception names.

What you need

  • AWS MCP server (recommended, not required)
  • AWS CLI or SDK (alternative to the MCP server)
  • iam-policy-autopilot for policy generation from source code or Terraform plans

Try asking

  • Create a Glue service role with aws:SourceAccount trust conditions
  • Generate a baseline IAM policy from this Terraform plan JSON
  • Check this ForAllValues condition for the empty key edge case

Good to know

  • Not a comprehensive IAM guide; search AWS documentation for full guidance.
  • Does not cover Cognito user-pool policies or app-level RBAC.
  • Policy generation from code or Terraform must use iam-policy-autopilot.

Security check

A

No download-and-run commands, hidden instructions or signs of sending keys out were found.

Checked automatically: skills/core-skills/aws-iam/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work

Inside the skill

  • SKILL.md7 KB
  • references/aws-iam-policy-generation.md39 KB
  • references/aws-iam-role-management.md7 KB
  • references/common-pitfalls.md6 KB
  • references/service-authorization.md3 KB

Alternatives to aws-iam

All alternatives →

Compare with function_health, windows-privilege-escalation or github-actions-advanced

aws-iam: common questions

Does this skill generate IAM policies from application code?

Yes. For application source code or a Terraform plan JSON, the skill says to use iam-policy-autopilot instead of building policies manually.

Is this a complete IAM guide?

No. The skill says it is not comprehensive and recommends checking AWS documentation for full IAM guidance.

Does it cover Cognito user-pool policies?

No. The skill excludes non-IAM authorization such as Cognito user-pool policies and app-level RBAC.

How do I install aws-iam?

Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.

Is aws-iam free?

The code is published under the Apache-2.0 licence. The service it connects to may have its own pricing.

Is aws-iam safe to use?

It scores 89 of 100. Grades: maintenance A, licence A, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.

What are alternatives to aws-iam?

Similar skills: function_health, windows-privilege-escalation, github-actions-advanced, propose-security-hardening.

aws-iam Install

Add to stack

Loading.