ci-cd-github-actions-rails

ci-cd-github-actions-rails is a skill for Claude Code, Codex from sandeepmvl/rails-skills. It costs 118 tokens per session (2,935 once invoked), scanned A, original, MIT.

A guide to setting up automated testing, code checks, security scans, and deployments for Rails 8 projects using GitHub Actions, GitHub's built-in automation service.

In plain words
What is it for?
Use it to create CI workflows for RSpec, system tests, RuboCop, Brakeman, and bundle auditing; run tests in parallel; cache dependencies; and deploy with Kamal to AWS or GCP using short-lived access.
Why use it?
It helps catch broken code before merging and prevents deployments until the main branch passes its checks. It also avoids repeated manual setup for dependencies, tests, and cloud authentication.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to create CI workflows for RSpec, system tests, RuboCop, Brakeman, and bundle auditing; run tests in parallel; cache dependencies; and deploy with Kamal to AWS or GCP using short-lived access.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/sandeepmvl/rails-skills/55-ci-cd-github-actions-rails
Install

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.

Any agent
npx skills add sandeepmvl/rails-skills --skill 55-ci-cd-github-actions-rails
Clone the repo
git clone --depth 1 https://github.com/sandeepmvl/rails-skills

Made for: Claude Code, Codex.

Wrote 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.

agentmods badge for ci-cd-github-actions-rails

README.md
[![agentmods](https://agentmods.dev/badge/skills/sandeepmvl/rails-skills/55-ci-cd-github-actions-rails/github.svg)](https://agentmods.dev/skills/sandeepmvl/rails-skills/55-ci-cd-github-actions-rails)
Your own site
<a href="https://agentmods.dev/skills/sandeepmvl/rails-skills/55-ci-cd-github-actions-rails"><img src="https://agentmods.dev/badge/skills/sandeepmvl/rails-skills/55-ci-cd-github-actions-rails/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.

agentmods 80×15 button for ci-cd-github-actions-rails

Your own site · 80×15
<a href="https://agentmods.dev/skills/sandeepmvl/rails-skills/55-ci-cd-github-actions-rails"><img src="https://agentmods.dev/badge/skills/sandeepmvl/rails-skills/55-ci-cd-github-actions-rails.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 118 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,935 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce invoked
Fable 5.1 $0.00118 $0.02935
Opus 5.5 $0.00047 $0.01174
Sonnet 5.5 $0.00024 $0.00587
Haiku 4.5 $0.00012 $0.00294

Measured 2mo ago against content hash dc94c8478ffd, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

ci-cd-github-actions-rails 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 2mo 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.

skills/55-ci-cd-github-actions-rails/SKILL.md · 368 lines

How it starts

The opening of the file, as written. The whole thing — 368 lines — stays where its author put it; the contents beside it link to each section on GitHub.

GitHub Actions for Rails

The default CI/CD for new Rails projects. Fast, free up to 2000 min/month for private repos, generous for public. This skill gives you a production-grade workflow file plus the principles (cache aggressively, parallelize tests, gate deploys on green main, OIDC over long-lived secrets).

The opinion

One workflow per concern (CI, Deploy, Security Scan). Parallelize tests via matrix. Cache gems, Yarn, and asset builds. Use the official ruby/setup-ruby action with bundler-cache: true. Use OIDC for AWS / GCP — never long-lived AWS_ACCESS_KEY_ID secrets. Deploy via Kamal on push to main, after CI passes. Branch protection on main: PR + 1 review + green CI + linear history.

Pattern 1: The CI workflow

# .github/workflows/ci.yml
name: CI

on:
  pull_request:
  push:
    branches: [main]

concurrency:
  group: ci-${{ github.workflow }}-${{ github.ref }}
  cancel-in-progress: true   # cancel earlier runs on the same branch

jobs:
  test:
    runs-on: ubuntu-latest
    timeout-minutes: 20

    services:
      postgres:
        image: postgres:16
        ports: ["5432:5432"]
        env:
          POSTGRES_PASSWORD: postgres
        options: >-
          --health-cmd "pg_isready -U postgres"
          --health-interval 10s
          --health-timeout 5s
          --health-retries 5

      redis:
        image: redis:7
        ports: ["6379:6379"]
        options: >-
          --health-cmd "redis-cli ping"
          --health-interval 10s
          --health-timeout 5s
          --health-retries 5

    strategy:
      fail-fast: false
      matrix:
        ci_node_total: [4]
        ci_node_index: [0, 1, 2, 3]

    env:
      RAILS_ENV: test
      DATABASE_URL: postgres://postgres:postgres@localhost:5432/myapp_test
      REDIS_URL: redis://localhost:6379/1
      CI_NODE_TOTAL: ${{ matrix.ci_node_total }}
      CI_NODE_INDEX: ${{ matrix.ci_node_index }}

    steps:
      - uses: actions/checkout@v7

      - uses: ruby/setup-ruby@v1
        with:
          bundler-cache: true   # gems cached automatically per Gemfile.lock hash

      - uses: actions/setup-node@v7
        with:
          node-version: "24"
          cache: yarn

      - run: yarn install --frozen-lockfile

      - name: Build assets
        run: bin/rails assets:precompile

      - name: Database setup
        run: bin/rails db:prepare

      - name: RSpec (sharded)
        run: bin/rspec --tag ~slow

      - name: Upload coverage
        if: matrix.ci_node_index == 0
        uses: codecov/codecov-action@v7
        with:
          token: ${{ secrets.CODECOV_TOKEN }}

Read the full file on GitHub · 368 lines

Files

What ships with it

1 file 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.

Changes

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.

  1. 2mo ago Changed dc94c8478ffd
  2. 3mo ago First seen · 368 lines · 118 tokens per session scan A 0cd2d2a529db

Subscribe to this mod's changes

ci-cd-github-actions-rails is a skill published in the GitHub repository sandeepmvl/rails-skills (22 stars, last pushed 2mo ago), licensed MIT. It adds 118 tokens to every session and 2,935 once invoked, about $0.0005 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-08-30.

Related

ci-cd-github-actions-rails compared with skills from other repositories

ci-cd-github-actions-rails next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
ci-cd-github-actions-railssandeepmvl/rails-skillsSkill222mo agoMITA118Claude Code, Codex
chinese-git-workflowjnMetaCode/superpowers-zhSkill8.7k2d agoMITA69Claude Code
deployment-engineerrmyndharis/antigravity-skillsSkill2.2kyesterdayMITA73Claude Code, Codex
webhook-managementhoangsonww/Claude-Code-Agent-MonitorSkill1.2k3d agoMITA56Claude Code, Codex
monorepo-managementwshobson/agentsSkill43ktodayMITC54Claude Code
managing-github-actions-secretsPostHog/posthog-fossSkill736todayMITA67Claude Code, Codex
ci-fixersipyourdrink-ltd/bernsteinSkill1.2ktodayApache-2.0A15Claude Code, Codex