Status: Backlog Phase: 2 — Knowledge Skills Depends on: Starter Golden Specs
Turn the Rails+AWS+Terraform golden spec into an executable skill that walks through implementation step by step. Unlike the golden spec (which is a reference document), this skill actively guides the user through setup, adapting to their specific project.
skills/rails-aws-deploy/
├── SKILL.md
└── references/
├── architecture-overview.md
├── terraform-resources.md
├── kamal-configuration.md
└── common-gotchas.md
---
name: rails-aws-deploy
description: "When the user wants to deploy a Rails 8 application to AWS using Kamal and Terraform. Also use when the user mentions 'deploy rails to aws', 'set up kamal', 'terraform for rails', 'ec2 deployment', or 'aurora setup'. For scaffolding just the terraform directory, see terraform-scaffold. For Stripe integration, see stripe-subscriptions."
metadata:
version: 1.0.0
---The skill should walk through these stages in order:
- Check prerequisites — Rails 8 app exists, AWS CLI configured, Terraform installed, Docker running
- Terraform setup — Scaffold terraform directory (suggest
/terraform-scaffold), configure state backend, create resources - Kamal setup — Generate deploy.yml, environment configs, secrets files
- IAM & security — Instance profile, security groups, least-privilege policies
- Database — Aurora Serverless v2 configuration, additional databases for Solid Queue/Cache/Cable
- Deploy — First deploy walkthrough, health check verification
- Post-deploy — SES setup, monitoring, backup verification
references/architecture-overview.md
- Architecture diagram: Cloudflare → EC2 → Docker → Aurora
- Why this over ECS/Fargate (comparison table)
- Cost breakdown per environment
references/terraform-resources.md
- Complete list of terraform resources created
- Naming conventions
- Minimum sizing (t3.small, 0.5 ACU, 20GB EBS) with explanations
references/kamal-configuration.md
- deploy.yml structure
- Environment-specific overrides (staging/production)
- Secrets management (Kamal secrets files + AWS Secrets Manager)
- Pre-build hooks (Tailwind on ARM Mac)
references/common-gotchas.md
- All gotchas from the golden spec, expanded with "how to diagnose" for each
- t3.micro OOM, Docker bypassing UFW, Kamal health check + Rack Attack, Aurora cold starts, etc.
- Create SKILL.md with the guided workflow
- Extract reference content from the golden spec into the 4 reference files
- Update marketplace.json
- Test: walk through the full setup in a new Rails project