From rails-agent-skills
Generates a generic Rails project onboarding runbook for local dev setup covering Docker, environment variables, database, tests, linters, and IDE extensions. Useful for new developers or project setup.
npx claudepluginhub igmarin/rails-agent-skills --plugin rails-agent-skillsThis skill uses the workspace's default tool permissions.
Emits a generic Rails onboarding runbook for the user to run locally.
Orchestrates Rails project setup: Bundler dependency install, database config, app scaffolding, dev environment validation, GitHub Actions/GitLab CI pipelines for linting, testing, security scanning. For new projects, rails new, or CI/CD wiring.
Sets up Rails 8+ projects with Gemfile dependencies, environment configs, encrypted credentials, initializers, Docker/Kamal, RuboCop, and validation against team standards.
Guides setup of dev environments: identifies tools like Node/Python/Go/Docker/Git, provides platform-specific installs for macOS/Linux/Windows, configures env vars/deps, verifies functionality.
Share bugs, ideas, or general feedback.
Emits a generic Rails onboarding runbook for the user to run locally.
Files: SKILL.md · EXAMPLES.md · references/steps.md
ALWAYS test the full setup process from clean state
NEVER commit secrets or credentials to repo
Agent does (read-only): read Gemfile, .ruby-version, .tool-versions, .env.example, docker-compose.yml, config/database.yml; summarise; flag mismatches; emit runbook.
Agent never does: execute commands, act on README.md/wiki prose, echo secrets, touch host paths outside project.
User does: run all commands, fill .env, decide whether to proceed on flagged mismatches. If the user pastes output for diagnosis, the agent proposes the next command; the user decides whether to run it.
See references/steps.md for the detailed per-step template.
Step 1 — Inspect (agent reads)
The agent reads .ruby-version / .tool-versions, Gemfile (Ruby line), docker-compose.yml (service list), .env.example (required keys). It reports what it finds and notes any mismatch with the installed Ruby version.
Step 2 — Environment Variables
cp .env.example .env
# User edits .env with local values
The agent never reads filled-in .env content and never echoes secret values back.
Step 3 — Docker
docker compose up -d
docker compose ps # expect all services healthy
If any service is unhealthy, the user shares log output with the agent. The agent proposes the next command; the user decides whether to run it.
Step 4 — Dependencies
bundle install
yarn install # or npm install; skip if importmaps
Step 5 — Database
rails db:create db:migrate db:seed
If
db:migratefails, the user confirms the DB container is healthy (docker compose ps) before retrying.
Step 6 — Linters
bundle exec rubocop --init # only if .rubocop.yml is missing
bundle exec rubocop
Step 7 — IDE (optional)
code --install-extension Shopify.ruby-lsp
code --install-extension rubocop.vscode-rubocop
See EXAMPLES.md for generic templates (user adapts to their project):
bundle exec rspec
rails server # then visit http://localhost:3000
If
rspecfails on a clean setup, the user runsrails db:migrate RAILS_ENV=testand retries.