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

iam

Skill by itsmostafa

The iam skill guides an AI assistant through AWS Identity and Access Management. It covers policies, roles, trust relationships, and permission troubleshooting. It is for developers and admins who manage AWS access control.

  • Score 88
  • 1.2k stars
  • MIT
  • Updated
Works withClaude CodeClaude apps Antigravity CLI

Install iam

Built from the published package, never by AI.

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

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

Step-by-step: install iam in Claude Code

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

About

The iam skill gives an AI assistant guidance on AWS Identity and Access Management. It explains principals, identity-based and resource-based policies, permission boundaries, service control policies, roles, and trust policies. It includes AWS CLI and boto3 examples for creating a Lambda service role, writing a least-privilege custom policy, and setting up cross-account role assumption.

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

What it can do

  • Create service rolesCreates an IAM role with a trust policy and attaches a managed policy, using the AWS CLI or boto3.
  • Write least-privilege policiesCreates a customer managed policy that grants only specific DynamoDB actions on one table.
  • Set up cross-account accessConfigures a trust policy with an ExternalId condition and assumes a role in another account.
  • Simulate permissionsUses simulate-principal-policy to test whether a role can perform a given action on a resource.
  • Troubleshoot access denied errorsLists debug steps covering caller identity, attached policies, SCPs, boundaries, and resource policies.
  • Explain IAM conceptsDescribes principals, policy types, roles, and trust relationships.
  • Recommend security practicesLists practices such as enabling MFA, using roles instead of long-term keys, and applying least privilege.
  • Check policy size limitsStates character limits for managed, inline, and trust policies and suggests ways to stay under them.

What you need

  • AWS account
  • AWS CLI
  • Python and boto3 for the Python examples

Try asking

  • Create a Lambda service role with AWS basic execution permissions
  • Write a least-privilege policy for DynamoDB GetItem, PutItem and Query
  • Help me debug an AccessDenied error using IAM policy simulation

Good to know

  • Examples use the AWS CLI and boto3 only.
  • Policy size limits are listed for managed, inline, and trust policies.

Security check

A

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

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

Inside the skill

  • SKILL.md7 KB
  • best-practices.md7 KB
  • policies.md7 KB

Alternatives to iam

All alternatives →

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

iam: common questions

Does the iam skill cover cross-account access?

Yes. It includes a pattern that creates a trust policy for another account with an ExternalId condition, then assumes the role with sts assume-role.

How does the skill suggest debugging AccessDenied errors?

It suggests checking caller identity with sts get-caller-identity, reviewing attached policies, and running simulate-principal-policy. It also says to check SCPs, permission boundaries, and resource-based policies.

What are the IAM policy size limits?

Managed policies are limited to 6,144 characters. Inline policies are limited to 2,048 characters for users and 10,240 characters for roles and groups, and trust policies to 2,048 characters.

How do I install iam?

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

Is iam free?

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

Is iam safe to use?

It scores 88 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 iam?

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

Add to stack

Loading.