# Iam policy design

> Iam policy design is an open-source agent skill for security. Drafts least-privilege IAM, KMS, S3 and SCP policies and AWS security controls. It is available on Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose.

- **Kind:** Skill
- **Pricing:** Open source
- **Platforms:** Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf, Goose
- **Website:** https://github.com/aws-solutions/konductor/tree/main/skills/iam-policy-design
- **Repository:** https://github.com/aws-solutions/konductor
- **GitHub stars:** 12
- **License:** Apache-2.0
- **Skill name:** iam-policy-design
- **Collection:** https://github.com/aws-solutions/konductor
- **Categories:** [security](https://ai-powered.com/categories/security)
- **Listing updated:** 2026-12-04

## About

This skill guides an agent through designing AWS access controls: identity and resource policies, service control policies, permission boundaries, and the encryption, logging, monitoring and network settings that support them. It works in two modes, starting from scratch with discovery questions or from existing artifacts such as system designs, API specs and threat models, and it maps each threat to a control and a validation method.

The workflow asks the agent to map actors to principals and actions to resource ARNs, then to apply condition keys such as TLS enforcement and region limits. It draws on AWS MCP server skills for policy generation and S3, secrets and CloudTrail settings when that server is available, and falls back to built-in rules otherwise. Compliance reference checklists cover GDPR, HIPAA, PCI-DSS and SOC 2 when those frameworks or regulated data come up.

The output follows a fixed layout of executive summary, security context, policy JSON, controls, threat mapping, compliance validation, CDK or CloudFormation code and testing recommendations. It expects AWS requirements and access details as input, and a review by the security team before production use.

## When your agent uses it

> Generates least-privilege IAM policies and security controls for AWS. Use when writing an IAM role, S3 bucket, or KMS key policy, a permission boundary, or an SCP, or when asked for least-privilege access for a service.

## What it can access

From a static check of the files on GitHub; nothing was run.

- [Instructions only, no scripts](https://github.com/aws-solutions/konductor/tree/HEAD/skills/iam-policy-design)
- [License: Apache-2.0](https://github.com/aws-solutions/konductor/tree/HEAD/skills/iam-policy-design)

## Features

- **Least-privilege policy design:** Builds identity, resource, trust and permission boundary policies scoped to the documented access patterns.
- **Encryption and key management:** Covers customer-managed KMS keys, key policies, rotation and encryption for common AWS data stores.
- **Audit logging and retention:** Sets up CloudTrail, service logs and retention periods for operational and compliance needs.
- **Threat-to-control mapping:** Links each identified threat to a mitigation, a status and a validation method.
- **Compliance gap review:** Checks designs against GDPR, HIPAA, PCI-DSS and SOC 2 controls and lists remediation steps.
- **Monitoring and network controls:** Describes CloudWatch alarms, GuardDuty, Security Hub, VPC endpoints and security group rules.

## Good for

- Write a least-privilege IAM role for a Lambda function that reads one S3 bucket
- Design a KMS key policy with separate administrator and user permissions
- Draft a permission boundary for a team that creates its own roles
- Review an architecture against SOC 2 or HIPAA access and logging controls
- Create an SCP that blocks disabling of security services and restricts regions

## Install

### Claude Code

This skill ships in the `konductor` plugin. In Claude Code, add the marketplace and install the plugin (it may include other skills too):

```sh
/plugin marketplace add aws-solutions/konductor
/plugin install konductor@konductor
```

Or copy only this skill to `~/.claude/skills/iam-policy-design`:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/aws-solutions/konductor.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/iam-policy-design &&
cp -R "$tmp/skills/iam-policy-design" ~/.claude/skills/iam-policy-design &&
rm -rf "$tmp"
```

For one project only, put the folder in `.claude/skills/iam-policy-design` inside it instead.

### Codex

Copy the skill folder to `~/.agents/skills/iam-policy-design` to use it in every repository:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/aws-solutions/konductor.git "$tmp" &&
mkdir -p ~/.agents/skills &&
rm -rf ~/.agents/skills/iam-policy-design &&
cp -R "$tmp/skills/iam-policy-design" ~/.agents/skills/iam-policy-design &&
rm -rf "$tmp"
```

For one repository only, put the folder in `.agents/skills/iam-policy-design` inside it instead.

### Cursor

Copy the skill folder to `~/.cursor/skills/iam-policy-design` to use it in every project:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/aws-solutions/konductor.git "$tmp" &&
mkdir -p ~/.cursor/skills &&
rm -rf ~/.cursor/skills/iam-policy-design &&
cp -R "$tmp/skills/iam-policy-design" ~/.cursor/skills/iam-policy-design &&
rm -rf "$tmp"
```

For one project only, put the folder in `.cursor/skills/iam-policy-design` inside it instead.

### Gemini CLI

Run in a terminal (add `--scope workspace` to install it for the current workspace only):

```sh
gemini skills install https://github.com/aws-solutions/konductor.git --path skills/iam-policy-design
```

Or copy the folder to `~/.gemini/skills/iam-policy-design` yourself.

### VS Code

For GitHub Copilot in VS Code, copy the skill folder to `~/.copilot/skills/iam-policy-design`:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/aws-solutions/konductor.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/iam-policy-design &&
cp -R "$tmp/skills/iam-policy-design" ~/.copilot/skills/iam-policy-design &&
rm -rf "$tmp"
```

For one project only, put the folder in `.github/skills/iam-policy-design` inside it instead.

### Other agents

Get the folder:

```sh
git clone --depth 1 https://github.com/aws-solutions/konductor.git
```

Then copy `konductor/skills/iam-policy-design` into your agent's skills folder as `iam-policy-design`. Agents that support SKILL.md read one folder per skill.

## FAQ

### When does Iam policy design trigger?

It is meant for requests to write an IAM role, S3 bucket or KMS key policy, a permission boundary or an SCP, or to get least-privilege access for a service.

### Does Iam policy design need the AWS MCP server?

It can use the AWS MCP server's aws-iam and securing-s3-buckets skills when available. Without the server, it works from its own rules and says that those skills were not consulted.

### Does the skill run AWS CLI commands?

No. The referenced AWS skills run CLI commands, but the design uses their settings only and runs nothing.

### What output does Iam policy design produce?

A structured design document with policy JSON, security controls, a threat mitigation table, compliance validation, CDK or CloudFormation code and testing recommendations.

### How do I install Iam policy design in Claude Code?

Copy the skill folder from GitHub to ~/.claude/skills/iam-policy-design to use it in all your projects, or to .claude/skills/iam-policy-design in one project. Or install the konductor plugin, which includes it: /plugin marketplace add aws-solutions/konductor, then /plugin install konductor@konductor.

### Does Iam policy design run scripts?

No. It is instructions only, with no scripts. This comes from a static check of the files on GitHub; nothing was run. Read the files before you install it.

### Which AI agents can use Iam policy design?

Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose. Each reads skills in the SKILL.md format from its own folder; the install steps on this page list them.

### What are the best alternatives to Iam policy design?

The closest alternatives to Iam policy design are Policy validation, Iam helper for policy management, Threat modeling, Iam helper for troubleshooting and API compliance checker.

## Where this comes from

- Description: from the skill's own SKILL.md.

## Alternatives

- [Policy validation](https://ai-powered.com/skills/policy-validation): Policy validation is an open-source agent skill for security.
- [Iam helper for policy management](https://ai-powered.com/skills/iam-helper-for-policy-management): Iam helper for policy management is an open-source agent skill for security.
- [Threat modeling](https://ai-powered.com/skills/threat-modeling): Threat modeling is an open-source agent skill for security.
- [Iam helper for troubleshooting](https://ai-powered.com/skills/iam-helper-for-troubleshooting): Iam helper for troubleshooting is an open-source agent skill for security.
- [API compliance checker](https://ai-powered.com/skills/api-compliance-checker): API compliance checker is an open-source agent skill for security.
- [Security and hardening](https://ai-powered.com/skills/security-and-hardening): Security and hardening is an open-source agent skill for security.
- [Infra validation](https://ai-powered.com/skills/infra-validation): Infra validation is an open-source agent skill for cloud and infrastructure.
- [Hf cloud sagemaker iam preflight](https://ai-powered.com/skills/hf-cloud-sagemaker-iam-preflight): Hf cloud sagemaker iam preflight is an open-source agent skill for cloud and infrastructure.

---
Source: https://ai-powered.com/skills/iam-policy-design
