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.
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/iamRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/itsmostafa/aws-agent-skills /tmp/aws-agent-skills && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/aws-agent-skills/skills/iam ~/.gemini/antigravity-cli/skills/iamAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
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
ANo 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 →Retrieves lab biomarker results and clinician notes from Function Health through its FHIR API. It is for people who want an AI assistant to review their own lab history and notes.
Gives an AI assistant a methodology for finding and exploiting privilege escalation weaknesses on Windows systems during authorized penetration tests. It is for security testers and defenders validating escalation paths.
Guides the assistant through designing, debugging and hardening GitHub Actions CI/CD workflows. It is aimed at teams that run production pipelines on GitHub.
Develops evidence-backed structural security hardening proposals from disclosures, findings, source code, or Codex Security scans. It is for teams that need systemic fixes and architectural tradeoffs.
Claude Security scans code for security issues with Claude Code. It covers whole repositories, branch or pull request diffs, single commits, and existing findings from SARIF files or earlier reports.
Turns vulnerability notes, disclosure reports, PoCs, source code, or Codex Security findings into self-contained vulnerability reports. Built for security researchers who need claims the evidence supports.
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.
