Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx skills add sorah/config --skill rails-on-lambdagit clone --depth 1 https://github.com/sorah/configWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/sorah/config/rails-on-lambda)<a href="https://agentmods.dev/skills/sorah/config/rails-on-lambda"><img src="https://agentmods.dev/badge/skills/sorah/config/rails-on-lambda/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/sorah/config/rails-on-lambda"><img src="https://agentmods.dev/badge/skills/sorah/config/rails-on-lambda.svg" alt="Reviewed on agentmods" width="80" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00271 | $0.03172 |
| Opus 5.5 | $0.00108 | $0.01269 |
| Sonnet 5.5 | $0.00054 | $0.00634 |
| Haiku 4.5 | $0.00027 | $0.00317 |
Grade A, and why
rails-on-lambda scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 127 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Rails on AWS Lambda
How to run a Rails app on Lambda from one container image, with three functions: web (HTTP through a function URL behind CloudFront), lambdakiq (ActiveJob over SQS) and runner (one-off commands such as db:migrate). Taken from a production app that runs this way. Project-specific conventions (CLAUDE.md, docs/) always take priority.
- Terraform follows /sorah-guides:terraform, the workflow /sorah-guides:github-ci.
- Aurora DSQL fits Lambda well (IAM auth, no connection limit to manage); see /sorah-guides:dsql-on-rails.
- Lambda Web Functions (HTTP servers on Lambda without an adapter) support Node.js only so far. Check
/awsdocs before choosing them for Ruby.
Lambda is not a server. Plan around these:
- One request per execution environment. Concurrency means more environments, each with its own boot and its own database connections.
- The environment is frozen as soon as the handler returns. Threads that work after the response (async reporters, buffered log shippers,
Thread.new) stall until the next invocation, or never resume. - The filesystem is read-only except
/tmp(512 MB by default). - A function URL buffers the request and response, each limited to 6 MB. No streaming, SSE, WebSocket or Action Cable through
apigatewayv2_rack. - An invocation lasts at most 15 minutes. The web function is further limited by CloudFront's origin read timeout (60 s unless raised).
- Cold starts boot Rails. Precompile bootsnap, eager load, and give the function enough memory, since CPU scales with it.
- No in-process scheduler. ActiveJob delays are limited to SQS's 15 minutes.
Reference files
references/ mirrors an app's tree. Copy the files, then replace myapp, MyApp, the account ID and the region.
| File | What it is |
|---|---|
Dockerfile |
One image for Lambda and Puma, with aws_lambda_ric, read-only bootsnap cache, tmp/ on /tmp |
config/lambda_entrypoint.sh |
Lambda entrypoint: handler from APP_HANDLER, writable HOME, starts aws_lambda_ric |
config/docker_entrypoint.sh |
Entrypoint everywhere else |
config/boot.rb |
Loads lambda_boot.rb on Lambda only |
config/lambda_boot.rb |
Copies SSM parameters into ENV before Rails boots |
config/lambda_rack.rb |
Web handler, config.ru through apigatewayv2_rack |
config.ru |
CloudFront verification and client IP middlewares |
config/lambda_runner.rb |
Runner handler: runs a command, returns output and exit status |
config/initializers/active_job.rb, lambdakiq.rb |
Queue adapter by JOB_ADAPTER, Lambdakiq worker on every job and mailer |
config/initializers/sentry.rb |
Synchronous Sentry on Lambda |
deploy/lambrunner.rb, deploy/Gemfile |
CLI that invokes the runner and exits with the command's status |
tf/lambda.tf |
The three functions, function URL, SQS event source mapping |
tf/sqs.tf, tf/locals.tf, tf/variables.tf |
Job queue and DLQ, environment and SSM_SECRET__ variables |
tf/cloudfront.tf |
Distribution in front of the function URL, origin verify secret |
tf/iam_MyApp.tf |
Execution role, and the deploy role's Lambda permissions |
.github/workflows/deploy.yml |
Build and deploy jobs: image push, migrate, update functions |
What ships with it
20 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
- references/.github/workflows/deploy.yml 2.9 KB
- references/config.ru 321 B
- references/config/boot.rb 213 B runs code
- references/config/docker_entrypoint.sh 43 B runs code
- references/config/initializers/active_job.rb 237 B runs code
- references/config/initializers/lambdakiq.rb 291 B runs code
- references/config/initializers/sentry.rb 254 B runs code
- references/config/lambda_boot.rb 536 B runs code
- references/config/lambda_entrypoint.sh 275 B runs code
- references/config/lambda_rack.rb 186 B runs code
- references/config/lambda_runner.rb 1.0 KB runs code
- references/deploy/Gemfile 83 B
- references/deploy/lambrunner.rb 874 B runs code
- references/Dockerfile 1.7 KB
- references/tf/cloudfront.tf 2.5 KB
- references/tf/iam_MyApp.tf 1.9 KB
- references/tf/lambda.tf 1.6 KB
- references/tf/locals.tf 853 B
- references/tf/sqs.tf 488 B
- references/tf/variables.tf 420 B
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 1mo ago First seen · 127 lines · 271 tokens per session scan A 0885e6b06907
rails-on-lambda is a skill published in the GitHub repository sorah/config (31 stars, last pushed 11d ago), licensed MIT. It adds 271 tokens to every session and 3,172 once invoked, about $0.0011 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-10-21.
rails-on-lambda compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| rails-on-lambdasorah/config | Skill | 31 | 11d ago | MIT | A | 271 | Claude Code |
| alchemy-providerpingdotgg/t3code | Skill | 86k | today | MIT | A | 153 | Claude Code, Codex |
| stripe-projectsNousResearch/hermes-agent | Skill | 268k | today | MIT | A | 15 | Claude Code, Codex |
| django-storages-s3Jeffallan/claude-skills | Skill | 13k | yesterday | MIT | A | 138 | Claude Code |
| websocket-engineerJeffallan/claude-skills | Skill | 13k | yesterday | MIT | A | 36 | Claude Code |
| azure-eventhub-dotnetmicrosoft/skills | Skill | 3.3k | yesterday | MIT | A | 94 | Claude Code |
| azure-mgmt-botservice-dotnetmicrosoft/skills | Skill | 3.3k | yesterday | MIT | A | 78 | Claude Code |