What problem does it solve? Before running any AWS security scan or pentest, the workspace needs an agent space, an IAM service role, and an S3 bucket correctly linked together. This Skill automates that one-time provisioning so scans can start immediately without manual AWS console work. ## Core Features & Use Cases - Agent Space Provisioning: Reuses an existing agent space (with user confirmation) or creates a new one via the AWS Security Agent API. - IAM Role Setup: Creates the SecurityAgentScanRole with a trust policy for securityagent.amazonaws.com including the aws:SourceAccount confused-deputy guard, plus S3 and CloudWatch Logs permissions. - S3 Bucket Hardening: Creates the convention-named bucket with public access block, 30-day lifecycle expiration, and bucket-ownership enforcement via --expected-bucket-owner to defend against bucket-squatting. - Use Case: A developer runs their first security scan on a new repo; the Skill detects missing config, provisions all AWS resources idempotently, and persists minimal state to .security-agent/config.json. ## Quick Start Ask the AI to set up the security agent for this workspace before running any scan or pentest.