From rails-agent-skills
Emits a generic Rails development-environment setup runbook covering Docker, environment variables, database, test suite, linters, and IDE. Agent reads config files and flags mismatches but never executes commands or reads secrets.
How this skill is triggered — by the user, by Claude, or both
Slash command
/rails-agent-skills:setup-environmentThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
- **Agent reads:** `.ruby-version`, `.tool-versions`, `Gemfile`, `docker-compose.yml`, `.env.example`, `config/database.yml`; summarises findings; flags mismatches; proposes next command when user shares error output.
.ruby-version, .tool-versions, Gemfile, docker-compose.yml, .env.example, config/database.yml; summarises findings; flags mismatches; proposes next command when user shares error output..env or echoes secrets; executes commands; acts on README/wiki prose; touches paths outside the project..env, decides whether to proceed on flagged mismatches.Emits a generic Rails onboarding runbook for the user to run locally. references/steps.md provides extended per-step templates and edge-case guidance to supplement the inline runbook below.
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
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
Keep this as one command unless the project requires separate steps; if split, explain why.
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
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.
When asked to prepare environment setup, output answer.md following the Runbook structure above (Steps 1–7 plus Final Verification), with these additional sections:
| Skill | When to chain |
|---|---|
| load-context | When getting context on the project setup |
npx claudepluginhub igmarin/rails-agent-skills --plugin rails-agent-skillsWrites complete local development environment setup guides for services or projects, covering prerequisites, env vars, dependencies, seeding, running, testing, gotchas, and IDE recommendations.
Guides developers through setting up development environments from scratch, covering tools, dependencies, environment variables, and verification. Useful for onboarding, new machines, or troubleshooting setup issues.
Guides developers through setting up development environments from scratch, including installing tools, configuring dependencies, and verifying setups. Useful for onboarding, new machines, or troubleshooting environment issues.