easysam-skill
Installation
SKILL.md
EasySAM Skill
This skill provides opinionated workflows and syntax rules for building, validating, and deploying serverless applications using the EasySAM YAML-to-SAM generator.
Core Directives & Cardinal Rules
- NEVER Edit
template.ymlDirectly:template.yml(andtemplate.yaml) is an ephemeral build artifact automatically generated byeasysam generateandeasysam deploy. Do NOT edittemplate.ymlmanually under any circumstances. All configuration changes must be made inresources.yaml, module-leveleasysam.yaml, ordeploy-context.yaml. - FastAPI Lambdas MUST Be Greedy:
Any Lambda function using FastAPI or similar routing frameworks must set
greedy: trueunderintegration:. FastAPI manages internal sub-path routing (/api/v1/items); non-greedy routes will cause API Gateway to return 404 for sub-routes. - Deployment Failure Circuit-Breaker:
If
easysam deployor CloudFormation stack update gets stuck, fails, or enters a rollback loop 2 or more times: STOP attempting retries immediately. Do not run command loops. Output the exact failure details from CloudFormation logs and inform the user so they can intervene (e.g. manual console rollback,easysam delete --force, or fixing CloudFormation resource locks). - Do NOT Run Standalone
prismarine generate-client: When using Prismarine in EasySAM, client code generation (prismarine_client.py) is automatically performed as an integrated step ofeasysam generate .andeasysam deploy .. Do NOT execute separateprismarine generate-clientshell commands.
Standard Project Hierarchy
EasySAM strictly enforces a modular "Module Pattern" for organizing AWS resources. Divide applications into feature or resource modules: