writing-agentcore-policy
Installation
SKILL.md
Writing AgentCore Policy
Overview
Turns a developer's access requirements, or a whole natural-language policy document, into AgentCore Policy statements that the policy engine accepts. Policies are grounded in the Gateway's real tools and generated Cedar schema, checked locally before submission, and written only after the developer approves the exact request.
The AWS MCP server is recommended for sandboxed execution and audit logging but is not required: every step runs with the bundled Python CLI and the AWS CLI.
Workflow:
- Prepare the policy context (Gateway discovery or local schema files).
- Look up the schemas of the actions the policy names.
- Draft, store and validate the statement (or every rule of a policy document); revise until local findings are resolved.
- Preview the write, get explicit approval, submit, and report the final status and findings.