Use when preparing your agent for production — IAM scoping, inbound auth (JWT, SigV4), secrets management, cold start optimization, session lifecycle, rate limiting, input validation, and quota guidance. Triggers on: "production checklist", "harden agent", "production ready", "secure agent", "inbound auth", "going live", "cold start optimization", "session lifecycle", "StopRuntimeSession", "quota", "throttling", "maxVms", "rate limit", "security audit of outbound API calls", "gateway target audit for production", "restrict who can call", "lock down endpoint", "only our app can call". Not for Cedar tool-restriction policies — use agents-connect. Not for quality measurement — use agents-optimize. Not for outbound credential storage or API key wiring — use agents-connect. Not for A2A agent-to-agent auth — use agents-build. Cold start observation and diagnosis (not optimization) routes to agents-debug.
$npx -y skills add aws/agent-toolkit-for-aws --skill agents-hardenInstalls into the current project.
Run `npx skills use "https://github.com/aws/agent-toolkit-for-aws" --skill "aws/agent-toolkit-for-aws/agents-harden"` and follow the generated skill instructions now. Read its complete output, redirecting it to a temporary file first if necessary. Resolve relative paths from the supporting-files directory it provides.
Use the skills in "https://github.com/aws/agent-toolkit-for-aws" that are relevant to the current task. Run `npx skills add "https://github.com/aws/agent-toolkit-for-aws"` and select the relevant skills, then follow their instructions.