Skip to content
Skill

Rails on lambda

Guides an agent through deploying and debugging a Rails app on AWS Lambda

Rails on lambda is an open-source agent skill for cloud and infrastructure. It is available on Claude Code.

Scripts
shell, Ruby
Platforms
Claude Code
GitHub stars
31
Last commit
License
MIT
Listing updated

Similar skills

About Rails on lambda

This skill covers running a Rails application on AWS Lambda from a single container image split into three functions: a web handler behind a function URL and CloudFront, an ActiveJob worker fed by SQS through Lambdakiq, and a runner for one-off commands such as database migrations. It explains the constraints Lambda imposes, including single-request environments, a read-only filesystem apart from /tmp, a 6 MB payload limit and a 15-minute invocation cap, and tells the agent how to design around them.

The skill points to a set of reference files to copy into a project and describes the details that matter: configuration from SSM Parameter Store loaded before Rails boots, origin verification and client IP handling through CloudFront, bootsnap precompilation, and a CLI that invokes the runner and returns the command's exit status. It also gives an ordered deploy flow that runs migrations before updating the job and web functions.

The skill expects Terraform for the infrastructure, AWS credentials with the listed Lambda, SSM, SQS and ECR permissions, and a Ruby project using apigatewayv2_rack, lambdakiq and aws_lambda_ric. Project conventions in CLAUDE.md or docs take priority over its guidance.

When your agent uses it

This skill should be used when deploying, running, or debugging a Rails app on AWS Lambda, or when moving a Rails app from ECS, App Runner, Heroku or a VM onto Lambda. Use it when touching the Dockerfile, an entrypoint, a Lambda handler, ActiveJob on SQS, secrets loading, CloudFront in front of a function URL, one-off commands like `db:migrate` in production, or the deploy workflow of such an app, even if the user only says "add a job", "add a secret" or "why is the client IP wrong" in such an app. Signs include `apigatewayv2_rack`, `aws_lambda_ric`, `lambdakiq`, `Lambdakiq.cmd`, `LambdaRackApp`, `CommandRunner`, `lambrunner.rb`, `lambda_entrypoint.sh`, `SSM_SECRET__`, `APP_HANDLER`, `AWS_LAMBDA_FUNCTION_NAME`, `aws_lambda_function_url`, `x-origin-verify`, or the user mentioning "Rails on Lambda", "serverless Rails", "Lamby", or "function URL". Provides the container image, handlers for web, jobs and commands, secrets, CloudFront, deploy and migration flow, and the limits to design around. Project-specific co

From the skill's SKILL.md. Your agent reads this description to decide when to load the skill.

What it can access

From a static check of its 21 files (29 KB) on GitHub on 4 December 2026. Nothing was run. Read the files before you install a skill: it can tell your agent to run anything its tools allow.

Check another skill before you install it.

Install

This skill ships in the sorah-guides plugin. In Claude Code, add the marketplace and install the plugin (it may include other skills too):

/plugin marketplace add sorah/config
/plugin install sorah-guides@sorah-marketplace

Or copy only this skill to ~/.claude/skills/rails-on-lambda:

tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/sorah/config.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/rails-on-lambda &&
cp -R "$tmp/claude/marketplace/plugins/sorah-guides/skills/rails-on-lambda" ~/.claude/skills/rails-on-lambda &&
rm -rf "$tmp"

For one project only, put the folder in .claude/skills/rails-on-lambda inside it instead.

Claude Code docs on skills

Copy the skill folder to ~/.agents/skills/rails-on-lambda to use it in every repository:

tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/sorah/config.git "$tmp" &&
mkdir -p ~/.agents/skills &&
rm -rf ~/.agents/skills/rails-on-lambda &&
cp -R "$tmp/claude/marketplace/plugins/sorah-guides/skills/rails-on-lambda" ~/.agents/skills/rails-on-lambda &&
rm -rf "$tmp"

For one repository only, put the folder in .agents/skills/rails-on-lambda inside it instead.

Codex docs on skills

Copy the skill folder to ~/.cursor/skills/rails-on-lambda to use it in every project:

tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/sorah/config.git "$tmp" &&
mkdir -p ~/.cursor/skills &&
rm -rf ~/.cursor/skills/rails-on-lambda &&
cp -R "$tmp/claude/marketplace/plugins/sorah-guides/skills/rails-on-lambda" ~/.cursor/skills/rails-on-lambda &&
rm -rf "$tmp"

For one project only, put the folder in .cursor/skills/rails-on-lambda inside it instead.

Cursor docs on skills

Run in a terminal (add --scope workspace to install it for the current workspace only):

gemini skills install https://github.com/sorah/config.git --path claude/marketplace/plugins/sorah-guides/skills/rails-on-lambda

Or copy the folder to ~/.gemini/skills/rails-on-lambda yourself.

Gemini CLI docs on skills

For GitHub Copilot in VS Code, copy the skill folder to ~/.copilot/skills/rails-on-lambda:

tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/sorah/config.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/rails-on-lambda &&
cp -R "$tmp/claude/marketplace/plugins/sorah-guides/skills/rails-on-lambda" ~/.copilot/skills/rails-on-lambda &&
rm -rf "$tmp"

For one project only, put the folder in .github/skills/rails-on-lambda inside it instead.

VS Code docs on skills

Get the folder:

git clone --depth 1 https://github.com/sorah/config.git

Then copy config/claude/marketplace/plugins/sorah-guides/skills/rails-on-lambda into your agent's skills folder as rails-on-lambda. Agents that support SKILL.md read one folder per skill.

The SKILL.md format

What it does

Container image setup
Covers building one Ruby image that runs under the Lambda runtime interface client and the Puma server.
Web function via CloudFront
Explains the function URL, origin verification header, and client IP and host forwarding behind CloudFront.
SQS background jobs
Describes ActiveJob on SQS with Lambdakiq, including queue visibility, redrive settings and retry behavior.
One-off command runner
Covers invoking a runner function to execute commands such as rake db:migrate and returning their output.
Secrets from SSM
Explains loading SSM parameters into environment variables before Rails boots.
Ordered deploy workflow
Lists the sequence of migrating, then updating job and web functions, with rollback by image tag.

Good for

  • Move a Rails app from ECS or Heroku onto AWS Lambda
  • Add a background job that runs through SQS on Lambda
  • Run a database migration against a production Lambda deployment
  • Debug a wrong client IP behind CloudFront in a Lambda-hosted Rails app
  • Set up a secret loaded from SSM Parameter Store for a Lambda function

Rails on lambda FAQ

What does the skill need before Rails on lambda can be used?

It expects a Rails app that will run on AWS Lambda, with Terraform for the infrastructure and the gems apigatewayv2_rack, lambdakiq and aws_lambda_ric.

Does Rails on lambda change the app's code on its own?

It provides reference files to copy into the project and describes the steps, replacing placeholders such as the app name, account ID and region.

Why are migrations run before the functions are updated?

The skill says to migrate first so that neither jobs nor requests run new code against an old schema, and to keep schema changes compatible with the running code.

Can a Rails console or long task run on Lambda?

The skill says long-running or interactive commands such as rails console need ECS or ECS Exec with the same image, since the runner is limited to 900 seconds.

How do I install Rails on lambda in Claude Code?

Copy the skill folder from GitHub to ~/.claude/skills/rails-on-lambda to use it in all your projects, or to .claude/skills/rails-on-lambda in one project. Or install the sorah-guides plugin, which includes it: /plugin marketplace add sorah/config, then /plugin install sorah-guides@sorah-marketplace.

Does Rails on lambda run scripts?

Yes. It runs shell and Ruby scripts. Its scripts contain network calls. This comes from a static check of the files on GitHub; nothing was run. Read the files before you install it.

Which AI agents can use Rails on lambda?

Claude Code. It reads skills in the SKILL.md format; the install steps on this page show where to put the folder.

What are the best alternatives to Rails on lambda?

The closest alternatives to Rails on lambda are Runpod flash, Cascading voice agent, Deploy, Craft cloud and Runpod companion clis.

Where this comes from

  • Description: from the skill's own SKILL.md.

More from sorah/config

  1. Guides an agent through maintaining sorah's aptly-managed APT repositories and their

    • Open source
    • 31 GitHub stars
    • Cloud and infrastructure
  2. Runs a chief-of-staff session that watches your coding agents and keeps work on track

    • Open source
    • 31 GitHub stars
    • Developer tools
  3. Applies language-agnostic coding conventions to code writing and review

    • Open source
    • 31 GitHub stars
    • Developer tools
  4. Guides the agent to write git commit messages and PR titles in a concise house style

    • Open source
    • 31 GitHub stars
    • Developer tools
  5. Guides an agent through building and testing Rails apps on Aurora DSQL

    • Open source
    • 31 GitHub stars
    • Developer tools
  6. Writes English text in the author's terse, direct technical voice for GitHub and email

    • Open source
    • 31 GitHub stars
    • Developer tools