What problem does it solve? AI agents frequently produce incorrect IAM policies — hallucinated action names, missing cross-service permissions, malformed trust policies, and unsafe condition operators. This Skill provides verified corrections for common IAM mistakes plus structured workflows for role management and least-privilege policy generation. ## Core Features & Use Cases - Deterministic Policy Generation: Routes source code (Python, Go, TypeScript, JavaScript, Java) through the iam-policy-autopilot static analysis tool instead of manual policy construction, with a service authorization reference fallback for unsupported languages. - IAM Role Management: Structured workflows for creating and maintaining service roles and execution roles, including trust policies with aws:SourceArn/aws:SourceAccount confused deputy protection. - Verified Edge Cases: Documented corrections for STS session limits, Organizations quirks, SAML specifics, CloudTrail logging behavior, and ForAnyValue/ForAllValues Null-check patterns. - Use Case: A developer pastes a Python Lambda handler using boto3 and asks for an execution role policy. The Skill mandates running uvx iam-policy-autopilot@latest generate-policies with discovered account/region flags, producing a scoped policy without hallucinated actions like s3:CopyObject. ## Quick Start Ask the agent to generate a least-privilege IAM policy from your application source code or to create a service role for an AWS resource you are provisioning.